The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
[Req] Last Post / Forumdisplay like Kunena's program - it's real nice. :)
Hello,
I just came across this site called Kunena 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 |
#2
|
||||
|
||||
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.
|
#3
|
|||
|
|||
I think i have see this mod here in vbulletin.org.. but i do not remember very well where.
|
#4
|
||||
|
||||
Quote:
//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. |
#5
|
||||
|
||||
$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. |
#6
|
||||
|
||||
I wasn't able to figure it out, but thank you for the tips!
|
#7
|
||||
|
||||
if you can't get it to work lemme know, if i'll have time i'll try to code it for you.
|
#8
|
||||
|
||||
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 |
#9
|
||||
|
||||
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 [DATE]1243597158[/DATE] at [TIME]1243597158[/TIME] --------------- work finished grab it from here: https://vborg.vbsupport.ru/showthread.php?t=214832 Dont forget to click install. |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|