MyBB Community Forums
Last poster avatar doesn't display on subforum - Printable Version

+- MyBB Community Forums (https://community.mybb.com)
+-- Forum: Extensions (https://community.mybb.com/forum-201.html)
+--- Forum: Plugins (https://community.mybb.com/forum-73.html)
+---- Forum: Plugin Support (https://community.mybb.com/forum-72.html)
+---- Thread: Last poster avatar doesn't display on subforum (/thread-159093.html)



Last poster avatar doesn't display on subforum - elfaus - 2014-09-10

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.


RE: Last poster avatar doesn't display on subforum - Whiteneo - 2014-09-10

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


RE: Last poster avatar doesn't display on subforum - elfaus - 2014-09-10

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 =)


RE: Last poster avatar doesn't display on subforum - Whiteneo - 2014-09-10

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