![]() |
Error when editing postbit_legacy
When I edit the postbit_legacy template, I get this error when I press save:
Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/sportszo/public_html/forums/includes/adminfunctions_template.php(3537) : eval()'d code on line 81 What does this happen? I have checked the code several times and it's all correct. Does anyone know what the problem is? |
What did you do while editing postbit_legacy?
|
This is what I did:
[spoiler=what I did]Template Edits: A) Inside template 'postbit' or 'postbit_legacy': Find: Code: <div id="postmenu_$post[postid]"> Replace With: Code: <!-- vbPlaza start --> <div id="postmenu_$post[postid]" <if condition="$post['namestyle']">style="$post[namestyle]"</if>> <!-- vbPlaza end --> Next Find: Code: <if condition="$post['usertitle']"><div class="smallfont">$post[usertitle]</div></if> Replace With: Code: <!-- vbPlaza start --> <if condition="$post['usertitle']"><div class="smallfont" <if condition="$post['titlestyle']">style="$post[titlestyle]"</if>>$post[usertitle]</div></if> <!-- vbPlaza end --> Then Find: Code: $vbphrase[posts]: $post[posts] Replace With: Code: $vbphrase[posts]: $post[posts] <!-- vbPlaza start --> <if condition="$vboptions['vbbux_enabled']"><br /> $vbphrase[vbbux_points]: $post[points]<br /> $vbphrase[vbbux_bank]: $post[bank]<br /> <phrase 1="$vbphrase[vbbux_points]">$vbphrase[vbbux_total_points]</phrase>: $post[totalpoints]<br /> <a href="vbplaza.php?do=donate&userid=$post[userid]">$vbphrase[vbplaza_donate]</a><br /> </if> <!-- vbPlaza end --> Then Find: Code: <div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon] $post[skypeicon]</div> Add Below: Code: <!-- vbPlaza start --> <if condition="$post['giftsdisplay']"><div class="smallfont">$post[giftsdisplay]</div></if> <if condition="$post['ribbonsdisplay']"><div class="smallfont">$post[ribbonsdisplay]</div></if> <!-- vbPlaza end -->[/spoiler] All the other template edits worked fine. God knows what went wrong, but i fixed it now :) |
Maybe u had removed an <if somewhere without knowing, its happened to me before here.
-CMX |
Yeah that might be what it was! I reverted the template and redid the edits, and it worked like a charm!
Thanks for this great hack <3 |
Np, thanx for supporting vbPlaza!
-CMX |
All times are GMT. The time now is 09:22 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:
|