Warning: The author of this contribution does not provide support for it anymore.

Top Posters on Index Cleaned contribution

[Tut] Adding 'Search user posts' to post count - Top Posters on Index

[Tut] Adding 'Search user posts' to post count

by neizvelebiliziran » Thu Jun 20, 2013 2:40 pm

Open /includes/functions_topposter.php

Find:

Code: Select all

$top_posters_list  .= (($top_posters_list  != '') ? ', ' '') . get_username_string('full'$row['user_id'], $row['username'], $row['user_colour']) . ' ('$row['user_posts'] .')';       


Before, add:

Code: Select all

        /*** 2013-06-20 BEGIN AmigoJack
            http://www.phpbb.com/community/viewtopic.php?t=2187199 ***/
        
global $phpbb_root_path$phpEx;
        if( 
$auth-> acl_get'u_search' ) ) $row['user_posts']= '<a href="'append_sid"{$phpbb_root_path}search.$phpEx"'author_id='$row['user_id']. '&amp;sr=posts' ). '">'$row['user_posts']. '</a>';
        
/*** 2013-06-20 END ***/       


Find:

Code: Select all

$top_posters_hours_list  .= (($top_posters_hours_list  != '') ? ', ' '') . '<em>' get_username_string('full'$row['user_id'], $row['username'], $row['user_colour']) . '&nbsp;('$row['total_posts'] .')</em>';       

Before, add:

Code: Select all

        /*** 2013-06-20 BEGIN AmigoJack
            http://www.phpbb.com/community/viewtopic.php?t=2187199 ***/
        
if( $auth-> acl_get'u_search' ) ) $row['total_posts']= '<a href="'append_sid"{$phpbb_root_path}search.$phpEx"'author_id='$row['user_id']. '&amp;sr=posts' ). '">'$row['total_posts']. '</a>';
        
/*** 2013-06-20 END ***/       



Tut. by AmigoJack

Source: viewtopic.php?f=71&t=2187199
neizvelebiliziran
Registered User
Posts: 76
Joined: Sun Jan 20, 2013 4:48 pm
Contact: