The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
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!
Developer Last Online: Feb 2022
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
Page Load and Queries are as follows on a heavy traveled forum: Quote:
Quote:
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:
PHP Code:
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 Show Your Support
|
Comments |
#2
|
||||
|
||||
Here is the screens that everyone's going to ask about...
|
#3
|
||||
|
||||
Oh and one more thing, it does add queries to every page, 5 to be exact...
1 for the avatar load and 4 separate ones for the counts... Enjoy |
#4
|
|||
|
|||
Great Big Thx for it.
Is it possible to make the new thread and new post text clickable so that he shows me in the search all new threads or als new posts if i click ? GreeTz Snatch |
#5
|
||||
|
||||
Quote:
|
#6
|
||||
|
||||
You could lose one with the avatar code, if you do some searching theres some nifty feature to get it without any extra work
Further more, you should not really run the ammount of new posts and threads on EVERY PAGELOAD, thats alot of overhead, for a small bit of information, also, without indecies on the tables, its going to be rather intensive in the long run. You could Cache the ammount of newly registered users today and the ammount of users visiting online in some sort of datacache |
#7
|
||||
|
||||
Well, I was going to turn those 5 queries into two, but when I did the page load times jumped astronomically from .11 to .98. Therefore, I'm leaving the queries alone. I've updated the zip for the 'navbar' template edit in response to a request to add alink on the new threads and new posts lines. This is done, just open the install.txt and redo the template edit for Navbar, (i.e. replave everything in the breadcrumb area)
Enjoy )O( Cloudrunner )O( |
#8
|
||||
|
||||
Quote:
As far as the overhead on the others, it's actually as minimalistic as I can get it at this point, I tried merging them into 1 query and only resulted in gaining more overhead, but until I figure out just how the datamanager truly works, I'm stuck here at this point. I'm going to look into the caching of the new users and visited users, but for now this is what we have.... If you can point me in the right directions, I am willing to follow, we are all here to learn right? |
#9
|
||||
|
||||
Why not just have a cron job that updates a row in the datasotre whenever its called with the amount of posts made in a time frame?
Doing an aggregate on the posts table (and users table) every page load will bring most large boards to their knees. 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. If not... maybe make it a configurable option. That way users could decide which way they wanted to do it to suit their needs better. |
#10
|
||||
|
||||
The only thing I am interested in within this is the collapsable navbar
Nice idea though Satan |
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|