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)

Boofo 08-02-2005 09:19 AM

Both of you to neutral corners. ;)

If you see a need to continue this, please take it to the Lounge. Thank you.

Sorry, Amy. ;)

SmartGnome 08-02-2005 01:45 PM

Have tried to install but the only thing I see is the legend header and nothing else below that.

Did I miss something here ??

// Get all usergroups that have style changes.

Do I have to change something in the usergroup manager ??

Tnx in advance

Ad

amykhar 08-02-2005 01:47 PM

Quote:

Originally Posted by SmartGnome
Have tried to install but the only thing I see is the legend header and nothing else below that.

Did I miss something here ??

// Get all usergroups that have style changes.

Do I have to change something in the usergroup manager ??

Tnx in advance

Ad

Do you have usergroups that have colored tags or use bold, italics, etc?

SmartGnome 08-02-2005 04:16 PM

Quote:

Originally Posted by amykhar
Do you have usergroups that have colored tags or use bold, italics, etc?


No I don't have that. Give me a hint, is that something like <color='red'> and </color> ??

Amy tnx for the quick response

Ad

amykhar 08-02-2005 04:18 PM

Yes. It is. If you don't have your user groups designated with special markings, the legend shows nothing because there is no need for the legend. ;)

Amy

SmartGnome 08-03-2005 07:08 AM

@Amy

Changed the colors and all is working now.

Many Thanks

Ad

btw:
Install clicked again :rolleyes:

cmiller1014 08-03-2005 07:13 AM

Hey Amy,

Will this work on 3.0.7? I want something just like this one that pulls the usergroup info and color from the db. I dont want to have to manually add them via html each time.

Any ideas for a solution for 3.0.7?

Thanks

poolking 08-03-2005 08:51 AM

nice one. :D

Works fine in RC1. :)

amykhar 08-03-2005 12:26 PM

Quote:

Originally Posted by cmiller1014
Hey Amy,

Will this work on 3.0.7? I want something just like this one that pulls the usergroup info and color from the db. I dont want to have to manually add them via html each time.

Any ideas for a solution for 3.0.7?

Thanks

cmiller, it won't work as is, but if you know php it wouldn't be too difficult to back-port.

Unfortunately, except for some projects I am committed to already, I will not be back-porting any of my hacks for release here.

SlipNslide281 08-05-2005 08:54 PM

how do you install the xml plugin?
nevermind I did a search for colord admin names and this is what came up. Im using 3.0.8 can somone point me in the direction for 3.0.8 hack like this one?

amykhar 08-05-2005 08:59 PM

There isn't one. There's just a static template mod.

johnbruce71 08-14-2005 02:00 PM

How do I change the colours for the usernames of the people online? Does it require a seperate hack?

Vizionz 08-14-2005 02:13 PM

just go into your admincp and go to user groups and change the span style so example
admin <font color="green"> then in the next box end the font </font>

johnbruce71 08-14-2005 02:37 PM

Cheers :)

Wayne Luke 08-17-2005 03:36 AM

There is no way of ordering the usergroups is there?

amykhar 08-17-2005 12:25 PM

Sure. In the no query version, each group could be put in an array and sorted before display, which would work if you wanted them displayed alphabetically or in some other algorithymic way.

But, if you wanted them displayed in a specific order that you decide, it might be best to add a displayorder field to the database and cache that in the datastore for use in the mod.

Wayne Luke 08-17-2005 03:21 PM

Yeah it is already sorted in alphebetical order. Want it sorted in an importance order based on what I assign the groups. Maybe one day I will be able to look at the code enough to figure out how things work in 3.5, right now they are all over my limited PHP skills.

amykhar 08-17-2005 03:28 PM

Wayne, my dsl just came back. So, I have time to look into this for you. Just give me a day or two.

zappsan 08-17-2005 06:42 PM

Installed on my testforum.
Working fine.
I'll use it on my public forum after I've upgraded to 3.5

*clicks install*

Wayne Luke 08-17-2005 07:08 PM

Quote:

Originally Posted by amykhar
Wayne, my dsl just came back. So, I have time to look into this for you. Just give me a day or two.

Thanks.

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 :)

truz 10-01-2005 09:48 AM

Installed, thanks. :)

jluerken 10-02-2005 02:13 PM

How can I sort the legend to:

Administrators, Super Moderators, Moderators, Banned Users, CUSTOM GROUPS (alphabetically) ?

thedvs 10-02-2005 03:35 PM

awesome mod, all working in 3.5g

Snake 10-02-2005 03:43 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

OK amy I would like to sort the showgroups.php so what am I supposed to do exactly now? Download the files you have attached 'cause I'm confused as hell.

ReadOrDie 10-02-2005 04:27 PM

I installed the hack but I don't see anywhere to change the colors on the "whos online"...

Toky0 10-04-2005 09:16 AM

Quote:

Originally Posted by amykhar
Doh on using the cache! I'll update that and give you credit for catching my brain-fart ;)

Amy

[high]* Toky0 clicks install.
[/high]

Excellant hack as usual amykhar!

pfvc 10-09-2005 12:46 AM

My forum has a number of sub-forums. If I wanted to have this display at the bottom of the subforums how would I go about doing that?

Next-Selection 10-11-2005 08:46 PM

Hey does this works with 3.5.0 GOLD ???

cylosoft 10-11-2005 09:54 PM

I'm not getting it to work with 3.5 Gold. My style template changes are working, but the list isn't getting filled like the plug-in isn't working.

Next-Selection 10-11-2005 09:59 PM

Yeah same here !!!


All times are GMT. The time now is 12:59 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.01322 seconds
  • Memory Usage 1,814KB
  • 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
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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