Go Back   vb.org Archive > vBulletin Modifications > vBulletin 3.8 Modifications > vBulletin 3.8 Template Modifications
Social Groups Moderation Links in Group Tools Details »»
Social Groups Moderation Links in Group Tools
Version: 1.00, by Warlord Warlord is offline
Developer Last Online: Dec 2011 Show Printable Version Email this Page

Category: Social Group and Album Enhancements - Version: 3.8.4 Rating:
Released: 11-26-2009 Last Update: Never Installs: 9
Template Edits
Re-useable Code Translations  
No support by the author.

What does this do?
Just as the title implies, this places the social groups moderation links in the Group Tools dropdown menu and optionally removes those same links from their current position just above your footer.



Install Time: 1-2 minutes.
Installation Difficulty: Easy
Installation Instructions

Once logged into your Admin Control Panel go to Styles and Templates and click in Search in Templates. Select the Yes radio button for Search Titles Only and search for socialgroups_group.

In template socialgroups_group find:

HTML Code:
						<li class="vbmenu_option"><a href="group.php?$session[sessionurl]do=unsubscribe&amp;groupid=$group[groupid]" rel="nofollow">$vbphrase[unsubscribe_from_this_group]</a></li>
					</if>
					</if>

Add BELOW:

HTML Code:
<if condition="$show['groupoptions']">
                        <li class="thead first">$vbphrase[moderation]</li>
			<if condition="$groupoptions['leave']"><li class="vbmenu_option"><a href="group.php?$session[sessionurl]do=leave&amp;groupid=$group[groupid]">$groupoptions[leavephrase]</a></li></if>
			<if condition="$groupoptions['edit']"><li class="vbmenu_option"><a href="group.php?$session[sessionurl]do=edit&amp;groupid=$group[groupid]">$vbphrase[edit_group]</a></li></if>
			<if condition="$groupoptions['delete']"><li class="vbmenu_option"><a href="group.php?$session[sessionurl]do=delete&amp;groupid=$group[groupid]">$vbphrase[delete_group]</a></li></if>
			<if condition="$groupoptions['manage']">
				<li class="vbmenu_option">
					<a href="group.php?$session[sessionurl]do=manage&amp;groupid=$group[groupid]">$vbphrase[pending_and_invited_members]</a>
				</li>
			</if>
			<if condition="$groupoptions['managemembers']">
				<li class="vbmenu_option">
					<a href="group.php?$session[sessionurl]do=managemembers&amp;groupid=$group[groupid]">$vbphrase[manage_members]</a>
				</li>
			</if>
			<if condition="$groupoptions['transfergroup']">
			<li class="vbmenu_option">
				<a href="group.php?$session[sessionurl]do=transfer&amp;groupid=$group[groupid]">$vbphrase[transfer_group]</a>
			</li>
			</if>
</if>

Optional Step
If you want to remove the links from the bottom of the page that we just put into the Group Tools dropdown menu you may do the following. Please note however that you will also lose the Join Group link, but it also appears in the Social Group's header anyway, so it's a bit redundant.

FIND AND DELETE:

HTML Code:
<if condition="$show['groupoptions']">
	<br />
	<div id="discussion_foot" class="social_group tborder content_block">
		<div class="tfoot block_title">
		<ul id="group_footer_links">
			<if condition="$groupoptions['join']">
				<li class="smallfont">
					<a href="group.php?$session[sessionurl]do=join&amp;groupid=$group[groupid]">$vbphrase[join_group]</a>
				</li>
			<else />
				<if condition="$group['membertype'] != 'member' AND $group['type'] == 'inviteonly'">
					<li class="smallfont">
						$vbphrase[group_type_inviteonly]
					</li>
				</if>
			</if>
			<if condition="$groupoptions['leave']"><li class="smallfont"><a href="group.php?$session[sessionurl]do=leave&amp;groupid=$group[groupid]">$groupoptions[leavephrase]</a></li></if>
			<if condition="$groupoptions['edit']"><li class="smallfont"><a href="group.php?$session[sessionurl]do=edit&amp;groupid=$group[groupid]">$vbphrase[edit_group]</a></li></if>
			<if condition="$groupoptions['delete']"><li class="smallfont"><a href="group.php?$session[sessionurl]do=delete&amp;groupid=$group[groupid]">$vbphrase[delete_group]</a></li></if>
			<if condition="$groupoptions['manage']">
				<li class="smallfont">
					<a href="group.php?$session[sessionurl]do=manage&amp;groupid=$group[groupid]">$vbphrase[pending_and_invited_members]</a>
				</li>
			</if>
			<if condition="$groupoptions['managemembers']">
				<li class="smallfont">
					<a href="group.php?$session[sessionurl]do=managemembers&amp;groupid=$group[groupid]">$vbphrase[manage_members]</a>
				</li>
			</if>
			<if condition="$groupoptions['transfergroup']">
			<li class="smallfont">
				<a href="group.php?$session[sessionurl]do=transfer&amp;groupid=$group[groupid]">$vbphrase[transfer_group]</a>
			</li>
			</if>
		</ul>
		</div>
	</div>
</if>

Screenshots

File Type: jpg SG_Moderation_Tools.jpg (50.0 KB, 0 views)

Show Your Support

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

Comments
  #2  
Old 11-27-2009, 09:47 AM
Kosmic1 Kosmic1 is offline
 
Join Date: Nov 2009
Posts: 63
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Very nice! :up:
Installed
Reply With Quote
  #3  
Old 12-14-2009, 10:17 AM
MrRem MrRem is offline
 
Join Date: Jun 2009
Posts: 76
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Good modification.
Installed
Reply With Quote
  #4  
Old 01-10-2010, 12:21 AM
alfaowner alfaowner is offline
 
Join Date: Jul 2003
Location: London
Posts: 201
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Very simple andvery nice quick install, thanks for making available
Reply With Quote
  #5  
Old 03-28-2010, 07:23 AM
hayaldunya hayaldunya is offline
 
Join Date: Mar 2008
Posts: 43
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

good work, thanks friend.
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 07:42 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.04959 seconds
  • Memory Usage 2,267KB
  • Queries Executed 19 (?)
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
  • (3)bbcode_html
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (5)post_thanks_box
  • (5)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (5)post_thanks_postbit_info
  • (4)postbit
  • (1)postbit_attachment
  • (5)postbit_onlinestatus
  • (5)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_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete