Posted by stratosg in My Coding, Quickies
on Jan 11th, 2009 | 3 comments
Have you ever stumbled on a page that you would like to copy-paste all the links from and, darn, they were many? For instance when you get that directory listing and you want to download all the files? Well, i faced the problem these days. I wanted to copy more than 30 consequtive links from a directory listing and i thought that it’s plain stupid doing it by hand. Now, the first thing that popped into my mind was a FireFox plugin. I started looking here and there and every one of those had something i didn’t like. So, then it came to me. I would copy the page source and then use a little...
Posted by stratosg in Quickies, WP Tweaks
on Dec 10th, 2008 | 5 comments
A few days back i posted on how to create a small place on top of your posts in your theme to keep a featured post there (just like the one running here, as you can see on top of the posts). Validating my blog today against different browsers i stumbled on a serious mistake i did. On that tutorial there is a line of code saying:
<?=substr($featured->post_content, 0, 500);?> […]
That has a serious bug that’s lurking around not ready to be found at all. This line shortens the post to the first 500 characters so it will appear like an excerpt. But here is the...
Posted by stratosg in Featured Articles, Quickies, Tutorials
on Dec 8th, 2008 | 13 comments
While i am at the topic of WordPress tweaks here is another one. Since i started coding plugins, i keep encouraging people to minimize their plugin needs. They are resource hungry and may cause problems due to security issues on your blog. There are those that agree to that but say that on the other hand there are those people that are not comfortable and familiar with code and cannot do changes on their own. Thus, they need some plugins to do the job, although the task at hand could be coded easily. As i think they are right at that point, i decided to write this small article on how to get rid of the...
Posted by stratosg in Featured Articles, My Coding, Quickies, Tutorials, WP Tweaks
on Nov 28th, 2008 | 17 comments
You know i’m all for “If you can do it yourself then don’t use a plugin”. That goes, without saying, to my plugins too. So, i saw a plugin recently doing a very useful thing, cleaning up post revisions. But what is a post revision? Well, it’s a safety measure the WordPress team took since version 2.6.X to protect your writing from unfortunate circumstances that may occur. Moreover, it’s a way to have different versions of your posts. When you write you tend to delete and start over. At some point you might want to go back and see what your post looked like back then....
Posted by stratosg in Featured Articles, Quickies, Tutorials
on Nov 20th, 2008 | 5 comments
When buying a new computer you must have all noticed that, on the “My computer” properties, there is a logo and technical support information of the vendor. On the left side of the system info, on the tab labeled “General”, there is the company’s logo. On the bottom there is a button called “Support information”. Clicking on it opens a new window with all the technical info about the vendor. Maybe a few phone numbers and addresses. These kind of information are called “OEM info” (Original Equipment Manufacturer). Have you ever wondered where is that...