The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Hookname and easy fix for the smart!
I am looking for someone who might know the correct hookname and the correct db name in bold and red below. I have it half working but once you refresh, you go from working to not working and so on. Any feedback or help is much appreciated. This is for the Who's Online page.
<plugin active="1" executionorder="5"> <title><![CDATA[Hide IP on whos online page.]]></title> <hookname>online_bit_complete</hookname> <phpcode><![CDATA[global $vbulletin; $sadminid = $vbulletin->options['superadmin_id']; if ($vbulletin->options['bogus_ip_enable']) { if ($vbulletin->userinfo['userid'] == $sadminid) { $posts = $vbulletin->db->query_write(" UPDATE " . TABLE_PREFIX . "session SET host = '" . $vbulletin->options['bogus_ip'] . "' WHERE userid = '" . $vbulletin->options['superadmin_id'] . "' "); } }]]></phpcode> </plugin> |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|