![]() |
how to make [threadid] variable go to new post
Hi,
I have this widget code to get the latest post in my vbulletin 4.2 //Latest post $output_bits .='<div id="tab-4" class="tab-content document"><div class="document"><ul>'; while($post = vB::$db->fetch_array($post_get)) { $i++; if($i%2 != 0) $cl ='li-1'; else $cl ='li-2'; $output_bits .= '<li class="'.$cl.'">'.$post[title].' <a rel="nofollow" href="showthread.php?t='.$post[threadid].'"> read post ?</a></li>'; } $output_bits .='</ul></div><div > My question is the URL generated is always the standard URL like http://www.example.com/showthread.ph...B4-appointment i want to make the code to add in a variable (?goto=newpost) and go to the new post like http://www.example.com/showthread.ph...t?goto=newpost How can I edit the above code? Thanks. |
All times are GMT. The time now is 12:21 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|