www.supercars-for-sale.com
A little while ago, I added manufacturer profile pages, but these were only linked to from the "profiles" navigation link. I have now added automatic hotlinks on each RSS post
It works like this,: as a new RSS post is created, a custom field called profile_page is set with whatever the correct profile page is for that feed. Eg "Audi" In the main-index template, there is a piece of php that uses the custom field to build a link to the profile page.
So an Audi post has a link that says "Click here for the Audi profile page..".
If there's no value set, the link doesn't appear. Neat.
The profile pages now feature related ebay listings via the newly-installed Wordbay plugin. No, not the one from wordpress.org. That's obsolete. This is the new one, available only to members of thewordbay.com
(I am an ACTIVE member of thewordbay.com forum..)
Showing posts with label php. Show all posts
Showing posts with label php. Show all posts
Thursday, 17 February 2011
Wednesday, 2 February 2011
New-Style Posts
I've been experimenting with the post styles on some of the sites.
(I got the idea from www.johnfoxxandthemaths.com)
The idea is that each post has the Category (or tag) as a prefix.
For example, a "news" item would be "News - The world ends tomorrow"
My best example of this on www.nervejam.com. I've used a different class to highlight the Prefix. Looks really good. It became necessary, as so many posts were being syndicated from the OMD site, without mentioning OMD. Well they do now!
I've done something similar on www.synteknik.com, but as this is a more minimal theme, I've left the styling alone.
Best of all, it's really easy. In it's simplest form, it's a copy-and-paste job. Copy the category bit, and paste it into the line that displays the title.
I've now done it with three different themes. And one of those is a weird one..
Simples.
(I got the idea from www.johnfoxxandthemaths.com)
The idea is that each post has the Category (or tag) as a prefix.
For example, a "news" item would be "News - The world ends tomorrow"
My best example of this on www.nervejam.com. I've used a different class to highlight the Prefix. Looks really good. It became necessary, as so many posts were being syndicated from the OMD site, without mentioning OMD. Well they do now!
I've done something similar on www.synteknik.com, but as this is a more minimal theme, I've left the styling alone.
Best of all, it's really easy. In it's simplest form, it's a copy-and-paste job. Copy the category bit, and paste it into the line that displays the title.
I've now done it with three different themes. And one of those is a weird one..
Simples.
Wednesday, 24 November 2010
Multi-Site Domain Monitoring with Database and E-mail warnings.
I run several websites, across several different webhosts. Some of which are a LOT flaky (000webhost,x10hosting). The ping times for these sites can be appalling.
I wanted to know HOW appalling.
So I have written a system from scratch, using php and mysql.
The names of the domains to check are kept in a database table, which the script then processes. All it does is "ping" each server in turn, and save the results in another table, datestamped. If a domain doesn't respond, it e-mails me, and tells me which one.
The script is installed on one of my paid hosting sites, and is being run hourly as a cron job via utopia cron in wordpress. Although it would work just fine as a proper cron job..
I will be building a table of response times (and downtime) for the free hosting services I use.
How long before they block my pings?
It's just occurred to me that I could install this on all my sites, and have them all monitor each other.. Hmm..
I wanted to know HOW appalling.
So I have written a system from scratch, using php and mysql.
The names of the domains to check are kept in a database table, which the script then processes. All it does is "ping" each server in turn, and save the results in another table, datestamped. If a domain doesn't respond, it e-mails me, and tells me which one.
The script is installed on one of my paid hosting sites, and is being run hourly as a cron job via utopia cron in wordpress. Although it would work just fine as a proper cron job..
I will be building a table of response times (and downtime) for the free hosting services I use.
How long before they block my pings?
It's just occurred to me that I could install this on all my sites, and have them all monitor each other.. Hmm..
Subscribe to:
Posts (Atom)