Read below about related content about simply+exclude+problem, You can contact us to improve our contents and site quality

Read below about related content about simply+exclude+problem, You can contact us to improve our contents and site quality

Display Latest Tweets on Your WordPress

December 22nd, 2009 By WP Tricks Posted in Tips

Twitter is phenomenal, almost every internet user have this account, they share everything in Twitter. There are so many method how to display Latest Twitter on your WordPress, we can use display as simple rss, using Twitter Widget or using much advantage method to display twitter. On this Tutorial, I will show you how to display your latest twits with more sophisticated method.

Open your sidebar.php theme (if you want display this tweet on your sidebar) and write this code below

<div class="latest-twit">
<?php
$feedURL = "http://twitter.com/statuses/user_timeline/68559295.rss" // change to your feed URL
$doc = new DOMDocument();
$doc->load($feedURL);
$arrFeeds = array();
foreach ($doc->getElementsByTagName('item') as $node) {
    $itemRSS = array (
        'title' => $node->getElementsByTagName('title')->item(0)->nodeValue,
        );
    array_push($arrFeeds, $itemRSS);
}
$limit = 5;
for($x=0;$x<$limit;$x++) {
    $title = str_replace('bavotasan: ', '', $arrFeeds[$x]['title']);
    $str = ereg_replace("[[:alpha:]]+://[^<>[:space:]]+[[:alnum:]/]","<a href=\"\\0\">\\0</a>", $title);
    $pattern = '/[#|@][^\s]*/';
    preg_match_all($pattern, $str, $matches);

    foreach($matches[0] as $keyword) {
        $keyword = str_replace(")","",$keyword);
        $link = str_replace("#","%23",$keyword);
        $link = str_replace("@","",$keyword);
        if(strstr($keyword,"@")) {
            $search = "<a href=\"http://twitter.com/$link\">$keyword</a>";
        } else {
            $link = urlencode($link);
            $search = "<a href=\"http://twitter.com/#search?q=$link\" class=\"grey\">$keyword</a>";
        }
        $str = str_replace($keyword, $search, $str);
    }
    echo '<li>'.$str.'</li>';
}
?>
</div>

That’s all and you can made some custom on this design by play around with your css skills. Thanks for Batovasan for share this code. If you have better idea how to display latest tweets in WordPress please let’s me know

Amazing Touch

Enhanced Your WordPress Authentication

August 21st, 2010 By WP Tricks Posted in Tips

How To Enhancer Your WordPress authentication and added better handled and criteria. John Kolbert, one of WordPress developer create some tutorial how to do it. On this tutorial John Kolbert try to added same parameter and made own criteria…

WordPress Authentication - Miranda Kerr Black Leather

WordPress Authentication - Miranda Kerr Black Leather

John using add_filter method to create it. He tweak original function of wp_authenticate. On this example John add new parameter that will denied username bob.
Read the rest of this entry »

Amazing Touch

How To Disallow theme switching

April 28th, 2010 By WP Tricks Posted in Tricks

For some reason we need to Disallow theme switching in WordPress, why we need disable this featured? There are some reason why we should do it, such as Our WordPress powered site is Final Version, so we didn’t need to change the theme. Or The client “explored” the WordPress dashboard and “accidentally” switched the theme.

Disallow Theme Switcing WordPress

Disallow Theme Switcing WordPress


Read the rest of this entry »

Amazing Touch

Automatically empty Trash

June 1st, 2010 By WP Tricks Posted in Tips

Today WordPress Tips is How To Automatically empty Trash in our WordPress. Like we all know, WordPress 2.9 introducing Trash system. This system is better handled for accidentals deleted some our content. Example we deleted our post, but for some reason we need to bring it back.

Automatically empty Trash - Candice Swanepoel

Automatically empty Trash - Candice Swanepoel

This also happen on comment and page, after we choose sent the content into trash, this content will not visible anymore. The Next question is, if we deleted to many content, the trash will be a lot of data. How to Automatically unneeded data? Follow this step by WP Recipes.
Read the rest of this entry »

Amazing Touch

WP Tutorial: Remove admin name in comments class

June 6th, 2010 By WP Tricks Posted in Tips

Batovasan, create nicely WordPress Tutorial. The reason create this tutorial is Small Security Hole on WordPress.

Remove admin name in comments class - Miranda Kerr Pictures

Remove admin name in comments class - Miranda Kerr Pictures

Like we all know by default, when the blog admin left a comment on his blog, WordPress use the name in the comment css class. This is useful for styling, but it will also let people know about your admin login name. This is not good, because some hacker or whatever we call it, can use this info to crack our WordPress site.
Read the rest of this entry »

Amazing Touch