Hi,
Is it posible to link to a thread .. but have it go straight to the last post within the thread ..
something like:
<a href=\"/forum/showthread.php?t=$threadid&$postid\">$postername</a>
When I follow the link it takes me to the beginig of the thread even tho the $postid is pointing to the last post within the thread ..?
Thanks ..
Link to last post within a thread
Moderator: General Moderators
Link to last post within a thread
Last edited by Jim_Bo on Wed Mar 30, 2005 3:29 pm, edited 1 time in total.
- feyd
- Neighborhood Spidermoddy
- Posts: 31559
- Joined: Mon Mar 29, 2004 3:24 pm
- Location: Bothell, Washington, USA
using anchors, yes.
Anchors appear after the hash mark (#). Notice how when you post here and click to see your message there's a # followed by your post id. An anchor is the following:going to a page with that in the code, page.php#1234 will jump you to that location, or as close as the browser can get you to it.
Anchors appear after the hash mark (#). Notice how when you post here and click to see your message there's a # followed by your post id. An anchor is the following:
Code: Select all
<a name="e;1234"e;></a>Hi,
Is the # put in manually like
<a href=\"/forum/showthread.php?t=$threadid?#$postid\">$postername</a>
<a href=\"/forum/showthread.php?t=$threadid&$postid#$postid\">$postername</a>
In which none of the above work ..
If i try:
<a href=\"/forum/showthread.php?p=$postid#$postid\">$postername</a>
it shows:
http://www.bla.com/forum/showthread.php?p=3156#3156
in the address bar .. but still takes me to the first post in the thread ..
Thanks
Is the # put in manually like
<a href=\"/forum/showthread.php?t=$threadid?#$postid\">$postername</a>
<a href=\"/forum/showthread.php?t=$threadid&$postid#$postid\">$postername</a>
In which none of the above work ..
If i try:
<a href=\"/forum/showthread.php?p=$postid#$postid\">$postername</a>
it shows:
http://www.bla.com/forum/showthread.php?p=3156#3156
in the address bar .. but still takes me to the first post in the thread ..
Thanks
Last edited by Jim_Bo on Wed Mar 30, 2005 3:47 pm, edited 1 time in total.