The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
|
#1
|
|||
|
|||
Changing templates with plugins
Just when I thought I had finally understood a small percentage of the vBulletin code, a completely new (but very powerful) template syntax has been released!
I have a small piece of code that adds an extra checkbox when a user is posting a reply. This ultimately adds some text to the message area and changes the prefix. Unfortunately with the new version, the page wont even load. I've read some of the template articles and examined some 4.0 mods. However, they are at a level higher than my current vBulletin code comprehension. Here is the code that is compatible with vB 3.8 using the "newreply_form_complete" hook: Code:
$str = "<!-- Some comment in a template-->"; $replace = "<br /> <input type='checkbox' name='resolved' value='1' />Resolution? "; $vbulletin->templatecache['newreply'] = str_replace($str,$str.$replace,$vbulletin->templatecache['newreply']); There is also another plugin hooked to "newreply_post_start" that massages the data. It probably isn't compatible either, but I'll cross that bridge when I get to it. Is there still a way to perform the functionality of my current code? If so, could someone give me some guidance? |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|