Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.7 > vBulletin 3.7 Template Modifications
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
"Create & Search Group" on top of group overview Details »»
"Create & Search Group" on top of group overview
Version: 1.00, by nerofix nerofix is offline
Developer Last Online: Mar 2013 Show Printable Version Email this Page

Category: Mini Mods - Version: 3.7.0 Beta 3 Rating:
Released: 12-21-2007 Last Update: Never Installs: 14
Template Edits
Re-useable Code  
No support by the author.

Description: Very easy modification. This template modification simply add a table on the top of your groups overview under the navbar with links to create new groups and search for groups. It should be able to easily integrate into your design as well as easy to install.
I made this templatemodification because my members have to scroll down first a big list of groups before they can find the "create group" button.


Instructions/Installation: Very Easy

In the Style Manager, open the template "SOCIALGROUPS" and under $navbar add:

Code:
<!-- create & search group table -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" style="margin-bottom:20px">
<tr>
	<td colspan="3" align="center" class="tfoot smallfont">
		<if condition="$show['creategroup']">
			<strong><a href="group.php?$session[sessionurl]do=create">$vbphrase[create_a_new_group]</a></strong> &nbsp;
		</if>
		&nbsp; <strong><a href="group.php?$session[sessionurl]do=search">$vbphrase[search_groups]</a></strong>
	</td>
</tr>
</table>
<!-- / create & search group table -->
Thats all

If you like this modification please click install .

Live demo: http://www.nerofix.com/group.php? ("create group" link is not shown for guests there)

Screenshot see attachement!

Show Your Support

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

Comments
  #2  
Old 12-22-2007, 06:46 PM
nerofix nerofix is offline
 
Join Date: Mar 2006
Location: Saarland
Posts: 219
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

*Reserved*
Reply With Quote
  #3  
Old 12-22-2007, 09:18 PM
whitetigergrowl whitetigergrowl is offline
 
Join Date: Jun 2004
Posts: 243
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Odd. Doesn't work for me.
Reply With Quote
  #4  
Old 12-22-2007, 09:25 PM
nerofix nerofix is offline
 
Join Date: Mar 2006
Location: Saarland
Posts: 219
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by whitetigergrowl View Post
Odd. Doesn't work for me.
Can you give me your SOCIALGROUPS template code? Then I can have a look to fix it for you.
Reply With Quote
  #5  
Old 12-22-2007, 10:02 PM
whitetigergrowl whitetigergrowl is offline
 
Join Date: Jun 2004
Posts: 243
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have not edited it. This is from the latest beta release (3):

Quote:
$stylevar[htmldoctype]
<html xmlns="http://www.w3.org/1999/xhtml" dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
$headinclude
<title>$vboptions[bbtitle] - $custompagetitle</title>
</head>
<body>
$header
$navbar

<if condition="$mygroup_bits">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" style="margin-bottom:20px">
<tr>
<td class="tcat" colspan="3">$vbphrase[you_are_a_member_of_the_following_groups]</td>
</tr>
<tr>
<td class="thead" width="100%">$vbphrase[group_name]</td>
<td class="thead" align="center" nowrap="nowrap">$vbphrase[joined_group]</td>
<td class="thead" align="center" nowrap="nowrap">$vbphrase[group_options]</td>
</tr>
$mygroup_bits
</table>
</if>

<if condition="$show['errors']">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr align="$stylevar[left]">
<td class="tcat">
$vbphrase[errors_occured_with_search]
</td>
</tr>
<tr>
<td class="alt1">
<ol>$errorlist</ol>
</td>
</tr>
</table>

<br />
</if>

<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="3">
<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>
$grouplisttitle
</td>
</tr>
<if condition="$grouplist">
<tr>
<td class="thead" width="100%">
<a href="$sorturl&amp;order=asc&amp;sort=name">$vbphr ase[group_name]</a> $sortarrow[name]
</td>
<td class="thead" align="center" nowrap="nowrap">
<a href="$sorturl&amp;order=desc&amp;sort=members">$v bphrase[group_members]</a> $sortarrow[members]
</td>
<td class="thead" width="150" align="center" nowrap="nowrap">
<a href="$sorturl&amp;order=desc&amp;sort=created">$v bphrase[group_created]</a> $sortarrow[created]
</td>
</tr>
$grouplist
<else />
<tr>
<td class="alt1" align="center" colspan="3">$vbphrase[no_groups_to_display]</td>
</tr>
</if>

