Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
CES Navbits Designer Details »»
CES Navbits Designer
Version: 1.4.3, by thincom2000 thincom2000 is offline
Developer Last Online: Sep 2022 Show Printable Version Email this Page

Category: Add-On Releases - Version: 3.6.x Rating:
Released: 01-03-2007 Last Update: 03-16-2007 Installs: 21
DB Changes Template Edits
Code Changes Additional Files  
No support by the author.

CES Navbits Designer
Version: 1.4.3

*** NEWS ***
3/17/2007 - v1.4.3 released
2/25/2007 - v1.4.2 released
2/3/2007 - v1.4.0, v1.4.1 released
2/2/2007 - v1.3.0 released
1/24/2007 - v1.2.3 released
1/15/2007 - v1.2.0, v1.2.1, v1.2.2 released, screenshots updated
1/7/2007 - v1.1.0 completed - withheld due to inefficient processing
1/5/2007 - v1.0.1, 1.0.2, 1.0.3 released, screenshots added
1/4/2007 - v1.0.0 released - Custom Navbits launched

Known Issues:
- If you are a vbWiki Pro user, and you are getting a "Style has not been updated for Custom Navbits" message in your wiki, see this post: #21

What It Does:
Using a wizard in the AdminCP, allows admins to create a breadcrumb path for the vBulletin navbar that could be practically anything. This is useful for automating navbits on custom pages or anywhere else.

For example: After searching for threads or posts, vBulletin's default lastelement is always "Search Results." However, using this mod, I have been able to change it to "Search Results in Threads" and "Search Results in Posts" respectively.

Products to Install: 1
Plugins Included: 1
Files to Upload: 5
Templates to Edit: 1
Files to Edit: 2
Queries Added:* 0

*This now adds ZERO queries to modified pages, which I figure is the query count we all care about.

Mod Features:
- Add navbits for any page in the AdminCP
- Now makes use of the datastore
- Settings in vBulletin Options
- Supports relative and absolute links
- Breadcrumb can use any custom text
- Name your various custom navbit sets
- Use conditionals for further control
- Set execute priority of navbit sets with overlapping conditions
- Navbits immediately updated
- use FORUM_HOME, THIS_PAGE, WIKI_NAME as preset variables
- supports $vboptions, $vbphrase, other variables, and HTML
- Complete support for vbWiki Pro

How many more features can we add to a navbits extension?

Current Syntax:
As of v1.2.0, just fill in the form!

When using $vbulletin options or $vbphrases, do not use quotes inside the brackets:
BAD: $vbulletin->options['option']
GOOD: $vbulletin->options[option]

Tutorials:
- Introduction to creating custom navbits: Basic Tutorial
- How to exclude a parent forum from multiple subforums at once: Parentlist Tutorial

Changelog:
As of Version 1.4.3:
- fixed a warning that would occur in the AdminCP when no custom sets
had been created

As of Version 1.4.2:
- updated product dependency

As of Version 1.4.1:
- fixed a bug where the last element would be empty if script had a
custom set and the conditions returned false
- updated phrases
- fixed bug where table ces_navbits would not be removed from the
database on upgrade

Ideas for Future Versions:
- Suggestions?

Screenshots:
In order, these screenshots show the process:
1. Before Navbits Management
2. AdminCP Link
3. AdminCP Navbits Manager
4. AdminCP Navbits Designer (pre v1.4.1)
5. After Navbits Management

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #22  
Old 02-19-2007, 08:58 PM
thincom2000 thincom2000 is offline
 
Join Date: May 2006
Location: Bronx, NY
Posts: 1,205
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

vbWiki Pro does not properly get the global variables $first_navbit, $bitters, and $last_navbit

As a result, if you try to modify navbits for a wiki article, you will get a "This style has not been updated for Custom Navbits" error, even though you have made the correct updates. In order to workaround this strangeness, vbWiki Pro users should add the following plugin (this requires vbWiki Pro hooks which is why I am not including this in the product).

Product: CES Navbits Designer
Hookname: vbwikipro_before_navbits
Title: Navbits Globals
Phpcode:
PHP Code:
global $first_navbit$final_navbit$bitters
Reply With Quote
  #23  
Old 02-25-2007, 04:37 PM
RedGTiVR6 RedGTiVR6 is offline
 
Join Date: Dec 2006
Location: Little Elm, TX
Posts: 817
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I've tried installing this mod on our forums and I'm getting an error that it needs 3.6.4 to run. We're currently running 3.6.3.

I noticed in the description that it' listed as just needing 3.6.0.

Perhaps I'm doing something wrong?
Reply With Quote
  #24  
Old 02-25-2007, 06:42 PM
thincom2000 thincom2000 is offline
 
