The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#11
|
||||
|
||||
![]()
No, that is incorrect. You would want to do this:
HTML Code:
<td class="alt1"><if condition="is_member_of($bbuserinfo, x,y)"> <!-- content only shown to members of usergroupid x or y --> $forum[threadcount] <else /> - </if></td> <td class="alt2"><if condition="is_member_of($bbuserinfo, x,y)"> <!-- content only shown to members of usergroupid x or y --> $forum[replycount] <else /> - </if></td> |
#12
|
|||
|
|||
![]()
Thanks for the help mate i got it working the template i had to edit was forumhome_forumbit_level2_post
But it hides the thread and post count for all sections is there another code i can add to just hide the post/thread count for a specific forum (just my VIP section) Thanks for all your help i o you one edit i have found out that the extra condition that i need to add is Code:
<if condition="in_array($forum['forumid'], array(41,42,55,43,44,53,45)"></if> |
#13
|
||||
|
||||
![]()
You tried adding it how? Post exactly the code you tried.
|
#14
|
|||
|
|||
![]()
Thats the code i added
Code:
<td class="alt1"><if condition="in_array($forum['forumid'], array(41,42,55,43,44,53,45)"></if><if condition="is_member_of($bbuserinfo, 6,7,5,10,11)">$forum[threadcount]</td><else /> </if></td> <td class="alt2"><if condition="in_array($forum['forumid'], array(41,42,55,43,44,53,45)"></if><if condition="is_member_of($bbuserinfo, 6,7,5,10,11)">$forum[replycount]</td><else /> </if></td> But i get this error Code:
Parse error: syntax error, unexpected ';' in /home/iiandoii/public_html/includes/adminfunctions_template.php(3772) : eval()'d code on line 21 Thanks |
#15
|
||||
|
||||
![]()
Count your beginning and ending parenthesis, they need to be equal:
HTML Code:
<if condition="in_array($forum['forumid'], array(41,42,55,43,44,53,45))">
HTML Code:
<if condition="in_array($forum['forumid'], array(41,42,55,43,44,53,45)">
But, why are you even doing that condition when you end it right after you do it? It's a 'blank' condition, so why put it in? Just put in the other (but make sure the parenthesis add up, as I said). |
#16
|
|||
|
|||
![]()
Ok il give it a shot
Quote:
Code:
<td class="alt1"><if condition="$forum[forumid] == 41"></if><if condition="is_member_of($bbuserinfo, 6,7,5,10,11)">$forum[threadcount]</td><else /> </if></td> <td class="alt2"><if condition="$forum[forumid] == 41"></if><if condition="is_member_of($bbuserinfo, 6,7,5,10,11)">$forum[replycount]</td><else /> </if></td> |
#17
|
||||
|
||||
![]()
your first condition is closed without anything in it, so it isn't serving any purpose
<if condition="$forum[forumid] == 41"></if> |
#18
|
|||
|
|||
![]()
My head is fried....... Thanks for all the helps lads but im just guna leave it untill i get the hang of this coding stuff
I just dont understand it, Thanks again |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|