The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
My plugin suddenly started slowing down my forum
I made a plugin that get's the number of users in my IRC and puts the number in the tab that links to the IRC. For example, if there are 8 people in the IRC, the tab says "Chat: 8".
Anyway, the plugin that gets the number and makes it into a variable for the tab template stopped working and made the whole forum go very slow. I've used this for about a year with no problems, so I don't know what happened. This is the plugin: Code:
$usercount = file_get_contents('http://usercount.geekshed.net/?chan=belltree&noimage'); vB_Template::preRegister('irc_navtab',array( 'usersin' => $usercount )); $template_hook['users_in_chat'] = $usercount; Here's the tab's template if you need to see it for any reason Code:
<li<vb:if condition="$vbulletin->options['selectednavtab'] == 'chat'"> class="selected"</vb:if>><a class="navtab" href="chat.php">Chat<vb:if condition="$usersin != 0">: {vb:raw template_hook.users_in_chat}</vb:if></a></li> |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|