Jump to content

bpops

Members
  • Posts

    232
  • Joined

  • Last visited

    Never

Everything posted by bpops

  1. Found another site that has one, though I think this one might be flash: https://shop.digg.com/
  2. I am interested in making a website that has a 'slideshow' akin to what you see on the main pages at http://www.gamespot.com or http://www.gog.com Essentially, it's a large div with ~5 different images that cycle. The user may also select which image to see by pressing small buttons at the bottom, or click the image to be directed to a particular page. I'm not even sure what this is called, let alone know where to find a tutorial. If anyone can direct me to a tutorial, or a free-to-use script that does this, thanks in advance!
  3. Thank you guys for the helpful replies. I'm going to take a look at the free spell-checker and online word lists tonight
  4. I'm looking for a free English dictionary that might be ready to go (or could be parsed) for entry into a MySQL database. This might be used, for example, to spell check entries on a website, or create a website like dictionary.com Thanks in advance!
  5. I'm posting this in the MySQL forums, because my guess is the cause of this lies in MySQL security, but perhaps you all can direct me to another cause. For the past several months, my site keeps getting hacked. I originally had an old PHPbb forum on it. I completely removed out of fear this was the cause. More recently, my host suspended my account saying that the mysql server was being overloaded (impossible with my small userbase). At this time, I had the latest version of phpbb. I totally removed it too out of fear this was the root. But today I'm hacked again! I know exactly what happens when I'm hacked, I get iframes put into my html code linking to known malware site, ffshrie. Now, how could someone possibly be changing my php files? Wouldn't they have to have ftp access? I have changed my password many times. Could this be done through MySQL somehow? Any help is appreciated!
  6. I hope I'm placing this topic in the right forum, but none of them seemed to apply very well to my question. I'm interested in making my site come up with all its sections and even a search tool when its the first result in Google. As an example of what I mean, Google 'Microsoft'. You'll see 8 sections listed below it, and a search bar. I had thought that this was done using site maps (http://www.sitemaps.org/protocol.php), but I've made one of these (and waited a couple of months), but it still does not work. Anyone know how to do this?
  7. Thanks, wildteen. I had played with that line-height a bit and noted changes, but I'm confused as to how the line-height of 2.5em is set exactly. If lineheight on <li> is 2.5em, and the padding on <a> is 0.5em, then wouldn't <a> be 2.0em tall? Then there's 0.5 em leftover... but then setting <li> to 2.0 makes the <a> larger than <li>. Is there a better explanation of this?
  8. Thanks for the reply dropfaith. The second margin declaration in ul#navigation is a remnant of an earlier code. Just ignore it, sorry about that. The other margin and padding lines you pointed to are not the problem as far as I can tell. The margin in ul#navigation li simply spaces the links out, and if the padding on the 'li a's can be changed to work, I don't know how to do it. If anyone else has any ideas, please let me know. It's made the more frustrating since the example site works, but I can't even get their code to work!
  9. I'm trying to create a 'simple' navigation bar similar to the at the top of the page here: http://www.monstersandcritics.com/ For some reason, however, when I attempt this, I get a padding that shows up on the top and bottom of the <a>'s. For example, and the 'selected' tab, which is white, (or above a tab when hovered over), gray is visible both at the top and bottom. http://www.b-pops.com/test/ I've tried everything I can think of, including copying the necessary code from the example site but I still get this padding issue. Any help is much appreciated. The code is below. HTML: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Test</title> <link rel="stylesheet" type="text/css" href="style.css" /> </head> <body> <div id="wrapper"> <ul id="navigation"> <li><a href="">Link #1</a></li> <li><a href="">Link #2</a></li> <li><a href="">Link #3</a></li> <li class="selected"><a href="">Link #4</a></li> <li><a href="">Link #5</a></li> <li><a href="">Link #6</a></li> <li><a href="">Link #7</a></li> <li><a href="">Link #8</a></li> </ul> </div> </body> </html> CSS: html{ font-size:100%; } body { text-align: center; margin: 0 auto; margin-bottom: 10px; background: #fff; font-family: Arial, sans-serif; font-size: 0.8em; color: #3f3f3f; } a { color: #000; text-decoration: none; font-weight: bold; } a:hover{ text-decoration: underline; } img{ border: 0px; margin: 0; } #wrapper{ width: 994px; padding: 0; margin: 0 auto; position: relative; } ul#navigation{ clear: both; background: #e6e6e6; padding: 0px; margin: 20px 0 0 0; margin-bottom: 15px; border-top: 1px solid #666; list-style: none; text-align: center; font-family: Arial, sans-serif; } ul#navigation li{ display: inline; line-height: 2.5em; margin: 0 5px 0 5px; padding: 0px; } ul#navigation li a{ padding: 0.5em 1em 0.5em 1em; text-align: center; margin: 0px; font-weight: normal; color: #666; } ul#navigation li a:hover{ background: #333; color: #fff; } ul#navigation li.selected a{ background: #fff; border: 1px solid #666; border-top: 0; border-bottom: 1px solid #fff; color: #444; } ul#navigation li.selected a:hover{ background: #fff; color: #444; }
  10. Thanks neylitalo, checking it out now!
  11. Hi, I'm looking for some free to use songs for a website project of mine. Obviously I don't want to use anything copyrighted that will get me in trouble (errm.... again). Does anyone know of a site where someone offers free midi or mp3 of original compositions? Thanks!
  12. Ok, I've come up with a solution. It's a bit messy, and I have just one problem left. array_unique() will consolidate NULLS. For example, $a[] = 'one'; $a[] = ''; $a[] = 'two'; $a[] = 'two'; $a[] = ''; will result in [0] => 'one', [1] => '', [2] => 'two' when I actually want [0] => 'one', [1] => '', [2] => 'two', [3] => ''; Anyone have an idea on how to correct for this?
  13. haku, that would only work if there was only one value which was duplicated. But I want to know how many of each value is duplicated. Currently I'm working on using array_count_values() on a separate array that references the array of key's i'm interested in. I think it will end up working, it's just messy.
  14. I have a bit of a complicated problem. I have a multidimensional array such as this: $arr[0]['x'] = 'one'; $arr[0]['y'] = 'two'; $arr[0]['z'] = 'three'; $arr[1]['x'] = 'six'; ... Now, I want to take all of the $arr[..]['y'] elements that are equal and group them. I think I could use array_unique(), however I will lose the information of how many were the same. What I want to do is have one more element $arr[0]['num'] = 1; To tell me how many were with that value of 'y' to begin with. So far the only way I've come up to do this is to go through the entire array and for every element, go back to every previous element and check for a duplicate. If it is, add one to the 'num', and delete the current record. But this will be a very slow process. Hope that's not too confusing. Any ideas?
  15. Hi all, I'm a relative beginner in Flash and Papervision 3D, but So far I've been working with adding text to a plane, and then animating the plane. Everything works great so far. Now, what I want to do is have the plane fade away to completely transparent. I'm having trouble, because I can not figure out how to change the alpha of a plane (or any 3d object). Here's what I've done: - Create a text field - Create a movie clip, add the text field to the movieclip - Create a MovieMaterial, add the movieclip to it - Create the plane with the moviematerial So Now I want to tell the movie material to start fading at some point, but since It's already been added to the plane, I can't figure it out. Thanks for the help
  16. This can very easily be done with Flash and Papervision (a free open source 3D library). I'm just starting to learn it myself, but http://www.papervision2.com has some great tutorials.
  17. Thanks ToonMariner! This was really driving me nuts, as the text is written in the source code, plus when you mouse over it, it changes to a text cursor. It's quite a trick! I'm going to read up more on this sIFR. And thanks Wuhtzu, for your response too!
  18. I really like the font style that Hulu has for their subsections. For example, see 'Clips', 'Episodes', 'List of Episodes', etc. headings here: http://www.hulu.com/family-guy I would like to use this same font style on my site, but I cannot figure out the CSS for it. I've search the sources files, but can't come up with it. It seems to me that font-family:"Lucida Grande",Helvetica,Arial,Verdana,sans-serif; font-weight: normal; font-size: 18px; color: #4d4d4d; should do the trick, but this looks nothing like it. Can anyone help out with this? I'm baffled!
  19. You could see if strtotime() might work. I don't know if it will handle that string specifically, but you could always break it up with dashes before giving it to the function. Then use date() to turn it into what you want.
  20. I'm looking for a good / lite / easy to install Site tracking script using PHP/Mysql. Any recommendations?
  21. That's a much cleaner method. I'll try this out, thanks Ken!
  22. I figured it out.. if (strpos($var,'The') === 0) checks that these are the same type, too, so while it's true that FALSE == 0, it's NOT true that FALSE ===0.. my head exploded.
  23. Only if it's "A", "The", or "An" (think the words that are ignored in general when alphabetizing something).
  24. I want to change the format of titles of books and movies automatically from things such as 'A Book' and 'The Movie' to 'Book, A' and 'Movie, The' Currently, I'm trying something like $var = 'The Movie'; if (strpos($var,'The') == 0){ $var = substr_replace($var,'',0,strlen($var)-4).', The'; } This works for 'The Movie' but if I give it anything at all, it still executs what's inside the if(). This is because if it finds The at the beginning, strpos returns 0, and if it doesn't find it at all, it still returns 0! Any ideas -- a fix for this code, or a better solution alltogether?
  25. I guess it sees the zero as NULL, and so when converting it to a string, it prints nothing. Perhaps you can typecast it to an INT before printing?
×
×
  • 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.