vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   How to redo your vBulletin 3.5.0 Navbar in Four Easy Steps! (https://vborg.vbsupport.ru/showthread.php?t=91624)

Cloudrunner 07-05-2005 03:31 AM

Quote:

Originally Posted by hellsatan
The only thing I am interested in within this is the collapsable navbar :p

Nice idea though :)

Satan

wasn't my idea, I just fixed a bad implementation of the idea that was killing servers...

Cloudrunner 07-05-2005 03:38 AM

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

taffy056 07-05-2005 10:54 AM

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

Zachery 07-05-2005 02:09 PM

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" />

taffy056 07-05-2005 02:44 PM

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

taffy056 07-05-2005 02:48 PM

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

Cloudrunner 07-05-2005 05:29 PM

Quote:

Originally Posted by taffy056
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

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

Cloudrunner 07-05-2005 05:40 PM

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(

Zachery 07-05-2005 05:49 PM

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.

taffy056 07-05-2005 05:55 PM

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! :)


All times are GMT. The time now is 09:43 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01115 seconds
  • Memory Usage 1,760KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (14)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete