Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #11  
Old 12-14-2008, 04:32 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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>
Reply With Quote
  #12  
Old 12-19-2008, 12:04 PM
IIAnDoII IIAnDoII is offline
 
Join Date: Jul 2008
Posts: 56
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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>
I have tried adding it but it just hides the thread/post count for all the sections still got any other ideas
Reply With Quote
  #13  
Old 12-19-2008, 03:02 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by IIAnDoII View Post
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>
I have tried adding it but it just hides the thread/post count for all the sections still got any other ideas
You tried adding it how? Post exactly the code you tried.
Reply With Quote
  #14  
Old 12-19-2008, 03:40 PM
IIAnDoII IIAnDoII is offline
 
Join Date: Jul 2008
Posts: 56
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #15  
Old 12-19-2008, 03:52 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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))">
not

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).
Reply With Quote
  #16  
Old 12-19-2008, 04:10 PM
IIAnDoII IIAnDoII is offline
 
Join Date: Jul 2008
Posts: 56
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok il give it a shot

Quote:
But, why are you even doing that condition
well my first condition i used was

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>
which just hide the thread/post count for all the sections and i only wanted to hide it for 5 of my sections so i started playing around with conditions but im to good at code's so i dident know i was adding a blank condition if you get me
Reply With Quote
  #17  
Old 12-19-2008, 04:29 PM
SEOvB's Avatar
SEOvB SEOvB is offline
 
Join Date: May 2007
Location: Indianapolis
Posts: 2,451
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

your first condition is closed without anything in it, so it isn't serving any purpose

<if condition="$forum[forumid] == 41"></if>
Reply With Quote
  #18  
Old 12-19-2008, 04:59 PM
IIAnDoII IIAnDoII is offline
 
Join Date: Jul 2008
Posts: 56
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 06:16 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04028 seconds
  • Memory Usage 2,241KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (5)bbcode_code
  • (3)bbcode_html
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (8)post_thanks_box
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (8)post_thanks_postbit_info
  • (8)postbit
  • (8)postbit_onlinestatus
  • (8)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete