Jump to content

Adam

Moderators
  • Posts

    5,717
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by Adam

  1. Excellent! Mind just marking the topic as solved?
  2. The only thing I can think of is that trans() is being called before i and x are being set. Try moving: i=0.0; x=0; ... to the very top of your script, or adding it to the 'window.onload' event (Though you'd still need to declare them as globals). Adam
  3. How about forcing new registered users to read a topic before they can post? I don't think the majority of users on here - those with 30 or so posts - care all that much about the rules to be honest, but they still go on cluttering up the boards and being enough of a deal to cause threads like this. Perhaps forcing users to read a thread before they can begin posting, which outlines the basic rules and tips to better posts, would help at least reduce the number? I can't find a mod specifically for it, the closest being this. If anybody knows of one post it up! Adam
  4. I'm not massively keen personally. Think outer-glows and shadows have been a little over used... I do think though the white mouse over effect will look good if you can just get the shadows to blend better, perhaps a slightly darker gray just on the outside or something? Also I think the red image in the logo is a little too big. Also another point to make is that in my mind, your design draws attention from the content of the page! I think perhaps a stronger font would be better suited? Doesn't validate by the way... Adam
  5. I assume you mean desktop app and not web based?
  6. Need far more information than that pal! What's the table structure like at the minute? How are you entering them? How are you retrieving them? Adam
  7. Have you actually done a search for this on Google, or any search engine? http://www.google.co.uk/search?q=javascript+tr+onmouseover+change+background+color
  8. You'd be surprised what they can do... http://en.wikipedia.org/wiki/Reptilian_humanoid#David_Icke ... those crafty lizards!
  9. Try: preg_match("/http:\/\//i", $message) Adam
  10. Yeah, I don't blame you. Personally, I don't really care about it all. I'll do my bit by turning off electrical appliances I'm not using (though TBH, probably more for my own financial benefit), recycling my paper and bottles (probably because the black bin would get too full), etc.. And just ignore all this crap!
  11. I have to agree, people will pat themselves on the back for making a difference and forget about it. Does anybody know just how much fact there is in that humans are killing the planet? I mean, do websites like this, actually give us the facts, or are they just conspiracy theories? Adam
  12. Ahhh yeahh! I don't think I made sense of it first time I read it!
  13. Hah, it's okay now. Problem has been fixed using PHP.. Database is pretty damn complex so not worth trying to wrap your head around it! Cheers anyway though!
  14. Remove the quotes from around your arrays... A
  15. Have you tried.. str_replace($dirty, $clean, $row['SubCatName']) ?? Adam
  16. Ermmmm.. Okay I guess? Perhaps best if it had the username in the image as well though? To be honest though, I can't quite see where it would come in useful? Adam
  17. Do you realise the register form labels are all white, and you have a white background?? http://global-mobster.com/register.php In the actual game, the content's laid out badly! That tiny menu on the side is far too thin and the main content doesn't fill the empty space enough. You've used frames! The code is a mess - there's not even an opening HTML tag! Also the colours used certainly don't compliment each other! To be honest, there is nothing creative, striking or unique about your design - it's just 1 of a million other web-based gangster MMORPG's out there! Sorry if I'm harsh but, it's just my opinion! Adam
  18. .. Huh? It's already based on a 'command line interface' with just touches of 'graphical user interface'.
  19. I can see the attraction to this kind of personal project - something unique and interesting to code - but like a lot of people have said it's just too limited. Also you're combining the CLI and GUI in an awkward way that makes using it not very smooth! For this kind of thing I'd probably try and match *NIX commands. I use a Unix CLI at work a lot and once you're used to it's easy, definitely does speed you up. Why not keep the command history in view? User access and accounts? "VIM" style editing? Adam
  20. Oh no I don't want to use a regular expression to do it, I want to escape a variable for use in a regular expression, if you catch my drift? Like mysql_real_escape_string, but for regular expressions.. But more specifically to convert '/' to '\/'.. I was just wondering really if there was a predefined function for this. I have to get off now but I'll take a look into addcslashes() later on.. Cheers! Adam
  21. Is there a predefined function in PHP for adding backslashes in front of forward slashes? Some kind of regular expression escape function? ... Rather than: str_replace('/', '\/', $str); .. not the prettiest of code! I've done some Googlin' but can't seem to find anything! Thanks, Adam
  22. Perfect, thanks a lot! Adam
  23. Ah got it partly working now using: /\/content\/.+$/ ... but this returns "/content/" as well. "/content/" must be in the string, but I don't want to return it. I could strip out "/content/" afterward, but I'd prefer to just do this in the regular expression, if that's possible? Thanks, Adam
  24. Hey guys, got a regex problem! I'm trying to return: (...)/content/what_ever/may_be/here from a URL. At the moment I'm using: preg_match('/\/content\/[.]+$/', $url, $matches); .. but having little success! Can anyone see where I'm going wrong? At the moment just returns an empty array ??? Thanks for your help, Adam
×
×
  • 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.