Previous Thread
Next Thread
Print Thread
Rate Thread
#238827 03/04/2003 2:26 PM
Joined: Dec 2000
Posts: 1,471
Addict
Addict
Offline
Joined: Dec 2000
Posts: 1,471
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
Attachments
71795-showpostip_1_0_0.zip (0 Bytes, 24 downloads)

Sponsored Links
Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
cool, thanks


- Allen wavey
- What Drives You?
Joined: Apr 2002
Posts: 68
Power User
Power User
Offline
Joined: Apr 2002
Posts: 68
Thank you. Very useful


"We're sorta like the 7-11. We're not always doin' business, but we're always open"
Joined: Mar 2003
Posts: 215
Junior Member
Junior Member
Offline
Joined: Mar 2003
Posts: 215
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!

Joined: Mar 2003
Posts: 215
Junior Member
Junior Member
Offline
Joined: Mar 2003
Posts: 215
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.

Sponsored Links
Joined: Dec 2000
Posts: 1,471
Addict
Addict
Offline
Joined: Dec 2000
Posts: 1,471
You'd better use "both", cause the normal search shouldn't work correctly if you set it to get.

Joined: Mar 2003
Posts: 215
Junior Member
Junior Member
Offline
Joined: Mar 2003
Posts: 215
Thanks.

Joined: Jan 2002
Posts: 674
Junior Member
Junior Member
Offline
Joined: Jan 2002
Posts: 674
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

Joined: Dec 2000
Posts: 1,471
Addict
Addict
Offline
Joined: Dec 2000
Posts: 1,471
Why?
Double quotes are valid xhtml and their use is recommended/standard.

Joined: Jan 2002
Posts: 674
Junior Member
Junior Member
Offline
Joined: Jan 2002
Posts: 674
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.

Sponsored Links
Joined: Dec 2000
Posts: 1,471
Addict
Addict
Offline
Joined: Dec 2000
Posts: 1,471
What Version are you using?
Could you post the error message?

Joined: Jan 2002
Posts: 674
Junior Member
Junior Member
Offline
Joined: Jan 2002
Posts: 674
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 " ?

Joined: Dec 2000
Posts: 1,471
Addict
Addict
Offline
Joined: Dec 2000
Posts: 1,471
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.

Joined: Jan 2002
Posts: 674
Junior Member
Junior Member
Offline
Joined: Jan 2002
Posts: 674
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.


Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
isaac
isaac
California
Posts: 1,157
Joined: July 2001
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)