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

Reply
 
Thread Tools
How to redo your vBulletin 3.5.0 Navbar in Four Easy Steps! Details »»
How to redo your vBulletin 3.5.0 Navbar in Four Easy Steps!
Version: 1.03, by Cloudrunner Cloudrunner is offline
Developer Last Online: Feb 2022 Show Printable Version Email this Page

Version: 3.5.0 Beta 3 Rating:
Released: 07-03-2005 Last Update: 07-15-2005 Installs: 30
Uses Plugins Template Edits
Additional Files  
No support by the author.

NavBar Redux
By )O( Cloudrunner )O( of The Noble Pagan


This extension was inspired by the concept provided by Megatekno and his Welcome Panel Script. Unfortunately that script was killing servers, so I took his concept and did a Redux of it using vBresident code as the inspiration for the plug side of the house.

What you need to do
Upload images: 2
(I have provided the blinking PM notification image, you provide the no avatar image, must be named noavatar.gif and both are placed in the ./images/misc/ directory. If you want to not display an avatar without breaking the navbar with a big red "X" then follow the instructions below)

Queries to run: 3
(to add indexes to the user, post, and thread tables to speed up page loads and cut overhead, this is optional, but is reccomended)

File Edits: 0
Template Edits: 2
Plugin XML Import: 1

All done!
Features
  • Avatar Display
  • Fully Breadcrumb compatible
  • Blinking PM notification on new PM (Concept inspiration and HTML code provided by vBulletin.org)
  • Collapsible Navbar to hide all that stuff
  • Guest message is now in the Navbar, instead of on top of your forums
  • Display of new threads since last visit, new posts since last visit, new users registered today, and total registered users visited today.
I think that's it. My users like it, and I hope yours do too.

Page Load and Queries are as follows on a heavy traveled forum:

Quote:
Originally Posted by The Noble Pagan Forums w/o NavBar
Page generated in 0.11882 seconds with 9 queries
Quote:
Originally Posted by The Noble Pagan Forums w/ NavBar
Page generated in 0.12219 seconds with 14 queries
If you want to check this and provide me with your results, I would appreciate it!

Love and Light to you all!

)O( Cloudrunner )O(


To disable display of NoAvatar Image

In the plugin NavBar Redux, simply find this code
PHP Code:
$av_url $stylevar['imgdir_misc'] . '/noavatar.gif'
and change it to read
PHP Code:
        $av_url ''
All done, no broken avatar on noavatar users.

To get this to work with vB Advanced CMPS for 3.5.0

In your VBACMPS default settings add the following to your Portal Output Global Variables:
Code:
nav_av_image
nav_new_users_today
nav_users_today
nav_new_threads
nav_new_posts
pm_show
pm_tdwidth
All done.

Show Your Support

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

Comments
  #22  
Old 07-06-2005, 01:57 AM
Cloudrunner's Avatar
Cloudrunner Cloudrunner is offline
 
Join Date: May 2003
Location: Butte, MT
Posts: 635
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Zachery
I think it might be able to be added to a hook, no, its not in the config, its one of those fun hidden features that I poked out of the devs ages ago

But in realitity that is a very small modification, and seeing as the config is a safe file to edit.. you might get away wiuth this as a plugin.
Nope, I just spent three hours walking through the initialization code from initial page call from the browser to the display, and unfortunately class_core.php is called WAY before any hooks, so I'm stuck with editing the config.php file...

What do you think, since the call is part of the resident vB coding, placing it in your config.php file (like the debug statement) would not invalidate the support? If so then I'll keep the mod here in the extensions forum...

Anyway, I'll start working on the data stuffies tomorrow after work...

Oh, BTW
Quote:
Originally Posted by TNP Site w/o navbar redux
Page generated in 0.12269 seconds with 9 queries
Quote:
Originally Posted by TNP Site w/ navbar redux (avatar query removed)
Page generated in 0.18365 seconds with 13 queries
So looks like those four queries are kickin the juice up...will work on that tomorrow as I said...

And thanks again for the help!

)O( Cloudrunner )O(
Reply With Quote
  #23  
Old 07-06-2005, 03:45 AM
Zachery's Avatar
Zachery Zachery is offline
 
Join Date: Jul 2002
Location: Ontario, Canada
Posts: 11,440
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It shouldn't invlidate support, its just an undocumented feature
Reply With Quote
  #24  
Old 07-06-2005, 09:09 AM
taffy056 taffy056 is offline
 
Join Date: Sep 2004
Location: In a house in Wales ;)
Posts: 254
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi,