<tr>
<td colspan="3" align="center" class="tfoot smallfont">
<if condition="$show['creategroup']">
<strong><a href="group.php?$session[sessionurl]do=create">$vbphrase[create_a_new_group]</a></strong> &nbsp;
</if>
&nbsp; <strong><a href="group.php?$session[sessionurl]do=search">$vbphrase[search_groups]</a></strong>
</td>
</tr>
</table>
<if condition="$pagenav">
<div style="margin-top: $stylevar[cellpadding]px">$pagenav</div>
</if>

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


$footer
</body>
</html>
Reply With Quote
  #6  
Old 12-22-2007, 10:27 PM
nerofix nerofix is offline
 
Join Date: Mar 2006
Location: Saarland
Posts: 219
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Okay, replace everything in your SOCIALGROUPS template with this code:

Code:
$stylevar[htmldoctype]
<html xmlns="http://www.w3.org/1999/xhtml" dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
$headinclude
<title>$vboptions[bbtitle] - $custompagetitle</title>
</head>
<body>
$header
$navbar

<!-- create & search group table -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" style="margin-bottom:20px">
<tr>
	<td colspan="3" align="center" class="tfoot smallfont">
		<if condition="$show['creategroup']">
			<strong><a href="group.php?$session[sessionurl]do=create">$vbphrase[create_a_new_group]</a></strong> &nbsp;
		</if>
		&nbsp; <strong><a href="group.php?$session[sessionurl]do=search">$vbphrase[search_groups]</a></strong>
	</td>
</tr>
</table>
<!-- / create & search group table -->

<if condition="$mygroup_bits">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" style="margin-bottom:20px">
<tr>
<td class="tcat" colspan="3">$vbphrase[you_are_a_member_of_the_following_groups]</td>
</tr>
<tr>
<td class="thead" width="100%">$vbphrase[group_name]</td>
<td class="thead" align="center" nowrap="nowrap">$vbphrase[joined_group]</td>
<td class="thead" align="center" nowrap="nowrap">$vbphrase[group_options]</td>
</tr>
$mygroup_bits
</table>
</if>

<if condition="$show['errors']">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr align="$stylevar[left]">
<td class="tcat">
$vbphrase[errors_occured_with_search]
</td>
</tr>
<tr>
<td class="alt1">
<ol>$errorlist</ol>
</td>
</tr>
</table>

<br />
</if>

<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="3">
<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>
$grouplisttitle
</td>
</tr>
<if condition="$grouplist">
<tr>
<td class="thead" width="100%">
<a href="$sorturl&amp;order=asc&amp;sort=name">$vbphrase[group_name]</a> $sortarrow[name]
</td>
<td class="thead" align="center" nowrap="nowrap">
<a href="$sorturl&amp;order=desc&amp;sort=members">$vbphrase[group_members]</a> $sortarrow[members]
</td>
<td class="thead" width="150" align="center" nowrap="nowrap">
<a href="$sorturl&amp;order=desc&amp;sort=created">$vbphrase[group_created]</a> $sortarrow[created]
</td>
</tr>
$grouplist
<else />
<tr>
<td class="alt1" align="center" colspan="3">$vbphrase[no_groups_to_display]</td>
</tr>
</if>

<tr>
<td colspan="3" align="center" class="tfoot smallfont">
<if condition="$show['creategroup']">
<strong><a href="group.php?$session[sessionurl]do=create">$vbphrase[create_a_new_group]</a></strong> &nbsp;
</if>
&nbsp; <strong><a href="group.php?$session[sessionurl]do=search">$vbphrase[search_groups]</a></strong>
</td>
</tr>
</table>
<if condition="$pagenav">
<div style="margin-top: $stylevar[cellpadding]px">$pagenav</div>
</if>

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


$footer
</body>
</html>
If this doesnt work, then please give me the link to your forum, then I can have a deeper look.
Reply With Quote
  #7  
Old 12-22-2007, 10:32 PM
whitetigergrowl whitetigergrowl is offline
 
Join Date: Jun 2004
Posts: 243
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Got it to work. Thanks!
Reply With Quote
  #8  
Old 12-22-2007, 10:56 PM
nerofix nerofix is offline
 
Join Date: Mar 2006
Location: Saarland
Posts: 219
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Your welcome

Don't forget to click on install to recieve update info
Reply With Quote
  #9  
Old 12-12-2008, 06:37 AM
mesdar mesdar is offline
 
Join Date: Jul 2008
Posts: 76
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks

Installed
Reply With Quote
Reply


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 04:47 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.04438 seconds
  • Memory Usage 2,302KB
  • Queries Executed 22 (?)
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
  • (2)bbcode_code
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (8)postbit
  • (9)postbit_onlinestatus
  • (9)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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete