The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Comments |
#22
|
||||
|
||||
I've gone to your board and saw one or two people apparently on an error page, just as you've said. But I have no way to know what they're really doing. Have you spoken to the people and confirmed that they definitely did not ever see an error page?
I've looked at my own board, and didn't see anyone on an error page. As far as I can tell, I'm using the exact same code in the two plugins to add a new online location as many other hacks use. It's still possible there's something wrong, but I don't know what it could be yet. If you're absolutely, positively sure these people haven't really been seeing error pages, try disableing the two plugins (in the Plugin Manager in the AdminCP, uncheck the active status of the plugins "Cutom Error Page (Online Location Process)" and "Cutom Error Page (Online Location Unknown)", then watch for a while and see what happens. |
#23
|
|||
|
|||
Quote:
Today i have opened the who is online and my location was displayed as HTTP Error Page (see the screenshot my name is infinityloop). i have tried to refresh without any changes. Quote:
|
#24
|
|||
|
|||
i have tried to deactivated the plugins. i have opened the Who is online and watched it for about 15 minutes. i have been using "reload this page" to update it. after such a reload i was suddenly displayed with location: unknown viewing forums/httperror.php?e=404
using reload had no effect! i think the problem is caused by vbulletin or my host. not by this modification! My Host is using a loadbalancer thats why i have to use $_SERVER['HTTP_X_REMOTECLIENT_IP'] instead off $_SERVER['REMOTE_ADDR'] could that cause my problem? anyone knows how vbulletin is determing the location of the users? |
#25
|
||||
|
||||
Moved to Extensions
|
#26
|
||||
|
||||
Quote:
Since you've deactivated the plugin, you can see that the user is actually looking at the error page. But you say the user says he hasn't seen the error page. So I don't know what the problem is. It could be that vBulletin is being tricked into thinking the user is on the error page when he isn't. But I don't know anything about how vBulletin determines where a user is, so I don't know how that could be, or how to prevent it. Is anyone else experiencing a similar issue after installing this hack? Let us know. |
#27
|
|||
|
|||
[QUOTE=JJR512]Those settings, the $_SERVER..., I don't know anything about those, I don't even know where they are or what they're for. Sorry. I also don't know anything about loadbalancing.[QUOTE]
my host told me that i have to use $_SERVER['HTTP_X_REMOTECLIENT_IP'] in all php scripts to determin the ip adresses of the visitors. otherwise vbulletin shows the ip from the loadbalancing server as ip fron the users. i had to edit the includes\class_core.php Quote:
|
#28
|
|||
|
|||
update!
when i remove the changes in the .htaccess the problem is gone! |
#29
|
||||
|
||||
Kirby (or anyone else): Can you use a variable as part of a phrase name?
I have created a bunch of phrases called error_title_400, _401, _403, etc. Rather than creating a long if...else...else...else... statement to call each phrase by its full name, I'd like to just use one statement to call the phrase, using the value of $e as part of the name. I have tried both Code:
$error['title'] = construct_phrase($vbphrase['error_title_' . $e]); Code:
$error['title'] = construct_phrase($vbphrase['error_title_$e']); I also tried both without the contruct_phrase function being used (when is it appropriate to use that function and when shouldn't it be used?). Is there a way to do this? |
#30
|
||||
|
||||
Please disregard the previous question. The problem was that I hadn't told the script to use the new phrases.
|
#31
|
|||
|
|||
Quote:
Code:
$error['title'] = construct_phrase($vbphrase["error_title_$e"]); Code:
$errorvar = 'error_title_' . $e; $error['title'] = construct_phrase($vbphrase["$errorvar"]); |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|