The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#11
|
|||
|
|||
one post above
Code:
{vb:raw threadinfo.threadid} |
#12
|
||||
|
||||
Makes the link
Code:
refresh.php?do=newthread&t={vb:raw%20threadinfo.threadid} --------------- Added [DATE]1606315573[/DATE] at [TIME]1606315573[/TIME] --------------- PHP Code:
|
#13
|
|||
|
|||
One option - you build your link on plugin level. Than you have to choose a hook, when $threadinfo already exists. Example with "showthread_complete"
Code:
<plugin active="1" executionorder="5"> <title>Button Plus</title> <hookname>showthread_complete</hookname> <phpcode><![CDATA[if (THIS_SCRIPT == 'showthread'){ $threadidid = $threadinfo['threadid']; $new_thread_link = '<div><a href="refresh.php?'.$sessionurl.'do=newthread&t='.$threadidid.'" 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']); }]]></phpcode> </plugin> |
Благодарность от: | ||
Dr.CustUmz |
#14
|
||||
|
||||
Thank you for all your help. I need to learn this vb4 crap (its about 10 years too late lol) vb3 is so much easier.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|