The vB Geek

The vB Geek (http://www.thevbgeek.com/index.php)
-   Geek Article and Review System (http://www.thevbgeek.com/forumdisplay.php?f=26)
-   -   Reply to thread link in threadbit not working (http://www.thevbgeek.com/showthread.php?t=2896)

trana 02-22-2007 04:12 AM

Reply to thread link in threadbit not working
 
I am trying to add a "Reply to" function to my threadbit, so users can click on a button in the threadbit and instantly reply to a certain thread.

I am using this:

<a href="newreply.php?do=newreply&noquote=1&p=$thread[threadid]">
Reply</a>

Obviously, its not working properly. It is actually posting replies to unrelated threads from a year ago. It appears that the variable I am using is not the right one for the threadbit, i.e. the wrong number is returned so you end up posting to the wrong thread.

Any help would be appreciated!

Thanks.

The Geek 02-22-2007 09:47 AM

THats because you are using the threadid as the postid :)

Off the top of my head, you will want somthing like this:

<a href="newreply.php?do=newreply&noquote=1&p=$thread[firstpostid]">
Reply</a>


HTHs!


All times are GMT. The time now is 10:29 AM.

Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.