Join Date: May 2006
Location: Bronx, NY
Posts: 1,205
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You can edit the product file in Notepad, and change the product dependency to match your installation. I'll update the product posted here, thanks.
Reply With Quote
  #25  
Old 02-25-2007, 11:18 PM
RedGTiVR6 RedGTiVR6 is offline
 
Join Date: Dec 2006
Location: Little Elm, TX
Posts: 817
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

sweet!

that did it.

Thanks...

*clicks installed* and rates!
Reply With Quote
  #26  
Old 02-26-2007, 01:24 PM
RedGTiVR6 RedGTiVR6 is offline
 
Join Date: Dec 2006
Location: Little Elm, TX
Posts: 817
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Code:
Invalid argument supplied for foreach() in /admincp/navbits_designer.php on line 273
Any ideas?

Installed and edited code and templates. When I go to the AdminCP pannel for the NavBits, this is above it.

This is like 273:
Code:
	foreach ($ces_navbits AS $navers)
Reply With Quote
  #27  
Old 02-26-2007, 01:33 PM
RedGTiVR6 RedGTiVR6 is offline
 
Join Date: Dec 2006
Location: Little Elm, TX
Posts: 817
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by thincom2000 View Post
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.
Pardon my ignorance...but I don't understand this statement. Where do I look to find this? In the .xml file? In one of the uploaded files? In a template? And what does it do?
Reply With Quote
  #28  
Old 02-26-2007, 03:57 PM
thincom2000 thincom2000 is offline
 
Join Date: May 2006
Location: Bronx, NY
Posts: 1,205
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It's in vBulletin's PHP files. For example, on SHOWTHREAD (showthread.php), the line would be:
PHP Code:
define('THIS_SCRIPT''showthread'); 
In search.php:
PHP Code:
define('THIS_SCRIPT''search'); 
In FORUMHOME, or index.php:
PHP Code:
define('THIS_SCRIPT''index'); 
Unless you have them memorized (or for files added by hacks), you have to check the file for the THIS_SCRIPT definition, otherwise this hack won't know what page to change the navbits on.
Reply With Quote
  #29  
Old 03-01-2007, 01:52 AM
Souli Souli is offline
 
Join Date: Dec 2001
Posts: 43
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thx4share

click install and nominate :up:

my navbar:
FORUM_HOME > Forum1 > Forum2 > Forum3 > THIS_PAGE

I need in a specific subforum for all included subs:
Forum2 > Forum3 > THIS_PAGE
is it possible ?

the NAVKEYS (3-4) function doesn?t work
Reply With Quote
  #30  
Old 03-01-2007, 02:25 AM
thincom2000 thincom2000 is offline
 
Join Date: May 2006
Location: Bronx, NY
Posts: 1,205
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Souli
the NAVKEYS (3-4) function doesn?t work
Don't use parentheses. The readme just shows ( ) to indicate that part is optional.

Quote:
Originally Posted by Souli
I need in a specific subforum for all included subs:
Forum2 > Forum3 > THIS_PAGE
is it possible ?
This was not possible until Version 1.4.0. If you are running 1.4.x or later,
I have done what you ask with the following:

Script Title: forumdisplay

First URL: FORUM_HOME
URLs: NAVKEYS 3-4
- In this case, Forum Home > Forum1 would be NAVKEYS 1-2
Final URL: THIS_PAGE

First Text: FORUM_HOME
Text: NAVBITS
Final Text: THIS_PAGE

Globals:
Code:
$foruminfo, $subforum_is_parent
Condition:
Code:
($foruminfo['forumid'] == SUBFORUM_ID) OR $subforum_is_parent
In order for this to work you need to create a plugin to get the current forum's parentlist, and perform a check that will set $subforum_is_parent

Hook Location: forumdisplay_start
Plugin Code:
PHP Code:
global $subforum_is_parent;

$parentlist array_reverse(explode(','substr($foruminfo['parentlist'], 0, -3)));
foreach (
$parentlist AS $forumID)
{
    
$subforum_is_parent = ($forumID == SUBFORUM_ID) ? true $subforum_is_parent;

Note that additional $subforums can easily be added to this check by creating additional variables in the global statement, and by duplicating the line
PHP Code:
$subforum_is_parent = ($forumID == SUBFORUM_ID) ? true $subforum_is_parent
Reply With Quote
  #31  
Old 03-01-2007, 02:40 AM
Souli Souli is offline
 
Join Date: Dec 2001
Posts: 43
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thank you!

works without any problems :up:
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 07:18 PM.


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.05251 seconds
  • Memory Usage 2,336KB
  • Queries Executed 27 (?)
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
  • (4)bbcode_code
  • (7)bbcode_php
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)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