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!
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...
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?
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...