| Re: Classifieds_2.4 - Parse error |
| by Peekay on 2010/5/19 14:22:24 There is a problem on Xoops.org forum when quoting posts containing code. It has been reported. I don't know if this is a CBB bug, or just an XO bug, but it would be nice to have it fixed.
|
| Re: Classifieds_2.4 - Parse error |
| by TexAcoon on 2010/5/19 12:25:28 @culex ... Yes I'm using 2.4 .. Did try the code you gave me and it did not work .. @ghia .. I'll give it a try latter today .. Off to work I go .... Thanks Guys! |
| Re: Classifieds_2.4 - Parse error |
| by ghia on 2010/5/19 8:20:15 The code window may have distorted some code: echo "[ <a href="modify.php?op=ListingDel&lid=".addslashes($lid)."&ok=1">".constant($main_lang."_OUI")."</a> | <a href="viewad.php?lid=".addslashes($lid)."">".constant($main_lang."_NON")."</a> ]<br /><br />"; eg ."&ok=1">". and ."">". Better is to use ' for string delimiter allowing easy use of " inside. echo '[ <a href="modify.php?op=ListingDel&lid='.addslashes($lid).'&ok=1">'.constant($main_lang."_OUI").'</a> | <a href="viewad.php?lid='.addslashes($lid).'">'.constant($main_lang."_NON").'</a> ]<br /><br />'; |
| Re: Classifieds_2.4 - Parse error |
| by culex on 2010/5/18 19:28:28 Are you sure this is version 2.4 your using ? On line 79 I have le="color: #000000"><?php echo "[ <a href="modify.php?op=ListingDel&lid=".addslashes($lid)."&ok=1">".constant($main_lang."_OUI")."</a> | <a href="viewad.php?lid=".addslashes($lid)."">".constant($main_lang."_NON")."</a> ]<br /><br />";
|
| Re: Classifieds_2.4 - Parse error |
| by TexAcoon on 2010/5/17 13:03:14 Thanks Culex,, Gave it a try and still picked up a parse error .. Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in modules/classifieds/modify.php on line 79 I took a look on line 79 and did not show me an expected string as mentioned .. Here is a copy of line 79 list($usid, $plid, $purl) = $xoopsDB->fetchRow($result); if ($xoopsUser) { LINE 79 $currentid = $xoopsUser->getVar("uid", "E"); if ($usid == $currentid) { if($ok==1) { |