Previous Thread
Next Thread
Print Thread
Rating: 8
#216679 05/14/2002 3:01 PM
Joined: May 2002
Posts: 17
Newbie
Newbie
Offline
Joined: May 2002
Posts: 17
I wrote a small hack/mod that lets a user link a post purely by the PK. It can go anywhere in your directory structure.

I haven't truly tested it completely out yet, but, for example, try the following urls.

www.domecanmar.com/gotothread.php?gotopost=91884

www.domecanmar.com/gotothread.php?gotopost=381 (error should occur)

You should see a favourites icon in the post extras section of show flat/threaded which can be used to link this document from another site. If the post happens to move boards, the script will find this and redirect the browser.

I've included in the zip file a small installation file, so it shouldn't be to hard to implement (changing 4 lines in 4 files)

Let me know if and what i should change. HTH

EDIT - please don't register a name or post in the forums! It's a copy of existing and my users may get emails

Last edited by SCybak; 05/14/2002 3:04 PM.
Sponsored Links
Joined: May 2002
Posts: 17
Newbie
Newbie
Offline
Joined: May 2002
Posts: 17
BTW - i just fixed the script, below the line:

if ($flaton == 1) {

add:

if ($gotoparent == 0) {
$gotoparent = $gotopost;
}

sorry, i'm a little slow today
Attachments
47720-GoToPost.zip (0 Bytes, 259 downloads)

Last edited by SCybak; 05/14/2002 3:08 PM.
Joined: Feb 2002
Posts: 2,286
Veteran
Veteran
Joined: Feb 2002
Posts: 2,286
Sounds great - however the two examples do not show up any posts and neither error

Regards,

Ian


Fans Focus - Focusing on Fans of Sport

(Okay - mainly football (the British variety wink at the moment - but expanding all the time....)
Joined: May 2002
Posts: 17
Newbie
Newbie
Offline
Joined: May 2002
Posts: 17
One of the admins closed the forums because he saw some weird IP's.. LOL, i've re-opened.

Guess i'll have to build in that support as well Mod to come in a couple of hours when i get a chance


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:
Shock Hosting
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
Nettomo
Nettomo
Germany, Bremen
Posts: 417
Joined: November 2001
Forum Statistics
Forums63
Topics37,583
Posts293,955
Members13,824
Most Online151,614
Nov 14th, 2025
Today's Statistics
Currently Online 7368
Topics Created 0
Posts Made 0
Users Online 0
Birthdays 7
Top Posters
AllenAyres 21,080
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,834
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2026 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.1.0
(Snapshot build 20260108)