benlucraft Posted April 11, 2014 Posted April 11, 2014 (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 April 11, 2014 by KyleMassacre Added code tags Quote
KyleMassacre Posted April 11, 2014 Posted April 11, 2014 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 Quote
benlucraft Posted April 11, 2014 Author Posted April 11, 2014 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 Quote
KyleMassacre Posted April 11, 2014 Posted April 11, 2014 Probably because the file doesn't exist where it is trying to find it from. But since this is Redux there is a file called globals_nonauth.php, that's the file I think you should be requiring Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.