skyngp
05-10-2013, 02:11 AM
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.php/1617-Ferguson-endorses-Moyes%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.php/1617-Ferguson-endorses-Moyes%B4-appointment?goto=newpost
How can I edit the above code? Thanks.
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.php/1617-Ferguson-endorses-Moyes%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.php/1617-Ferguson-endorses-Moyes%B4-appointment?goto=newpost
How can I edit the above code? Thanks.