• hi,
    is there a plugin or something for wordpress like Arcade for php-nuke? that keeps the high scores of flash games?
    i want to put neave snake and asteroids on my blog… i’ve searched a few hours about how to keep the high scores but i didn’t find anything
    please help me! ??
    thanks!

Viewing 12 replies - 16 through 27 (of 27 total)
  • Thread Starter aksd

    (@aksd)

    that’s what i was afraid of..

    Thread Starter aksd

    (@aksd)

    i hate doing this, but i guess i’ll have to give up.. ?? there’s no way i’ll find the original games_score.php

    Moderator Samuel Wood (Otto)

    (@otto42)

    www.ads-software.com Admin

    You don’t need the original games_score.php. If you would get a book on PHP and read it, you would have the answers to your questions.

    Seriously, even the most basic PHP knowledge would tell you exactly how to do what you are trying to do.

    Thread Starter aksd

    (@aksd)

    ok, thanks

    Thread Starter aksd

    (@aksd)

    i quit

    Wow whooami and otto…

    You guys are pretty harsh. No need to be rough on him, he is obviously trying to learn. Your telling me that neither of you have ever been helped before? And what does his age have to do with anything? I know some 18 year olds that can do some amazing stuff with websites.

    What happened to this forum being about helping each other?

    If your not going to help. Don’t Post!!

    Jerks…

    aksd, I’m sorry that this is all of the information (if you can even call it that) that you got from anyone. Unfortunately, I can’t help you with your PHP issue. But don’t give up. I have learned incredible things just reading forums and building my own websites. Good Luck!

    Thread Starter aksd

    (@aksd)

    THANKS A LOT, Foreel! the world needs more people like you ??
    i didn’t give up
    i finally did it, the scores are stored in the database, and displayed in a php

    Let’s see :>

    Wow whooami and otto… blah blah blah …

    lol, you registered to say that?

    That tells me a lot.

    Thread Starter aksd

    (@aksd)

    https://amsite.z1.ro/?page_id=45
    this is the page with the games

    lol, you registered to say that?

    That tells me a lot.

    I’ll happily register to post this: Sorry whooami but you should probably stay away from these kind of posts and think of how you are spending your time. Don’t post if you are not going to help, aksd is apparently inclined to learn.

    I whole-heartedly agree with Foreel’s opinions, remembering how forum posts helped me understand the mysteries of dynamically changing webpages named xhtml, asp, php or had cgi-bin in the path name. Sure I was 13 not 18 but anyway.

    akds: Here is a long list of plugins for different CMSs. The one for Joomla has 180 high-score saving enabled games. Use Joomle for your website or learn from the source code.

    I just sent some upgrades to the Joomla component adding many features – hopefully the authors will include them in the next version.

    aksd – your page is really slow right now. 2min+ to access.

    Why not share the source code you figured out for others like you to learn from?

    Thread Starter aksd

    (@aksd)

    thanks, motin! ??
    this is the code i put in games_score.php

    <?
    require('config.php');
    
    $game = stripslashes($_POST['game']);
    $name = stripslashes($_POST['name']);
    $score = stripslashes($_POST['score']);
    
    $databaseLink = mysql_connect($databaseHost, $databaseUser, $databasePassword);
    mysql_select_db($databaseName, $databaseLink);
    
    $game = addslashes($game);
    $name = addslashes($name);
    $score = addslashes($score);
    
    $query = "INSERT INTO $databaseTableName (game, name, score, <code>date</code>) VALUES('$game', '$name', '$score', NOW())";
    $result = mysql_query($query, $databaseLink);
    ?>success=true

    this is the code i added in the last frame of the game, the one with the scores table :

    getURL("/games/scores.php", "_blank");
    gotoAndPlay(1);

    and this is the code from the scores.php :

    <?
    //connect to mysql
    //change user and password to your mySQL name and password
    mysql_connect("mysql_host","db_user","db_pass"); 
    
    //select which database you want to edit
    mysql_select_db("db_name"); 
    
    //select the table
    $result = mysql_query("SELECT * FROM <code>highscores</code> WHERE game  = 'snake3' && score !=0 order by score desc limit 0, 10");
    
    echo "<table border='1'>
    <tr>
    <th>Name</th>
    <th>Score</th>
    </tr>";
    while($row = mysql_fetch_array($result))
      {
      echo "<tr>";
      echo "<td>" . $row['name'] . "</td>";
      echo "<td>" . $row['score'] . "</td>";
      echo "</tr>";
      }
    echo "</table>";
    ?>

Viewing 12 replies - 16 through 27 (of 27 total)
  • The topic ‘Flash Games with high scores database like Arcade’ is closed to new replies.