Archive for December, 2007

Wordpress Import Fix for Post Excerpts

Tuesday, December 18th, 2007 | Lessons Learned | No Comments

I migrated the contents of a wordpress blog into a new home by using the built in import/export of Wordpress 2.3.1 however, I found out that the exported xml data does not include “<excerpt:encoded>”. Moreover even if you encode the excerpt manually on the xml file, wordpress would not import the data enclosed.

I found this fix by Helli. It would require manual editing of wp-admin files, specifically wp-admin/export.php and wp-admin/import/wordpress.php.

 

In wp-admin\export.php

<description></description>

<excerpt:encoded><![CDATA[<?php echo $post->post_excerpt ?>]]></excerpt:encoded>

<content:encoded><![CDATA[<?php echo $post->post_content ?>]]></content:encoded>

in wp-admin\import\wordpress.php 

   $post_author    = $this->get_tag( $post, 'dc:creator' );

   $post_excerpt   = $this->get_tag( $post, ‘excerpt:encoded’ );
   $post_excerpt = str_replace(array (’<![CDATA[', ']]>’), ”, $post_excerpt);
   $post_excerpt = preg_replace(’|<(/?[A-Z]+)|e’, “‘<’ . strtolower(’$1′)”, $post_excerpt);
   $post_excerpt = str_replace(’<br>’, ‘<br />’, $post_excerpt);
   $post_excerpt = str_replace(’<hr>’, ‘<hr />’, $post_excerpt);

   $post_content = $this->get_tag( $post, ‘content:encoded’ );

I made the necessary changes in my Wordpress 2.3.1 installation and it worked great.

Get paid to browse advertisements with Clixsense

Thursday, December 13th, 2007 | Net Moolah | No Comments

Clixsense allows internet users to earn additional income just by browsing ads. Registration costs nothing and you will be paid a certain amount for each ads that you view while you are logged in to the clixsense user panel.

However you may upgrade your account by paying a minimal amount of $10. Upgrading is a means of proving your buying capability thus more advertisers would want to show their ads to you.

Once you are logged into your ClixSense account, click the “Browse Ads” link. On the “Browse Ads” page you will be shown a list of ads that are available for you to view, in addition to how much viewing that ad pays. When you click on a link for an ad a new window will open with a timer at the top of the page and the advertiser’s page in the bottom frame. Once the timer counts down to zero (0), the amount stated for viewing the ad will be credited to your ClixSense account.

Clixsense process payments whenever you reach a minimum of $10 and they pay by checks sent through mail.

Sign-up now

PowWeb Hosting - Only $3.88 per month

Search