UBB.Dev
Posted By: Astaran [6.2.] Show post ip - 03/04/2003 9:26 PM
NAME: Show post ip
VERSION: 1.0.0
DESCRIPTION: Lets search for post ip's via the admin panel.
WORKING UNDER: UBB.threads 6.2.2
PREREQUISITES: none
AUTHORS: Astaran
CREDITS: my moderators, who suggested it
DEMO: none
FILES ALTERED: admin/menu.php
DATABASE ALTERED: no
NEW FILES: admin/showpostip.php, admin/doshowpostip.php

HISTORY:
2003-03-04 Astaran - 1.0.0 Release of the hack

Attached File
71795-showpostip_1_0_0.zip  (24 downloads)
Posted By: AllenAyres Re: [6.2.] Show post ip - 03/05/2003 1:55 AM
cool, thanks
Posted By: caspe7_dup1 Re: [6.2.] Show post ip - 03/06/2003 6:59 AM
Thank you. Very useful
Posted By: RandyJG Re: [6.2.] Show post ip - 03/12/2003 10:55 PM
I'm having trouble getting something to work with this. Maybe someone can help.

How would you turn this into a URL so that in message view, the IPs on messages could be turned into hyper links to produce a search result for the annonymous poster's IP?

Thanks!
Posted By: RandyJG Re: [6.2.] Show post ip - 03/13/2003 2:32 AM
Follow-up to this.

I got this working when I took a guess and replaced get_input("search_val","post"); with "get" instead.

Not sure what post/get/both mean though.
Posted By: Astaran Re: [6.2.] Show post ip - 03/13/2003 3:04 AM
You'd better use "both", cause the normal search shouldn't work correctly if you set it to get.
Posted By: RandyJG Re: [6.2.] Show post ip - 03/13/2003 6:27 AM
Thanks.
Posted By: smilesforu Re: [6.2.] Show post ip - 03/19/2003 12:34 AM
Attachment it wrong

<a href="{$config['phpurl']}/admin/showpostip.php?Cat=$Cat" target="mainFrame">Search post IPs</a>
<br>


should be



<a href='{$config['phpurl']}/admin/showpostip.php?Cat=$Cat' target='mainFrame'>Search post IPs</a>
<br>

nice mod thanks
Posted By: Astaran Re: [6.2.] Show post ip - 03/19/2003 12:59 AM
Why?
Double quotes are valid xhtml and their use is recommended/standard.
Posted By: smilesforu Re: [6.2.] Show post ip - 03/19/2003 3:53 AM
Not sure but I got parse errors when I had them in... I changed them and it fixed the errors.
Only changes I made to the lines... somebody else know for sure? Could be me but the other call links also used links similar to the changes I made.
Posted By: Astaran Re: [6.2.] Show post ip - 03/19/2003 9:30 AM
What Version are you using?
Could you post the error message?
Posted By: smilesforu Re: [6.2.] Show post ip - 03/19/2003 10:05 AM
6.2.3 and it was a parse error on the line where that code was inserted... said it was expecting a "," or something like that. I looked and saw it wasn't same as rest of links.. changed it and it worked. Is yours working with the " ?
Posted By: Astaran Re: [6.2.] Show post ip - 03/21/2003 12:07 AM
That's odd.
I downloaded the actual release to verify, but the section looks like this:
Code
<br />echo <<<EOF<br />           <tr><td valign=top class=tdheader><br />           <b>User Management</b> <br />           </td></tr> <br />           <tr><td valign=top class=lighttable><br />           <a href="{$config['phpurl']}/admin/selectusers.php?Cat=$Cat" target="mainFrame"><br />           Show / Edit Users <br />           </a><br />           <br> 


I made the instructions for the official version, don't know why your version differs at that point.
AFAIK all html attributes are quoted with double quotation marks in threads.
Posted By: smilesforu Re: [6.2.] Show post ip - 03/21/2003 10:18 AM
It is weird .. I just looked at my file closely again and thats what I got, but I have mixed links... some like you show and others like I posted. Really got me stumped but its working good right now so I will leave it.
© UBB.Developers