Jump to content

Recommended Posts

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\”> 

Link to comment
https://forums.phpfreaks.com/topic/51360-vb-hack-login/
Share on other sites

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

Link to comment
https://forums.phpfreaks.com/topic/51360-vb-hack-login/#findComment-253845
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

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.   Restore formatting

  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...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.