![]() |
Add new temp but error
I created a new temp for my product but faulty:
Code:
Parse error: syntax error, unexpected T_STRING in C:\xampp\htdocs\forum\includes\class_core.php(4633) : eval()'d code on line 90 this is code my temp test: Code:
<div class="blockrow"> Code:
$templater = vB_Template::create('test'); |
What's in the template cache is php code, and I'd guess that the result of your str_replace() is php code with an error. But I don't know for sure because I'm not sure what $messagearea is set to.
|
I just test 1 plugin and 1 temp was above fault, but when I remove the code
Quote:
I want to create a username input (as in page send private) when users create new thread |
Try this..
Code:
$vbulletin->templatecache['newthread'] = str_replace($messagearea, '<div class="blockrow">' . $test . '</div>' . $messagearea, $vbulletin->templatecache['newthread']); |
Quote:
|
Wait a second there is no $messagearea in the template you're trying to replace it in.
You want something like this... Code:
$vbulletin->templatecache['newthread'] = str_replace('{vb:raw messagearea}', '<div class="blockrow">' . $test . '</div>' . '{vb:raw messagearea}', $vbulletin->templatecache['newthread']); |
not show :(
My first code it displays fine if removing line PHP Code:
|
Template cache is compiled so this {vb:raw messagearea} becames $messagearea if i'm not wrong.
You can try this PHP Code:
|
Quote:
|
Quote:
|
All times are GMT. The time now is 12:29 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:
|