Twilkey
08-26-2008, 10:00 PM
This is a more enriched version of this mod (https://vborg.vbsupport.ru/showthread.php?t=189244) 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:
<!-- / guest welcome message -->
<br />
</if>Add Below:
<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;" /> <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>
</if>
<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:
$forumhome_markread_script
<!-- /main -->
<br />Add Below:
<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;" /> <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>
</if>
<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 (http://features.gamingtv.us/forum/index.php)
_____________________________
Version FAQ
Version 1
Initial ReleaseVersion 2
Fixed Member Count Bug
Fixed Latest Post Bug
Added Ability to Limit Groups Listed
Allow Random Groups to Display (Limit must be greater then 0 for this to work.)
Allow admin to show or not show any of the info.Version 2.1
Added if statement to disable the table on the forumhome if the mod is disabled.
Fixed the class for the last post box.
Fixed special characters problem.
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:
<!-- / guest welcome message -->
<br />
</if>Add Below:
<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;" /> <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>
</if>
<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:
$forumhome_markread_script
<!-- /main -->
<br />Add Below:
<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;" /> <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>
</if>
<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 (http://features.gamingtv.us/forum/index.php)
_____________________________
Version FAQ
Version 1
Initial ReleaseVersion 2
Fixed Member Count Bug
Fixed Latest Post Bug
Added Ability to Limit Groups Listed
Allow Random Groups to Display (Limit must be greater then 0 for this to work.)
Allow admin to show or not show any of the info.Version 2.1
Added if statement to disable the table on the forumhome if the mod is disabled.
Fixed the class for the last post box.
Fixed special characters problem.