Customers SupportDocumentation




Reply
 
Thread Tools
  #1  
Old 01-11-2008, 03:46 AM
Member
 
Join Date: Sep 2008
Posts: 9
Altering the template "forumhome_forumbit_level1_nopost"

In reference to this post -

My forum ID of the highest category is dependent on the usergroup the member is in. I've tried using the following code to get rid of the extra table border with no luck by replacing this code

Code:
<if condition="$forum[forumid] != 115">
with this

Code:
<if condition="in_array($forum['forumid'], array(150,115))"></if> 
Any suggestions?

TriMe

Last edited by TriMe; 01-11-2008 at 03:52 AM.
Reply With Quote
  #2  
Old 05-11-2008, 05:15 PM
MaestroX's Avatar
vBulletin Skin Zone Staff
 
Real Name: Chris A.
Join Date: May 2007
Location: UK
Posts: 1,809
Re: Altering the template "forumhome_forumbit_level1_nopost"

The easiest way to get round this is to reorder your forums so that the top isn't usergroup dependant, though you could use a complex nest of conditionals such as this:

Code:
<if condition="is_member_of($vbulletin->userinfo, x,)">
<if condition="$forum[forumid] != x1">
</table>
<br />
 
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">

</if>
<else />
<if condition="is_member_of($vbulletin->userinfo, y,)">
<if condition="$forum[forumid] != y1">
</table>
<br />
 
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">

</if>
</if>
</if>
Replace X and Y with the usergroups and x1 with the top forum the appears for usergroup x and vice versa for y1.

You need to replace the following default with the above:

Code:
<if condition="$forum[forumid] != 4">
</table>
<br />
 
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
</if>
I can guartentee this will work, as I can't test it, though it should work in theory. Let me know how you get on.
Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
How can I install the "Red Carbon" Style - Branding Free ? Oxygen General Questions 1 13-09-2008 05:22 PM
"Chat Fusion" Style Released! MaestroX Announcements 3 18-08-2008 01:19 AM
"Seasons" Style Released! MaestroX Announcements 2 15-08-2007 07:22 PM


All times are GMT. The time now is 02:29 PM.