PDA


View Full Version : Help with VBCode on portal page.


cdoyle
05-27-2005, 11:25 PM
Hi,
I'm not sure if you'll be able to help me or not, but I have CMPS running on my forum, and I just installed the 'member of the day' hack found over here
http://www.vbulletin.org/forum/showthread.php?p=654260#post654260

I wanted to have the hack display the 'member of the day' on my portal page rather then on the forum itself.

I got that working, but running into one small problem.
I wanted to have my 'member of the day' signature to appear under their name.

I got it working well sorta.

When the member uses BB code or smileys etc. It displays it as text. Instead of displaying it properly as it does on the forum itself.

Would anyone have any idea how to make this work?

here is my forum, so you can see what I'm talking about.
www.caraudiocentral.net

I hope maybe someone might have an idea!! :)

Thanks in advance
Chris.

cdoyle
05-30-2005, 10:43 AM
Does anyone have any ideas?

If you take a look at today's member of the day, you can really see what I'm talking about.

Thanks
Chris.

cdoyle
06-04-2005, 08:48 PM
Maybe if I post my code someone might have an idea.

From the instructions on VB.org
I created a new template named adv_portal_member
Which had this code inserted
$memberoftheday

This looks at my memberoftheday template which has the following code
<table class="" cellpadding="0" cellspacing="1" border="0" width="100%" align="center">
<tr bgcolor="#A9C7D8">
<td colspan="3" class="vbmenu_control"><b>Member of the day is: <a target="_top" href="member.php?&u=$mday[userid]">$mday[username]</a>!</b>
</tr>
<tr>
<td width="78%"> <br/>
View $mday[username]'s <a target="_top" href="$vboptions[bburl]/member.php?&u=$mday[userid]">Webpage
and Guestbook</a><BR>
Posts: $mday[posts]</span><br/>
Reputation: $mday[reputation]</span><br/>
<if condition="$mday[age]">Age: $mday[age]</span><br/>
</if> <br/>
Favorite forum: <a href="/forums/forumdisplay.php?f=$mday[forumid]">$mday[forumname]</a>
<br/>
<td width="21%"><img src="$avatarurl"></td>
<td width="1%"></td>
</tr>
<tr>
<td colspan="3">
<p><if condition="$mday[signature]">Signature:</if
></p>
<p><if condition="$mday[signature]"> $mday[signature]<br/>
</if
></p>
</tr>
</table>
<br/>


Everything works, but if anyone uses the [ img] tag or smiles etc in their sigs, it just displays the code on the CMPS page. It's works fine if I use the template within the forums. Just not on CMPS? Anyone have an idea on how to make it work on CMPS too?

Thanks
Chris.

KW802
06-04-2005, 09:09 PM
Everything works, but if anyone uses the [ img] tag or smiles etc in their sigs, it just displays the code on the CMPS page. It's works fine if I use the template within the forums. Just not on CMPS? Anyone have an idea on how to make it work on CMPS too?You'll need to talk to the hack author about including the bb code parse logic in his hack. CMPS is just displaying the results of the hack code, in order to get the hack to parse the bb codes it'll have to be changed to call the vB function.