Closed

The blogrums are now closed. If you wish to visit them on there new home then you can find it here ( InnerVisions Blogrums ).

AuthorProfiles plugin

Triggers and parameters

Post triggers

PHP:

// author avatar
                $Plugins->trigger_event'UserAvatar'array(
                        'user_ID' => $Item->creator_User->ID,
                        'block_start' => '',
                        'block_end' => '',
                        ));
 
// user time zone/format
        $Plugins->trigger_event'UserTimezone'array(
                        'block_start' => '',
                        'block_end' => '',
                        'display' => true,
                        'localdatetime' => $Item->get'dateissued' ),
                        ) );
// author location
                $Plugins->trigger_event'UserLocation'array(
                        'user_ID' => $Item->creator_User->ID,
                ));
 
// author joined
        $Plugins->trigger_event'UserTimezone'array(
                        'block_start' => '<p class="userJoined">Joined : <span>',
                        'block_end' => '</span></p>',
                        'display' => true,
                        'localdatetime' => $foo->get'datecreated' ),
                        ) );
 
// author post count
                $foo $Item->get_creator_User();
                echo '<p class="postCount">Posts : '.( $foo->get('num_posts') + $DB->get_var'select count(*) from T_comments where comment_status="published" and comment_author_ID='.$foo->ID ) ).'</p>';
 
// author signature
                $Plugins->trigger_event'UserSignature'array(
                        'user_ID' => $Item->creator_User->ID,
                ));

Comment triggers

PHP:

// author avatar
        $Plugins->trigger_event'UserAvatar'array(
                            'user_ID' => $Comment->author_user_ID,
        ));
 
// user time zone/format
        $Plugins->trigger_event'UserTimezone'array(
                        'block_start' => '',
                        'block_end' => '',
                        'display' => true,
                        'localdatetime' => $Comment->get'date' ),
                        ) );
 
// author location
        $Plugins->trigger_event'UserLocation'array(
                        'user_ID' => $Comment->author_user_ID,
        ));
 
// author joined
    if( $Comment->author_user_ID )
    {    // we have a user
        $UserCache get_cache('UserCache' );
        global $DB;
        $foo $UserCache->get_by_ID$Comment->author_user_IDfalse );
        $Plugins->trigger_event'UserTimezone'array(
                        'block_start' => '<p class="userJoined">Joined : <span>',
                        'block_end' => '</span></p>',
                        'display' => true,
                        'localdatetime' => $foo->get'datecreated' ),
                        ) );
    }
 
// author post count
    if( $Comment->author_user_ID )
    {    // we have a user
        $UserCache get_cache('UserCache' );
        global $DB;
        $foo $UserCache->get_by_ID$Comment->author_user_IDfalse );
        echo '<p class="postCount">Posts : '.( $foo->get('num_posts') + $DB->get_var'select count(*) from T_comments where comment_status="published" and comment_author_ID='.$foo->ID ) ).'</p>';
    }
 
// author signature
        $Plugins->trigger_event'UserSignature'array(
                        'user_ID' => $Comment->author_user_ID,
        ));

¥

I may have opened the door, but you entered of your own free will
image