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
  #12  
Old 07-05-2005, 03:31 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 hellsatan
The only thing I am interested in within this is the collapsable navbar

Nice idea though

Satan
wasn't my idea, I just fixed a bad implementation of the idea that was killing servers...
Reply With Quote
  #13  
Old 07-05-2005, 03:38 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 The Geek
Why not just have a cron job that updates a row in the datastore whenever its called with the amount of posts made in a time frame?
I want to keep this as simple as humanly possible, adding crons and whatnot are too intensive in my eyes, I will figure this one out, no worries
Quote:
Originally Posted by The Geek
Doing an aggregate on the posts table (and users table) every page load will bring most large boards to their knees.
no, actually the implementation of this idea that was originally posted in the code mods section did that...killed MANY servers...
Quote:
Originally Posted by The Geek
I fact, if those queries were changed to 'today' instead of last visit... you could run a cron job nightly... save the results in the datastore... and eliminate most of your queries which in turn should bring your page generation down to a much more acceptable amount.
now, what use would the end user of the forum have in today's last posts? most everyone I've dealt with over the years only wants posts and threads since last visit. As far as the page generation time, .07 seconds of additional overhead is not a respectable number? In whose eyes?

Seriously though, I am working on getting this to talk with the datamanager as a cached thing, I don't want to add tables, or modify the db in anyway shape or form, but I will figure this out to kill off what little overhead there is right now. I have severa scenarios running on my test bed that have brought the page gen overhead down but I need to make sure that they are reliable methods first, my biggest concern at this point is the avatar...
Reply With Quote
  #14  
Old 07-05-2005, 10:54 AM
taffy056 taffy056 is offline
 
Join Date: Sep 2004
Location: In a house in Wales ;)
Posts: 254
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi,

I have installed your version of the welcome panel but have a couple of problems, the welcome panel is not showing up at all on the style by Kall below, I was wondering how to fix this.

https://vborg.vbsupport.ru/showthread.php?t=90792

Also, the panel does not resize like the other one did, so if you go to show favourites or bookmarks it does not look right.

I would also like to make the avatar image smaller, how do I go about it?

And finally thanks for sharing

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

Quote:
Originally Posted by taffy056
I want to keep this as simple as humanly possible, adding crons and whatnot are too intensive in my eyes, I will figure this one out, no worries
Crons are the best and near only way to keep things non intensive, a cron to update the ammount of users online would be best.

You need to add indexs to the datelines in the thread and post tables, which should reduce the query times even more, for the two table scans to get the ammount of new posts.

simplicity is not the best way when it comes to some things.

The data that you want to get can be very strenious on the server, esp done on everypage load for every user, including guests it seems, very bad idea, guests DO NOT need to see this data, and most of it would be flawed to them as well.

As far as Avatars go, try this in the config.php file

define('AVATAR_ON_NAVBAR', 1);

And this in the navbar.

<img src="image.php?$session[sessionurl]u=$bbuserinfo[userid]&amp;dateline=$bbuserinfo[avatardateline]" title="$bbuserinfo[username]'s Avatar" alt="Avatar" border="0" />
Reply With Quote
  #16  
Old 07-05-2005, 02:44 PM
taffy056 taffy056 is offline
 
Join Date: Sep 2004
Location: In a house in Wales ;)
Posts: 254
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi,

Just realised that I didn't put the file edit in the navbar template , so that is fixed now! But still having a problem with sizing the welcome bar, it does adjust to a degree but the avatar is taking up to much room in my opinion, perhaps if it was 25% - 50% smaller the sizing issue would not be a problem?

taffy
Reply With Quote
  #17  
Old 07-05-2005, 02:48 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 Zachery
Originally Posted by taffy056
I want to keep this as simple as humanly possible, adding crons and whatnot are too intensive in my eyes, I will figure this one out, no worries
hmmm,

Did I quote that? :smoke:


taffy
Reply With Quote
  #18  
Old 07-05-2005, 05:29 PM
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,

Just realised that I didn't put the file edit in the navbar template , so that is fixed now! But still having a problem with sizing the welcome bar, it does adjust to a degree but the avatar is taking up to much room in my opinion, perhaps if it was 25% - 50% smaller the sizing issue would not be a problem?

taffy
I've got it set to a height of 100 px, but I did not set the width to any particular size to keep the look of the image, however I can add that in as well...
Reply With Quote
  #19  
Old 07-05-2005, 05:40 PM
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
Crons are the best and near only way to keep things non intensive, a cron to update the ammount of users online would be best.
Would there be a way for a cron to store the information in the datastore table without it breaking anything?
Quote:
Originally Posted by Zachery
You need to add indexs to the datelines in the thread and post tables, which should reduce the query times even more, for the two table scans to get the ammount of new posts.
That is not a difficult adjustment, will get that into the deal.
Quote:
Originally Posted by Zachery
Simplicity is not the best way when it comes to some things.
True enough
Quote:
Originally Posted by Zachery
The data that you want to get can be very strenious on the server, esp done on everypage load for every user, including guests it seems, very bad idea, guests DO NOT need to see this data, and most of it would be flawed to them as well.
Truth be told, I never even thought of guests loading that...excellent idea though, that will be in next update as well.
Quote:
Originally Posted by Zachery
As far as Avatars go, try this in the config.php file

define('AVATAR_ON_NAVBAR', 1);

And this in the navbar.

<img src="image.php?$session[sessionurl]u=$bbuserinfo[userid]&amp;dateline=$bbuserinfo[avatardateline]" title="$bbuserinfo[username]'s Avatar" alt="Avatar" border="0" />
Is the define statement within the config file already, or will it need to be added (At work, no access to the server at the moment)?

and lastly, Thank you for your help, I do appreciate constructive assistance!

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

Quote:
Originally Posted by Cloudrunner
Would there be a way for a cron to store the information in the datastore table without it breaking anything?That is not a difficult adjustment, will get that into the deal.True enoughTruth be told, I never even thought of guests loading that...excellent idea though, that will be in next update as well.Is the define statement within the config file already, or will it need to be added (At work, no access to the server at the moment)?

and lastly, Thank you for your help, I do appreciate constructive assistance!

)O( Cloudrunner )O(
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.
Reply With Quote
  #21  
Old 07-05-2005, 05:55 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
I've got it set to a height of 100 px, but I did not set the width to any particular size to keep the look of the image, however I can add that in as well...
Thanks very 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 01:26 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.05071 seconds
  • Memory Usage 2,332KB
  • 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
  • (1)bbcode_code
  • (2)bbcode_php
  • (16)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_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