Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 Programming Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 07-11-2011, 03:24 AM
davio33 davio33 is offline
 
Join Date: May 2007
Posts: 65
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Exclude breadcrumbs from specific forums?

anyone know how I can exclude breadcrumbs from certain forums?

Thanks

--------------- Added [DATE]1310359873[/DATE] at [TIME]1310359873[/TIME] ---------------

IUpdate I figured out how to the do it to the cms, so i guess by question would be what do i replace index with? can I have index,forum home, forum id?

Quote:
<vb:if condition="in_array(THIS_SCRIPT, array(index))">
Reply With Quote
  #2  
Old 07-11-2011, 12:41 PM
ForumExcellence ForumExcellence is offline
 
Join Date: Mar 2011
Posts: 41
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

To do this, go into your navbar template and find:

Code:
<div id="breadcrumb" class="breadcrumb">
This is the beginning of the entire breadcrumb. If you don't want to hide the entire breadcrumb element, but only a part of it (eg. if you've put other things in the div), then edit the placement of these codes appropriately.

Before that, add:

Code:
<vb:if condition="!in_array($GLOBALS[forumid], array(4,5))">
Replace the emphasized numbers with the Forum ID of the forums you'd like the breadcrumb hidden in, putting a comma in between each number. You can find the Forum ID either as the number alongside the forum name in the URL when you are browsing that forum, or in case you have custom URL rewrite rules that remove the ID, you can find it by going to Admin CP > Forum s & Moderators > Forum Manage > Click the name of the forum (or click Go beside "Edit Forum" selected from the dropdown box next to the forum name) > At the top of the page you will see: Forum: YourForumname (id: #). It will also be at the end of the URL when you hover over the forum name: http://yoursite.com/admincp/forum.php?do=edit&f=#

Additionally, if you would also like to remove it from specific areas of the site, use this instead:

Code:
<vb:if condition="!in_array($GLOBALS[forumid], array(4,5)) AND !in_array(THIS_SCRIPT, array('blog','vbcms'))">
Again, replacing the emphasized values with those which suit your needs. Keep in mind the numbers require no single quotes, but the THIS_SCRIPT values do.

If you are having trouble finding what value to put in the THIS_SCRIPT, go to your "footer" template, find:

Code:
<div id="footer_morecopyright" class="shade footer_morecopyright">

And after that, add:

Code:
<vb:if condition="is_member_of($bbuserinfo, 6)">
<vb:if condition="$this_script = THIS_SCRIPT"><br /><b>{vb:raw this_script}</b><br /></vb:if></vb:if>
This will show, at the bottom of every page, what the THIS_SCRIPT value is. It will only show it to members of the default Administrator usergroup. If your usergroup is not the default Administrator usergroup, you can either change the emphasized number to the number of your usergroup. Please note that this will display the THIS_SCRIPT value to all members of that usergroup. To display it only for yourself, use this instead:

Code:
<vb:if condition="$bbuserinfo['userid'] == 1"><vb:if condition="$this_script = THIS_SCRIPT"><br /><b>{vb:raw this_script}</b><br /></vb:if></vb:if>
And change the emphasized number to your User ID. You can find this either as the number alongside your username in the URL of your profile, or in case you have custom URL rewriting rules in place that remove the number, you can find it by going to Admin CP > Users > Search Users > Search for YourUsername > At the top of the page, it will say: User: YourUsername (id: #)

Then find (very close to the above code)

Code:
{vb:raw navbits.breadcrumb}
		{vb:raw navbits.lastelement}
	</ul>
	<hr />
</div>
And after that, add:

Code:
</vb:if>
Reply With Quote
Благодарность от:
Lynne
  #3  
Old 07-12-2011, 07:17 PM
davio33 davio33 is offline
 
Join Date: May 2007
Posts: 65
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you so much
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 02:19 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.07551 seconds
  • Memory Usage 2,187KB
  • 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
  • (8)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (3)post_thanks_box
  • (1)post_thanks_box_bit
  • (3)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (3)post_thanks_postbit_info
  • (3)postbit
  • (3)postbit_onlinestatus
  • (3)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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete