The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Problem with 'Unknown Location'
Hello, I have a problem. I see the message 'Unknown location' on the WOL page. I understood the problem, a code of plugin that hook is 'online_location_unknown' doesn't include in php file. Other hooks do.
Example: Code:
<plugin active="1" executionorder="5"> <title>Hack</title> <hookname>online_location_unknown</hookname> <phpcode><![CDATA[// The code]]></phpcode> </plugin> I hope you can help me. |
#2
|
|||
|
|||
Start again, try following these instructions and see if you have any luck: https://vborg.vbsupport.ru/showthrea...light=location
|
#3
|
|||
|
|||
No, all plugins have been installed yet.
Example: Code:
<plugin active="1"> <title>downloads_location_process</title> <hookname>online_location_process</hookname> <phpcode><![CDATA[if ($filename == 'downloads.php') { $userinfo['activity'] = 'downloads'; }]]></phpcode> </plugin> <plugin active="1"> <title>downloads_location_unknown</title> <hookname>online_location_unknown</hookname> <phpcode><![CDATA[if ($userinfo['activity'] == 'downloads') { $userinfo['where'] = '<a href="downloads.php?'.$vbulletin->session->vars[sessionurl].'">'.$vbphrase['ecdownloads'].'</a>'; $userinfo['action'] = 'Viewing downloads; $handled = true; }]]></phpcode> </plugin> |
#4
|
|||
|
|||
You are adding these Plugins through the AdminCP correct? (and not through the XML)
If so, I don't know where the code is going wrong, as it looks similar to the one given in that article. |
#5
|
|||
|
|||
And through ACP and through XML - one result - nothing.
|
#6
|
||||
|
||||
Could this line be wrong? Maybe do without the sessionurl info:
$userinfo['where'] = '<a href="downloads.php?'.$vbulletin->session->vars[sessionurl].'">'.$vbphrase['ecdownloads'].'</a>'; |
#7
|
|||
|
|||
No different. It isn't the reason of it.
|
#8
|
||||
|
||||
So what do you have now? And should I assume you fixed this line (sorry, I didn't comment on it before, but possibly you picked up on it):
$userinfo['action'] = 'Viewing downloads; You are missing the second apostrophe: $userinfo['action'] = 'Viewing downloads'; |
#9
|
|||
|
|||
I put the second apostroph, but the problem didn't disappear. |
#10
|
||||
|
||||
What is showing up in the source code? I'm wondering if maybe the phrase is not available there and therefore the link is in the source code but with no text to show it? (if that makes sense - but check the source code or try putting something in place of the phrase for testing purposes.)
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|