Jump to content
xisto Community

HmmZ

Members
  • Content Count

    365
  • Joined

  • Last visited

Posts posted by HmmZ


  1. Posted Image

     

    Properties

    Dimension: 728*90 pixels

    Size: 32.3 KB (33072 bytes)

    Design: Clean and Simple

    Animated: Yes

    Author: HmmZ

     

    Own Comments

    I need something to put at the left (the light blue area), any suggestions?

     

    and of course feedback/comments/suggestions and critisism always appreciated!

     

    (I already have a new idea, wich will change this ad a bit, so come check it out when it's done! :P)


  2. Posted Image

     

    animated too and significantly reduced in size :P

     

    how is it?:P

     

    My own comment would be that i made the self-made leg a bit too big..but i'm pretty preoud of the rest, the foggy ambience gives it the taste i wanted it to give, maybe the gridded background (not the borders) is a bit overdone..

    and now your comments! :(

     

    and just for the heck of it..heres the render i used (yes it's a large and large-sized image):

    render


  3. Well, i didn't save it or anything so ill have to start completely over..here goes the 'short' version :P

     

    Step 1: Connect, login and authenticate

    Of course, before you start authenticating a user you need a login form that ultimately suits the authentication process, and a config file that sets up a connection to your mysql database and the therein situated usertable, those are a basic thing but do the trick and are self-explanatory:

     

    config.php

    <?$server = "host";$database = "database name";$db_user = "db username";$db_pass = "db password";$table = "usertable";?>

    logform.php

    <form action="login.php" method="post">Username: <input type="text" name="username" size="15">Password: <input type="password" name="password" size="15"><input type="submit" value="Log In"></form>

    Then you need to create the login.php, wich basically is your authentication page, ill explain everything after the code...:

     

    login.php

    <?ob_start();include("config.php");// connect to the mysql server$link = mysql_connect($server, $db_user, $db_pass)or die ("Could not connect to server..");// select the databasemysql_select_db($database)or die ("Could not select database");$match = "select id from $table where username = '".$_POST['username']."'and password = '".$_POST['password']."';";$qry = mysql_query($match)or die ("Could not match data because ".mysql_error());$num_rows = mysql_num_rows($qry);if ($num_rows <= 0) {echo "Sorry, there is no username $username with the specified password.<br>";echo "<a href=log_form.php>Try again</a>";exit;} else {setcookie("loggedin", "TRUE", time()+(900 * 1));setcookie("username", "$username");echo "You are now logged in!<br>";echo "Continue to the <a href=members.php>Members</a> area.";}ob_end_flush();?>
    allright,

    ob_flush() is a function used in php to send the output of the content, known as the output buffer, in this script, it basically sends the output of the authentication to the database, following a full check of the send data.

     

    then the script includes config.php, wich is the file used to connect to the server,database and ultimately the table.

     

    $link is the variable that actually connects to the database using variables assigned in config.php.

     

    then you have to select the database where the usertable is situated following the query to 'get' the username and password inserted in the login fields, then it checks if there's a match, if so, it gives the user the link to the members area, if not, it displays a login error.

     

    with a successful login it also sets 2 cookies, one for the successful login and 1 for the user itself, within the usercookie, it also sets the variable $username, if you now anywhere wanna display the users username, you don't have to assign a whole new variable, all you need is $username, wich basically displays the username used with the login.

     

     

    Step 1: members area code

    We've gone through the whole login and authentication process, but we of course need something on each members page that recognizes and validates the user, this small code checks if the cookie is valid and disconnects or connects (continued)the user if valid or invalid:

    <?if (!isset($_COOKIE['loggedin'])) die("You are disconnected!  <a href=\"log_form.php\">Click here</a>"); $username = $HTTP_COOKIE_VARS["username"]; echo "You are connected! Ť $username ť";?>

    Put that small piece of code at the top of every members page to secure your members pages.

     

    Thats about it, Hope this helps..

    and NO dooga, this is not ripped or anything so don't accuse me again, ive never ripped before and i like to keep it that way..


  4. no...sorry..some damn mod (Dooga) insinuated i copied the complete tutorial. I've made several tutorials now and always had the consent of the mods, that they pleed me guilty to plagiarizing is an agressive insult towards me, so forget the tutorial, if mods don't appreciate contributions, then fine.


  5. Sorry for the double post, i didnt know what to do with "numbers-only textbox", googled and the only possible way is javascript:

    <script language="javascript" type="text/javascript"><!--function intOnly(i) {	if(i.value.length>0) {  i.value = i.value.replace(/[^\d]+/g, ''); 	}}//--></script>Integer Only Textbox:<br><input type="text" onChange="intOnly(this);" onKeyUp="intOnly(this);" onKeyPress="intOnly(this);">
    Source: Evoluted.net

  6. well i think the following could work:

    <textarea name=$textarea cols='10' rows='30'></textarea>$textarea=htmlspecialchars($textarea,ENT_QUOTES);$textarea=StrReplace($textarea,'<','>');$textarea=StripSlashes($textarea);

    That kind of stuff is normally used for SQL Injection prevention, but it should strip all the < and >, wich are the characters needed to get html going..

  7. you mean like with ratings? It's all done through if() statements, if you want to put an if() on a value (for example with the ratings), it's something like this:

    if($rating['X'] { }

    wich means that if the variable $rating gets the property value of X (NONE-10) it will whatever you specify.

    Hope that helps

  8. Sorry for the non-working script :P

     

    <form method=post action='submit.php'>$user=$_SESSION['username']//the session name of $user (in brackets) has to correspond with the $_SESSION[''] you//are using for your user(login)$userid=mysql_query("SELECT userid from usertable where username='$user'")//adjust tablename to correspond with your usertableYour comment: <input type='textarea' name='comment' cols='30' rows='10'>Your rating: <select name='rating'><option value='0'>NONE</option><option value='10'>10</option><option value='9'>9</option><option value='8'>8</option><option value='7'>7</option><option value='6'>6</option><option value='5'>5</option><option value='4'>4</option><option value='3'>3</option><option value='2'>2</option><option value='1'>1</option></select><input type='hidden' name='userid' value=$userid><input type=submit value=submit name='go'>

    then just make a new page called submit.php

    for this page you need to insert a field in your 'comment/rating' table with something like author

    <?php$comment=$_POST['comment'];$rating=$_POST['rating'];$author=$_GET['userid'];if(!$user || !$userid){die("A problem occured when connecting to the database");if(empty($comment) {echo "Please write your comment";}if($rating==0){echo "Please give a rating";}} else {mysql_query("INSERT INTO commenttable VALUES('$comment','$rating','$author')") or die("A problem occured when trying to post your comment");}

    Hope this helps..

  9. well first, you need to connect to mysql and make your way to your DB

    $conn=mysql_connect('localhost','username','password');$db=mysql_select_db("dbname",$conn);if(!conn){die("could not connect to server.."); }if(!db){die("could not connect to database.."); }

    then make a form code and complete your script:
    <form method=post action='thispage.php?insert=yes'>insert into table: <input type='text' name='insert' size=30><input type=submit value=submit name='go'>$insert=$_GET['insert'];if($insert=yes){ mysql_query("INSERT field into table VALUES('')"); }

    it should be something similar to that..

  10. outer space in this context means out of our little galaxy, called the Milky Way galaxy.It sounds terrific to see such a development, but if it takes 25 years for a spaceship to reach the end of our galaxy....o my :D.Radioisotopes, sounds like they are actually alot further then they're interpreting. I hope they will get some new good developments on space-engines and aircraft, although we won't be seeing much of the developments (it will take quite some years before they actually make some visual improvement) i do hope they keep trying and 'go where noone has gone before'.I've always been intrigues by outer space, the beauty of 'the skyline of outer space' just speaks to people, and of course the question 'is there more intelligent life?' always stands out.


  11. Sounds like a great development in the medical scenes. The reason why it has not been on the news yet is because the scientists probablywant to do many more intensive tests to proof it works, on just 1 person is just not enough to be called 'cure for cancer'.and Cammy, i think it's very wrong from you to say that they are stacking up the cure because they are making lots of money out of it, the scientist that was responsible for this possible cure had to make alot of effort to achieve this cure with his team, and it could earn him some awards, making money from something that you know many, many people will be happy with, just sounds like an act of brutal genocide.


  12. Hello and welcome to a great community Gimli.It's pretty easy to get your credits up, just post in the forums and they'll come faster then you think. If you got any programming knowledge, you can help people in the programming languages board, if you got any graphical experience (such as with photoshop) you can post signatures and more in the appropiate boards.Or if you just wanna talk in general, about free stuff, about moneymaking on the net, games or even way other things, the appropiate boards exist :DAnd if you need help with your website you can post in the website discussion board, there are lots of people willing to help you, such as myself. :D

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