The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Modifying a welcome panel's code? Too many queries!
For years I've been using this welcome panel hack: https://vborg.vbsupport.ru/showthread.php?t=105958
It was coded by a friend of mine (not for my site, however), and we've been using it since we opened, however I recently audited where my site's queries and realized that his adds a massive SEVEN (7) queries to forumhome. Unfortunately, I'm not very adept with coding, and the author of the hack hasn't touched coding since he released the version in that link. If anyone is willing to help, would it be possible to reduce the query amount? I would think several of those variables it calls for are already called for the normal "forum stats" panel that it just has you delete the html for. I would dearly love to continue using the welcome panel (and I'm sure he enjoys seeing it in sue himself), so abandoning it or switching to a different one isn't something I care to do if at all possible. Should anyone be willing, the author would probably be fine with them re-releasing an optimized version of the hack. He'd give explicit permission first, of course. Thanks in advance for any help offered! |
#2
|
||||
|
||||
Oh right, this may be easier if I posted the code for it. Here it is:
PHP Code:
|
#3
|
||||
|
||||
7 queries on only the index page is no big deal. VB4 has some pages with 60+ queries. This really shouldn't be an issue.
|
#4
|
||||
|
||||
Well, maybe not, but if anyone's able to help optimize it more than it is, I'd certainly appreciate it.
|
#5
|
||||
|
||||
What version of vBulletin are you running? After looking at it there seems to be a lot of queries for data that should already be available without the need for a query, at least in 3.7/3.8- I'm not sure about earlier versions.
|
#6
|
||||
|
||||
After experimenting if the hook for that plugin is moved from forumhome_start to forumhome_complete almost all the queries can be eliminated... however the original author (maybe because it was made for VB 3.5) overwrites valid fields of userinfo with his data so it's not just a simple edit of the plugin- but edits of the template that will be needed as well. Virtually rewriting all the PHP portion of the mod.
I will contact the original author and see if he will give permission for a release, like you suspect. |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|