scriptygoddess

Archive for the ‘Lessons learned’ Category

If you are hosted on Bluehost and you're using WordPress, you might have noticed the strange "from" address in the emails WordPress appears to be sending out. (they might look something like something@box123.bluehost.com) There is a very simple fix. The way Bluehost servers are setup, the address "wordpress@{YOURDOMAIN.COM}" needs to actually exist somehow in your [...]

Tags:

16 Dec, 2010

Download all images on a web page

Posted by: Jennifer In: How to's|Lessons learned

Once upon a time, you used to be able to download all images that were on a page using the Firefox Web Developer Toolbar addon. It's been a long time since it worked correctly. You can still download regular images on a page, but any image that is called via CSS (background images, etc.) won't [...]

07 Dec, 2010

Common Mistakes: Images not showing up in IE

Posted by: Jennifer In: Lessons learned

If you have a webpage that has an image on it – and it displays fine in Firefox, Safari, and Chrome – but in IE it's not showing up – or it's showing up with that little icon with the red "x" in it – Check to make sure the image wasn't saved in CMYK [...]

29 May, 2010

Test Credit Card Numbers

Posted by: Jennifer In: Lessons learned|shopping cart

When you are working with an online store, sometimes you need to enter a credit card number that will pass the "logic" of how the card number should be structured so that you can test the flow of your site. These card numbers are not valid for purchase, and if validated against a gateway – [...]

On a project I was working on recently, I was pulling in some css for iPhone users using PHP with the following code: <php if (strpos($_SERVER['HTTP_USER_AGENT'],"iPhone")) { ?> … CUSTOM CSS FOR IPHONE… <php } ?> This will also work for iPhones and iPod Touch: <php if (strstr($_SERVER['HTTP_USER_AGENT'],'iPhone') || strstr($_SERVER['HTTP_USER_AGENT'],'iPod')) { ?> … CUSTOM CSS… [...]

Ran into a bizarre problem today using swfobject. A lot of wasted time, but I'll give you the short story / solution. I'm not sure of what other factors played a role (the fact that the element was in a absolute positioned container, or that the immediate container to the flash element was in a [...]

07 Mar, 2005

Image as buttons (and IE issues)

Posted by: Jennifer In: Lessons learned

Oh, this one was going to drive me NUTS! I had to use images as buttons in a form. That's easy enough: <input type="image" SRC="blahButton.gif" ALT="blah" name="blah" id="blah" value="blah" /> Which works fine when simply submitting the form when there's ONE button. But on one page I had TWO buttons. The form would submit to [...]

10 Nov, 2004

ASP: Look up / translation script

Posted by: Jennifer In: Bookmarks|Lessons learned

I should create a category called "saved my ass"! This script would fall under it. I was asked to create a "look up" tool that would sort of "translate" one piece of text to another. The user would enter in the first piece of text, and then they'd be given the "value". Oh, and this [...]

05 Nov, 2004

PHP: simple logic statement

Posted by: Jennifer In: Lessons learned

I'm tired of searching for the correct syntax everytime I wan to use this line… if you're doing a simple one line "if" statement, you can use a "ternary conditional operator" – for example: echo $variable == 'value' ? 'print if true' : 'print if false';

25 Oct, 2004

Continue vs. Break (in while loops)

Posted by: Jennifer In: Lessons learned

(note to self type post) Using "continue" in the middle of a while loop will skip the current iteration and go back to the beginning of the loop (checking the while value again). Using "break" in the middle of a while loop will break the loop entirely. (no more looping) So this code <?php $i [...]


Featured Sponsors


  • Curt: If anyone comes across this with similar issues I was able to sort out the pagination issues painlessly with easyCommentsPaginate from http://www.mush
  • Christopher: Yeah, it is indeed hard to do. And something remains elusive about why the pagination never worked. I tried everything I could find. Regardless, I
  • Jennifer: Hi Christopher, always hard to bug test stuff like that remotely. Sorry those didn't help. Glad you found a solution though :)

About


Advertisements