Dec 31, 2009 0
Dec 15, 2009 1
Wordpress: Post Disappears When Saving a Draft
Scenario: You are writing a post and hit the save draft button. The page goes through the save process, reloads, and your title is there but the post disappeared.
Solution: When composing a post see if the HTML tab is selected or the visual tab. When this happened to me, it looked like I was in the visual editor but the HTML tab was selected and I could not access the visual tab.
Then go to your user profile in the admin panel.
- CHECK the box that asks you to disable the visual editor.
- Save/Update changes.
- UNcheck the box.
- Save/Update changes.
You should now be able to go back and compose and save a draft using the visual tab.
Sep 24, 2009 0
Google Apps: Getting Rid of “on behalf of” in Your Email
One of the great features of gmail is that it lets you send email from another account. For those who might manage multiple projects for different domains, this is one of those things that really makes life easy, allowing you to take care of all your emailing from one account.
The problem is, if you do this from your gmail account, it tacks on this message – “from info@domain.com on behalf of youraccount@gmail.com”
Getting rid of this is really simple. Go into your accounts settings and in the ’send mail as’ section, edit info on your account. Then change the sending information. If you are getting the ‘on behalf of’ it means you are sending through gmail.
Instead, send it through SMTP. Here’s what you need to put:
SMTP server: smtp.gmail.com
Username: user@yourdomain.com
and then your regular password.
That should fix it.
Jun 11, 2009 0
Automatically Display a tr.im or TinyURL Link on All Wordpress Posts
Smashing Magazine has a great hack for adding a TinyUrl to each of your blog posts:
In the functions.php file, add the following code:
[code]
function getTinyUrl($url) {
$tinyurl = file_get_contents("http://tinyurl.com/api-create.php?url=".$url);
return $tinyurl;
}
[/code]
And to single.php, add:
[code]
<?php
$turl = getTinyUrl(get_permalink($post->ID));
echo 'Tiny Url for this post: <a href="'.$turl.'">'.$turl.'</a>'
?>
[/code]
To make this compatible with tr.im instead,
[code]
function getTinyUrl($url) {
$tinyurl = file_get_contents("hxxp://api.tr.im/api/trim_simple?url=".$url);
return $tinyurl;
}
[/code]
We tried to use the tr.im functionality with this function over at MuslimMatters, but it began to time out probably due to the rate limit and the number of posts it was being inserted on. In any case, you can see the TinyUrul functioning at MuslimMatters.org.
Jun 11, 2009 0
Wordpress 2.8: Lost Visual Editor and Allowed memory size of 33554432 bytes exhausted Error
I updgraded to Wordpress 2.8 today and encountered a memory error as well as the loss of the visual editor toolbar.
Memory Error
When going to the dashboard or reactivating a plugin (in my case, Viper’s Video Quicktags), I saw this error when trying to reactivate my plugins:
Allowed memory size of 33554432 bytes exhausted
What worked for me was a solution I found at HighTechDad. You’ll need to check the wp-settings.php file on your server. At the very top of the file you should see:
[code]
if ( !defined('WP_MEMORY_LIMIT') )
define('WP_MEMORY_LIMIT', '32M');
if ( function_exists('memory_get_usage') && ( (int) @ini_get('memory_limit') < abs(intval(WP_MEMORY_LIMIT)) ) )
@ini_set('memory_limit', WP_MEMORY_LIMIT);
[/code]
Just change the 32M to 64M and that should fix everything.
Visual Editor
This one was a bit trickier.
Wordpress support tried offering a couple of different solutions.
I tried a re-upgrade (from the Tools menu in WordPress) but that did not work. I opened my admin panel in IE and the bar was displaying fine. So i cleared my cache in Google Chrome, and the bar came back.
*Update – It seems you need to do the combination move of reinstalling the upgrade and clearing your cache to get this error fixed.
All in all, it was a smooth upgrade with a couple of small hiccups, hope you found these tips useful.
Jun 4, 2009 0
Customizing Your Wordpress Header Image and Making it Clickable
If your wordpress theme doesn’t automatically support custom header images, you may have to manually edit the theme to fix it up. Usually this can be done from the header.php file.
For example, Read the rest of this entry »












