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

Reply
 
Thread Tools Display Modes
  #1  
Old 09-17-2010, 06:02 PM
Hell Bomb Hell Bomb is offline
 
Join Date: Jun 2009
Posts: 385
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default if condition based on thread prefix

Does anyone know if vBulletin already has a if condition that will activate based on a single threads prefix?
Reply With Quote
  #2  
Old 09-21-2010, 12:24 AM
Hell Bomb Hell Bomb is offline
 
Join Date: Jun 2009
Posts: 385
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

-= bump =-
Reply With Quote
  #3  
Old 09-21-2010, 03:13 AM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Probably something like:

HTML Code:
<if condition="$threadinfo[prefixid] == 'xxxx'">
stuff to do if prefixid is xxxx
</if>
Change $threadinfo to be the appropriate variable for template you are using it in.
Reply With Quote
  #4  
Old 09-24-2010, 03:20 PM
Hell Bomb Hell Bomb is offline
 
Join Date: Jun 2009
Posts: 385
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lynne View Post
Probably something like:

HTML Code:
<if condition="$threadinfo[prefixid] == 'xxxx'">
stuff to do if prefixid is xxxx
</if>
Change $threadinfo to be the appropriate variable for template you are using it in.
well I am trying to change the information that displays on the forumhome depending on the prefix of a thread in my forum
Reply With Quote
  #5  
Old 09-24-2010, 05:25 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What hook location are you using? Go find it in the code and see what variable is appropriate to use in there.
Reply With Quote
  #6  
Old 09-25-2010, 02:13 AM
Hell Bomb Hell Bomb is offline
 
Join Date: Jun 2009
Posts: 385
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lynne View Post
What hook location are you using? Go find it in the code and see what variable is appropriate to use in there.
hmm honestly no clue, i have a post lets say www.example.com/forum/showthread.php?view=1 or something and it has the prefix "prefix" and the id of it is 2, on the forum home page if i change the prefix to something else say prefix id1 then i want it to change the display on the forum home page, I will be searching in the vbmanual for the right hook location or w/e you call it but any tips or advice would be much apperciated, sorry for seeming so useless, i am mainly a visual coder sticking to only themes, but this one has been getting me.
Reply With Quote
  #7  
Old 10-07-2010, 05:21 PM
Hell Bomb Hell Bomb is offline
 
Join Date: Jun 2009
Posts: 385
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

-= Bump =-
Reply With Quote
  #8  
Old 10-07-2010, 05:31 PM
cad2go cad2go is offline
 
Join Date: Feb 2009
Posts: 181
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by hellbomb View Post
hmm honestly no clue, i have a post lets say www.example.com/forum/showthread.php?view=1 or something and it has the prefix "prefix" and the id of it is 2, on the forum home page if i change the prefix to something else say prefix id1 then i want it to change the display on the forum home page, I will be searching in the vbmanual for the right hook location or w/e you call it but any tips or advice would be much apperciated, sorry for seeming so useless, i am mainly a visual coder sticking to only themes, but this one has been getting me.
have you tried rebuilding the counters in maintenace @admincp. vb does ^^^^. Sometimes it takes a while for the preview on forumhome to update to the new prefix is all.

I want to hide threads from guests that have the prefix NWS: (not work safe) so something like Lynne posted would be the direction I'd start with but that's a different case.

Can you show us visually? i.e. a pic of the forum and a pic of forumhome how you'd like it. Maybe we can figure it out.
Reply With Quote
  #9  
Old 10-18-2010, 03:44 PM
Hell Bomb Hell Bomb is offline
 
Join Date: Jun 2009
Posts: 385
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The image should give you all the information you need
http://img249.imageshack.us/img249/6753/helpoq.jpg
Reply With Quote
  #10  
Old 10-18-2010, 05:17 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have no idea what I am supposed to be looking at in that image and what it is you want to change/add in there.
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 03:20 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05472 seconds
  • Memory Usage 2,250KB
  • Queries Executed 11 (?)
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
  • (2)bbcode_html
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)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_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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete