View Full Version : Error when editing postbit_legacy
Zowners
04-07-2006, 03:23 PM
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?
Murty
04-07-2006, 03:41 PM
What did you do while editing postbit_legacy?
Zowners
04-07-2006, 06:13 PM
This is 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 -->
All the other template edits worked fine.
God knows what went wrong, but i fixed it now :)
CMX_CMGSCCC
04-08-2006, 04:56 PM
Maybe u had removed an <if somewhere without knowing, its happened to me before here.
-CMX
Zowners
04-08-2006, 05:01 PM
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
CMX_CMGSCCC
04-08-2006, 05:24 PM
Np, thanx for supporting vbPlaza!
-CMX
vBulletin® v3.8.12 by vBS, Copyright ©2000-2024, vBulletin Solutions Inc.