View Single Post
  #6  
Old 06-30-2010, 03:26 AM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks... I've come up with another add-on / option for this mod...

If you want to edit a thread's title to reflect it is a thread outside of your 'master forum' do the following...

Edit the threadbit template.

Find:

Code:
<if condition="$show['sticky']"> <img class="inlineimg" src="$stylevar[imgdir_misc]/sticky.gif" alt="$vbphrase[sticky_thread]" /> </if>
				</span>
			</if>
After this add:
Code:
<if condition="$vbulletin->userinfo['field5'] != 'No'">
<if condition="($foruminfo[forumid] == 1) AND ($thread[forumid] != 1)">[X]</if></if>
Replace the two instances of "1" with the forumid of your master forum. Replace 'field5' with the field name of your opt-in field discussed in post #4 in this thread. If you are not using the opt-in system then instead add the following code:
Code:
<if condition="($foruminfo[forumid] == 1) AND ($thread[forumid] != 1)">[X]</if>
You can obviously change "[X]" with any text or code you'd like... in fact I went a step further personally... I have a unique status icon for each of my forums so I used a mini version (18 pixels square) of each icon in place of the [X]. To do this I renamed each icon to be the forumid number of each forum. Then in place of [X] I used:
Code:
<img src="/forums/images/ministatus/$thread[forumid].gif" border="0" align="absmiddle">
Of course you'd set the directory path to wherever you uploaded your images. Doing this will produce results like in my screen shot (but with your images of course.) I recommend 18x18 pixel graphics so they are the same size as standard text but any size icons will work.

Attached Images
File Type: jpg ss_staticons.jpg (34.1 KB, 0 views)
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01233 seconds
  • Memory Usage 1,785KB
  • Queries Executed 12 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_code
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_attachment
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.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
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • 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_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • showpost_complete