View Full Version : Editing Ad After Upgrading
March 18th, 2009, 02:51 PM
I just finishing upgrading to 3.1 and one thing I noticed is when I try and edit an ad I am getting this error. How would I go about correcting this?
Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/cycl2580/public_html/vbclassified/templates/vb3enhanced/editproduct.tmpl on line 12
March 18th, 2009, 03:47 PM
Try redownloading the build and reuploading the templates
March 19th, 2009, 09:52 AM
Thank you, that corrected that problem.
I noticing when a user places an ad, within the description it will show <p> </p> and <br> </br> etc, I have even tried editing and retyping the ads but the html tags still remain.
March 19th, 2009, 11:45 AM
Are you using the WYSIWYG editor
March 19th, 2009, 01:41 PM
I had it set on basic. I tried turning it off, and the html code was replaced with "<p>"
March 19th, 2009, 01:43 PM
well you are using the WYSIWYG editor whether basic or advanced and it inserts <p> and <br /> tags thats normal I beleive for that product.
March 19th, 2009, 02:01 PM
Have a look and tell me if the description looks right to you
1997 Suzuki GSXR 750 SRAD - Hardcore Biker Classifieds (http://www.hardcorebiker.net/vbclassified/showproduct.php?product=3)
To me, it should not matter what mode the editor is in. When a viewer is reading the description he/she should not see the html code.
March 19th, 2009, 02:23 PM
You can try adding in showproduct.php under this line the line in bold.
if ( $Globals['editor'] != "off" ) $desc = un_htmlspecialchars($desc);
$desc = un_htmlspecialchars($desc);
March 19th, 2009, 02:31 PM
Do you mean this?? I'm not finding a reference to "editor"
if ( VB3_COMMWYSIWYG == "on" ) $desc = un_htmlspecialchars(convert_markups($desc));
March 19th, 2009, 02:40 PM
what version are you using? That might be your issue did you upload the new showproduct.php file if your using 3.1. I noted in the announcement you want to upload most everything was changed.
Omegatron Classifieds - test (http://www.omegatron.net/classifieds/showproduct.php?product=26)
If you dont see an editor line in showproduct.php your not using the latest version of showproduct.php
March 19th, 2009, 03:13 PM
I'm sorry, my mistake. I did find that reference and inserted that piece of code and seems to have corrected the issue. Thank you
March 19th, 2009, 08:49 PM
I was getting read to say the line I noted was 2 lines down from the line you note.
vBulletin® v3.8.1, Copyright ©2000-2014, Jelsoft Enterprises Ltd.