vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Proxy ip to real ip conversion (https://vborg.vbsupport.ru/showthread.php?t=69295)

Paul M 01-13-2005 11:22 AM

Quote:

Originally Posted by Eagle Creek
I had but not anymore, I guess I did something wrong with the install..

So have you installed this ? If so then might I ask you to click on the relevant install link to indicate you have done so. :)

ToastBusters 01-13-2005 04:19 PM

Hey guys,

I just *barely* installed my copy of vb last night, so I have a few complete newbie questions for you guys.

First, the modification has this:

PHP Code:

Add the following phrase "thread_displayproxyip" 

How do I go about doing that? Second:

PHP Code:

Replace the template "postbit_ip"

Do I do that by editing a file or making changes in the admin cp?

Finally, is it permissible to create a second "test" board that only I have access to so I can test mods before making them live? It's not your competence in creating the mods that concerns me, only my own ability to impliment them. ;)

Thanks!

yoyoyoyo 01-13-2005 04:30 PM

Quote:

Originally Posted by ToastBusters
Hey guys,

I just *barely* installed my copy of vb last night, so I have a few complete newbie questions for you guys.

You may want to read up a bit before adding any hacks, etc., and start off with some simple ones (look in the minor mods section)
Quote:

First, the modification has this:

PHP Code:

Add the following phrase "thread_displayproxyip" 

How do I go about doing that?
In the admin CP -> languages & phrases -> Phrase Manager -> Add New Phrase

Quote:

PHP Code:

Replace the template "postbit_ip"

Do I do that by editing a file or making changes in the admin cp?
all template changes are done via the style manager in the admin CP
Quote:

Finally, is it permissible to create a second "test" board that only I have access to so I can test mods before making them live? It's not your competence in creating the mods that concerns me, only my own ability to impliment them. ;)
yes, you can have one, but it must be not available to the public (ie: closed) and it must be named "vbtest," and located on the same server, etc..

ToastBusters 01-14-2005 12:15 AM

[quote]yes, you can have one, but it must be not available to the public (ie: closed) and it must be named "vbtest," and located on the same server, etc..[/quote

I can't imagine doing it any other way. :)

Thanks man, just what I wanted to know! I've done extensive hacks on a phpbb before this, but on that software it's just follow the instructions and replace code. I don't think I've ever had to do anything in the control panel.

charlesk 01-16-2005 03:23 PM

Well, I just tested this hack using two different proxies. The first time, it detected the proxy but got the real IP address wrong, and the second time it didn't detect it at all. Any suggestions?

It does seem to be working for some proxies. Install clicked; thanks.

Charles

Delphiprogrammi 01-16-2005 05:08 PM

charlesk ,

that's completely normal anonymous do not pass the variables this hack uses ... that's why it is called "anonymous" for example an anonymous proxy won't pass "HTTP_X_FORWARDED_FOR" <<-- you'll see the anonymous proxy ip here instead.

anyway i'm having a problem with this hack it's operation works fine but if i click the image to get the ipadress vbulletin tells me "couldn't find the phrase "thread_displayproxyip" althrough the phrase is there and i'm sure i didn't make any typos while editing postings.php (phrasetype GLOBAL)

PHP Code:

$postinfo['proxyhost'] = @gethostbyaddr($postinfo['proxyip']);
    if(
$postinfo['proxyip'] !='')
    {
        eval(
print_standard_error('thread_displayproxyip'10));
    } 

attached two images one shows that the hack is working correctly the second image is a little proof the phrase is there now the question is what do i do about it ?

charlesk 01-16-2005 07:42 PM

Delphi: you need to make the phrase a Front End Error phrase rather than a global. That happened to me as well, I hope Paul will fix the instructions.

As for the anon proxy issue... it doesn't seem to even work for AOL proxies, which is unfortunate.

c

Paul M 01-16-2005 07:45 PM

Quote:

Originally Posted by charlesk
Delphi: you need to make the phrase a Front End Error phrase rather than a global. That happened to me as well, I hope Paul will fix the instructions.

Oops, I completely forgot to update them. I'll do it now.

Paul M 01-16-2005 07:50 PM

Quote:

Originally Posted by charlesk
As for the anon proxy issue... it doesn't seem to even work for AOL proxies, which is unfortunate.

Yes, it will only work with proxy servers that actually pass the correct http variables. There is nothing anyone can do about that.

Delphiprogrammi 01-16-2005 08:34 PM

hmmm strange now i'm getting the global variables names as result

IPADDRESS and PROXYIP looks like it passed or something i can't find anything wrong with it :rolleyes:


All times are GMT. The time now is 12:14 PM.

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.01253 seconds
  • Memory Usage 1,754KB
  • 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
  • (5)bbcode_php_printable
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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