The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
![]()
trying to post a template right under new thread..
made a plugin hooked to newthread_form_start want to add the template elock_frame PHP Code:
Get following error Catchable fatal error: Argument 2 passed to vB_Template: ![]() ---- First i render the template, and try to preregister it so then later i add the str_replacemnet to add a {vb:raw var} But as you can see, preregister dont allow var's only array's to be passed. any ideas how to preregister then. |
#2
|
||||
|
||||
![]() PHP Code:
|
#3
|
||||
|
||||
![]()
Lol thats crazy simple,,
It sorted the error, no errors and page loads fine now.. Just wondering why my template dont show ![]() The template is empty and contains only following.. Template : elock_frame Code:
<table width="100%"> <tr><td>Awsome testing</td></tr> </table> but its blank. Odd ![]() gonna add Class="blockhead" just so i notice it when it appears at some point ![]() |
#4
|
||||
|
||||
![]()
I hadn't looked at your find/replace code.... you can't do find/replace on variables.
|
#5
|
||||
|
||||
![]()
so instead of looking for {vb:raw attachmentoption}
i should find some code like normal html tags thats unique near that location ? and instead of inseting {vb:raw elock} i should insert just plain $elock maybe.. gonna try if it works.. EDIT : AAhh i see, i got it to show the {vb:raw elock} LoL and found a place where i can use it for test,, Now i gotta figure out how to insert template instead of {vb:raw ![]() OKAY!!! got it working.. Dropped the use of the template, and placed the box etc directly into the plugin, and assigned the entire template content into the var $placement and it worked ![]() Thank you lynne.. /hugs |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|