View Full Version : New Link
The Realist
07-20-2017, 03:00 PM
Guys,
How can I add another clickable link under "Thread Tools".
I need a link that says "Thread Images" and it goes to misc.php?do=threadImg&thread=
Any ideas?
MarkFL
07-20-2017, 03:13 PM
First, create a new global phrase titled "threadtools_threadImg" with the text "Thread Images".
Next, create a plugin hooked at "showthread_complete" with the code:
$vbulletin->templatecache['SHOWTHREAD'] = preg_replace('/<ul class="popupbody popuphover">/', '<ul class="popupbody popuphover"><li><a href="misc.php?do=threadImg&thread=
' . $threadid . '">\' . vB_Template_Runtime::parsePhrase(\'threadtools_thr eadImg\') . \'</a></li>', $vbulletin->templatecache['SHOWTHREAD'], 1);
This will add the new menu item to the top of the list. :)
The Realist
07-20-2017, 03:15 PM
You are a star :)
--------------- Added 1500571351 at 1500571351 ---------------
You are fantastic worked a treat :)
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.