![]() |
How to call this variable in VB4
I have a plugin that is calling the variable
$vbulletin->templatecache['threadadmin_editthread'] this is in postings.php How do I call this in VB4 since it is not working and believe it is sitting somewhere else |
It's the same call in vb4 (I use that call in a couple of my vB4 mods). What hook location are you using?
|
The hook is threadmanage_start
Here is the code, what I am trying to do is find all <h1> tags and replace them with nothing. But it is not working. You seem pretty smart, would you know what the main problem with my code is? Code:
if ($_REQUEST['do'] == 'editthread' AND $threadinfo['open'] != 10) { |
Try using the parse_template hook location. I do not see $vbulletin->templatecache['threadadmin_editthread'] in there at all.
|
That other hook doesn't work with my code.
Is the reason why you dont see it in postings.php is because it is being called differently. I see it in this code Code:
$actiontemplates = array( Code:
$page_templater = vB_Template::create('threadadmin_editthread'); In VB3, the variable in posting.php was Code:
$templatename = 'threadadmin_editthread'; ----- Would you have a better clue on instead, how to add a new input box into the Edit Thread portion of the forum? The main thing I am looking to do is change the HTML of the template via a plugin |
All times are GMT. The time now is 07:47 PM. |
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:
|