Thread: Add-On Releases - CES Navbits Designer
View Single Post
  #18  
Old 01-25-2007, 09:20 PM
thincom2000 thincom2000 is offline
 
Join Date: May 2006
Location: Bronx, NY
Posts: 1,205
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Script Title tells the hack what PHP script to modify navbits in. If you're not sure what this is, open the file and look for the line that starts
PHP Code:
define('THIS_SCRIPT' ... 
The definition of THIS_SCRIPT is what you fill in here.

Label is essentially a filename. The hack uses this to tell your various navbits apart if you make more than one.

First Element is the forum level of your navbits. Usually your navbits starts with the name of your board - this is where you can change that.

Last Element is the final navbit usually defined as $navbits[lastelement]. This is where you can that.

There are two columns for URLs and text. Type your links into the URL column, and type the text for those links into the Text column. The boxes between First Element and Last Element are for all the navbits in between, just put each one on its own line.

Global Variables is for including variables that you might want to include in your conditions below it. Global Variables must be defined somewhere else in the script with the Script Title you are modifying.

Conditions is for entering an argument that would be in a PHP conditional or <if condition="..."> This is useful if you only want to display the customized navbits on a page when certain conditions are met.

For example:
I want to make the navbits for the search results page say "Search Results in Posts" if we have searched for posts instead of threads. By default, the search results page would say the following no matter what:

Code:
Forum > Search Forums
Search Results
What we do in the Navbits Designer to make it say "Search Results in Posts" ONLY if we have searched for posts:

Script Title: search
Label: Search Posts
First Element URL: FORUM_HOME
First Element text: FORUM_HOME
URL: $vboptions[bburl]/search.php
text: Search Forums
Last Element URL: THIS_PAGE
Last Element text: Search Results in Posts

Global Variables: $search
Conditions: ($search['showposts'] == true) AND ($_REQUEST['do'] == 'showresults')

will return:
Code:
Forum > Search Forums
Search Results in Posts
Hope that helps!
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01150 seconds
  • Memory Usage 1,769KB
  • Queries Executed 11 (?)
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
  • (2)bbcode_code
  • (1)bbcode_php
  • (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_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_display_complete
  • post_thanks_function_can_thank_this_post_start
  • showpost_complete