Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 21 May 2009, 18:30
Theater's Avatar
Theater Theater is offline
 
Join Date: Aug 2004
Bunny! [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
Reply With Quote
  #2  
Old 21 May 2009, 18:37
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Real name: Lynne
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.
__________________
Former vBulletin.org Staff Member

Try a search before posting for help. Many users won't, and don't, help if the question has been answered several times before.
W3Schools -
Online vBulletin Manual
If I post some CSS and don't say where it goes, put it in the additional.css template.
I will NOT help via PM (you will be directed to post in the forums for help.)
Reply With Quote
  #3  
Old 21 May 2009, 18:48
dxflw dxflw is offline
 
Join Date: May 2008
I think i have see this mod here in vbulletin.org.. but i do not remember very well where.
Reply With Quote
  #4  
Old 21 May 2009, 19:11
Theater's Avatar
Theater Theater is offline
 
Join Date: Aug 2004
Originally Posted by Lynne View Post
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.

//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.

Last edited by Theater; 21 May 2009 at 20:16.
Reply With Quote
  #5  
Old 21 May 2009, 22:29
IdanB's Avatar
IdanB IdanB is offline
 
Join Date: May 2009
Real name: Idan Bismut
$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.
__________________
vBHackers.com - vBulletin Modification Community
Reply With Quote
  #6  
Old 23 May 2009, 22:25
Theater's Avatar
Theater Theater is offline
 
Join Date: Aug 2004
I wasn't able to figure it out, but thank you for the tips!
Reply With Quote
  #7  
Old 23 May 2009, 22:54
IdanB's Avatar
IdanB IdanB is offline
 
Join Date: May 2009
Real name: Idan Bismut
if you can't get it to work lemme know, if i'll have time i'll try to code it for you.
__________________
vBHackers.com - vBulletin Modification Community
Reply With Quote
  #8  
Old 27 May 2009, 23:21
Theater's Avatar
Theater Theater is offline
 
Join Date: Aug 2004
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
Reply With Quote
  #9  
Old 29 May 2009, 10:26
IdanB's Avatar
IdanB IdanB is offline
 
Join Date: May 2009
Real name: Idan Bismut
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 29 May 2009 at 12:39 ---------------

work finished
grab it from here: http://www.vbulletin.org/forum/showthread.php?t=214832
Dont forget to click install.
__________________
vBHackers.com - vBulletin Modification Community

Last edited by IdanB; 29 May 2009 at 12:39. Reason: Auto-Merged DoublePost
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 04:07.

Layout Options | Width: Wide Color: