vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=236)
-   -   Social Group and Album Enhancements - Add Last Poster to Social Groups list (https://vborg.vbsupport.ru/showthread.php?t=204352)

Lynne 02-04-2009 10:00 PM

Add Last Poster to Social Groups list
 
1 Attachment(s)
For some reason the lastposter is not shown on the Social Groups list. To add it, open the socialgroups_grouplist_bit template and find these lines:

HTML Code:

            $group[lastpostdate]
            <if condition="!$show['detailedtime']">
                <br /><span class="time">$group[lastposttime]</span>
            </if>

ADD right underneath:

HTML Code:

            <br />by <a href="member.php?$session[sessionurl]u=$group[lastposterid]">$group[lastposter]</a>
That's it!


edit: There is a cool idea from Mark.B in post 7:
Quote:

Originally Posted by Mark.B (Post 1769152)
Add this to the end of Lynne's code to get a "Go To Last Post" link too...
Code:

<a title="$vbphrase[go_to_last_post]" href="group.php?$session[sessionurl]do=discuss&gmid=$group[lastgmid]#gmessage$group[lastgmid]"><img class="inlineimg" src="$stylevar[imgdir_button]/lastpost.gif" border="0" /></a>
Note there is a space at the very start.


UKBusinessLive 02-05-2009 05:17 PM

Thanks Lynne, a Great 1 minute mod :D

Blackhat 02-06-2009 07:06 PM

Did you do something else too because my group listings does not look like your screenshot at all even without the "last poster" bit.

Theater 02-07-2009 07:04 AM

Maybe they should have put you in charge of the Social Group display, Lynne. Thank you and installed.

Lynne 02-07-2009 04:45 PM

Quote:

Originally Posted by Blackhat (Post 1736399)
Did you do something else too because my group listings does not look like your screenshot at all even without the "last poster" bit.

I'm pretty sure I didn't do anything. That is the full group list at group.php?do=grouplist

DieselMinded 03-08-2009 03:31 AM

/me installs Very Nice

Mark.B 03-15-2009 10:57 PM

Add this to the end of Lynne's code to get a "Go To Last Post" link too...
Code:

<a title="$vbphrase[go_to_last_post]" href="group.php?$session[sessionurl]do=discuss&gmid=$group[lastgmid]#gmessage$group[lastgmid]"><img class="inlineimg" src="$stylevar[imgdir_button]/lastpost.gif" border="0" /></a>
Note there is a space at the very start.

wtb 03-16-2009 12:17 AM

Cool idea Mark, thanks!

Lynne 03-16-2009 03:17 AM

Quote:

Originally Posted by Mark.B (Post 1769152)
Add this to the end of Lynne's code to get a "Go To Last Post" link too...
Code:

<a title="$vbphrase[go_to_last_post]" href="group.php?$session[sessionurl]do=discuss&gmid=$group[lastgmid]#gmessage$group[lastgmid]"><img class="inlineimg" src="$stylevar[imgdir_button]/lastpost.gif" border="0" /></a>
Note there is a space at the very start.

Great idea, Mark! I hope you don't mind, but I added your post to the first post in this thread so people don't accidentally overlook your idea.

Mark.B 03-16-2009 05:59 PM

Quote:

Originally Posted by Lynne (Post 1769312)
Great idea, Mark! I hope you don't mind, but I added your post to the first post in this thread so people don't accidentally overlook your idea.

Sure, that's fine.


All times are GMT. The time now is 06:32 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.01781 seconds
  • Memory Usage 1,745KB
  • 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
  • (3)bbcode_code_printable
  • (2)bbcode_html_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete