Jump to content

runnerjp

Members
  • Posts

    2,214
  • Joined

  • Last visited

Everything posted by runnerjp

  1. hey guys didnt know where to post this.... does any one use any softwear like paint shop pro ect to design website layout i want to make a website like the layout of [url=http://www.teenfront.co.uk]www.teenfront.co.uk[/url]
  2. hey all once again i have been having some trouble setting up a membership system.... i have set numerous once up but i could not get it to be like what i wanted it to be... once you sign in it swent you to a page where there where links to pages u could get to when beeing a member yet if u typed the url into browser u could still access the pages...useless!!! i have recently got rid of the login scripts and ready to start from scratch wat i want to know is how can i makeit so if a users signs in it send you to the same homepage as i have set up but this time has member links!! can any one help me set all this up...bare in mind im startin from scratch... i wud be very very gr8full
  3. yer i have...do u want me to copy all of mysql stuff??
  4. lol sorry i didnt know if it was php or wat lol how do i fund the structure???
  5. hey hey guys ok i have set up my forum.. its ame one as this (smf) what i wanna know is how can i display on my home page new posts that have been added??? cheers  :D
  6. what would u say about the navigation...i was thinkin of just keepin it simple and oviusly useing the right and left tables
  7. yer [quote author=cmgmyr link=topic=99296.msg391705#msg391705 date=1152063908] You have to do something about the colors. It looks like a running page for senior citizens. Add some graphics of people running, woods, trails...something. Make it inviting. -Chris [/quote]i will be duin this mate cheers...just gttin enitial layout done then im going to wow the pages with images and stuff :D
  8. hey hey all...i will cutt to the chase i wanna make a area where users can create profiles about themselfs any ideas on how i could go about duin this??
  9. hey all here is a club website i have created .. could do with knowin what else i could do to improve it.... thanks alot guys :D [url=http://www.kuhac.co.uk]www.kuhac.co.uk[/url]
  10. hey all i was wundering ... i wanan make a part on my website where users can create profiles about themselfs like on myspace or msn profile.... what would i need to be lookin for to do this like is it user management stuff or wat if that makes sence
  11. hey all i have created a running site...well a homepage so far lol what i wanna know is so far how does it look .. yes i know there is little there but i wanna no if i need to chnage it with little done so its easyer plus need some ideas on how i can navigate people around the site.. use just text links...buttons or what ??? [move]Please help[/move]     [url=http://www.werun2win.com/home.html]www.werun2win.com/home.html[/url]
  12. hey guys i have been wanting to make a few pages only accessible to ppl who have signed up any one know of any good scripts or websites that ??? i can do this from???
  13. hey hey guys... ok here is my problem... i have made a login systme well sum 1 else has but still i have got it ... i have a mainpage.php file but i want it to go onto the index.php i have all ready created... so basicly i wanna put this code [code]<? /** * Main.php * * This is an example of the main page of a website. Here * users will be able to login. However, like on most sites * the login form doesn't just have to be on the main page, * but re-appear on subsequent pages, depending on whether * the user has logged in or not. * * Written by: Jpmaster77 a.k.a. The Grandmaster of C++ (GMC) * Last Updated: August 26, 2004 */ include("include/session.php"); ?> <html> <title>WERUN2WIN</title> <body> <table> <tr><td> <? /** * User has already logged in, so display relavent links, including * a link to the admin center if the user is an administrator. */ if($session->logged_in){    echo "<h1>Logged In</h1>";    echo "Welcome <b>$session->username</b>, you are logged in. <br><br>"        ."[<a href=\"userinfo.php?user=$session->username\">My Account</a>] &nbsp;&nbsp;"        ."[<a href=\"useredit.php\">Edit Account</a>] &nbsp;&nbsp;";    if($session->isAdmin()){       echo "[<a href=\"admin/admin.php\">Admin Center</a>] &nbsp;&nbsp;";    }    echo "[<a href=\"process.php\">Logout</a>]"; } else{ ?> <h1>Login</h1> <? /** * User not logged in, display the login form. * If user has already tried to login, but errors were * found, display the total number of errors. * If errors occurred, they will be displayed. */ if($form->num_errors > 0){    echo "<font size=\"2\" color=\"#ff0000\">".$form->num_errors." error(s) found</font>"; } ?> <form action="process.php" method="POST"> <table align="left" border="0" cellspacing="0" cellpadding="3"> <tr><td>Username:</td><td><input type="text" name="user" maxlength="30" value="<? echo $form->value("user"); ?>"></td><td><? echo $form->error("user"); ?></td></tr> <tr><td>Password:</td><td><input type="password" name="pass" maxlength="30" value="<? echo $form->value("pass"); ?>"></td><td><? echo $form->error("pass"); ?></td></tr> <tr><td colspan="2" align="left"><input type="checkbox" name="remember" <? if($form->value("remember") != ""){ echo "checked"; } ?>> <font size="2">Remember me next time &nbsp;&nbsp;&nbsp;&nbsp; <input type="hidden" name="sublogin" value="1"> <input type="submit" value="Login"></td></tr> <tr><td colspan="2" align="left"><br><font size="2">[<a href="forgotpass.php">Forgot Password?</a>]</font></td><td align="right"></td></tr> <tr><td colspan="2" align="left"><br>Not registered? <a href="register.php">Sign-Up!</a></td></tr> </table> </form> <? } /** * Just a little page footer, tells how many registered members * there are, how many users currently logged in and viewing site, * and how many guests viewing site. Active users are displayed, * with link to their user information. */ echo "</td></tr><tr><td align=\"center\"><br><br>"; echo "<b>Member Total:</b> ".$database->getNumMembers()."<br>"; echo "There are $database->num_active_users registered members and "; echo "$database->num_active_guests guests viewing the site.<br><br>"; include("include/view_active.php"); ?> </td></tr> </table> </body> </html>[/code] on my page i have all ready created index.html .... does that make sence?? to sum it up i wanna put the php script on a html page thats allready created :D:D
  14. [!--quoteo(post=389382:date=Jun 29 2006, 01:37 PM:name=lead2gold)--][div class=\'quotetop\']QUOTE(lead2gold @ Jun 29 2006, 01:37 PM) [snapback]389382[/snapback][/div][div class=\'quotemain\'][!--quotec--] I can see many syntax errors in your post above: [code]       $from = "From: ".WERUN2WIN ADMIN." <".WERUN2WIN@WERUN2WIN.COM.">"; [/code] for example should read: [code]       $from = "From: WERUN2WIN ADMIN <WERUN2WIN@WERUN2WIN.COM>"; [/code] Chris [/quote] wahoo thanks m8 just wunderin how can i stick this code [code]<? /** * Main.php * * This is an example of the main page of a website. Here * users will be able to login. However, like on most sites * the login form doesn't just have to be on the main page, * but re-appear on subsequent pages, depending on whether * the user has logged in or not. * * Written by: Jpmaster77 a.k.a. The Grandmaster of C++ (GMC) * Last Updated: August 26, 2004 */ include("include/session.php"); ?> <html> <title>WERUN2WIN</title> <body> <table> <tr><td> <? /** * User has already logged in, so display relavent links, including * a link to the admin center if the user is an administrator. */ if($session->logged_in){    echo "<h1>Logged In</h1>";    echo "Welcome <b>$session->username</b>, you are logged in. <br><br>"        ."[<a href=\"userinfo.php?user=$session->username\">My Account</a>] &nbsp;&nbsp;"        ."[<a href=\"useredit.php\">Edit Account</a>] &nbsp;&nbsp;";    if($session->isAdmin()){       echo "[<a href=\"admin/admin.php\">Admin Center</a>] &nbsp;&nbsp;";    }    echo "[<a href=\"process.php\">Logout</a>]"; } else{ ?> <h1>Login</h1> <? /** * User not logged in, display the login form. * If user has already tried to login, but errors were * found, display the total number of errors. * If errors occurred, they will be displayed. */ if($form->num_errors > 0){    echo "<font size=\"2\" color=\"#ff0000\">".$form->num_errors." error(s) found</font>"; } ?> <form action="process.php" method="POST"> <table align="left" border="0" cellspacing="0" cellpadding="3"> <tr><td>Username:</td><td><input type="text" name="user" maxlength="30" value="<? echo $form->value("user"); ?>"></td><td><? echo $form->error("user"); ?></td></tr> <tr><td>Password:</td><td><input type="password" name="pass" maxlength="30" value="<? echo $form->value("pass"); ?>"></td><td><? echo $form->error("pass"); ?></td></tr> <tr><td colspan="2" align="left"><input type="checkbox" name="remember" <? if($form->value("remember") != ""){ echo "checked"; } ?>> <font size="2">Remember me next time &nbsp;&nbsp;&nbsp;&nbsp; <input type="hidden" name="sublogin" value="1"> <input type="submit" value="Login"></td></tr> <tr><td colspan="2" align="left"><br><font size="2">[<a href="forgotpass.php">Forgot Password?</a>]</font></td><td align="right"></td></tr> <tr><td colspan="2" align="left"><br>Not registered? <a href="register.php">Sign-Up!</a></td></tr> </table> </form> <? } /** * Just a little page footer, tells how many registered members * there are, how many users currently logged in and viewing site, * and how many guests viewing site. Active users are displayed, * with link to their user information. */ echo "</td></tr><tr><td align=\"center\"><br><br>"; echo "<b>Member Total:</b> ".$database->getNumMembers()."<br>"; echo "There are $database->num_active_users registered members and "; echo "$database->num_active_guests guests viewing the site.<br><br>"; include("include/view_active.php"); ?> </td></tr> </table> </body> </html>[/code] on this page i have made [a href=\"http://www.werun2win.com/home.html\" target=\"_blank\"]www.werun2win.com/home.html[/a]??
  15. ahhh can some 1 cheack this as i keep gettin errors :S Parse error: syntax error, unexpected '@' in /home/werun2wi/public_html/include/mailer.php on line 49 [code]<? /** * Mailer.php * * The Mailer class is meant to simplify the task of sending * emails to users. Note: this email system will not work * if your server is not setup to send mail. * * If you are running Windows and want a mail server, check * out this website to see a list of freeware programs: * <http://www.snapfiles.com/freeware/server/fwmailserver.html> * * Written by: Jpmaster77 a.k.a. The Grandmaster of C++ (GMC) * Last Updated: August 19, 2004 */ class Mailer {    /**     * sendWelcome - Sends a welcome message to the newly     * registered user, also supplying the username and     * password.     */    function sendWelcome($user, $email, $pass){       $from = "From: ".WERUN2WIN ADMIN." <".WERUN2WIN@WERUN2WIN.COM.">";       $subject = "WELCOME 2 WERUN2WIN";       $body = $user.",\n\n"              ."Welcome! You've just registered at WERUN2WIN "              ."with the following information:\n\n"              ."Username: ".$user."\n"              ."Password: ".$pass."\n\n"              ."If you ever lose or forget your password, a new "              ."password will be generated for you and sent to this "              ."email address, if you would like to change your "              ."email address you can do so by going to the "              ."My Account page after signing in.\n\n"              ."- WERUN2WIN";       return mail($email,$subject,$body,$from);    }       /**     * sendNewPass - Sends the newly generated password     * to the user's email address that was specified at     * sign-up.     */    function sendNewPass($user, $email, $pass){       $from = "From: ".WERUN2WIN." <".WERUN2WIN@WERUN2WIN.COM.">";       $subject = "werun2win - Your new password";       $body = $user.",\n\n"              ."We've generated a new password for you at your "              ."request, you can use this new password with your "              ."username to log in to WERUN2WIN.\n\n"              ."Username: ".$user."\n"              ."New Password: ".$pass."\n\n"              ."It is recommended that you change your password "              ."to something that is easier to remember, which "              ."can be done by going to the My Account page "              ."after signing in.\n\n"              ."- WERUN2WIN";                    return mail($email,$subject,$body,$from);    } }; /* Initialize mailer object */ $mailer = new Mailer; ?>[/code]
  16. hey all im setting up a login script and when i got to the [a href=\"http://werun2win.com/main.php\" target=\"_blank\"]main page [/a] i get the error [b]Parse error: syntax error, unexpected T_STRING in /home/werun2wi/public_html/include/mailer.php on line 25[/b] here is script.... wats wrong with it ???? [code]<? /** * Mailer.php * * The Mailer class is meant to simplify the task of sending * emails to users. Note: this email system will not work * if your server is not setup to send mail. * * If you are running Windows and want a mail server, check * out this website to see a list of freeware programs: * <http://www.snapfiles.com/freeware/server/fwmailserver.html> * * Written by: Jpmaster77 a.k.a. The Grandmaster of C++ (GMC) * Last Updated: August 19, 2004 */ class Mailer {    /**     * sendWelcome - Sends a welcome message to the newly     * registered user, also supplying the username and     * password.     */    function sendWelcome($user, $email, $pass){       $from = "From: ".WERUN2WIN ADMIN." <".WERUN2WIN@WERUN2WIN.COM.">";       $subject = "WELCOME 2 WERUN2WIN";       $body = $user.",\n\n"              ."Welcome! You've just registered at WERUN2WIN "              ."with the following information:\n\n"              ."Username: ".$user."\n"              ."Password: ".$pass."\n\n"              ."If you ever lose or forget your password, a new "              ."password will be generated for you and sent to this "              ."email address, if you would like to change your "              ."email address you can do so by going to the "              ."My Account page after signing in.\n\n"              ."- WERUN2WIN";       return mail($email,$subject,$body,$from);    }       /**     * sendNewPass - Sends the newly generated password     * to the user's email address that was specified at     * sign-up.     */    function sendNewPass($user, $email, $pass){       $from = "From: ".WERUN2WIN." <".WERUN2WIN@WERUN2WIN.COM.">";       $subject = "werun2win - Your new password";       $body = $user.",\n\n"              ."We've generated a new password for you at your "              ."request, you can use this new password with your "              ."username to log in to WERUN2WIN.\n\n"              ."Username: ".$user."\n"              ."New Password: ".$pass."\n\n"              ."It is recommended that you change your password "              ."to something that is easier to remember, which "              ."can be done by going to the My Account page "              ."after signing in.\n\n"              ."- WERUN2WIN";                    return mail($email,$subject,$body,$from);    } }; /* Initialize mailer object */ $mailer = new Mailer; ?>[/code]
  17. hey all ok i have this php script [code]<? /** * Main.php * * This is an example of the main page of a website. Here * users will be able to login. However, like on most sites * the login form doesn't just have to be on the main page, * but re-appear on subsequent pages, depending on whether * the user has logged in or not. * * Written by: Jpmaster77 a.k.a. The Grandmaster of C++ (GMC) * Last Updated: August 26, 2004 */ include("include/session.php"); ?> <html> <title>WERUN2WIN</title> <body> <table> <tr><td> <? /** * User has already logged in, so display relavent links, including * a link to the admin center if the user is an administrator. */ if($session->logged_in){    echo "<h1>Logged In</h1>";    echo "Welcome <b>$session->username</b>, you are logged in. <br><br>"        ."[<a href=\"userinfo.php?user=$session->username\">My Account</a>] &nbsp;&nbsp;"        ."[<a href=\"useredit.php\">Edit Account</a>] &nbsp;&nbsp;";    if($session->isAdmin()){       echo "[<a href=\"admin/admin.php\">Admin Center</a>] &nbsp;&nbsp;";    }    echo "[<a href=\"process.php\">Logout</a>]"; } else{ ?> <h1>Login</h1> <? /** * User not logged in, display the login form. * If user has already tried to login, but errors were * found, display the total number of errors. * If errors occurred, they will be displayed. */ if($form->num_errors > 0){    echo "<font size=\"2\" color=\"#ff0000\">".$form->num_errors." error(s) found</font>"; } ?> <form action="process.php" method="POST"> <table align="left" border="0" cellspacing="0" cellpadding="3"> <tr><td>Username:</td><td><input type="text" name="user" maxlength="30" value="<? echo $form->value("user"); ?>"></td><td><? echo $form->error("user"); ?></td></tr> <tr><td>Password:</td><td><input type="password" name="pass" maxlength="30" value="<? echo $form->value("pass"); ?>"></td><td><? echo $form->error("pass"); ?></td></tr> <tr><td colspan="2" align="left"><input type="checkbox" name="remember" <? if($form->value("remember") != ""){ echo "checked"; } ?>> <font size="2">Remember me next time &nbsp;&nbsp;&nbsp;&nbsp; <input type="hidden" name="sublogin" value="1"> <input type="submit" value="Login"></td></tr> <tr><td colspan="2" align="left"><br><font size="2">[<a href="forgotpass.php">Forgot Password?</a>]</font></td><td align="right"></td></tr> <tr><td colspan="2" align="left"><br>Not registered? <a href="register.php">Sign-Up!</a></td></tr> </table> </form> <? } /** * Just a little page footer, tells how many registered members * there are, how many users currently logged in and viewing site, * and how many guests viewing site. Active users are displayed, * with link to their user information. */ echo "</td></tr><tr><td align=\"center\"><br><br>"; echo "<b>Member Total:</b> ".$database->getNumMembers()."<br>"; echo "There are $database->num_active_users registered members and "; echo "$database->num_active_guests guests viewing the site.<br><br>"; include("include/view_active.php"); ?> </td></tr> </table> </body> </html>[/code] do i add this as a html to my website so i can get it onto my homepage that i have created and do i use it as php script sending users from my homepage to this page.... if that makes sence?? thanks :D
  18. [!--quoteo(post=389204:date=Jun 29 2006, 06:23 AM:name=hvle)--][div class=\'quotetop\']QUOTE(hvle @ Jun 29 2006, 06:23 AM) [snapback]389204[/snapback][/div][div class=\'quotemain\'][!--quotec--] because you got your username or password or database server wrong. [/quote] how would i find my database server out then i contacted my host and they didnt know [!--quoteo(post=389205:date=Jun 29 2006, 06:32 AM:name=runnerjp)--][div class=\'quotetop\']QUOTE(runnerjp @ Jun 29 2006, 06:32 AM) [snapback]389205[/snapback][/div][div class=\'quotemain\'][!--quotec--] how would i find my database server out then i contacted my host and they didnt know [/quote] its ok now i have found problem.... all i had to do was type localhost!!
  19. Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'werun2wi'@'localhost' (using password: YES) in /home/werun2wi/public_html/registration.php on line 5 Access denied for user 'werun2wi'@'localhost' (using password: YES) i keep getting that... why???
  20. how do i find MySQL server host name??? i have contacted my host silverserve and they thoguht is was db.silverserve.co.uk yet does not work :S
  21. [!--quoteo(post=388824:date=Jun 28 2006, 08:49 AM:name=obsidian)--][div class=\'quotetop\']QUOTE(obsidian @ Jun 28 2006, 08:49 AM) [snapback]388824[/snapback][/div][div class=\'quotemain\'][!--quotec--] here is a list of great resources for layout techniques, CSS articles, navigation ideas, bug fixes and other design aspects, too: [a href=\"http://www.csszengarden.com\" target=\"_blank\"]http://www.csszengarden.com[/a] [a href=\"http://css.maxdesign.com.au\" target=\"_blank\"]http://css.maxdesign.com.au[/a] [a href=\"http://www.positioniseverything.net\" target=\"_blank\"]http://www.positioniseverything.net[/a] [a href=\"http://www.alistapart.com\" target=\"_blank\"]http://www.alistapart.com[/a] [a href=\"http://www.stopdesign.com\" target=\"_blank\"]http://www.stopdesign.com[/a] [a href=\"http://www.thinkvitamin.com\" target=\"_blank\"]http://www.thinkvitamin.com[/a] hope this helps get you off to a good start. [/quote] THANKS M8
  22. thankyou for the critisism... yup i can see what you mean no point in makin a site sloppy when u can take time on it and get the best effect...im new to this website building stuff and slowly i have been learning how to build it... i have the base info at the moment which is important so few next few days i will look greatly at the layout... do you have any where that can help me with the layout of my website???
  23. [!--quoteo(post=388791:date=Jun 28 2006, 06:50 AM:name=wildteen88)--][div class=\'quotetop\']QUOTE(wildteen88 @ Jun 28 2006, 06:50 AM) [snapback]388791[/snapback][/div][div class=\'quotemain\'][!--quotec--] Helps if you provide a valid address. I get a server not found error [/quote] haha sorry i have corrected it
  24. hey hey all... ok im makin a running website... its still under construction like but i have got some stuff on so far and was wunderin if ppl could look at it and tell me how i could improve it so far :D i do know that there is a spellin mistake in flash intro just not got round to changin it yet lol [a href=\"http://www.werun2win.com\" target=\"_blank\"]www.werun2win.com [/a] thanks guys
  25. hey all i feel very stupid askin this but i can do all the php stuff now just learnin sql so here are few things i need to find lol what aould my sql stuff be for my website werun2win.com ( my host has sql on it ) MySQL Server Name: MySQL Database Username: MySQL Database Password: MySQL Database Name:
×
×
  • 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.