Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.7 > vBulletin 3.7 Add-ons

Reply
 
Thread Tools
Social Group Forum List Details »»
Social Group Forum List
Version: 2.1, by Twilkey Twilkey is offline
Developer Last Online: Jan 2019 Show Printable Version Email this Page

Category: Forum Home Enhancements - Version: 3.7.2 Rating:
Released: 08-26-2008 Last Update: 09-01-2008 Installs: 41
Uses Plugins Template Edits
 
No support by the author.

This is a more enriched version of this mod that I made.


If you have Version 1.0 of this mod installed, please uninstall it and run through these instructions again, as I have fixed a couple crucial bugs and added some more settings.


Description:
This mod lists all your Social Groups in a table on the forum home, which makes it look like more forums.

Instructions:

First Import the product.
Second Edit your FORUMHOME template.
If you want the table to show above the forums,
Find:
Code:
<!-- / guest welcome message -->
<br />
</if>
Add Below:
Code:
<if condition="$vboptions[sgfl_enable] == 1">
<form action="group.php?$session[sessionurl]do=grouplist" method="post">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%">
<tr>
    <td class="tcat" width="100%" colspan="5">
        <div style="float:$stylevar[right]" class="normal">$vbphrase[search_groups] <input type="text" class="bginput" name="filtertext" value="$filters[text]" style="font-size: 11px;" />&nbsp;<input type="submit" class="button" value="$vbphrase[go]" /></div>
        $vboptions[sgfl_st]
    </td>
</tr>
    <tr>
        <td class="thead" width="100%">
            
<if condition="$vboptions[sgfl_createdate] == 1">
<span style="float:$stylevar[right]">$vbphrase[sgfl_group_created]</span>
</if>
            $vbphrase[sgfl_group_name]</td>
<if condition="$vboptions[sgfl_membercount] == 1">
        <td class="thead" align="center" nowrap="nowrap">
            $vbphrase[sgfl_group_members]
        </td>
</if>
<if condition="$vboptions[sgfl_messagecount] == 1">
        <td class="thead" align="center" nowrap="nowrap">
            $vbphrase[messages]
        </td>
</if>
<if condition="$vboptions[sgfl_piccount] == 1">
        <td class="thead" align="center" nowrap="nowrap">
            $vbphrase[sgfl_pictures]
        </td>
</if>
<if condition="$vboptions[sgfl_last_post] == 1">
        <td class="thead" align="center" nowrap="nowrap">
            $vbphrase[last_post]
        </td>
</if>
    </tr>
    $sgforumlist
<tr>
    <td colspan="5" align="center" class="tfoot smallfont">
        <if condition="$show['creategroup']">
            <strong><a href="group.php?$session[sessionurl]do=create">$vbphrase[sgfl_create_a_new_group]</a></strong> &nbsp;
        </if>
        &nbsp; <strong><a href="group.php?$session[sessionurl]do=search">$vbphrase[sgfl_search_groups]</a></strong>
    </td>
</tr>
</table>

<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" />
<input type="hidden" name="dofilter" value="1" />
</form>
</if>


If you want the table to show under the forums,

Find:
Code:
$forumhome_markread_script
<!-- /main -->

<br />
Add Below:
Code:
<if condition="$vboptions[sgfl_enable] == 1">
<form action="group.php?$session[sessionurl]do=grouplist" method="post">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%">
<tr>
    <td class="tcat" width="100%" colspan="5">
        <div style="float:$stylevar[right]" class="normal">$vbphrase[search_groups] <input type="text" class="bginput" name="filtertext" value="$filters[text]" style="font-size: 11px;" />&nbsp;<input type="submit" class="button" value="$vbphrase[go]" /></div>
        $vboptions[sgfl_st]
    </td>
</tr>
    <tr>
        <td class="thead" width="100%">
            
<if condition="$vboptions[sgfl_createdate] == 1">
<span style="float:$stylevar[right]">$vbphrase[sgfl_group_created]</span>
</if>
            $vbphrase[sgfl_group_name]</td>
<if condition="$vboptions[sgfl_membercount] == 1">
        <td class="thead" align="center" nowrap="nowrap">
            $vbphrase[sgfl_group_members]
        </td>
</if>
<if condition="$vboptions[sgfl_messagecount] == 1">
        <td class="thead" align="center" nowrap="nowrap">
            $vbphrase[messages]
        </td>
</if>
<if condition="$vboptions[sgfl_piccount] == 1">
        <td class="thead" align="center" nowrap="nowrap">
            $vbphrase[sgfl_pictures]
        </td>
</if>
<if condition="$vboptions[sgfl_last_post] == 1">
        <td class="thead" align="center" nowrap="nowrap">
            $vbphrase[last_post]
        </td>
</if>
    </tr>
    $sgforumlist
<tr>
    <td colspan="5" align="center" class="tfoot smallfont">
        <if condition="$show['creategroup']">
            <strong><a href="group.php?$session[sessionurl]do=create">$vbphrase[sgfl_create_a_new_group]</a></strong> &nbsp;
        </if>
        &nbsp; <strong><a href="group.php?$session[sessionurl]do=search">$vbphrase[sgfl_search_groups]</a></strong>
    </td>
</tr>
</table>

<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" />
<input type="hidden" name="dofilter" value="1" />
</form>
</if>
Now, by default this mod is disabled. So go into your settings and enable it, and Pick the Title of the Section you would like.

LIVE DEMO
_____________________________

Version FAQ

Version 1
  1. Initial Release
Version 2
  1. Fixed Member Count Bug
  2. Fixed Latest Post Bug
  3. Added Ability to Limit Groups Listed
  4. Allow Random Groups to Display (Limit must be greater then 0 for this to work.)
  5. Allow admin to show or not show any of the info.
Version 2.1
  1. Added if statement to disable the table on the forumhome if the mod is disabled.
  2. Fixed the class for the last post box.
  3. Fixed special characters problem.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 08-27-2008, 10:25 PM
yingzhou's Avatar
yingzhou yingzhou is offline
 
Join Date: Oct 2006
Location: Ho Chi Minh
Posts: 254
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Installed. If you can add the message from social group to the notification bar like the profile one?
Reply With Quote
  #3  
Old 08-27-2008, 11:58 PM
ShackMaster ShackMaster is offline
 
Join Date: Apr 2006
Posts: 252
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Twilkey... you are the bomb brother... absolutely on the money. Thank you! Excellent!

INSTALLED!!!

Do you take donations?
Reply With Quote
  #4  
Old 08-28-2008, 01:09 AM
Twilkey's Avatar
Twilkey Twilkey is offline
 
Join Date: Oct 2006
Posts: 314
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ShackMaster View Post
Twilkey... you are the bomb brother... absolutely on the money. Thank you! Excellent!

INSTALLED!!!

Do you take donations?
I do and your welcome.
Reply With Quote
  #5  
Old 08-28-2008, 04:20 AM
Hornstar Hornstar is offline
 
Join Date: Jun 2005
Location: Australia
Posts: 2,469
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Cool, is there anyway to limit how many show up? and is there a way to set if it shows the latest ones with replies, the latest created, etc.
Reply With Quote
  #6  
Old 08-28-2008, 06:28 AM
snake-boy snake-boy is offline
 
Join Date: Jul 2004
Location: Bangkok
Posts: 102
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Very nice - one problem though: It lists all my social groups as having only one member! regardless of how many members it actually has and regardless of whether the group is public or private.

I fiddled with the code a bit, but was unable to get it to work.

How can I correct this?
Reply With Quote
  #7  
Old 08-28-2008, 09:50 AM
R1D1's Avatar
R1D1 R1D1 is offline
 
Join Date: Oct 2005
Location: Germany
Posts: 55
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

limit would be nice and the latest x pics shown as thumbnails... and perhaps... only the groups youre in... and... ahm... cool work! thx...
Reply With Quote
  #8  
Old 08-28-2008, 12:12 PM
lazydesis lazydesis is offline
 
Join Date: Sep 2006
Posts: 234
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

nice idea
Reply With Quote
  #9  
Old 08-28-2008, 09:07 PM
Ricsca's Avatar
Ricsca Ricsca is offline
 
Join Date: Apr 2006
Posts: 236
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The number of member dont work. It remains writer always 1.

I have 24 social group, How can I make occupant except for space?

Thanks
Reply With Quote
  #10  
Old 08-28-2008, 10:26 PM
Twilkey's Avatar
Twilkey Twilkey is offline
 
Join Date: Oct 2006
Posts: 314
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sorry about the members count. I will fix that and release it when I release my next version.
Reply With Quote
Reply

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

Forum Jump


All times are GMT. The time now is 06:10 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.07800 seconds
  • Memory Usage 2,303KB
  • Queries Executed 23 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (4)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete