View Full Version : [Req] Last Post / Forumdisplay like Kunena's program - it's real nice. :)
Theater
05-21-2009, 04:30 PM
Hello,
I just came across this site called Kunena (http://www.kunena.com) which is apparently a new forum program designed to "fit Joomla like a glove". Anyway, I was looking through it and I love how they have set the member's avatar to display in their "Last Post" area. At least in what we would call the forumdisplay page anyway:
http://www.kunena.com/forum?func=showcat&catid=76
I'm more interested in knowing how to make the member's avatar appear next to their last post they made to a thread with vB. Although overall it doesn't look too shabby.
Thank you for reading,
-TT
Lynne
05-21-2009, 04:37 PM
I'm not gonna write the code, but I'll give you tip for doing it yourself. There is no reason you can't get the avatar to display since you already have the userid (look in the API (under Quick Links) for any function dealing with "avatar"). He's using a class to set the width of the avatar to 40.
dxflw
05-21-2009, 04:48 PM
I think i have see this mod here in vbulletin.org.. but i do not remember very well where.
Theater
05-21-2009, 05:11 PM
I'm not gonna write the code, but I'll give you tip for doing it yourself. There is no reason you can't get the avatar to display since you already have the userid (look in the API (under Quick Links) for any function dealing with "avatar"). He's using a class to set the width of the avatar to 40.
Thanks Lynne, I'll give it a go here in a bit. :cool:
//edit -- Didn't find anything that would help me with this in the API, Lynne. That board is not a vBulletin board btw. Is there even a way to change the appearance of last post in the forumdisplay separate from how it's displayed on forumhome? My apologies, but coding isn't my strength at all.
IdanB
05-21-2009, 08:29 PM
$userinfo[avatarid] should hold the user avatar id.
$avatar[avatarpath] should hold image path.
you'll need to add plugin that will query for the info, and then assign it to some var, and place the var into the template.
I would place the code into the "forumbit_display" hook.
Also, check this link: http://www.vbulletin.com/forum/showthread.php?t=197582
might help you with your coding.
Theater
05-23-2009, 08:25 PM
I wasn't able to figure it out, but thank you for the tips!
IdanB
05-23-2009, 08:54 PM
if you can't get it to work lemme know, if i'll have time i'll try to code it for you.
Theater
05-27-2009, 09:21 PM
I'm afraid I couldn't still get it figured out. If anyone else wants to take a crack at this it would be most appreciated. I couldn't separate how the forumhome and forumdisplay last post appeared. See here:
http://www.kunena.com/forum?func=showcat&catid=76
Thank you for reading,
-TT
IdanB
05-29-2009, 08:26 AM
worked on it for last 2 hours (mostly on the time display algo thingy).
This should be ready & after testing in next couple of minutes. atm checking to see everything works way it should.
i'll release it on 3.8.2 mod section during next hour or so.
--------------- Added 1243597158 at 1243597158 ---------------
work finished :)
grab it from here: https://vborg.vbsupport.ru/showthread.php?t=214832
Dont forget to click install.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.