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)

peterska2 10-28-2004 03:22 PM

I always get an error when I click the IP gif saying that the phrase 'thread_proxyip' can't be found. I've added it as a global phrase so I dunno what the problem is.

MickDoneDee 10-28-2004 05:15 PM

Quote:

Originally Posted by Seekers
Well I am pretty puzzled. I have installed the hack but I don't see anything different in the WOL, or on any posts. It simply displays one IP address and not

Real IP Address : $postinfo[ipaddress]<br>
$postinfo[hostaddress]<br>
Proxy Server IP Address : $postinfo[proxyip]<br>
$postinfo[proxyhost]

as indicated by the explaination of the thread. I must have done something wrong. Anyone got any ideas.

Thanks

To get four lines of info instead of two the icon you click in the postbit must be the red-coloured ipp.gif. This gif only appears when a proxy IP was detected with the post. If no proxy IP was detected with the post then the normal blue-coloured ip.gif will show. When that is clicked only two lines of info will show.

To test the hack you must login via a proxy server. This is easily done. There are lists of free proxy addresses such as those on http://www.aliveproxy.com/

In your browser's connections tab look for LAN Settings and there should be an option to use a proxy server. You just enter the proxy IP address and port and save. When done, login to your site and make a test post. The red ipp.gif should be visible in the postbit. Click this to see the real IP and proxy IP details.

MickDoneDee 10-28-2004 05:48 PM

Quote:

Originally Posted by peterska2
I always get an error when I click the IP gif saying that the phrase 'thread_proxyip' can't be found. I've added it as a global phrase so I dunno what the problem is.

Search your postings.php file for the phrase 'thread_proxyip'. You won't find it because that is not the phrase you are required to add. You are required to add 'thread_displayproxyip'. Make sure this phrase is in your postings.php file and make sure 'thread_displayproxyip' is created as a Front-End Error Messages phrase - not a Global phrase.

Paul M 10-28-2004 08:01 PM

Thanks MDD, I couldn't have answered either of them any better. :)

Seekers 10-28-2004 09:20 PM

Quote:

Originally Posted by MickDoneDee
To get four lines of info instead of two the icon you click in the postbit must be the red-coloured ipp.gif. This gif only appears when a proxy IP was detected with the post. If no proxy IP was detected with the post then the normal blue-coloured ip.gif will show. When that is clicked only two lines of info will show.

To test the hack you must login via a proxy server. This is easily done. There are lists of free proxy addresses such as those on http://www.aliveproxy.com/

In your browser's connections tab look for LAN Settings and there should be an option to use a proxy server. You just enter the proxy IP address and port and save. When done, login to your site and make a test post. The red ipp.gif should be visible in the postbit. Click this to see the real IP and proxy IP details.


So then I assume I installed the hack correctly. I suppose I don't have any proxy IPs at this time so I can not see the full effect. Could someone that has a proxy IP please post on my site so I can verify it does work as designed. My site is www.clanseekers.com and thanks so much for the excellent help so far.

peterska2 10-28-2004 11:01 PM

Quote:

Originally Posted by MickDoneDee
Search your postings.php file for the phrase 'thread_proxyip'. You won't find it because that is not the phrase you are required to add. You are required to add 'thread_displayproxyip'. Make sure this phrase is in your postings.php file and make sure 'thread_displayproxyip' is created as a Front-End Error Messages phrase - not a Global phrase.

sorry my bad. it is thread_displayproxyip

Seekers 10-29-2004 11:06 PM

Quote:

Originally Posted by Seekers
So then I assume I installed the hack correctly. I suppose I don't have any proxy IPs at this time so I can not see the full effect. Could someone that has a proxy IP please post on my site so I can verify it does work as designed. My site is www.clanseekers.com and thanks so much for the excellent help so far.


Nevermind it works great - caught a jerk lurking behind one - WOOT

Paul M 10-31-2004 02:11 PM

Quote:

Originally Posted by Seekers
Nevermind it works great - caught a jerk lurking behind one - WOOT

I would point out that many ISP's (in the UK anyway) force you through a proxy server.

Reminder 11-16-2004 11:16 AM

thanks

Harry Bo 11-17-2004 07:09 PM

Paul, do you know if this hack works with NTL's UK proxy servers? I administrate a fairly large vB and we can end up with 20+ users in the same city on one proxy :)

If it works with NTL, I'll be installing soon :)

Cheers,

HB

Paul M 11-17-2004 09:20 PM

Quote:

Originally Posted by Harry Bo
Paul, do you know if this hack works with NTL's UK proxy servers? I administrate a fairly large vB and we can end up with 20+ users in the same city on one proxy :)

If it works with NTL, I'll be installing soon :)

