![]() |
How to redo your vBulletin 3.5.0 Navbar in Four Easy Steps!
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 |
Here is the screens that everyone's going to ask about...
|
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 |
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 |
Quote:
|
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 |
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( |
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? |
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. |
The only thing I am interested in within this is the collapsable navbar :p
Nice idea though :) Satan |
Quote:
|
Quote:
Quote:
Quote:
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... |
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 |
Quote:
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]&dateline=$bbuserinfo[avatardateline]" title="$bbuserinfo[username]'s Avatar" alt="Avatar" border="0" /> |
Hi,
Just realised that I didn't put the file edit in the navbar template :o , 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 |
Quote:
Did I quote that? :smoke: taffy |
Quote:
|
Quote:
Quote:
Quote:
Quote:
Quote:
and lastly, Thank you for your help, I do appreciate constructive assistance! )O( Cloudrunner )O( |
Quote:
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. |
Quote:
|
Quote:
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:
Quote:
And thanks again for the help! )O( Cloudrunner )O( |
It shouldn't invlidate support, its just an undocumented feature :)
|
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 |
For your new post and new thread querys, you should use WHERE visable = 1 which should help clear that problem up.. abit...
|
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( |
Quote:
|
by looking at the pic, its a welcome panel then?
|
Quote:
Thanks for sharing, taffy |
Quote:
Code:
Page generated in 0.10616 seconds with 14 queries Code:
Page generated in 0.21673 seconds with 15 queries |
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:
Code:
nav_av_image |
Quote:
Thanks for the effort... can a FORUMHOME version of this be built? |
Installed. Nice./ Thanks. :)
|
Nice work! There's several versions of welcome panels out there, and none of them on 3.5 yet limit themselves to altering the forumhome only so I'd like to see this option on this excellent hack. I'm so close to finally getting our welcome panel back! However, until that forumhome option happens, I think I'll wait.
But this does look real nice though I'd want to change the templates around a bit to resemble this one (which to me had the most attractive approach and elliminated the stats table on forumhome too): https://vborg.vbsupport.ru/showthread.php?t=60451 That's the cleanest one I've found physically, does anyone think they can replicate that with some template modifications? I'd think that would look amazing if this hack could output via that style. :) |
ok, stupid question. how do you - Import the Plugin XML file and activate the plugin called NavBar Redux??
|
I'm having a problem with this in Firefox. IF a thread title is too big the screen gets waaaaaaaaaay distorted.
I've attatcheda screen of when I'm logged in and logged out. If there is a way to fix this I'd be very happy. Firefox only problem. |
Why am i not getting the blinking "NEW PRIVATE MESSage" when im in the CMPS home? i onlyg et it when im in the forum....
Please advise.. |
I installed it on ver 3.51 and I love it! No one has noticed ay slowdown at all on the pageloads.
One thing that has confused a few of my users though, is that when they log out the navbar is still present and still says "logout", instead of the typical logout page. http://www.simtechonline.com/temp/deano.gif And then only if they hit logout a 2nd time does it come up with this page: http://www.simtechonline.com/temp/deano1.gif |
I am getting this error:
An error occurred while attempting to execute your query. The following information was returned. error number: 1064 error desc: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '*yourtableprefix*user ADD INDEX (joindate, lastactivity)' at line 1 |
Please look at my header. After I modified navbar it added those black small squares/spaces. How do I correct them? Also, my avatar is larger than it should be. How do I make it show original size?
http://www.talkjesus.com/index.php? navbar: Code:
<script type="text/javascript"> |
Also,
I can't find something closer to this: https://vborg.vbsupport.ru/showthread.php?t=60451 Can anyone do this style instead? |
All times are GMT. The time now is 04:50 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|