February 2010
1 post
9 tags
Tumblr Tip: Editing those 404 pages
One of the worst things with Tumblr is that you can’t edit those 404 pages… But with some simple jQuery, now you can! Code: $(document).ready(function() { $("p:contains(The URL you requested could not be found.)").append("."); }); What it does: When the page loads, it checks to see if the Tumblr 404 text is there in the paragraph. If it it, it adds to it. If not, nothing...
Feb 28th
5 notes
March 2009
2 posts
3 tags
Creating a file and downloading it in php
Today I’ll show you how to get a user’s ip, stick it in a text file, and have the download it all without the text file being stored on your server for more than a few seconds. Step 1: Getting the I.P Address To get the ip address, we use this code: $_SERVER['REMOTE_ADDR']; So when we put it as a varible: $ip = $_SERVER['REMOTE_ADDR']; Step 2: Creating the file Now that we have...
Mar 27th
Hey
Hey, welcome to my Tumble blog. I’m working on the theme now, so please be patient
Mar 25th