Jump to content
MakeWebGames

Zeggy

Members
  • Posts

    401
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by Zeggy

  1. var data = { username: $("#username").val(), password: $("#pasword").val() } $.post("page.php", data, callback_function); function callback_function(data) { //process return data here $("#output").html(data); }   There are lots of examples in the documentation...
  2. Zeggy

    GD question

    Mod rewrite?
  3. Maybe something like this?   <?php class LinkBuilder { private $links; public function __construct($links=0) { if ($links !== 0) $this->links = $links; else $this->links = array(); } public function addLink($name, $page) { if (array_key_exists($name, $this->links)) return false; $this->links[$name] = $page; return true; } public function getLink() { $args = func_get_args(); $name = $args[0]; if (!array_key_exists($name, $this->links)) return ''; $args = array_slice($args, 1); //Build your link here //Example: $link = '/' . $this->links[$name] . '/'; foreach ($args as $arg) { //Append arguments $link .= $arg . ';'; } //Calling getLink('home', $arg1, $arg2, $arg3) //Will generate a link like: // /home/arg1;arg2;arg3; //Just edit this function if you change your url structure return $link; } } //How to setup the class //Create a links array inside a 'urls' file and include it in each page $links = array(); $links['home'] = 'home'; $links['attack'] = 'attack'; $links['attack-result'] = 'attack/result'; $links['forum-home'] = 'forum'; $links['forum-new-topic'] = 'forum/new'; $linkBuilder = new LinkBuilder($links); //How to use it echo '[url="', $linkBuilder->getlink('home'), '"]Home[/url] '; //Link to /home/ $username = 'Test'; echo '[url="', $linkBuilder->getLink('attack', $username), '"]Attack ', $username, '[/url] '; //Link to /attack/Test; $forum_id = 5; $category_id = 12; echo '[url="', $linkBuilder->getLink('forum-new-topic', $forum_id, $category_id), '"]Create new topic[/url] '; // Link to /forum/new/5;12;   But you shouldn't mess around with your urls much after you've written your site... This class is more useful in being able to generate consistent urls on every page.
  4. So I suppose next week it will be at almost -9 million alexa rank, right? Jumping between millions in alexa rank is easy, all it takes is a difference of a few visitors. It's not very impressive when you compare your site to a game that's not even open.
  5. Here's what I made in C# with a_bertrand's help: http://code.google.com/p/andz/downloads/detail?name=jcc.zip It's a javascript compiler using google's closure compiler. Just paste some javascript into the left box, click compile and it will 'compile' it into the box on the right. (If nothing happens, it means your code can't be compiled - advanced compilation needs the script to meet certain requirements) Oh, and it needs an internet connection to work. I'm going to work on it a bit more to make it easier to use, but I just thought I'd show what I was able to do after following this tutorial :D
  6. Umm, I don't know what you're doing, that's not PHP. '$callglobal "global $db,$ir,$c,$userid,$h;";' gives a syntax error. Even if you have '$callglobal = "global $db,$ir,$c,$userid,$h;";', it is still just a string. There's no way you can use it to call actual php code, unless you use eval($callglobal);
  7. Maybe this will help: http://www.openjs.com/articles/ajax_xmlhttp_using_post.php
  8. Yeah, like dominion said, thanks :D I finished the first tutorial :)
  9. FTP client sounds good!
  10. I would :) I have visual studio 2008/2010 and ready to get started! :P I used c# before, but I don't know anywhere near enough to write any kind of real software.
  11. My game is hosted on google servers ;) I still don't think it can handle 10 million signups in just a few seconds. Besides, it would become very expensive for me.   Edit: btw guys, I don't think nicholas meant the 10 mil literally :P
  12. How do you register 10 million users in seconds? ._.
  13. Zeggy

    Boring RPG

    Are you sure you have an account? The game was reset very recently, and everybody needs to create their account again.
  14. Ah, yes. Somebody gave a similar answer here: http://stackoverflow.com/questions/1337152/htaccess-querystring-rewrite
  15. "I do not even mess with websites other than forums" implies that you mess with forums.
  16. Try this: RewriteRule ^page\/([0-9]+)\/\?(.+)$ /page\.php?q1=$1&$2 RewriteRule ^page\/([0-9]+)\/(.*)$ /page\.php?q1=$1   Matches: page/(int)/ => page.php?q1=(int) page/(int)/bla => page.php?q1=(int) page/(int)/?bla=bla => page.php?q1=(int)&bla=bla
  17. Zeggy

    Boring RPG

    Yep, attacking other players will be implemented soon, as will guilds, which allows players to work together. srachit: yep, I'll be trying to add stuff for players to do in between waiting for clicks and to make the game more competitive, hopefully that will make more players stay. Although, the game is best played when you are not actually playing the game - while you are doing other stuff. Sounds silly, but the idea in my mind is that somebody can be working, then every say, 10 minutes they can check their timer and click, and go right back to work. Kind of like progress quest or irc's Idle RPG, but on the web and with 1 extra step of interaction.
  18. Zeggy

    Boring RPG

    I think somebody created an account with the username demo, I'm not sure if it's meant to be a demo account. Just sign up! It's quick and easy, you don't even need an email address.
  19. Zeggy

    Boring RPG

    Hehe, thanks. Yeah, it would probably be quite easy to have a bot play the game... but that would be pretty sad for the cheater since the game is already as simple as possible :P Still, I'm wondering how I can stop it. I'm thinking I can show a captcha every x clicks, but that doesn't seem like a very user-friendly solution at the moment.
  20. Zeggy

    Boring RPG

    I have decided to promote my game a bit more, to get a bit more activity going :) Boring RPG is what I've been working on over the past few weeks. It's a simple concept - you click a button to play. That's all! http://www.boringrpg.com/ It's still in development, but a lot of the game is already functional and playable. I'd like some feedback on the overall game experience from the people who give it a go :) Thanks! And please report any bugs you find! :D
  21. What kind of url do you want to match? I don't understand why you will have a ? after the (int) part. Can you show some examples of urls you want to match and not match?
  22. What about screenshots of the in-game parts? :D
  23. It was this year. And it doesn't look like he's changed much from the responses of the other users. Edit: I only posted this because another user wanted some 'evidence'. I'm not particularly bothered about this, I made a mistake and it wasn't a lot of money.
  24. Screenshot of cablebox selling me a warez version of vbulletin: http://img507.imageshack.us/img507/9601/90847e710a884c7b9c145d2.png The original marketplace listing offered a legal license number and current vbulletin account for official updates, releases and support. I got a zip with a nulled vbulletin and a license number that he claims is legal. This guy clearly has no morals, don't ever send him any money.
  25. Zeggy

    Game Design

    I just read a nice article on the creative process, and I thought some people here might find it interesting as well. :) http://www.lostgarden.com/2010/08/visualizing-creative-process.html
×
×
  • Create New...