Jump to content
xisto Community

Unholy Prayer

Members
  • Content Count

    38
  • Joined

  • Last visited

Posts posted by Unholy Prayer


  1. I bought a hosting account with Xisto - Web Hosting a couple of days ago and uploaded my completed clan website. It was working fine until now, the site won't load in neither firefox nor internet explorer. cpanel also won't load. i was wondering if there was a problem with my account or if the servers are down or something.


  2. My sister is a vegetarian and it kind of pisses me off. She's always like "they're just poor innocent animals and they can't defend themselves". It doesn't matter. It's called survival of the fittest. If the animals were stronger than us, I'm sure they'd do the same thing. It always makes me mad because if my family goes out for dinner, we have to find a place that has food that she can eat(and there aren't many in the small town that I live in). She's the kind of vegetarian that doesn't eat eggs or cheese because they come from an animal. I hate it when people are vegetarians because they animals are innocent. I could understand if you don't like the taste of meat or if it's too fattening, but come on.


  3. I can't figure out why this horizontal list isnt working. Underneath my banner is supposed to be a green gradient bar with a list of links in the center of the page. The links are all the way to the left and are really small. The banner is also overlapping the list for some reason. This is my current layout(don't worry, I'm not trying to advertise).

    http://forums.xisto.com/no_longer_exists/

    This is my CSS file
    http://forums.xisto.com/no_longer_exists/

    Thanks in advance for any help.


  4. I've been working with HTML for about two and a half years now. I pretty much know all there is to know about the language, but I still have trouble with code structure and such. I don't have photoshop so I can't really design my templates efficiently, I have to do it all from scratch with trial and error. I make all my graphics with The Gimp which makes template designing even harder. I remember I asked my one friend if he knew html and if he could possibly help me with my coding and he said "Who's that?"... Lol.


  5. I love Halo 1 but I think Halo 2 ruined the series. With all the modders and glitchers and such, it really takes the fun out of the game. I also don't like it when people *BLEEP* all the good weapons and just drive around in the warthog the whole game. There are so many bad things about the Halo 2 multiplayer that just ruined the whole game. The modders and glitchers are the reason I quit Halo 2 online. I don't mind if they do it in a custom game for fun but it's just dumb to do it online and defeats the purpose of the game.


  6. I like this girl at my school, but I'm not sure if I should ask her out. I'm 18 and she's 16 and i'm like 3 times her size cuz she's small and i'm kinda big so it would be kind of weird. I think she likes me but I'm not sure yet. We don't really talk much outside of school but she talks to me everyday in the hallway and sometimes makes an effort to yell across the school parking lot to say high to me. I'm just wondering how I should go about maybe asking her out or if I should or not... she was in my German 2 class last semester and we always talked and flirted but I'm not sure if she was serious or not. Any advice?


  7. Ever wonder how to make those stylish forms you see everywhere? Well now it's your change to learn. This short tutorial will show you how to do exactly that.

     

    Here is a bit of css to spice up the form. I have included comments to explain what classes will change what in the forms.

     

    <style type='text/css'>.form table { background-color: #187cae;}/*The following css class will change the table cells within the .form div */.form td { background-color: #bbe0f4;		   padding: 3px;		   border: 0px;		   font-family: verdana;		   font-size: 10px;		   color: #187cae;}/*This bit of css will change the look of the text inputs */.form input { background-color: #82c3e5;			  text-align: center;			  border: 1px solid #187cae;			  font-family: verdana;			  font-size: 10px;			  color: #187cae;}/*This will change the look of the dropdown menus */.form select { background-color: #82c3e5;			  text-align: center;			  border: 1px solid #187cae;			  font-family: verdana;			  font-size: 10px;			  color: #187cae;}/*This css will change the look of the text areas */.form textarea { background-color: #82c3e5;			  text-align: center;			  border: 1px solid #187cae;			  font-family: verdana;			  font-size: 10px;			  color: #187cae;}</style>

    You can change the css to fit your website if you like. Here is the body of the html form I used.

     

    <div class='form'><table align='center' cellspacing='1' cellpadding='1' border='0'>   <tr>	 <td colspan='2' align='center'>All About You</td>	<form action='mailto:bob@yahoo.com' method='POST'>   </tr><tr>	 <td align='right'>Age: </td>	 <td align='left'><input type='text' name='age' size='30'></td>   </tr><tr>	 <td align='right'>Favorite Color: </td>	 <td align='left'><select name='color'>					  <option selected value='Blue'>Blue					  <option value='Green'>Green					  <option value='Orange'>Orange					  <option value='yellow'>Yellow					  <option value='purple'>Purple					  <option value='red'>Red					  </select></td>   </tr><tr>	 <td align='right'>What hand do you use?</td>	 <td align='left'><input type='radio' value='left' name='hand'>Left <input type='radio' value='right' name='hand'>Right</td>   </tr><tr>	 <td align='right'>Your Hobbies: </td>	 <td align='left'><textarea name='hobbies' rows='5' cols='15'></textarea></td>   </tr><tr>	 <td align='center' colspan='2'><input type='submit' name='submit' value='Submit'> <input type='reset' value='Reset'></td>		</form></tr></table></div>

    Here is a result of my form.

    Posted Image

     

    And there you have it. A simple and easy way to give your forms some style. I hope this was of use to everyone that is learning HTML.


  8. Ever wonder how to make your site one file? For example, in these forums, the posting page is index.php?act=post and so on. This tutorial will teach you how to do that. First, you'll need a text editor, and a PHP supported server. You can achieve this type of navigation by using the example below:

    <?php$action = $_GET['action'];  //Gets whatever action equals from the url.  Example:  index.php?action=news  Since action equals news, it will display whatever is in the "news" if statement.echo "<a href='index.php'>Main</a> | <a href='index.php?action=news'>News</a> | <a href='index.php?action=other'>Other</a>";  // This navigation will appear at the top of every page.if($action == ""){  //If the url is just index.php, then action is blank.  Let's echo some text.   echo "Content of the main index page.";}if($action == "news"){  //If the action equals news, then echo some more text.   echo "This is the news page of the site.";}if($action == "other"){  //If the action equals other, then echo some different text.   echo "This is some other page.";}?>

    You can also use includes to shorten your coding. After all the code is together, it can get kind of long and confusing. For example, you could use this:

    if($action == "news"){

    include('news.php'); //Includes a file called news.php

    }

    ?>

     

    And there you have it. A very simple script that you can use to make your website more organized and have less files. You don't have to do your whole site with the index page. For example, if you run a hosting site and you want the hosting plans to be hosting.php but you don't want a seperate page to apply, you can use hosting.php?action=apply.

     

    Hope this tutorial helped you guys.


  9. <?php$date = date([b]F j, o[/b]); //Displays April 25, 2007 (Assuming that is the current date)$time = date([b]g:i a[/b]);  //Displays 4:26 PM (Assuming that is the current time)echo "Welcome!  The date is $date and the time is currently $time.";?>

    You can change the date and time formats by changing the text in bold above. For a complete list of time formats, visit the link below.
    http://us2.php.net/manual/en/function.date.php

  10. To use this you must have PHP support on your server. Just use this code:

    <?php$content = "Hello, World!";$html = array('[b]', '[/b]', '[i]', '[/i]', '[u]', '[/u]');$replacements = array ('<b>', '</b>', '<i>', '</i>', '<u>', '</u>');$content = str_replace($html, $replacements, $content);?>

    This code can be very useful. It can be used for word filters to block the use of bad words on your site or for emoticons.

  11. Requirements:[li]PHP Support

    [li]MySQL Database access

    I am going to use a news program as an example.

     

    Ok, first you are going to need to connect to the database. Do so by using the code below. I have added some comments where you will need to edit to fit your server's specifications. Create a new file with notepad and call it config.php

     

    <?php

     

    //Change root to your database account's username

    $dbusername = "root";

     

    //Add your account's password in between the quotations

    $password = " ";

     

    //Add the name of the database you are using in between the quotations

    $database = " ";

     

    //This usually does not need to be changed.

    $server = "localhost";

     

    //Do not edit coding below this line.

    mysql_connect($server, $dbusername, $password) or die(mysql_error());

     

    mysql_select_db($database) or die(mysql_error());

     

    ?>

    Now we need to create a table for the data to be inserted into. Use PHPMyAdmin to create the table with the SQL feature.

     

    CREATE TABLE `news` (

    `newsID` mediumint(8) NOT NULL auto_increment, //This will automatically change everytime you post a new database record so we won't have to use an input to change it.

    `newsSubject` varchar(25) NOT NULL default '',

    `newsAuthor` varchar(20) NOT NULL default '',

    `newsMessage` varchar(200) NOT NULL default '',

    `newsDate` varchar(25) NOT NULL default '',

    PRIMARY KEY (`user_id`)

    ) TYPE=MyISAM;


    Ok, now that we've finished connecting to the database, it's time to write out the form and insertion code. Name the following file add.php

    <HTML>

    <form action="<? $_SERVER['PHP_SELF']; ?>" method="POST">

    Author: <input type='text' size='30' name='author'><br><br>

    Subject: <input type='text' size='30' name='subject'><br><br>

    Message: <textarea name='message' rows='5' cols='30'></textarea><br><br>

    Date: <input type='text' size='30' name='date'><br>br>

    <input type='submit' name='submit' value='Add News'></form>

     

    <?php

    //Include the database file

    require_once('config.php');

     

    //If the submit button is pressed

    if(isset($_POST['submit'])){

     

     

    //Turn the inputs from the form into variables for insertion

    $author = $_POST['author'];

    $subject = $_POST['subject'];

    $message = $_POST['message'];

    $date = $_POST['date'];

     

    //Begin the database query

    $insert = mysql_query("INSERT INTO news(newsAuthor,newsSubject,newsMessage,newsDate)

    values('$author', '$subject', '$message', '$date')");

     

    //Echo a message if the news was added

    echo "The news was successfully inserted into the database.";

     

    }

     

    ?>


    Now that we have the insertion code written, we have to write a code that displays the news articles. Name the following file news.php

     

    </php

    require_once('config.php');

     

    //The following bit of code will select the news and order the articles by their id, so if you post an article, the same article will show up at the top of the list.

    $query = mysql_query("SELECT * FROM news order by newsID desc");

     

    while($n=mysql_fetch_array($query)){

     

    $author=$n["newsAuthor"];

    $subject=$n["newsSubject"];

    $message=$n["message"];

    $date=$n["date"];

     

    echo "<b>$subject<br>$message<br>Posted by $author on $date";

     

    }

     

    ?>


    And there you have it, folks! A simple and easy way to create an automated news system.
×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | 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.