$sessionurl = $session['sessionurl']; $forumid = $foruminfo['forumid']; $post_phrase = 'Refresh this Listing'; $new_thread_link = '<div><a href="refresh.php?'.$sessionurl.'do=newthread&f='.$forumid.'" rel="nofollow" class="newcontent_textcontrol" id="newthreadlink_top" style="margin-left:10px;"><span>+</span> '.$post_phrase.'</a></div>'; $find = '<div id="pagination_top"'; $replace = $new_thread_link.$find; $vbulletin->templatecache['SHOWTHREAD'] = str_replace($find, $replace, $vbulletin->templatecache['SHOWTHREAD']);