Encountered a problem with the panel, I posted 2 posts into my test site, and then deleted one of them, but the panel is still showing two posts posted today, as you can see on the image attached. Is there a fix for this?

taffy
Reply With Quote
  #25  
Old 07-06-2005, 02:01 PM
Zachery's Avatar
Zachery Zachery is offline
 
Join Date: Jul 2002
Location: Ontario, Canada
Posts: 11,440
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

For your new post and new thread querys, you should use WHERE visable = 1 which should help clear that problem up.. abit...
Reply With Quote
  #26  
Old 07-06-2005, 11:51 PM
Cloudrunner's Avatar
Cloudrunner Cloudrunner is offline
 
Join Date: May 2003
Location: Butte, MT
Posts: 635
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hey folks, had to do an update to the system to cut down on the overhead abit...

So, download the new zip, and delete the old plugin, then import the new xml file.

After you do that follow step 4 again in the install.txt file and you should notice a decent drop in overhead.

I am still working on cutting down the overhead to as close to nothing as possible, but I thought I'd update with what I had so far.

A LOT of this update is due to the help that I have received on it from Zachery, Thank you boss!

)O( Cloudrunner )O(
Reply With Quote
  #27  
Old 07-07-2005, 12:00 AM
Cloudrunner's Avatar
Cloudrunner Cloudrunner is offline
 
Join Date: May 2003
Location: Butte, MT
Posts: 635
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by taffy056
Hi,

Encountered a problem with the panel, I posted 2 posts into my test site, and then deleted one of them, but the panel is still showing two posts posted today, as you can see on the image attached. Is there a fix for this?

taffy
Did you "soft" delete it? if so it will still show due to how the threads and posts are called from the DB...
Reply With Quote
  #28  
Old 07-07-2005, 02:22 PM
jesus likes pie jesus likes pie is offline
 
Join Date: Apr 2005
Posts: 342
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

by looking at the pic, its a welcome panel then?
Reply With Quote
  #29  
Old 07-07-2005, 02:39 PM
taffy056 taffy056 is offline
 
Join Date: Sep 2004
Location: In a house in Wales ;)
Posts: 254
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Cloudrunner
Did you "soft" delete it? if so it will still show due to how the threads and posts are called from the DB...
No it was hard deleted, but I will try the same on your new panel to see if it makes any difference.

Thanks for sharing,

taffy
Reply With Quote
  #30  
Old 07-07-2005, 06:19 PM
Rover416 Rover416 is offline
 
Join Date: Jun 2005
Location: United Kingdom
Posts: 78
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by cloudrunner
If you want to check this and provide me with your results, I would appreciate it!
These are mine

Code:
Page generated in 0.10616 seconds with 14 queries
And then when i clicked on a forum post it went to

Code:
Page generated in 0.21673 seconds with 15 queries
Reply With Quote
  #31  
Old 07-16-2005, 01:45 PM
Cloudrunner's Avatar
Cloudrunner Cloudrunner is offline
 
Join Date: May 2003
Location: Butte, MT
Posts: 635
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just an update on the avatars for this hack...if you are running vbadvanced CMPS then the navbar redux will break.

To fix this you'll need to DL this version and then do the following:

  1. Remove the AVATAR_ON_NAVBAR line in your config file.
  2. Remove the old plugin and then re-upload it and activate it.
  3. Then in your VBACMPS default settings add the following to your Portal Output Global Variables:
Code:
nav_av_image
nav_new_users_today
nav_users_today
nav_new_threads
nav_new_posts
pm_show
pm_tdwidth
Your navbar should be fixed now on all of your VBACMPS pages.
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 01:35 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.05700 seconds
  • Memory Usage 2,324KB
  • Queries Executed 25 (?)
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
  • (2)bbcode_php
  • (8)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
  • (4)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_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