MyBB Community Forums

Full Version: Last poster avatar doesn't display on subforum
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello,

i've just enable this plugin http://community.mybb.com/mods.php?action=view&pid=74 and i've see that it doesn't display avatar on subforum template (one category view)

anybody know what is need to do that ?

I'm searching in hook but currently not found anything.
At the beginin you will find this_script on index and then elseif on forumdisplay.

Delete elseif and only add on first if || this_script to forumdisplay joining first and second sentence in only one this i added two days ago but i will work on more items to release a new version of this plugin
Ok it works. For those who want do it :

in your_mybb_installation, searching for the plugin file (/inc/plugins/avatarep.php)

at line 16 :
if(THIS_SCRIPT == 'index.php'){
replace with
if(THIS_SCRIPT == 'index.php' || THIS_SCRIPT == 'forumdisplay.php'){

remove lines 19 to 22
else if(THIS_SCRIPT == 'forumdisplay.php'){
$plugins->add_hook('forumdisplay_thread', 'avatarep_thread');
$plugins->add_hook('forumdisplay_announcement', 'avatarep_announcement');
}

at line 17 :
$plugins->add_hook('build_forumbits_forum', 'forumlist_avatar');
add lines
$plugins->add_hook('forumdisplay_thread', 'avatarep_thread');
$plugins->add_hook('forumdisplay_announcement', 'avatarep_announcement');

Thanks a lot Dark Neo =)
Its a very lesser fix i working on new improvements to make more easy to customize it:

Abou this i download it new file

Open with notepad ++

Line 15


Change this:
// Añadir hooks
if(THIS_SCRIPT == 'index.php'){
$plugins->add_hook('build_forumbits_forum', 'forumlist_avatar');
}
else if(THIS_SCRIPT == 'forumdisplay.php'){
$plugins->add_hook('forumdisplay_thread', 'avatarep_thread');
$plugins->add_hook('forumdisplay_announcement', 'avatarep_announcement');
}

For this


// Añadir hooks
if(THIS_SCRIPT == 'index.php' || THIS_SCRIPT == 'forumdisplay.php'){
$plugins->add_hook('build_forumbits_forum', 'forumlist_avatar');
$plugins->add_hook('forumdisplay_thread', 'avatarep_thread');
$plugins->add_hook('forumdisplay_announcement', 'avatarep_announcement');
}

In this way have to works withoutanykind of problem, cheers...

Sorry about i don't put his but sice mobil it's so hard to do it i'm on a ciber and here i can send it this Big Grin