Tutorial: Wordpress
Commenters Plug
 

Copy these codes into your my-hacks.php file;

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
function comment_plugger($before = '', $limit = 5, $sep = ', ') {
        global $wpdb, $tablecomments, $id;
        $request  = "SELECT comment_author, comment_author_url, MAX(comment_ID) as comment_ID FROM $tablecomments";
        $request .= " WHERE comment_post_ID='$id' AND comment_approved = '1' GROUP BY comment_author, comment_author_url ORDER BY comment_ID DESC";
        $request .= ($limit > 0) ? " LIMIT $limit" : '';
        $commenters = $wpdb->get_results($request);

        if ($commenters) {
                $output = '';
                foreach ($commenters as $commenter) {
                        if (!empty($commenter->comment_author_url)) {
                                $output[] = '<a href="' . $commenter->comment_author_url . '" title="' . $commenter->comment_author . '">' . $commenter->comment_author . '';
                        }
                        else {
                                $output[] = $commenter->comment_author;
                        }
                }

                if (is_array($output)) {
                        echo $before.implode($sep, $output);
                }
        } else {
//      echo "No one...yet."
        }
}

(Click here for more info about configuring the my-hacks.php file)

 

And place the code below in your index.php file for function calling to return the commenters name;

<?php comment_plugger(); ?>

 

 

 


 

Avarage Rating:  from 5 votes.
 
Rate This Page;

 

 

Comment? »

 

 

Leave a comment
 

 Name (required)

 E-mail (required,not published)

 URI

 

 

 

 
 

Advertisements
 
Must clicks!

lady
 
ajwa . Naj . Wawa . 27 . . 96 days until my 28th birthday on May 18th . IT Engineer . Malaysian . Dreamer . Worrier . Simple . Boringgg . but Laughs a lot . Gaining back her self-confidence ♥ Mariah carey . David Archuleta . Michael Bublé . James Morrison . Anuar Zain . Akim . Faizal Tahir . Diddy . Jesse McCartney . Linkin Park . BSB . *N Sync . Rascal Flatts . Smallville . Charmed . One Tree Hill . Merlin . Summerland . The City . Jonas . Matrix Trilogy . LOTR . Star Wars Saga . Twilight Saga . The Covenant . Taylor Lautner . Tom Welling . Paul Walker . Steven Strait . Hugh Jackman . Josh Hartnett . Chad Michael Murray . Ewan McGregor . Natalie Portman . Cameron Diaz

?

playlist cam cam
 
facebook twitter yahoo! messenger youtube

 
Your Text Ads Here?
 

 

navigate
 
Journal
Lady
Artwork
Collective
Visitor
        Graphics
        Downloads
        Scripts
        Reads
        Games
        Interactive
        Tutorial
 
Plugboard
Exits
SecretWhisper

 

skins





skins more?

 

stats
 
6 online currently,
543 cried on this page,
433115 were all cried out,
Since 29-Jan-2006

Powered by  MyPagerank.Net

 

random links
 
Angela's Bloggie
Gadaffi Ruslan
Deida
Duke Luce Dell'amore
Kematz
Sweet Love From Myra
Ajami Hashim
Monchiano's™
Sultan Muzaffar
Qarl
Wenkt.com
Love-Exchange.us.to
Daydreamed.org
Yoyooh.com
Healing-Touch.uni.cc
Summer-Heat.com
Artistique-Ilustra.net
TenshiMon.com
AisyahRozi.com
Saffawati.com

link exchanges more?

 

Follow Me


 

etcetera

 

 
Earn Money Online?
Free Domain?
 

 
 Search the web/site.
Web SawYouCry

 

 

© Najwa 2005-08
SecretWhisper Production
All rights reserved.
* * * * * * * * * * * * *