Jump to content

xoligy

Members
  • Posts

    232
  • Joined

  • Last visited

    Never

Everything posted by xoligy

  1. how many times do you want the user to throw the dice? at a guess just change the value and experiment
  2. i dont think you can have 180 minutes, i think it would have to be -10800 which is 180minutes
  3. 65k is still too much if you ask me for a profile which is what your asking for... for a profile 500max is all thats needed in my presonal opinion.
  4. nps did you use to play a game called duels.com btw? know this is off topic but name rings a bell thats all
  5. not for you ispeed i just did a character count on something i wrote and it came to 1543 for a profile the max needed is just 500 this is what i wrote for a project i was working on: site i used: http://www.javascriptkit.com/script/script2/charcount.shtml
  6. you really need to learn more about php and the dtabase before posting if i be honest i have a character count of 1543 and the db is set to 255 varchar! 1million is stupid btw! limit should be 500max
  7. Yes i see that now yesterday i was really tired lol. I was going to write back earlier but went the shop instead, and thinking about it i think my way would be better as its going to keep the db more compact say the player gets 6 awards in total over x time thats 6 inserts with 6 records my way its just 1 record for the whole thing this is my result: id - username - award1 - award2 - award3 - award4 - award5 - award6 1 - xoligy - 3 -0 -1 - 0- 1 - 1 this would be yours id - award - count (id is username in this) 1 1 3 1 2 1 1 5 1 1 6 1 to me mine seems simpler and easier to understand lol
  8. I would of thought the timeout would of done it but maybe i am wrong. if i exeted a page at 9:30pm the time out is 5mins i return at 9:45pm my last session has expired there for i would of thought i need to re-login if there isn't a time out then cause the session restarts no? when i say exit i mean close the browser but like i said i maybe and probably am wrong haha
  9. time out if user is inactive for x amount of time?
  10. hmm... going to have to think about this more tomorrow im tired now. but the way i was thinking was just one table with all the info in it for awards then i would query just the userid/name which would return the rewards for that user, the way your suggesting i would need to do a union or join yes? im not that smart lol ive done one of them so far and i only got that working by changing the query from "=" to ">" like i said i'll think about it more when im not as tired and have a smarter head on me lol
  11. When i get home i'll have a better look at everything i would only need the two tables if i did it your way as i already have the user details setup its just the awards that needs doing sorry i didnt mention that
  12. I dont think there will be anymore anytime soon just depends on what "other" ideas i can think of lol if you have a suggestion please say as all feedback is always appreciated!
  13. Ok im going to try and code an awards page and im working on the mysql table for now but im unsure of the best way to do it. The way that im thinking of at the moment us as follows: id - username - sup1 - sup2 - sup3 - fre1 - fre2 - fre3 - kil1 - kil2 - kil3 where 1-3 are ranks 1st to 3rd so if playerA win sup1 and kil1 he gets a 1 in them boxes if at a later date he wins sup1 and then kil3 sup 1 would be 2 and kil1&3 would be 1 Would you say thats the best way to do it? or can you think of another?
  14. Anyone got any other suggestions? I was thinking of a word filter that blocks off signup.php?= and register.php?= but i wouldnt know how to add a wild card after that lol
  15. Thanks dave seems to of done the trick
  16. maybe there are ways around it if you know the name of the session i dunno lol i just like the fact if they try and view it they get a nice message
  17. caching dont really bother me, why would you want to? a little more security? imagine you spend hrs changing a layout to make it more personal then someone comes along and in 2 seconds copies the work you spent hours doing so they can have a design more or less the same only things they have possibly changed? the icons kinda sucks lol
  18. Yes it possible i found some code on the internet that interested me which was protecting the css file as a php file here is the site infact http://www.n1studios.net/tutorials/php/css-file-protection.html
  19. ok ive just decided to check the bbcode i added to a premade forum on a game and noticed two small issues that i need a hand fixing which are as follows: when a person types the link works but it tries to run from the directory that the game is in which brings up a not found page lol the next is if i type the link with http:// the link come out as follows www.google.co.uk [/ url] anyone know how i would fix these issues? function replace(txt){ $txt = str_replace("[b]", "<b>", $txt); $txt = str_replace("[/b]", "</b>", $txt); $txt = str_replace("[i]", "<i>", $txt); $txt = str_replace("[/i]", "</i>", $txt); $txt = str_replace("[u]", "<u>", $txt); $txt = str_replace("[/u]", "</u>", $txt); $txt = preg_replace("#\[color=(.+?)\](.+?)\[/color\]#is","<font color=\"\\1\">\\2</font>",$txt); // Set up the parameters for a URL search string // $URLSearchString = " a-zA-Z0-9\:\/\-\?\&\.\=\_\~\#\'"; // Set up the parameters for a MAIL search string // $MAILSearchString = $URLSearchString . " a-zA-Z0-9\.@"; // URL string // $txt = preg_replace("/\[url\]([$URLSearchString]*)\[\/url\]/", '<a href="$1" target="_blank">$1</a>', $txt); // Mail string // $txt = preg_replace("(\[mail\]([$MAILSearchString]*)\[/mail\])", '<a href="mailto:$1">$1</a>', $txt); // end // return $txt; }
  20. As PFMaBiSmAd said its so easy to get a new ip these days but its also easy to ge a new email address! There isnt really much you can do to block a person from coming to your site, infact i got completely ip banned from a site because i called the admin a lier when they said "they" had coded a script and i knew it to be false 2 secods later i had a new account and i sent the admin an email this of cause was after: Sever ip ban Account ban
  21. Charisma seems like a stupid one to me should either be speed, hp or intelligence Speed is still as charisma but makes more sense imo hp is health points Intelligence could be an added bonus to do a crit hit i would say have a look at a game called duels.com but i know its changed alot since i played it back in jan (was enjoyable back then)
  22. Yes your way stops robots i said people as in a person. So if i posted: "hey come join this site! www.phpfreaks.com/ref?=xoligy" when you clicked the link a few things could happen. 1. your sent to the link (no ref) 2. you get an error page 3. you get redirected to something else and didnt i say stop robots in my post above yours?
  23. @ranjavs - i think you have the wrong idea about what im on about, from what i have quickly scanned through in text your idea stops robots??? @waynewex - idea is kind of what im looking for but im sure there is a better way tbh i swear ive seen it on forums... Here is what i know, i know on some forums your able to make a llink run though a proxy so say the link is www.phpfreaks.com it would now run as www.proxy.com?=www.phpfreaks.com (or whatever it is). What i would like to do is remove or replace the text after the www.whatever.com so in this case www.whatever.com/ref?=poster to either www.whatever.com or www.whatever.com/blocked or www.whatever.com/******** I was thiking maybe a word filter on things? but im sure there is a better way :/
  24. Just wondering how woud you block all referal/signup links for example someone comes ioto my site and says "Come join this site at www.whatever.com/ref=?whatever" or signup.php how would i go about blocking them out? I mean i dont mind people posting up a website i just hate it when people say "Refer me!" lol. I dont mind if it just blocks off the end or the whole link but like i said i would like users still be able to post links ???
  25. Thanks mate and sorry for bugging you on msn
×
×
  • 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.