vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Custom HTTP Error Pages (https://vborg.vbsupport.ru/showthread.php?t=98243)

JJR512 10-14-2005 12:28 PM

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.

Avalon111 10-14-2005 01:14 PM

Quote:

Originally Posted by JJR512
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?

in my screenshot before you see a user called koschel. i have been talking with him when he was display with showing http error message in who is online. he told me that he has no http error on his screen he was watching the who is online page.

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:

Originally Posted by JJR512
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.

I will try that when i get home today. thank you very much for your help!

Avalon111 10-14-2005 02:08 PM

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?

Andreas 10-14-2005 02:16 PM

Moved to Extensions :)

JJR512 10-14-2005 02:51 PM

Quote:

Originally Posted by Avalon111
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?

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.

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.

Avalon111 10-14-2005 04:41 PM

[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:

Originally Posted by JJR512
It could be that vBulletin is being tricked into thinking the user is on the error page when he isn't.

Yes i believe thats my problem. i have visited the Who is online quite rarely befoe i installed you modification. i am sure this issue was allready there before.

Avalon111 10-14-2005 05:12 PM

update!

when i remove the changes in the .htaccess the problem is gone!

JJR512 10-14-2005 05:43 PM

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]);
and
Code:

        $error['title'] = construct_phrase($vbphrase['error_title_$e']);
But neither worked.

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?

JJR512 10-14-2005 08:16 PM

Please disregard the previous question. The problem was that I hadn't told the script to use the new phrases.

akanevsky 10-14-2005 08:38 PM

Quote:

$error['title'] = construct_phrase($vbphrase['error_title_' . $e]);
Is wrong. Try:

Code:

$error['title'] = construct_phrase($vbphrase["error_title_$e"]);
Or if that doesn't work,

Code:

$errorvar = 'error_title_' . $e;
$error['title'] = construct_phrase($vbphrase["$errorvar"]);



All times are GMT. The time now is 08:44 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01149 seconds
  • Memory Usage 1,750KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_code_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete