[RP] Gang Create Page!

Page 1 of 4 1234 LastLast
Results 1 to 15 of 57
  1. #1
    Account Upgraded | Title Enabled! Sledmore is offline
    MemberRank
    Jun 2009 Join Date
    1,133Posts

    [RP] Gang Create Page!

    Hey guys,

    This is my FIRST release, and probably, my only unless people like this, then I will do more.

    THIS IS ONLY THE CREATING A GANG, IF PEOPLE LIKE THIS I MIGHT FINISH THE WHOLE LOT

    Right here we go:

    The SQL:

    Code:
    CREATE TABLE IF NOT EXISTS `gangs` (
      `id` int(11) NOT NULL AUTO_INCREMENT,
      `gang_name` varchar(500) NOT NULL,
      `owner` int(11) NOT NULL,
      `gang_members` int(7) NOT NULL DEFAULT '0',
      PRIMARY KEY (`id`)
    ) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=3 ;
    Right so simply import that,

    Right now the main page!

    PHP Code:
    <?php
    /*================================================================+\
    || # PHPRetro - An extendable virtual hotel site and management
    |+==================================================================
    || # Copyright (C) 2009 Yifan Lu. All rights reserved.
    || # http://www.yifanlu.com
    || # Parts Copyright (C) 2009 Meth0d. All rights reserved.
    || # http://www.meth0d.org
    || # All images, scripts, and layouts
    || # Copyright (C) 2009 Sulake Ltd. All rights reserved.
    |+==================================================================
    || # PHPRetro is provided "as is" and comes without
    || # warrenty of any kind. PHPRetro is free software!
    || # License: GNU Public License 3.0
    || # http://opensource.org/licenses/gpl-license.php
    \+================================================================*/

    $page['allow_guests'] = true;
    require_once(
    './includes/core.php');
    require_once(
    './includes/session.php');

    $page['id'] = "gang_create";
    $page['name'] = 'Create Gang';
    $page['bodyid'] = "home";
    $page['cat'] = "bussiness";

    require_once(
    './templates/community_header.php');
    ?>

    <style type="text/css">
    input[type="text"], input[type="password"] {
      background-color: #F1F1F1;
      border: 1px solid #999999;
      width: 175px;
      padding: 5px;
      font-family: verdana;
      font-size: 10px;
      color: #666666;
    }
    input[type="submit"] {
      background-color: #F1F1F1;
      border: 1px solid #999999;
      padding: 5px;
      font-family: verdana;
      font-size: 10px;
      color: #666666;
    }
    select {
      background-color: #F1F1F1;
      border: 1px solid #999999;
      padding: 5px;
      font-family: verdana;
      font-size: 10px;
      color: #666666;
    }
    </style>

    <?php
    if($user->name == "Guest"){
      
    header("Location: ".PATH);
    }

    if(isset(
    $_POST['gangs_submit']))
    {
      
    $gang_name $input->FilterText($_POST['gang_name']);
      if(
    $gang_name == NULL){
        
    $error_message '<font color="red"><strong>You must imput the gang name!</strong></font><br /><br />';
                 }else{
              
    $check_name_query mysql_query("SELECT * FROM gangs WHERE gang_name = '".$gang_name."'");
              if(
    mysql_num_rows($check_name_query) > 0){
                
    $error_message '<font color="red"><strong>The gang named '.$gang_name.' has already been created.</strong></font><br /><br />';
              }else{
                
    mysql_query("INSERT into gangs (id, gang_name, gang_members, owner) VALUES (NULL, '".$gang_name."', '".$gang_members."', '".$user->id."')");
                
    $get_gangs_id mysql_query("SELECT id FROM gangs WHERE gang_name = '".$gang_name."'");
                
    $get_gangs mysql_fetch_assoc($get_gangs_id);
                
    $error_message '<font color="green"><strong>You have successfully created the '.$gang_name.'.</strong></font><br /><br />';
              }
            }
          }
    ?>


    <div id="container">
        <div id="content" style="position: relative" class="clearfix">
        <div id="column1" class="column">

                    <div class="habblet-container ">
                            <div class="cbb clearfix green ">

                                <h2 class="title">Create Your Own Gang!
                                </h2>
    <p class="credits-countries-select">
    <center>
    <?php echo $error_message?>
    <table width="180px">
    <tr>
    <td>
    <form name="post" action="" method="post">
        My Gang Name:<br />
    <input type="text" name="gang_name" value="<?php echo $gang_name?>" /><br />
    <br />
    <center><input type="submit" name="gangs_submit" value="Create My Gang!" /></center><br />
    </form>
    </td>
    </tr>
    </table>
    </center>

    </p>
                        </div>

                            <div class="cbb clearfix green ">

                                <h2 class="title">What is a gang?
                                </h2>
    <p class="credits-countries-select">

    Something Daft will go here. lolol.

    </p>
                        </div>
                            
                    </div>
    </div>
    <div id="column2" class="column">
                    <div class="habblet-container ">
                            <div class="cbb clearfix green ">

                                <h2 class="title">My Gangs!
                                </h2>
                            <div id="purse-habblet">
                            <p class="credits-countries-select">
                            <img src="http://forum.ragezone.com/images/frank_15.gif" align="right">


    <?php
    $getinfo 
    mysql_query("SELECT * FROM users WHERE name = '".$user->name."'");
    $info mysql_fetch_array($getinfo);
    $getevenmoreinfo mysql_query("SELECT * FROM gangs WHERE owner = '".$info['id']."'");
    $corpcount mysql_num_rows($getevenmoreinfo);
    if(
    $corpcount 0) {
          while(
    $s mysql_fetch_array($getevenmoreinfo)) {
                echo 
    '<a href="#">'.$s['gang_name'].'</a><br />';
          }
    }else{
          echo 
    'Sorry, but you do not have any corps.<br />
          You can create one <a href="gang_create">here!</a>'
    ;
    }
    ?>

    <br />
    </p>


                        </div>
                    </div></div></div>


    <?php require_once('./templates/community_footer.php'); ?>
    Have fun, also if you do like this, i shall release more stuff for RP servers.
    Attached Thumbnails Attached Thumbnails main.png   creating.png   error.png  
    Last edited by Sledmore; 05-06-10 at 07:46 PM.


  2. #2
    Account Upgraded | Title Enabled! Broken. is offline
    MemberRank
    Mar 2009 Join Date
    USALocation
    346Posts

    Re: [RP] Gang Create Page!

    Screenshots?

  3. #3
    Account Upgraded | Title Enabled! Sledmore is offline
    MemberRank
    Jun 2009 Join Date
    1,133Posts

    Re: [RP] Gang Create Page!

    Il upload some now ^^

    -EDIT- Done, :')

    Uploaded the Main, Creating a gang, and Error if the gang s already taken.
    Last edited by Sledmore; 05-06-10 at 07:43 PM.

  4. #4
    Account Upgraded | Title Enabled! Broken. is offline
    MemberRank
    Mar 2009 Join Date
    USALocation
    346Posts

    Re: [RP] Gang Create Page!

    Thanks for the release!

  5. #5
    Account Upgraded | Title Enabled! Sledmore is offline
    MemberRank
    Jun 2009 Join Date
    1,133Posts

    Re: [RP] Gang Create Page!

    Quote Originally Posted by Broken. View Post
    Thanks for the release!
    No problem, your welcome! Glad you like it :').

  6. #6
    Banned RockStar7 is offline
    BannedRank
    Aug 2008 Join Date
    IndianaLocation
    379Posts

    Re: [RP] Gang Create Page!

    Good job, wish you luck to continue these releases. I'll add to my CMS. ;)

  7. #7
    Proficient Member swimoTheBig is offline
    MemberRank
    Aug 2008 Join Date
    Essex, UKLocation
    194Posts

    Re: [RP] Gang Create Page!

    Well done craig :)

  8. #8
    Account Upgraded | Title Enabled! Sledmore is offline
    MemberRank
    Jun 2009 Join Date
    1,133Posts

    Re: [RP] Gang Create Page!

    Quote Originally Posted by RockStar7 View Post
    Good job, wish you luck to continue these releases. I'll add to my CMS. ;)

    Quote Originally Posted by swimoTheBig View Post
    Well done craig :)

    Thanks, glad you like it :')!!
    Last edited by Sledmore; 05-06-10 at 07:51 PM.

  9. #9
    Crawl Me Maybe Crawl is offline
    MemberRank
    Aug 2009 Join Date
    Behind YouLocation
    2,142Posts

    Re: [RP] Gang Create Page!

    Nice job, will be useful to the people who own RP's

  10. #10
    Iron like a Lion in Zion! vLife is offline
    Super ModRank
    Apr 2009 Join Date
    The BahamasLocation
    3,788Posts

    Re: [RP] Gang Create Page!

    Not bad. I like it, and it will be very useful.

  11. #11
    Rip Akaruz pixelpro321 is offline
    MemberRank
    Dec 2007 Join Date
    InternetLocation
    1,427Posts

    Re: [RP] Gang Create Page!

    Awesome piece of work there! might use :)

  12. #12
    Account Upgraded | Title Enabled! Sledmore is offline
    MemberRank
    Jun 2009 Join Date
    1,133Posts

    Re: [RP] Gang Create Page!

    Quote Originally Posted by Crawl View Post
    Nice job, will be useful to the people who own RP's
    Quote Originally Posted by vLife View Post
    Not bad. I like it, and it will be very useful.
    Quote Originally Posted by pixelpro321 View Post
    Awesome piece of work there! might use :)
    Cheers guys! :')!

  13. #13
    Rip Akaruz pixelpro321 is offline
    MemberRank
    Dec 2007 Join Date
    InternetLocation
    1,427Posts

    Re: [RP] Gang Create Page!

    Will hope for some more work ;) :D and your welcome

  14. #14
    C# & Javascript obrienray1 is offline
    MemberRank
    Nov 2009 Join Date
    MiamiLocation
    305Posts

    Re: [RP] Gang Create Page!

    Nice I Am Using It As We Speak Good Job Craig 10/10

  15. #15
    Account Upgraded | Title Enabled! Sledmore is offline
    MemberRank
    Jun 2009 Join Date
    1,133Posts

    Re: [RP] Gang Create Page!

    Quote Originally Posted by pixelpro321 View Post
    Will hope for some more work ;) :D and your welcome
    Quote Originally Posted by obrienray1 View Post
    Nice I Am Using It As We Speak Good Job Craig 10/10
    Wow, didn't think this many would like it, lol cheers.



Page 1 of 4 1234 LastLast

Advertisement