The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
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 |
#2
|
||||
|
||||
It's the same call in vb4 (I use that call in a couple of my vB4 mods). What hook location are you using?
|
#3
|
|||
|
|||
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) { $page_templater['threadadmin_editthread'] = str_replace('<h1>','',$page_templater['threadadmin_editthread']); } |
#4
|
||||
|
||||
Try using the parse_template hook location. I do not see $vbulletin->templatecache['threadadmin_editthread'] in there at all.
|
#5
|
|||
|
|||
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( 'editthread' => array( 'threadadmin_editthread', 'threadadmin_logbit', 'optgroup', 'posticonbit', 'posticons' ), 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 |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|