Jump to content

sub7av

Members
  • Posts

    53
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

sub7av's Achievements

Member

Member (2/5)

0

Reputation

  1. I would like to get the user to login on homepage, show his forum avatar in a box above his name and for it to say welcome back. I dont mind which mate, if i can pull the vbull aross i wont have to code a login system or share sql so that would be better i think.
  2. p.s I cant post at vbull i am banned for sharing my key with someone who wanted help but they didnt ban my key
  3. If I wanted help from them I would have posted there, but they dont support hacking of there forum if you can call it that however they said I can ask hacking question on the or site which I dont want to do. If anyone has info let me know I managed to pull it from the sql last time so I am thinking maybe another sql for the member login? how secure is it to insert the sql catch into the webpage because i had to put in user and pass to get them in.
  4. I want to allow users to login to my forum but from my website homepage. I have so far managed to show acitve online users on the home page from vbulletin but now I want to pull in there forum avatar, username and welcome back ???? on the homepage. any help would be welcomed, I know I need to share the sql and somehow pull the login from the forum to the site, but am all ears
  5. when the forum loads I have the main category which has x2 forums which i fine. The problem is when you click one of them you have my other 4 subforums then a strange loose forum at the bottom. The same in the other? its annoying when people post there because its on the same page as the subforums, how can I remove it?
  6. thansk for the help i finally managed to do it,
  7. sure, here is the code I want to insert: <?php $con = mysql_connect('localhost', 'thesink', 'pat'); mysql_select_db('thesink_meo' ,$con); $t = time() - 7600; $q = mysql_query("select username FROM user WHERE lastactivity > $t"); while ($u = mysql_fetch_array($q)) echo $u['username']." "; ?> I want to insert this code into my webpage but always get error, if I put this code right at the top it works but I want it to be inbetween <b><img src="ico/max.gif"> HERE </title></b></font></a><Br> any help or ideas? if you can altar my code it would be great because thats where I am getting the problems <? echo '<title>'.$site_title.' - Home</title> <table width="100%" cellspacing="1" cellpadding="4" border="0"> <tr valign="top"> <td class="windowbg" width="70%"><br><img src="images/maxsmall.gif" align="left" hspace="17" vspace="10"> <font size="3" class="title_text"><BR> '; if($gs_user == 1){ echo '<hr size="1" noshade="1"> <font size="3">Subscribe to maxlucy</font>'; if(mysql_num_rows($subscriptions) > 0){ echo 'You are currently subscribed to max.<a href="index.php?action=subscribe"><b>Click here to remove your subscription</b></a>.'; } else { echo 'You can enable subscriptions to receive emails when a new video is added. <a href="index.php?action=subscribe"><b>Click here to enable subscriptions</b></a>.'; } } echo '</td> <td class="windowbg" width="24%">'; if($gs_user == 1){ echo '<table width="100%" cellspacing="1" cellpadding="4" border="0" class="border2"> <tr> <td class="windowbg4"><img src="ico/user.png"> <b>Welcome back, '.$gs_account['display_name'].'.</b></td> </tr><tr> <td class="windowbg3"><left><a href="index.php?action=view_profile&user='.$gs_account['username'].'"><img src="ico/user.png" border="0">View Profile</a> <a href="index.php?action=admin&sec=modify_profile"><img src="ico/user_edit.png" border="0"> Modify Profile</a></left></td> </tr>'; } else { echo '<table width="100%" cellspacing="1" cellpadding="4" border="0" class="border2"> <tr> <td class="windowbg4"> <b>Download All max Versions</b></td> </tr><tr> <td class="windowbg2"> <form action="index.php?action=login&sub=1" method="post"> <table width="100%" cellspacing="1" cellpadding="4" border="0"> </table>'; } echo ' <table width="100%" cellspacing="1" cellpadding="4" border="0" class="border2"> <tr> <td class="windowbg4"> <center><b>DOWNLOADS</b></td> </tr><tr> <td class="windowbg3"><form action="index.php?action=login&sub=1" method="post"> <table width="100%" cellspacing="0" cellpadding="0" border="0"> <td class="windowbg3"><center><a href="http://maxlucy.com/downloads/max%20v2.2.zip"><img src="ico/max2.gif" border="0"></a></center></td> </tr> </table> </form> </td> </tr><tr> <td class="windowbg3"><center><a href="http://maxlucy.com/downloads/max%20v2.1.5%20lucy.zip"><img src="ico/maxleg.gif" border="0"></a></center></td> </tr> <tr> <td class="windowbg3"><center><a href="http://maxlucy.com/downloads/max%20v2.1.4%20Defcon8.zip"><img src="ico/maxdef.gif" border="0"></a></center></td> </tr> </tr> <tr> <td class="windowbg3"><center><a href="http://maxlucy.com/downloads/max%20v2.1.3%20Bonus.zip"><img src="ico/maxbon.gif" border="0"></a></center></td> </tr> </tr> <tr> <td class="windowbg3"><center><a href="http://maxlucy.com/downloads/max%20v2.1.2%20Muie.zip"><img src="ico/maxmu.gif" border="0"></a></center></td> </tr> </tr> <tr> <td class="windowbg3"><center><a href="http://maxlucy.com/downloads/max%20v2.1.1%20Gold.zip"><img src="ico/maxgold.gif" border="0"></a></center></td> </tr> </tr> <tr> <td class="windowbg3"><center><a href="http://maxlucy.com/downloads/max%20v2.1.0.zip"><img src="ico/max21.gif" border="0"></a></center></td> </tr> </tr> <tr> <td class="windowbg3"><center><a href="http://maxlucy.com/downloads/max%20v2.0.zip"><img src="ico/max20.gif" border="0"></a></center></td> </tr> </tr> <tr> <td class="windowbg3"><center><a href="http://maxlucy.com/downloads/max%20v1.9.zip"><img src="ico/max19.gif" border="0"></a></center></td> </tr> </tr> <tr> <td class="windowbg3"><center><a href="http://maxlucy.com/downloads/max%20v1.8.zip"><img src="ico/max18.gif" border="0"></a></center></td> </tr> </tr> <tr> <td class="windowbg3"><center><a href="http://maxlucy.com/downloads/max%20v1.7.zip"><img src="ico/max17.gif" border="0"></a></center></td> </tr> <tr> <td class="windowbg3"><center><a href="http://maxlucy.com/downloads/max%20v1.6.zip"><img src="ico/max16.gif" border="0"></a></center></td> </tr> <tr> <td class="windowbg3"><center><a href="http://maxlucy.com/downloads/max%20v1.5.zip"><img src="ico/max15.gif" border="0"></a></center></td> </tr> <tr> <td class="windowbg3"><center><a href="http://maxlucy.com/downloads/max%20v1.4.zip"><img src="ico/max14.gif" border="0"></a></center></td> </tr> <tr> <td class="windowbg3"><center><a href="http://maxlucy.com/downloads/max%20v1.3.zip"><img src="ico/max13.gif" border="0"></a></center></td> </tr> <tr> <td class="windowbg3"><center><a href="http://maxlucy.com/downloads/max%20v1.2.zip"><img src="ico/max12.gif" border="0"></a></center></td> </tr> <tr> <td class="windowbg3"><center><a href="http://maxlucy.com/downloads/max%20v1.1.zip"><img src="ico/max11.gif" border="0"></a></center></td> </tr> <tr> <td class="windowbg3"><center><a href="http://maxlucy.com/downloads/max%20v1.0.zip"><img src="ico/max10.gif" border="0"></a></center></td> </tr> </table>'; echo '</td> </tr> </table> </td> </tr> </table> <center><table width="100%" cellspacing="1" cellpadding="4" border="0" class="border"> <tr> <td class="windowbg4"><center><b>Users Online<b> </b> <b></b></td> </tr><tr> <td class="windowbg3"><center><center><font size="1">We currently have the following users online</font></center> <form action="index.php?action=login&sub=1" method="post"> <table width="100%" cellspacing="1" cellpadding="4" border="0"> <td class="windowbg" colspan="2"><br><font size="1" color="#428cd1"> <b><img src="ico/max.gif"> </title></b></font></a><Br> <br></tr> </table> </form> </td> </tr><tr> <td class="windowbg3"><center><center> <a href="index.php?action=home">www.maxlucy.com</a></td> </tr </table>'; ?>
  8. still get error on line 161 which is: echo '<title>... <img src="ico/sub7.gif"> ' . displayOnline() . '</title>....';
  9. I am getting this dam error its driving me mad! Parse error: syntax error, unexpected '>' in /home/site5/public_html/home.php on line 161 the error is on line 161 which is: echo '<title> <img src="ico/sub7.gif"> ' . displayOnline() . ' </title>'; code: <table width="100%" cellspacing="1" cellpadding="4" border="0"> <td class="windowbg" colspan="2"><br><font size="1" color="#428cd1"> echo '<title> <img src="ico/sub7.gif"> ' . displayOnline() . ' </title>'; ?></b></font></a><Br>
  10. bump, amy help for he final part greatly welcomed
  11. my whole source code for page: <? echo '<title>'.$site_title.' - Home</title> <table width="100%" cellspacing="1" cellpadding="4" border="0"> <tr valign="top"> <td class="windowbg" width="70%"><br><img src="images/cart55small.gif" align="left" hspace="17" vspace="10"> <font size="3" class="title_text"><BR>What is cart55 - '; if($gs_user == 1){ echo '<hr size="1" noshade="1"> <font size="3">Subscribe to cart56</font>'; if(mysql_num_rows($subscriptions) > 0){ echo 'You are currently subscribed to cart55.<a href="index.php?action=subscribe"><b>Click here to remove your subscription</b></a>.'; } else { echo 'You can enable subscriptions to receive emails when a new video is added. <a href="index.php?action=subscribe"><b>Click here to enable subscriptions</b></a>.'; } } echo '</td> <td class="windowbg" width="24%">'; if($gs_user == 1){ echo '<table width="100%" cellspacing="1" cellpadding="4" border="0" class="border2"> <tr> <td class="windowbg4"><img src="ico/user.png"> <b>Welcome back, '.$gs_account['display_name'].'.</b></td> </tr><tr> <td class="windowbg3"><left><a href="index.php?action=view_profile&user='.$gs_account['username'].'"><img src="ico/user.png" border="0">View Profile</a> <a href="index.php?action=admin&sec=modify_profile"><img src="ico/user_edit.png" border="0"> Modify Profile</a></left></td> </tr>'; } else { echo '<table width="100%" cellspacing="1" cellpadding="4" border="0" class="border2"> <tr> <td class="windowbg4"> <b>Download All cart55 Versions</b></td> </tr><tr> <td class="windowbg2"> <form action="index.php?action=login&sub=1" method="post"> <table width="100%" cellspacing="1" cellpadding="4" border="0"> </table>'; } echo ' <table width="100%" cellspacing="1" cellpadding="4" border="0" class="border2"> <tr> <td class="windowbg4"> <center><b>DOWNLOADS</b></td> </tr><tr> <td class="windowbg3"><form action="index.php?action=login&sub=1" method="post"> <table width="100%" cellspacing="0" cellpadding="0" border="0"> <td class="windowbg3"><center><a href="http://cart56.com/downloads/cart55%20v2.2.zip"><img src="ico/cart552.gif" border="0"></a></center></td> </tr> </table> </form> </td> </tr><tr> <td class="windowbg3"><center><a href="http://cart56.com/downloads/cart55%20v2.1.5%20Legends.zip"><img src="ico/cart55leg.gif" border="0"></a></center></td> </tr> <tr> <td class="windowbg3"><center><a href="http://cart56.com/downloads/cart55%20v2.1.4%20Defcon8.zip"><img src="ico/cart55def.gif" border="0"></a></center></td> </tr> </tr> <tr> <td class="windowbg3"><center><a href="http://cart56.com/downloads/cart55%20v2.1.3%20Bonus.zip"><img src="ico/cart55bon.gif" border="0"></a></center></td> </tr> </tr> <tr> <td class="windowbg3"><center><a href="http://cart56.com/downloads/cart55%20v2.1.2%20Muie.zip"><img src="ico/cart55mu.gif" border="0"></a></center></td> </tr> </tr> <tr> <td class="windowbg3"><center><a href="http://cart56.com/downloads/cart55%20v2.1.1%20Gold.zip"><img src="ico/cart55gold.gif" border="0"></a></center></td> </tr> </tr> <tr> <td class="windowbg3"><center><a href="http://cart56.com/downloads/cart55%20v2.1.0.zip"><img src="ico/cart5521.gif" border="0"></a></center></td> </tr> </tr> <tr> <td class="windowbg3"><center><a href="http://cart56.com/downloads/cart55%20v2.0.zip"><img src="ico/cart5520.gif" border="0"></a></center></td> </tr> </tr> <tr> <td class="windowbg3"><center><a href="http://cart56.com/downloads/cart55%20v1.9.zip"><img src="ico/cart5519.gif" border="0"></a></center></td> </tr> </tr> <tr> <td class="windowbg3"><center><a href="http://cart56.com/downloads/cart55%20v1.8.zip"><img src="ico/cart5518.gif" border="0"></a></center></td> </tr> </tr> <tr> <td class="windowbg3"><center><a href="http://cart56.com/downloads/cart55%20v1.7.zip"><img src="ico/cart5517.gif" border="0"></a></center></td> </tr> <tr> <td class="windowbg3"><center><a href="http://cart56.com/downloads/cart55%20v1.6.zip"><img src="ico/cart5516.gif" border="0"></a></center></td> </tr> <tr> <td class="windowbg3"><center><a href="http://cart56.com/downloads/cart55%20v1.5.zip"><img src="ico/cart5515.gif" border="0"></a></center></td> </tr> <tr> <td class="windowbg3"><center><a href="http://cart56.com/downloads/cart55%20v1.4.zip"><img src="ico/cart5514.gif" border="0"></a></center></td> </tr> <tr> <td class="windowbg3"><center><a href="http://cart56.com/downloads/cart55%20v1.3.zip"><img src="ico/cart5513.gif" border="0"></a></center></td> </tr> <tr> <td class="windowbg3"><center><a href="http://cart56.com/downloads/cart55%20v1.2.zip"><img src="ico/cart5512.gif" border="0"></a></center></td> </tr> <tr> <td class="windowbg3"><center><a href="http://cart56.com/downloads/cart55%20v1.1.zip"><img src="ico/cart5511.gif" border="0"></a></center></td> </tr> <tr> <td class="windowbg3"><center><a href="http://cart56.com/downloads/cart55%20v1.0.zip"><img src="ico/cart5510.gif" border="0"></a></center></td> </tr> </table>'; echo '</td> </tr> </table> </td> </tr> </table> <center><table width="100%" cellspacing="1" cellpadding="4" border="0" class="border"> <tr> <td class="windowbg4"><center><b>Users Online<b> </b> <b></b></td> </tr><tr> <td class="windowbg3"><center><center><font size="1">We currently have the following users online</font></center> <form action="index.php?action=login&sub=1" method="post"> <table width="100%" cellspacing="1" cellpadding="4" border="0"> <td class="windowbg" colspan="2"><br><font size="1" color="#428cd1"> ?><b><img src="ico/cart55.gif"> </title></b></font></a><Br> <br></tr> </table> </form> </td> </tr><tr> <td class="windowbg3"><center><center> <a href="index.php?action=home">www.cart56.com</a></td> </tr </table>'; ?>
  12. theo, where about the rest of my code, where do u want me to insert this code?
  13. the top of my code: <? echo '<title>'.$site_title.' - Home</title> <table width="100%" cellspacing="1" cellpadding="4" border="0"> <tr valign="top"> <td class="windowbg" wi ect... then I get to <b><img src="ico/sub7.gif"> </title></b></font></a><Br> how do I add your idea to get my code in this? my code I want inside this is: <?php $con = mysql_connect('localhost', 'testuser', 'testpass'); mysql_select_db('testuser_tr6',$con); $t = time() - 3600; $q = mysql_query("select username FROM user WHERE lastactivity > $t"); while ($u = mysql_fetch_array($q)) echo $u['username']." "; ?>
  14. hey thanks for the help guys.. here is a screenshot of my code and when I put any code inbetween the red x I get error: Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /home/theroman/public_html/home.php on line 150 the code I want inside there is the call from mysql, this works okay on another page called tttt.php so I dont know if I can paste the sql code thats calls into here but i get error or someone eco page tttt.php into there?
×
×
  • 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.