Jump to content
MakeWebGames

Recommended Posts

Posted (edited)

Hey guys, I have attempted to add Dave's shoutbox made for v2, onto my redux site, I scanned the code and only saw one line that needed to be changed:

echo '<a href="http://viewuser.php?u='.$f['user'].'" target="_blank">'.getUsername($f['user']).'</a> <i>['.date('H:i', $f['time']).']</i> - '.htmlentities(stripslashes($f['message'])).'

 

I know that : <a href="http://viewuser.php - Has to change to - <a href='".gen_url('viewuser',true)

But is that it? Am I missing something? Because I still get this error

Parse error: syntax error, unexpected 'viewuser' (T_STRING) in /home/southcit/public_html/xml_shoutbox.php on line 43

Edited by KyleMassacre
Added code tags
Posted

Try:

echo '<a href="'.gen_url("viewuser",false).'?u='.$f['user'].'">'.getUsername($f['user']).'</a> <i>['.date('H:i', $f['time']).']</i> - '.htmlentities(stripslashes($f['message'])).'

im on my phone getting my haircut so hopefully that's right

Posted

Fatal error: require_once(): Failed opening required 'config.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/southcit/public_html/xml_shoutbox.php on line 5

My Line 5 is: require_once('config.php');

I always get stuck on this bit

- - - Updated - - -

Your viewuser correction seems to work thanks but now I gotta work out my line 5 error

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...