Subject:*
<
Name/Email:*
<
Message Icon:*
<
Select*
<
Message:*
<



Click the Preview to see the content in action.
Options:*
<
Confirmation Code*
<
5 + 6 = ?  
Input the result from the expression
Maximum attempts you can try: 10
*
<
     

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&amp;lid=".addslashes($lid)."&amp;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) {

Who's Online

125 user(s) are online (82 user(s) are browsing Support Forums)


Members: 0


Guests: 125


more...

Donat-O-Meter

Stats
Goal: $15.00
Due Date: Jul 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $15.00
Make donations with PayPal!

Latest GitHub Commits