Log in

View Full Version : Need help with a simple change to forumdisplay


JPetrillo
07-25-2009, 03:43 PM
Hello,

Please take a look at this screenshot (http://i32.tinypic.com/2e3de85.jpg).

https://vborg.vbsupport.ru/external/2009/07/19.jpg

Those items that I drew the red box around... I do not want them to show up for guests. I only want that to show up for registered users.

I'm guessing I just need to modify the FORUMDISPLAY template, right? How do I do this?

I have attached a copy of my forumdisplay template.

Thanks!

JPetrillo
07-25-2009, 03:51 PM
Oh, I think I just figured it out on my own, but can someone please tell me if I did it right?

I added: <if condition="$show['member']">

Just before: <!-- icon key -->

and then: </if>

Just after: <!-- / forum rules & forum jump -->

Is that okay?

Also, in that same screenshot where it shows the Moderators... how do I make it so it does not show the Moderators. I want to display options to only show the sort options, I do not want the names of Moderators to show up.

bananalive
07-25-2009, 04:20 PM
Oh, I think I just figured it out on my own, but can someone please tell me if I did it right?

I added: <if condition="$show['member']">

Just before: <!-- icon key -->

and then: </if>

Just after: <!-- / forum rules & forum jump -->

Is that okay?

Also, in that same screenshot where it shows the Moderators... how do I make it so it does not show the Moderators. I want to display options to only show the sort options, I do not want the names of Moderators to show up.

To remove moderators you'll have to remove from FORUMDISPLAY template:
<if condition="$show['moderators']">
<td class="alt1"><div class="smallfont">$moderatorslist&nbsp;</div></td>
</if>
and <if condition="$show['moderators']">
<td class="tcat">$vbphrase[moderators]</td>
</if>and <if condition="$show['moderators']">
<td class="thead">$vbphrase[moderators] : $totalmods</td>
</if>

JPetrillo
07-25-2009, 09:53 PM
Thanks bananalive!

So now it looks like this:

https://vborg.vbsupport.ru/external/2009/07/16.jpg

How can I get it all on one line to make it look like this:

https://vborg.vbsupport.ru/external/2009/07/17.jpg

Thanks again :)