vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   [Req] Last Post / Forumdisplay like Kunena's program - it's real nice. :) (https://vborg.vbsupport.ru/showthread.php?t=214212)

Theater 05-21-2009 04:30 PM

[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

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

Quote:

Originally Posted by Lynne (Post 1814728)
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 [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.


All times are GMT. The time now is 12:36 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.00975 seconds
  • Memory Usage 1,726KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete