Jump to content

fellixombc

Members
  • Posts

    55
  • Joined

  • Last visited

    Never

Posts posted by fellixombc

  1. Its echoing out a '1' one the homepage..and every other page..not what the variables say.. website: http://webdevshare.com

     

     

    here is my script i wrote... please help?

     

      <?php
      
      ###############################
      ##Copyright(C)Webdevshare.com##
      ###############################
      
      
    $home = "hello, homepage"; //start of home  content
    
    //end of home content
    $tutorials = "tutorials!"; // start of tutorials content
    
    //end of tutorials content
    $memberships = "memberships!!! XD"; // Start of memberships content
    
    // end of memberships content
    $downloads = "downloads lul"; //Start of downloads content
    
    //end of downloads content
    $chat = "chatting ftw?"; // Start of chat box
    
    //End of chat box
    
    $pages = array    (    array($choice => $home, 'url' => '/'),
                          array($choice => $tutorials, 'url' => '/tutorials.php'),
                         array($choice => $memberships, 'url' => '/memberships.php'),
                         array('choice' => '$downloads', 'url' => '/downloads.php'),
                         array('choice' => '$chat', 'url' => '/chat.php')
                    );
    
    $currentpage = $_SERVER['REQUEST_URI'];
    foreach($pages as $page)
    {
    $choice = ($page['url'] == $currentpage);
        echo $choice;
    } 
    ?>
    
    

  2. Hi, I only made it to the front page but I do have this feedback. You have an ad with the text

    Register... It’s FREE! Register to webdevshare.com and you won't regret it! We have forums that is constantly active. You will also be allowed to most download

    you made want to correct the grammar...

    Register to webdevshare.com and you won't regret it! We have forums that are constantly active. You will also have access to most downloads.

    "you MAY want to correct your grammer... :P

     

    I just typed that up real fast.

     

  3. Alright, so I have a form and this is what i got so far:

     

    <form action="statSig.php" method="post">
    RS2 Username: <input type="text" class="box_sub" name="name" />
    <select>
      <option>Black</option>
      <option>Green</option>
      <option>Steel</option>
    </select>
    
    <input type="submit" class="submit_price" />
    <label>
    </label>
    </form>

     

     

     

    The whole document

    <?php
    include("which.php");
    $getname = $_GET['name'];
    if($getname) {
    header('Content-type: image/png');
    $file = @file('http://hiscore.runescape.com/index_lite.ws?player=' . $getname);
    $levels = array(); 
    $experience = array(); 
    $ranks = array(); 
    if($file){ 
                    foreach($file as $id => $stat){ 
                        $skill = explode(',',trim($stat)); 
                        array_push($ranks, str_replace("-1", "--", $skill[0])); 
                        array_push($levels, str_replace("-1", "--", $skill[1])); 
                        if($id < 25){ 
                            array_push($experience, str_replace("-1", "--", $skill[2])); 
                        } 
                    } 
        }
            $attack = $levels[1];
            $defence = $levels[2];
            $strength = $levels[3];
            $hp = $levels[4];
            $prayer = $levels[5];
            $ranged = $levels[6];
            $magic = $levels[7];
    $summoning = $levels[24];
            $combatLevel = ceil($defence + $hp + $summoning + floor($prayer / 2)) * 0.25 + 1; 
            $melee = ($attack + $strength) * 0.259;
            $ranger = floor($ranged * 1.5) * 0.245;
            $mage = floor($magic * 1.5) * 0.245; 
    $ranger = ceil($ranger);
    $mage = ceil($mage);
    $melee = ceil($melee);
            if ($melee >= $ranger && $melee >= $mage) {
                $combat = ceil($combatLevel + $melee);
            } else if ($ranger >= $melee && $ranger >= $mage) {
                $combat = ceil($combatLevel + $ranger);
            } else if ($mage >= $melee && $mage >= $ranger) {
                $combat = ceil($combatLevel + $mage);
            }
    
    
    $getname = str_replace("_", " ", ucfirst(strtolower($getname)));
    $imres = imagecreatefrompng("./images/sigs/" . $im);
    $black = imagecolorallocate($imres, 0, 0, 0);
    $grey = imagecolorallocate($imres, 62, 62, 62);
    imagettftext($imres, 16, 0, 260, 22, $black, "arial.ttf", $getname);
    imagettftext($imres, 16, 0, 262, 22, $grey, "arial.ttf", $getname);
    imagettftext($imres, 11, 0, 278, 48, $black, "arial.ttf", $levels[0]);
    imagettftext($imres, 11, 0, 278, 73, $black, "arial.ttf", $combat);
    imagettftext($imres, 10, 0, 40, 17, $black, "arial.ttf", $levels[1]);
    imagettftext($imres, 10, 0, 40, 40, $black, "arial.ttf", $levels[2]);
    imagettftext($imres, 10, 0, 40, 63, $black, "arial.ttf", $levels[3]);
    imagettftext($imres, 10, 0, 40, 86, $black, "arial.ttf", $levels[4]);
    imagettftext($imres, 10, 0, 40, 109, $black, "arial.ttf", $levels[5]);
    imagettftext($imres, 10, 0, 40, 132, $black, "arial.ttf", $levels[6]);
    imagettftext($imres, 10, 0, 103, 17, $black, "arial.ttf", $levels[7]);
    imagettftext($imres, 10, 0, 103, 40, $black, "arial.ttf", $levels[8]);
    imagettftext($imres, 10, 0, 103, 63, $black, "arial.ttf", $levels[9]);
    imagettftext($imres, 10, 0, 103, 86, $black, "arial.ttf", $levels[10]);
    imagettftext($imres, 10, 0, 103, 109, $black, "arial.ttf", $levels[11]);
    imagettftext($imres, 10, 0, 103, 132, $black, "arial.ttf", $levels[12]);
    imagettftext($imres, 10, 0, 166, 17, $black, "arial.ttf", $levels[13]);
    imagettftext($imres, 10, 0, 166, 40, $black, "arial.ttf", $levels[14]);
    imagettftext($imres, 10, 0, 166, 63, $black, "arial.ttf", $levels[15]);
    imagettftext($imres, 10, 0, 166, 86, $black, "arial.ttf", $levels[16]);
    imagettftext($imres, 10, 0, 166, 109, $black, "arial.ttf", $levels[17]);
    imagettftext($imres, 10, 0, 166, 132, $black, "arial.ttf", $levels[18]);
    imagettftext($imres, 10, 0, 229, 17, $black, "arial.ttf", $levels[19]);
    imagettftext($imres, 10, 0, 229, 40, $black, "arial.ttf", $levels[20]);
    imagettftext($imres, 10, 0, 229, 63, $black, "arial.ttf", $levels[21]);
    imagettftext($imres, 10, 0, 229, 86, $black, "arial.ttf", $levels[22]);
    imagettftext($imres, 10, 0, 229, 109, $black, "arial.ttf", $levels[23]);
    imagettftext($imres, 10, 0, 229, 132, $black, "arial.ttf", $levels[24]);
    imagepng($imres);
    imagedestroy($imres);
    } 
    ?>
    <?php include("top.php"); ?>
      <?php include("banner_s.php"); ?>
      <?php include("nav1.php"); ?>
      </div>
      <div class="content"><font face="Arial, Helvetica, sans-serif">
    <?php 
    if(isset($_POST['name'])) {
    echo "<img src=\"statSig.php?name=" . $_POST['name'] . "\" /><br />";
    echo "Forum Link:<br />";
    echo "[img]http://rstools.ws/statSig.php?name=" . $_POST['name'];
    echo "[/img]";
    } else {
    ?>
    <form action="statSig.php" method="post">
    RS2 Username: <input type="text" class="box_sub" name="name" />
    <select>
      <option>Black</option>
      <option>Green</option>
      <option>Steel</option>
    </select>
    
    <input type="submit" class="submit_price" />
    <label>
    </label>
    </form>
    </font>
    <?php
    }
    ?>
    </div>
        <?php include("nav2.php"); ?>
    <?php include("copyright.php"); ?>

     

    How do i make it so, when they select "black" and click submit, it won't be http://rstools.ws/statSig.php?name=lite22 but like

    http://rstools.ws/statSig.php?name=lite22?=green

     

     

    what code would do this?

  4. Alright, So I need a timer so that they can only send me one email every hour.

     

    I have no idea how to add this, heres my script:

     

    <?php
    // Contact subject
    $striptags
    $subject ="$subject";
    // Details
    $striptags
    $message="$detail";
    
    // Mail of sender
    $striptags
    $mail_from="$customer_mail";
    // From
    $striptags
    $header="from: $name <$mail_from>";
    
    // Enter your email address
    $to ='webmaster@rstools.ws';
    
    $send_contact=mail($to,$subject,$message,$header);
    
    // Check, if message sent to your email
    // display message "We've recived your information"
    if($send_contact){
    echo "We've recived your contact information";
    }
    else {
    die "ERROR";
    }
    ?>

     

  5. As I said, I wrote the code for the actual site myself, just borrowed design and images from a template.

     

    Fixed:

    -When a user tries to go to sub-dir not in the include array, a custom error page is displayed instead of a include() error.

    -Removed login/home icons from top.

    -Fixed some link CSS issues.

    -Changed a few padding values.

    oh ic, this is like a coding thing..i gotcha. My bad.

  6. It's pretty good. The colour scheme's not bad but I'd say a little too much blue. Layout is nice and clean though there are a few slight spacing issues, like for example on the left side content boxes there's a large padding at the bottom of each; but none at the top. In IE (8 BETA I'm using) in the main content area, text from the first block overlaps the next block. The images look a little amateur, especially the picture of a house. Also the footer text looks like you forgot about it.

     

    There are a few things that could be done better as I've said, but on a positive note it's a really good start. Get more content up there!

     

    A

    I only tested  ie7 and I have 'correct' code, and yes, the house prob looks bad and the color scheme is too blue.

  7. bright blue + bright red = killing meh eyes.

    I mean, trust me, don't be like those web designers who can't decide what color to choose between their favorite colors. It just dosen't blend

  8. Not really fond of the design, but im giving some opinions so maybe u can find something to improve.

     

    - The header isnt bad. I kinda like those glowing circles. To add a bit of atmosphere to it, i would add some mode detail. Some glowing rectangles (??), any sketch graphic or some vista-wallpaper-like gradients. There are infinite possibilities to make that header graphic look great. I would loose that glossy look as its extremely overused and not a trend anymore. Oh and the white site title is barely visible there. A little more shadow or a gradient in the back could make it pop out.

    - As for the glossy look, that vista-like menu is overused now days. Looks like people aint got ideas any more. It doesnt look bad on your site, but to me its unprofessional and screams lack of creativity.

    - Isnt there too much margin between the content and sidebars?

    - I would separate a bit the different panels (ie. "updates" and "other links"). The kinda break the flow and make it a bit difficult to distinguish different features.

    - Add a footer :)

     

    The content is still missing so i cant give u good suggestions on that. Generally, try to get some air between content and use different font sizes, bolds and italics as much as u can to tell the user what they really need to read.

    Thank you, this site has great C&C unlike other forums.

    Yes, I know the header sucks, but I had no idea for a stock image.

  9. Well in that case, he didn't answer your question.  Read up on include in the php manual.

    yeah i noticed when it didn't work.

    do you have any idea?

     

    Just what he said ;) You need to use the include function.

     

    include('left_side.php');
    

     

    There's more in the PHP manual about other things you might find useful.

    thank you so much!!! solved btw

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