Cheers,

HB

Harry Bo - Check the sig - we are primarily an ntl user site - it was written with their transparant caches in mind. :)

I see you are not far from me - what is your site ?

Harry Bo 11-17-2004 09:26 PM

I visited your site shortly after posting, I figured it would probably work then, lol :)

I'm here from www.talkaudio.co.uk, the UK's biggest Car Audio Forum :)

HB

mtha 11-18-2004 07:28 PM

Quote:

This is a simple modification I did for our forum that is based on the existing Proxy Detector Hack (v3.0). Obviously, like all proxy server detection hacks, this will only work if the proxy server passes the appropiate http variables.
well, just wondering if you should state the credit to Takara for his original work and a link to Proxy Detector Hack (v3.1)

thanks :)

Paul M 11-18-2004 08:40 PM

Quote:

Originally Posted by mtha
well, just wondering if you should state the credit to Takara for his original work and a link to Proxy Detector Hack (v3.1)

thanks :)

Maybe you should read the installation notes ......
Quote:

This is partly based on the Proxy Detector v3.0 hack by "HacNho/Takara/Stadler".
:glasses:

rh2004 12-05-2004 08:37 PM

Hi I get 'Could not find phrase 'thread_displayproxyip'.' and it is added, I also have
the IPINFO added..

Add the following phrase "thread_displayproxyip" ;

GLOBAL

Real IP Address : $postinfo[ipaddress]<br>
$postinfo[hostaddress]<br>
Proxy Server IP Address : $postinfo[proxyip]<br>
$postinfo[proxyhost]


This is my postbit..

Code:


<if condition="$show['ip']">
$vbphrase[ip]: $post[ip]
<else />
<if condition="($post[proxyip] != '')">
<a href="postings.php?$session[sessionurl]do=getip&amp;p=$post[postid]"><img class="inlineimg" src="$stylevar[imgdir_button]/ipp.gif" alt="$vbphrase[ip]" title="$post[ip]" border="0" /></a>
<a href="ipinfo.php?$session[sessionurl]p=$post[postid]"><img class="inlineimg" src="$stylevar[imgdir_button]/ip.gif" alt="$vbphrase[ip]" title="$post[ip]" border="0" /></a>
<else />
<a href="ipinfo.php?$session[sessionurl]p=$post[postid]"><img class="inlineimg" src="$stylevar[imgdir_button]/ip.gif" alt="$vbphrase[ip]" title="$post[ip]" border="0" /></a>
</else></if>
</if>

It should show me two IP buttons if using a proxy if a normal user no proxy
should give me just one button, now the buttons work its just when you
click on a proxy IP it gives you the above error...


EDIT I fixed it sorry I read through maybe you should place in the readme its Front-End Error



So my only question is can I show the proxy button if only admin, not mods or super mods

Paul M 12-05-2004 09:28 PM

Quote:

Originally Posted by rh2004
EDIT I fixed it sorry I read through maybe you should place in the readme its Front-End Error

It's never been mentioned before, but I'll update the instructions when I have time.

Quote:

Originally Posted by rh2004
So my only question is can I show the proxy button if only admin, not mods or super mods

Just enclose it in a test for usergroup == 6. I would check the logic in you postbit code though - I can't make sense of it, I don't see how it actually works .....

rh2004 12-13-2004 10:11 PM

Ok thanks for that... I have noticed an error which has arrised I think its
to do with this mod, I receive this a few times a day around 2-3


Code:

Database error in vBulletin 3.0.3:

