csgcarl Posted May 14, 2007 Share Posted May 14, 2007 Hey, I'm using a hack from vb so you can login on a web page other than the forum, it also has options so when loged in it displays this and when loged out displays this. But when I put this code into my site I get this error: <?php If ($vbulletin->userinfo["userid"]!=0) { echo ”<td style=\”background-image:url(\”http://www.battlestationextreme.com/images/homepage09.jpg\”); height:40px\”> <table width=\”181\” border=\”0\” cellspacing=\”0\” cellpadding=\”0\” id=\”table28\”> <tr> <td width=\”15\”><img src=\”http://www.battlestationextreme.com/images/spacer.gif\” alt=\”\” width=\”15\” height=\”40\”></td> <td width=\”166\” class=\”text2\”> My BSE</td> </tr> </table></td> </tr> <tr> <td style=\”background-image:url(\”http://www.battlestationextreme.com/images/homepage10.jpg\”); height:29px\”> <table width=\”100%\” border=\”0\” cellspacing=\”0\” cellpadding=\”0\” id=\”table29\”> <tr> <td width=\”8%\”><img src=\”http://www.battlestationextreme.com/images/spacer.gif\” alt=\”\” width=\”15\” height=\”29\”></td> <td width=\”92%\”> <a class=\”link1\” href=\”http://www.battlestationextreme.com/forums/usercp.php\”> Register!</a></td> </tr> </table></td> </tr> <tr> <td style=\”background-image:url(\”http://www.battlestationextreme.com/images/homepage10.jpg\”); height:29px\”> <table width=\”100%\” border=\”0\” cellspacing=\”0\” cellpadding=\”0\” id=\”table30\”> <tr> <td width=\”8%\”><img src=\”http://www.battlestationextreme.com/images/spacer.gif\” alt=\”\” width=\”15\” height=\”29\”></td> <td width=\”92%\”> <a class=\”link1\” href=\”http://www.battlestationextreme.com/forums/private.php\”> Login</a></td> </tr> </table></td> </tr> <tr> <td><img src=\”http://www.battlestationextreme.com/images/homepage11.jpg\” alt=\”\” width=\”181\” height=\”8\”></td> </tr> </table>”; } else { echo ”Your not logged in so we display this”; } ?> Error: Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /home/bseadmin/public_html/homepage.php on line 1039 btw line 1039 is: echo ”<td style=\”background-image:url(\”http://www.battlestationextreme.com/images/homepage09.jpg\”); height:40px\”> Quote Link to comment https://forums.phpfreaks.com/topic/51360-vb-hack-login/ Share on other sites More sharing options...
kenrbnsn Posted May 14, 2007 Share Posted May 14, 2007 All of your double quotes are incorrect. You are using "smartquotes" ” instead of true double quotes ". Change them. Ken Quote Link to comment https://forums.phpfreaks.com/topic/51360-vb-hack-login/#findComment-252919 Share on other sites More sharing options...
chigley Posted May 14, 2007 Share Posted May 14, 2007 Try changing it to: <?php echo "<td style=\”background-image:url(\"http://www.battlestationextreme.com/images/homepage09.jpg\"); height:40px\"> "; ?> Quote Link to comment https://forums.phpfreaks.com/topic/51360-vb-hack-login/#findComment-252922 Share on other sites More sharing options...
csgcarl Posted May 15, 2007 Author Share Posted May 15, 2007 Hello, Thank you for your reply I have put them in acction and I seem to have another problem with it if you could help please: Code: <?php If ($vbulletin->userinfo['userid']!=0) { echo "<td style=\"background-image:url(\'http://www.battlestationextreme.com/images/homepage09.jpg\'); height:40px\"> <table width=\"181\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" id=\"table28\"> <tr> <td width=\"15\"><img src=\"http://www.battlestationextreme.com/images/spacer.gif\" alt=\"\" width=\"15\" height=\"40\"></td> <td width=\"166\" class=\"text2\"> My BSE</td> </tr> </table></td> </tr> <tr> <td style=\"background-image:url(\'http://www.battlestationextreme.com/images/homepage10.jpg\'); height:29px\"> <table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" id=\"table29\"> <tr> <td width=\"8%\"><img src=\"http://www.battlestationextreme.com/images/spacer.gif\" alt=\"\" width=\"15\" height=\"29\"></td> <td width=\"92%\"> <a class=\"link1\" href=\"http://www.battlestationextreme.com/forums/usercp.php\"> Register!</a></td> </tr> </table></td> </tr> <tr> <td style=\"background-image:url(\'http://www.battlestationextreme.com/images/homepage10.jpg\'); height:29px\"> <table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" id=\"table30\"> <tr> <td width=\"8%\"><img src=\"http://www.battlestationextreme.com/images/spacer.gif\" alt=\"\" width=\"15\" height=\"29\"></td> <td width=\"92%\"> <a class=\"link1\" href=\"http://www.battlestationextreme.com/forums/private.php\"> Login</a></td> </tr> </table></td>\"; } else { echo "Your not logged in so we display this"; } ?> Error: Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /home/bseadmin/public_html/homepage.php on line 1016 And line 1016 is: echo "Your not logged in so we display this"; I can't see whats wrong there. If some one could help me out this would be great. Regards, Carl Quote Link to comment https://forums.phpfreaks.com/topic/51360-vb-hack-login/#findComment-253845 Share on other sites More sharing options...
quickstopman Posted May 15, 2007 Share Posted May 15, 2007 well my question is how is that line 1016 if you script isn't large enough to have that line? Quote Link to comment https://forums.phpfreaks.com/topic/51360-vb-hack-login/#findComment-253888 Share on other sites More sharing options...
csgcarl Posted May 15, 2007 Author Share Posted May 15, 2007 well my question is how is that line 1016 if you script isn't large enough to have that line? I have only copied the php code and not the whole web page. Quote Link to comment https://forums.phpfreaks.com/topic/51360-vb-hack-login/#findComment-253907 Share on other sites More sharing options...
csgcarl Posted May 17, 2007 Author Share Posted May 17, 2007 Hi again, Can any one help me please I can't see whats still wrong. Thanks Carl Quote Link to comment https://forums.phpfreaks.com/topic/51360-vb-hack-login/#findComment-255550 Share on other sites More sharing options...
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.