vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Usergroup Legend for ForumHome page (https://vborg.vbsupport.ru/showthread.php?t=92149)

amykhar 08-17-2005 07:09 PM

Wayne, here is what you need. This will sort the usergroups legend for you.

I am also including a text file with code changes that you can do to showgroups.php to sort the groups there as well if you so desire.

To install this one, remove the existing plugin and install the PRODUCT.

Go to your usergroup manager and set the displayorder of each usergroup.

Unfortunately, at this time I couldn't do the displayorder the way forums are done so that you can do them all on one page and then save them. You'll have to do it group by group.

Amy

Wayne Luke 08-17-2005 07:26 PM

Quote:

Originally Posted by amykhar
Wayne, here is what you need. This will sort the usergroups legend for you.

I am also including a text file with code changes that you can do to showgroups.php to sort the groups there as well if you so desire.

To install this one, remove the existing plugin and install the PRODUCT.

Go to your usergroup manager and set the displayorder of each usergroup.

Unfortunately, at this time I couldn't do the displayorder the way forums are done so that you can do them all on one page and then save them. You'll have to do it group by group.

Amy

Thanks that worked.. Had to add the displayorder field to the usergroup table as an INT though as it was erroring out but once I did that it works great.

www.cohcos.com/forum.php

amykhar 08-17-2005 07:29 PM

oops. Forgot to put that in the product. I'll add it now and reupload incase anybody else wants this.

Amy

Sleepyk 08-18-2005 12:05 AM

i get an error

Invalid File Specified

amykhar 08-18-2005 12:27 AM

Sleepy, which file did you try to import? The one in the first post? That one is a plugin, not a product. If it's the one I did for Wayne, that's a product, not a plugin.

GrendelKhan{TSU 08-22-2005 01:54 AM

sweet!

works great thanks. :D

<< clicks install RC 1

Mathiau 09-14-2005 10:17 PM

RC3 compatible?

amykhar 09-14-2005 11:03 PM

Yep. Working like a champ on my site with no changes.

nexialys 09-15-2005 12:15 AM

Hi Amy, i just edited your code so it's smaller and require less IF...
PHP Code:

foreach ($vbulletin->usergroupcache AS $group)
{
    if (
$group['opentag'])
    {
        
$legend .= (($legend) ? " | " '') . $group['opentag'] . $group['title'] . $group['closetag'];
    }



amykhar 09-15-2005 12:20 AM

Yes, I've seen that version before. :) The reason I elected to do it the way it's done is to make it more readable for newbies who may be inclined to tweak.

Experts may optimize at will :)


All times are GMT. The time now is 11:10 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.01522 seconds
  • Memory Usage 1,740KB
  • 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
  • (1)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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