Previous Thread
Next Thread
Print Thread
Rate Thread
#222487 08/16/2002 3:58 AM
Joined: Apr 2002
Posts: 1,768
Addict
Addict
Offline
Joined: Apr 2002
Posts: 1,768
Since posts are uniquely identified by the post number, why is the "Board=" parameter needed in the URL for showflat.php and showthreaded.php ?

The problem is that when you save a link to a thread, and then the thread gets moved to a different board, the link becomes invalid. If the Board parameter were not required, then this problem wouldn't occur.

Sponsored Links
joeuser #222488 08/16/2002 5:22 AM
Joined: Oct 1999
Posts: 282
Enthusiast
Enthusiast
Offline
Joined: Oct 1999
Posts: 282
For me the links of moved threads still work. But if you click on the "index" link you come back to the board that is specified into the (old) "Board=" parameter, not to the board where the thread has been moved to.

So, yes, maybe this parameter can be removed?

joeuser #222489 08/16/2002 10:54 AM
Joined: May 1999
Posts: 3,039
Guru
Guru
Offline
Joined: May 1999
Posts: 3,039
Right now the Board parameter is used to grab some info about the board and to check if the user should be in that particular board before pulling up the post. Without it being passed in the link then we'd need to do a query at the very start to find out what board that particular post is on before going on to other things.

Hopefully that makes some sense


UBB.threads Developer
Sally #222490 08/16/2002 11:09 AM
Joined: Apr 2002
Posts: 1,768
Addict
Addict
Offline
Joined: Apr 2002
Posts: 1,768
Sort of. But doesn't that query have to be done in any case? And since it does, why not just get the board keyword from the query? After all, the user could modify the URL and change the Board= to whatever he wants anyway.

joeuser #222491 08/16/2002 4:03 PM
Joined: May 1999
Posts: 3,039
Guru
Guru
Offline
Joined: May 1999
Posts: 3,039
It does need to be done anyway, but right now it's done later in the script after the other queries are done. Basically, yes this could probably be modified so the Board parameter isn't needed, but right now it is needed until the queries are restructured


UBB.threads Developer
Sponsored Links
Sally #222492 08/16/2002 4:12 PM
Joined: Apr 2002
Posts: 1,768
Addict
Addict
Offline
Joined: Apr 2002
Posts: 1,768
Thanks


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
Bill B
Bill B
Issaquah, WA
Posts: 87
Joined: December 2001
Forum Statistics
Forums63
Topics37,583
Posts293,955
Members13,824
Most Online151,614
Nov 14th, 2025
Today's Statistics
Currently Online 555
Topics Created 0
Posts Made 0
Users Online 0
Birthdays 20
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)