I was trying to fix a WordPress Post Notification plugin to include the post author in the emails subject. Instead of inserting the author name it was leaving the @@author in the subject.
A little digging around found me the solution –
In sendmail.php->post_notification_create_email(), find –
$subject = get_option('post_notification_subject');
and add a new line after that –
$subject = str_replace('@@author', $post_author, $subject);
Ref – Post Notification forum
WordPress documentation does a pretty good job of explaining the steps you have to take if you are moving your wordpress blog to a new domain.
Even after you update the guid in your WordPress database’s posts table by following the instructions there, you may find that some of the images do not show up, and the image and other links are broken.
Run this command to see if the problem is in the post contents in the WordPress database’s posts table –
select id, post_title from wp_posts where post_content like '%exampleoldsiteurl%';
(Replace exampleoldsiteurl with the old url of your blog)
If this shows posts that are using the old url, you need to replace that url in the post_content just as you did for guid –
UPDATE wp_posts SET post_content = replace(post_content, 'exampleoldsiteurl','examplenewsiteurl');
Make sure to carefully read the instructions on the WordPress Codex link above, and absolutely make certain that you have a back-up of your database before you run these sql commands on it.
Here is a visual guide to creating multiple Firefox profiles and setting them up to run like separate applications on Snow Leopard.
Creating a new Firefox profile
Open terminal and execute the following command:
This should bring up the Firefox Profile Manager –
Go ahead and create a brand new profile.
Using Automator to run the new Firefox profile as an application
Now, on to creating a proper Mac application to run Firefox with your chosen profile. Continue reading