Friday, December 20, 2013

Happy holidays! :)

I'm already feeling the holiday vibe, so can't concentrate on writing up a post right now that would be more helpful than this one, so let me just wish you all the very best for the holidays! ;)

Saturday, November 16, 2013

Widosub.com redesigned

This is just a quick one, again, on that, if you haven't realized until now, I redesigned widosub's website, widosub.com'. Enjoy! ;)

Monday, October 14, 2013

Get rid if annoying captcha!

If you followed this blog for a long time, you might have seen my post about introducing reCAPTCHA (Added reCAPTCHA to webeno contact forms). Let me tell you something: you don't need any sort of captcha trick at all in order to prevent SPAM! And believe me when I tell you this as I have this new way setup and working perfectly, and have received 0 automated SPAM through my forms since its introduction!

Here is what I did:

Saturday, September 14, 2013

Prevent streching images in galleria

Here's another quickie: if you're using galleria and your pictures get stretched by it (you may be using an unusual aspect ratio), here's how you can correct that error (assuming your 'galleria' is actually called 'galleria' and you want to have it 662px wide - obviously you can change these easily):

Thursday, August 22, 2013

Prevent form reload (login, shopping cart... etc).

Today I was looking through my draft posts and saw this one about preventing form reload, and this is the note I took at the time: "set session variable to empty at form load, set it to something at successful submit, if session variable set when submit clicked, throw error" - well, yes, that was the first thought about it I found on the net, however, after I continued to look, I found that there is a better, more efficient way to do this:

Thursday, July 25, 2013

Mentions in Blogger

Guess what, you can do this too in Blogger, not only in facebook: http://support.google.com/blogger/bin/answer.py?hl=en&answer=2884006&iph=2893014.

Is it so obvious that I'm in holiday mode right now...? :)

Monday, June 17, 2013

Dynamic copyright notice to always display the current year

Another quickie, but it will be very helpful in making sure you won't seem to have forgotten about another important detail: Always Display the Current Year in your © Copyright Notice.

Wednesday, May 22, 2013

Getting rid of flashing white page on your website

Today it's going to be a quick one, and I actually don't have a link this time, I just remember I had to deal with a flashing white page appearing for a split second on a black background website that obviously didn't look very good. Reading through a couple of articles, I learned that the cause of the issue is that I have used javascript on my website but the script itself was in the header. This could be anything, even your Google Analytics code. The solution:

Sunday, April 21, 2013

Polish and Hungarian to HTML character converter

As some of you may already know, I'm maintaining www.lengyel13.hu, a website that has mixed, Polish and Hungarian text. Both of these languages use special characters and as such, when you add them to a website, you will have to use their ASCII equivalent in your HTML code, otherwise some browsers might not interpret them correctly. For long time I have done this change to the original text manually in HTML using the find and replace function of my HTML editor, however this took a considerate amount of my valuable time, and I was sure there has to be another way, so I came up with this idea: why don't I create a Polish and Hungarian to HTML character converter myself?

Sunday, March 17, 2013

How to stop Blogger from redirecting to local domain extensions

Ok, just a quick one today. I realised Blogger is now redirecting to local domain extensions according to the location of the visitor (ie. .co.uk for the UK instead of .com). The problem with this for me was that I needed redirections to my own blog in the code that could not be made dynamic that way, so I had to look for a way to make Blogger always redirect to the .com domain extension.

Sunday, February 17, 2013

Even or odd number validation with PHP

The other day, while I was writing up some PHP code, I ran into a really cool way of identifying if a number is even or odd (refer to the link further down below). I needed it as I looped the creation of a couple of divs and wanted the odd numbered ones to be floated left, the evens to the right.

Thursday, January 17, 2013

Two new website designs - done!

They've both been ready for a while now, just didn't take the time to post about them, but hey, I feel this it the perfect time for it, right? ;)

One of them was created for a good friend, another photographer, just about to start opening her wings in this beautiful profession: