Custom Search

Archive for August, 2008

Update: This manner is also applicable to Wordpress 2.7, I have tested.
***
When using the latest Wordpress 2.6+ software, one may encounter such an embarrassment—-each time the blogger can only insert a picture, after that, the media pop-up dialogue window closes.

So if you want to insert multiple images, say more than 5 at a time, into a single post, you have to repeat uploading again and again until the last one.

Someone may advise that the pictures be uploaded into the gallery first, then insert the gallery. But the problem here is that the pictures can not be freely arranged in the post.

Aren’t that frustrating? The answer is a definite yes! So this entry provides the ways to solve such problems by doing a bit of code modifications to let you simultaneously insert bulk batches of images then realign them. The concept is quite simple–keep the pop-up media dialogue window open each time after inserting a picture.

Following the steps below to do so,

  • Log in to the FTP client you use, (here take the FileZilla as example)
  • Open the “yoursite.com[or yoursite.com\blog]\wp-admin\includes” directory
  • Locate the file “media.php”, right click, in the drop-down menu, select “view and edit”
  • In the file automatically opened by Notepad, locate the section below in   “function media_send_to_editor($html)” tag
<?php
	exit;
}
  • Add double slashes “//“  right before exit, and “return;” right below one line of exit, so the code now looks:
function media_send_to_editor($html) {
	?>
<script type="text/javascript">
<!--
top.send_to_editor('<?php echo addslashes($html); ?>');
//top.tb_remove();
-->
</script>
	<?php
	//exit;
   return;
}
  • Save the file and in the FTP client, the file will be automatically updated. [to this point, those blogs using wordpress 2.5 already achieved the goal, but for wordpress2.6 or higher, keep do something listed below]
  • Return to the FTP client pannel and locate the wp-admin/js/ directory
  • Find media-upload.js file, this time you may need to download it onto the desktop, and right click the file, open it with Notepad (in the FTP panel,  using the way above to open media.php file, might not suit to open media-upload.js as the latter is a javascript file and might not automatically associate with Notepad)
  • Locate tb_remove(); you can easily find it by using the “Ctr+F” in Notepad
  • Add  double slashes “//” before tb, so the code now is //tb_remove();
  • Save the media-upload.js file
  • Upload it back to wp-admin/js/ directory, when prompt if you need to overwrite the existing file, click yes.
  • Wait for some minutes (or even hours) before the new script functions.
  • Hooray, you make it! Now you can bulk upload multiple image simultaneously inserted at a time while simply remain on the media pop-up dialogue window. After than you can freely rearrange your photos and wrap up texts around those you desire.

Source: How do u insert multiple images into a post?, On Wordpress 2.5 | Wordpress.org/Support

Bristol Palin Pregnancy Rumor

Posted on Aug. 30, 2008 by Lindsay Britney

Bristol Palin, mom Sarah Palin and other Family Members photo
Bristol Palin (right), mom Sarah Palin, dad Todd , brother Track, sisters Willow and Piper Palin. (Photo via wordpress.com)

Sarah Palin Vogue photo
Sarah Palin Vogue photo via Kodiak Konfidential

Bristol Palin is the 17-year-old daughter of Governor of Alaska Sarah Palin. The blogosphere now is buzzing that her youngest brother Trig Paxson Van Palin born with Downs Syndrome is not the fifth child of her mom but herself’s.  Various blogs speculated that Sarag Palin, picked as Republic presidential candidate John McCain’s Vice President running-mate yesterday, had hide Bristol Palin’s pregnancy and pretended to be pregnant herself. (more…)

Ashton Kutcher Demi Moore wedding picture
Ashton Kutcher and Demi Moore got married in September, 2005. Ashley Ellerin, Ashton Kutcher’s ex-Girlfriend was murdered in 2001. (Picture embedded from Photobucket.com)

Many know Ashton Kutcher is the husband of actress Demi Moore, but few has an idea that he once had a girlfriend named Ashley Ellerin.

When reading today’s news, something we did not expect, Ashley Ellerin was murdered in February 2001. The then 22-year-old fashion student-model was slayed in her Hollywood Hills home.

On the day of her being stabbed, Ashton Kutcher should have taken her to attend a post-Grammy Awards party. But when he went to pick her up, there was no response from her house, Kutcher not realizing Ashley Ellerin already been murdered.

Ashley Ellerin’s body was only found next day. The police were called to the crime scene and the criminal’s DNA was sampled. Ever since, the murderer remained at large.

This June, Michael Garguilo, an 32-year-old air conditioning repairman of Santa Monica in California, was nabbed for a knife attack and was put in custody.

After screening the criminal/suspect DNA bank CODIS (Combined DNA Index System), Michael Garguilo’s DNA matched that left on Ashley Ellerin’s murdering scene.

With the DNA evidence, it is almost sure that the murder of Ashley Ellerin could be Michael Garguilo. The relief may finally reach Ellerin’s family, Garguilo will face murder charges as soon as next week, AP is reporting.

R.I.P, Ellerin!

Proventing Image Hotlink for Wordpress-supported Blogs

Posted on Aug. 30, 2008 by Lindsay Britney

Needless to say why to block the image hotlink from a site, simply because of the need to prevent someone to steal its bandwidth (thus save the extra money for the webhosting).

Wordpress gurus please ignore this entry, as the post here is only intended for those newbies who just host their wordpress.org-supported blogs on a web host and want prevent other bloggers hotlinking their images.

Follow the steps below and make your images only available to your own site and let search engines, like Google, Yahoo and Msn, to index.

  1. Log in your FTP client, here we recommend to use FileZilla (it’s open source, and versatile)
  2. Locate “Server” menu, and click “Force showing hidden files”
  3. Doube-click the the site root directory in the FileZilla panel, like this site, it’s hollywoodcelebgossips.com.
  4. Find a file named .htaccess
  5. Download it to the desktop and open it using Notepad, you are now getting the default Wordpress .htaccess file.
  6. Insert the code in Step 7 below the line of “RewriteRule . /index.php [L]" obtained from the default file in this step.
  7. RewriteEngine On
    RewriteCond %{REQUEST_FILENAME} .*jpe?g$|.*gif$|.*png$ [NC]
    RewriteCond %{HTTP_REFERER} !^$
    RewriteCond %{HTTP_REFERER} !hollywoodcelebgossips\.com [NC]
    RewriteCond %{HTTP_REFERER} !google\. [NC]
    RewriteCond %{HTTP_REFERER} !live\. [NC]
    RewriteCond %{HTTP_REFERER} !yahoo\. [NC]
    RewriteCond %{HTTP_REFERER} !msn\. [NC]
    RewriteCond %{HTTP_REFERER} !search\?q=cache [NC]
    RewriteRule .* - [F]

  8. Say if your URL is www.example.info, replace “hollywoodcelebgossips” and “com”, with “example” and “info”, respectively, in the fourth line of the code above.
  9. Save .htaccess file in Notepad and upload it to your site root directory in FileZilla panel.
  10. When prompted if to overwrite the existing file with the same name, click “Yes” in the pop-up window.
  11. You make it! The images will only appear on your own site, RSS readers and some time later search engines’ image search will bring you the traffics.

If wanna know how to tweak .htaccess file for non-wordpress supported blogs/sites, please visit WalkerNews.net’s Image Hotlinking Prevention With Apache Mod_Rewrite which is also the inspiration of writing up this tip.