Post conditioned Avatar & Usertext
1.1
You want to show Avatar and User text just if a user reached a pre-setted Post-Count use this hack. You can set the counter to a limit the user must have in the Admin Center.
Avatars and Usertext have to be activated!
If you don't want to display one of these or both u have to turn them off like before the hack!
V1.1:
Bug fixed which displayed the Usertext and/or Avatar of the last user with more than the presetted post counts for all followed Members which don't had enough posts to show their Usertext and/or Avatar!
dOCda S!
mailto:docda_s@yahoo.de
Sources/Display.pl
$usernamelink = qq~$userprofile[1]~;
$postinfo = qq~$txt{'26'}: $userprofile[6] ~;
if ($tusert ne '') {
if ($tusert ne 'OFF') {
if ($userprofile[6] > $tusert) { $tempusert = qq( $userprofile[12] ); } else { $tempusert = qq(); }
}
}
if ($tusert ne '') {
if ($tusert ne 'OFF') {
if ($userprofile[6] > $tusert2) { $tempusert2 = qq($userprofile[13]); } else { $tempusert2 = qq(); }
}
}
$godmem = $FORM{'godmem'} || 500;
$tusert = $FORM{'tusert'} || "OFF";
$tusert2 = $FORM{'tusert2'} || "OFF";
\$GodPostNum = $godmem; # Number of Posts required to show person as 'god' membergroup
\$tusert = $tusert; # Number of Posts required to show user text
\$tusert2 = $tusert2; # Number of Posts required to show avatar
english.lng
$txt{'749'} = "The 'number of posts' box can only contain digits.";
$usertxt{'01'} = "# Posts to show user text";
$usertxt{'02'} = "# Posts to show avatar";