Invalid SQL:
INSERT INTO post
(threadid, parentid, title, username, userid, dateline, pagetext,
allowsmilie,
showsignature, ipaddress, proxyip, iconid, visible, attach)
VALUES
(10154, , '',
'BlackbirdDJ', 2696, 1102976866,
'cheers', 1, 0,
'81.--,'', 0, 1, 0)

mysql error: You have an error in your SQL syntax.  Check the manual
that corresponds to your MySQL server version for the right syntax to use
near ' '',
'BlackbirdDJ', 2696, 1102976866,
'cheers', 1, 0,

mysql error number: 1064

Date: Monday 13th of December 2004 10:27:46 PM
Script: http://--/forum/newreply.php
Referer: http://--/showthread.php?t=10154
Username: BlackbirdDJ
IP Address: --


I have these mods added:

Who Viewed This Thread - Enhanced Version
Advanced Editing Options For Mods & Admins
Reoccurring Paypal Subscriptions
Email notification if someone attempts to access your Admin CP
BB Messenger 1.5
ipInfo -- Extra user IP information
Proxy ip to real ip conversion
V3acade
uCash & uShop
modmanagementv1
vBSigHosting
Whos online in admin
statistik_english2
Advanced Warning System (AWS)
Hide
vB Report Manager 2.0 (Admin CP) - Report to Email, PM, Forum



(PS: I removed the IP of the user, and URL - also note its off different users too)


Do you know whats wrong :ermm:

MickDoneDee 12-14-2004 12:05 PM

I can see the syntax error: there is no parentid value. However, I don't know which file is making that query. When the file is found you'll be able to fix the query.

Try searching all your files for this text string:

$DB_site->query("INSERT INTO " . TABLE_PREFIX . "post

I searched my files and couldn't find it so I don't think it's related to this hack.

Paul M 12-14-2004 06:02 PM

There is also an error here

'BlackbirdDJ', 2696, 1102976866,
'cheers', 1, 0,
'81.--,'', 0, 1, 0)

But since you have edited the error message it's impossible to tell if it's a real error. If you want any more help you must post the actual error message, not an edited version.

rh2004 12-15-2004 12:38 AM

Here is the message as it is displayed, I have just repalced the IP

Code:

Database error in vBulletin 3.0.3:

Invalid SQL:
                        INSERT INTO post
                                (threadid, parentid, title, username, userid, dateline, pagetext,
allowsmilie,
                                showsignature, ipaddress, proxyip, iconid, visible, attach)
                        VALUES
                                (2463, , '',
                                'luciosestio', 2762, 1103012553,
                                'Grazie !', 1, 0,
                                '127.3.192.6','213.175.2.50', 0, 1, 0)
               
mysql error: You have an error in your SQL syntax.  Check the manual
that corresponds to your MySQL server version for the right syntax to use
near ' '',
                                'luciosestio', 2762, 1103012553,
                                'Grazie !', 1,

mysql error number: 1064

Date: Tuesday 14th of December 2004 08:22:33 AM
Script: http://www.mydomain.com/forum/newreply.php
Referer: http://www.mydomain.com/forum/showthread.php?t=2463
Username: luciosestio
IP Address: 127.3.192.6


Also any idea on where about this will be, in included folder?

DB_site->query("INSERT INTO " . TABLE_PREFIX . "post



Thanks

Paul M 12-15-2004 07:32 AM

Okay, then there is nothing wrong with the ip section, your problem is, as MickDoneDee says, no parent id is being supplied - and as such is not related to this hack. Therefore there is not much I can do to help you, sorry.

Delphiprogrammi 12-15-2004 08:38 AM

this works fine but i have no idea what the image is for ? i tested it with using a proxy anonymous (level b) checked with a proxychecker and the correct ip is detected but what the heck is the image for ?

MickDoneDee 12-15-2004 11:20 AM

Quote:

Originally Posted by rh2004
Also any idea on where about this will be, in included folder?

DB_site->query("INSERT INTO " . TABLE_PREFIX . "post

Your error message suggests that the error is in your newreply.php script:

Script: http://www.mydomain.com/forum/newreply.php

The fault appears to be occurring when someone posts a reply.

Check any hacks that have altered the original script. If necessary, use the original file and see if the fault disappears. If it does then you have confirmed that the error is caused by the newreply.php script and that a faulty hack is the cause.

rh2004 12-16-2004 01:32 PM

Thanks alot I will check it out

Sadie Frost 12-26-2004 04:27 AM

I know very little about proxy servers, and I was wondering if anyone could tell me if I Use this hack and thus get the 'real ip', does that mean I can ban that real ip without worrying that other users will be sharing that same ip? Or does that same concern still apply? Thanks :)

Paul M 12-26-2004 09:27 AM

Quote:

Originally Posted by Sadie Frost
I know very little about proxy servers, and I was wondering if anyone could tell me if I Use this hack and thus get the 'real ip', does that mean I can ban that real ip without worrying that other users will be sharing that same ip? Or does that same concern still apply? Thanks :)

As long as the real ip is being detected then yes, you can ban it.

plubius 12-26-2004 10:40 PM

I would love to install this hack and thank the coder for making it, however, I have the extra ip info hack located here www.vbulletin.org/forum/showthread.php?t=66824 installed and this hack required me to change the Template: postbit_ip to this:

PHP Code:

<if condition="$show['ip']">
    
$vbphrase[ip]: $post[ip]
<else />
    <
a href="ipinfo.php?$session[sessionurl]p=$post[postid]"><img class="inlineimg" src="$stylevar[imgdir_button]/ip.gif" alt="$vbphrase[ip]title="$post[ip]border="0" /></a>
</if> 

and this excellent hack needs the same template changed to this:

PHP Code:

<if condition="$show['ip']">
$vbphrase[ip]: $post[ip]
<else />
<if 
condition="($post[proxyip] != '')">
<
a href="postings.php?$session[sessionurl]do=getip&amp;p=$post[postid]"><img class="inlineimg" src="$stylevar[imgdir_button]/ipp.gif" alt="$vbphrase[ip]title="$post[ip]border="0" /></a>
<else />
<
a href="postings.php?$session[sessionurl]do=getip&amp;p=$post[postid]"><img class="inlineimg" src="$stylevar[imgdir_button]/ip.gif" alt="$vbphrase[ip]title="$post[ip]border="0" /></a>
</else></if>
</if> 


Is it possible to run both hacks and can this template be edited to serve them both? If it is possible could show me what I will need to edit?

Sadie Frost 12-27-2004 04:22 AM

Quote:

Originally Posted by Paul M
As long as the real ip is being detected then yes, you can ban it.

Great - thanks for your help Paul :)

Paul M 12-27-2004 10:26 AM

Quote:

Originally Posted by plubius
I would love to install this hack and thank the coder for making it, however, I have the extra ip info hack located here www.vbulletin.org/forum/showthread.php?t=66824 installed ......

Is it possible to run both hacks and can this template be edited to serve them both? If it is possible could show me what I will need to edit?

I don't know much about the other hack, but looking at the two templates I would suggest trying this ;

PHP Code:

<if condition="$show['ip']"
    
$vbphrase[ip]: $post[ip
<else /> 
        <
a href="ipinfo.php?$session[sessionurl]p=$post[postid]"><img class="inlineimg" src="$stylevar[imgdir_button]/ip.gif" alt="$vbphrase[ip]title="$post[ip]border="0" /></a
        <
a href="postings.php?$session[sessionurl]do=getip&amp;p=$post[postid]"><img class="inlineimg" src="$stylevar[imgdir_button]/ipp.gif" alt="$vbphrase[ip]title="$post[ip]border="0" /></a
</if> 

This should give you two icons, one for ipinfo, and one for this hack (the red one).

HTH :)

plubius 12-27-2004 11:31 AM

I could have sworn I typed a thank you here....?

oh well, I will again as the first one did not take. Thanks for the help, PaulM

clearchannel 01-01-2005 04:46 PM

I installed Proxy Dector 3.1 and all worked as expected. When viewing who's on line, via useragent, I could see who was using a proxy server as evidenced by the question mark in useragent.

I've installed this hack, it also works as expected except I do not see who is using a proxy when viewing who's on line using useragent. Is this normal behavior, or did I do something wrong?

Thank you much for the hack and assistance.

Paul M 01-01-2005 04:58 PM

There is nothing in this hack to add anything to the WOL display when a user is on a proxy server. :)

clearchannel 01-01-2005 06:27 PM

I was under the impression this hack was an enhancement to proxy detector. I am not all all complaining, it think it's a great hack and intend on using it.

Is there a way I can add who is using a proxy server to who's on line, much the same way proxy detector utilizied that feature?

Paul M 01-01-2005 07:25 PM

Quote:

Originally Posted by clearchannel
I was under the impression this hack was an enhancement to proxy detector. I am not all all complaining, it think it's a great hack and intend on using it.

Nope, the idea came from the original proxy hack, which I adapted and improved for my own use. The version that inspired this hack made no alteration to the WOL.

Quote:

Originally Posted by clearchannel
Is there a way I can add who is using a proxy server to who's on line, much the same way proxy detector utilizied that feature?

I'm sure there is, and if I have time at some point I'll look at it, but not at the moment.

Paul M 01-02-2005 05:11 PM

vB 3.0.4

If you don't do the full upgrade to 3.0.4, but do the recommended upgrade of init.php then remember that this hack includes an edit of that file - which will need to be re-applied. :)

Eagle Creek 01-07-2005 05:23 PM

Quote:

ASO forums systeembericht

Could not find phrase 'thread_displayproxyip'.
But that sentence is really there (global)(!).

Eagle Creek 01-07-2005 05:31 PM

Quote:

Originally Posted by mikeB
no Ive checked it 10 times - maybe this wont work w 3.0.1?

And to be honest.. All my users have displayed the proxy icon under their name..

Paul M 01-07-2005 07:33 PM

Um, did you have a specific question ......

Dennis B 01-12-2005 10:52 PM

Installed in 3.0.5 without problems. Still testing it. Thanks anyway for sharing. :up:

Eagle Creek 01-13-2005 11:16 AM

Quote:

Originally Posted by Paul M
Um, did you have a specific question ......

I had but not anymore, I guess I did something wrong with the install..


All times are GMT. The time now is 02:55 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.01603 seconds
  • Memory Usage 1,886KB
  • 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
  • (3)bbcode_code_printable
  • (3)bbcode_php_printable
  • (21)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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