![]() |
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! :D
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-->"; 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? |
Is there a question here?
|
Whoops! I just realized I forgot to ask one. Thanks Lynne!
Is there still a way to perform the functionality of my current code? If so, could someone give me some guidance? Thanks in advance. |
It would be like this.
Code:
$str = "<!-- Some comment in a template-->"; |
Quote:
The above code still doesn't work in vB 4.0 |
Quote:
|
Quote:
Code:
Parse error: syntax error, unexpected T_STRING in D:\wamp\othersites\beta\includes\class_core.php(3917) : eval()'d code on line 104 Any Ideas? |
Can I see your exact code.
You can post the error all day long with out the code its no good. |
Most certainly,
Here is the section of the style 'newreply' with the comment Code:
</div> Code:
$str = "<!-- Some Comment -->"; Please let me know if you need any more information. Thanks Again. |
Try this
Code:
$str = "<!-- Some Comment -->"; |
All times are GMT. The time now is 05:55 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:
|