Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
UGL - Usergroup Legend (vBA Support Included) Details »
UGL - Usergroup Legend (vBA Support Included)
Mod Version: 3.8.01, by Trek (Member) Trek is offline
Developer Last Online: May 2015 I like it Show Printable Version Email this Page

vB Version: 3.8.0 Rating: (4 votes - 5.00 average) Installs: 63
Released: 11 Jan 2009 Last Update: Never Downloads: 521
Not Supported Uses Plugins Template Edits Additional Files Re-usable Code Translations  

What it does:

This plugin displays the user group color legend at the bottom of the forums index and/or in the Users Online box for those with vBAdvanced installed. Basically, this will work for people with vBAvanced as well as those without it.

This is my first vB mod and I wrote it only after a few hours of looking into how to make a plugin, so please... be nice in your comments.

How to install:

Admin CP -> Plugins & Products -> Manage Products -> Add/Import Product

Select the XML File

Import the file

IF YOU ARE USING vBA, then follow the next set of installation instructions (upload the file, make the module edit)

This mod requires a hook that doesn't exist in vBA, so I've created one myself.

Upload the file hooks_ugl.xml into your /includes/xml folder.

Now you have to add in the call to the hook.

Open the file /modules/onlineusers.php

Find:
if (!$activeusers)
{
$activeusers = construct_phrase($vbphrase['no_x_online'], $vbphrase['members']);
}


Add After:

// Added by UGL module
($hook = vBulletinHook::fetch_hook('vba_cmps_module_onlineusers_complete')) ? eval($hook) : false;



Configuration:

Admin CP -> vBulletin Options, User Group Legend

By default the display for vbAdvanced is turned off, so if you use vBA, turn it on here. Otherwise, configure the usergroups you'd like displayed and in what order.

How do I change the usergroup colors?

In order to change the colors of the different usergroups, you have to edit the user groups themselves, this is standard for vBulletin but some people have a hard time figuring it out (myself included at first).

AdminCP -> Usergroups -> Usergroup Manager -> Edit (next to whatever usergroup)

What you are looking for is the field: Username HTML Markup

Edit the first box and add in: <span style="color: #FF6600;">
Edit the next box and add in: </span>

Do that for each usergroup you want, changing the HTML color value to your liking.

Credits:

This mod is derived from the mod Usergroup Color Bar Legend, http://www.vbulletin.org/forum/showthread.php?p=1707616 by Atakan KOC.
Mostly all I did was add in support for vBAdvanced.

Screen Shots:



Download Now

Only licensed members can download files, Click Here for more information.

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Similar Mod
Mod Developer Type Replies Last Post
Forum Home Enhancements Yet Another Usergroup Legend arco vBulletin 3.7 Add-ons 58 29 Dec 2009 20:48
Forum Home Enhancements Usergroup Legend JetHaCkR vBulletin 3.7 Add-ons 48 05 Jan 2009 07:56

Comments
  #2  
Old 11 Jan 2009, 06:34
dt_truck11's Avatar
dt_truck11 dt_truck11 is offline
 
Join Date: Apr 2008
Real name: Dustin
im assuming the second screenshot is what it looks like on vbadvanced? because im looking for exactly that for vb 3.8 to put on a side column. any way u could help me with that?
Reply With Quote
  #3  
Old 11 Jan 2009, 06:39
Trek Trek is offline
 
Join Date: Sep 2003
Yes, that's the vBA screenshot. I'll look into doing what you want as it sounds like a good addition to the plugin. More than likely, you could just edit the Online Users plugin to point to the correct hook where you want it displayed, but... that's just a guess.

Where exactly on what side column are you looking to put it?

Originally Posted by dt_truck11 View Post
im assuming the second screenshot is what it looks like on vbadvanced? because im looking for exactly that for vb 3.8 to put on a side column. any way u could help me with that?
Reply With Quote
  #4  
Old 11 Jan 2009, 06:49
dt_truck11's Avatar
dt_truck11 dt_truck11 is offline
 
Join Date: Apr 2008
Real name: Dustin
if u look at my site i have a mod that adds a menu on the left side of my forum home and i would like to put the online users in one of the blocks
Reply With Quote
  #5  
Old 11 Jan 2009, 07:01
Trek Trek is offline
 
Join Date: Sep 2003
What you'd need to do is edit whatever file creates that module, wherever you want the forum legend to display, you need to add in the:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Then make sure you enable it in the vBulletin options and you should hopefully get it to display there. It's hard to say not knowing that addon you're using, but that's really all it should take it to make it work. It depends on if the same data is available in that module as is needed.
Reply With Quote
  #6  
Old 11 Jan 2009, 07:08
dt_truck11's Avatar
dt_truck11 dt_truck11 is offline
 
Join Date: Apr 2008
Real name: Dustin
welllll.....lol it didnt exactly work this is what comes up when i add your code


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

theres actually more stuff but it wont fit in this post

im using the Ultimate Side Columns mod. i edit all the blocks through the style templates.
Reply With Quote
  #7  
Old 11 Jan 2009, 15:05
RedDevil's Avatar
RedDevil RedDevil is offline
 
Join Date: Mar 2008
Real name: Steve
very nice - installed Vba working fine too nice 1st mod
Reply With Quote
  #8  
Old 12 Jan 2009, 10:48
Leo Brazil's Avatar
Leo Brazil Leo Brazil is offline
 
Join Date: Dec 2007
Question before installation.

You said this mod derived from the mod Usergroup Color Bar Legend, http://www.vbulletin.org/forum/showthread.php?p=1707616 by Atakan KOC, right ?

I already have his mod installed but the idea to give integration for vBA really atracts me.
In this case, can I just installed hooks plug in instead of delete Atakan one and install everything ?

Thank you the idea is great.
Reply With Quote
  #9  
Old 12 Jan 2009, 17:03
Trek Trek is offline
 
Join Date: Sep 2003
First, I'm glad you like the mod! Second... it might work together.

When I first started working on it, I wasn't planning on releasing it (didn't think many people would use it, my first mod, etc). So when I wrote it, I redid some of how the original mod works and added my own things to it.

By default, you'd get it double printing in the forums index. However in my mod, I added in the ability to turn on/off each section it displays in. So I guess you could turn off the main forums index display in my mod and leave the vBA one intact and it should work fine.

You'll have two mods running technically and a little more overhead in storage, etc... but obviously, nothing serious. Either way, I think that'll work. Let me know how it works out for ya!


Originally Posted by Leo Brazil View Post
Question before installation.

You said this mod derived from the mod Usergroup Color Bar Legend, http://www.vbulletin.org/forum/showthread.php?p=1707616 by Atakan KOC, right ?

I already have his mod installed but the idea to give integration for vBA really atracts me.
In this case, can I just installed hooks plug in instead of delete Atakan one and install everything ?

Thank you the idea is great.
Reply With Quote
  #10  
Old 13 Jan 2009, 16:06
meissenation meissenation is offline
 
Join Date: Apr 2005
Neither yours nor the other one that's identical to this works for me. :? It shows the usergroups legend but it doesn't show the HTML markup that I've already done for each of those usergroups.
Reply With Quote
  #11  
Old 13 Jan 2009, 19:15
Leo Brazil's Avatar
Leo Brazil Leo Brazil is offline
 
Join Date: Dec 2007
Installed and working fine.

Just a tip: phrase the sentence "Color Legend:"

Thanks.
Reply With Quote
  #12  
Old 13 Jan 2009, 19:23
Trek Trek is offline
 
Join Date: Sep 2003
Can you paste in what the HTML you have is? That seems to be the common issue between my mod and the other that you are having trouble with.

Originally Posted by meissenation View Post
Neither yours nor the other one that's identical to this works for me. :? It shows the usergroups legend but it doesn't show the HTML markup that I've already done for each of those usergroups.
Reply With Quote
  #13  
Old 13 Jan 2009, 19:23
Trek Trek is offline
 
Join Date: Sep 2003
Good idea, thanks! Now... to figure that out!

Originally Posted by Leo Brazil View Post
Installed and working fine.

Just a tip: phrase the sentence "Color Legend:"

Thanks.
Reply With Quote
  #14  
Old 07 Jul 2009, 00:37
NLP-er's Avatar
NLP-er NLP-er is offline
 
Join Date: Aug 2008
Real name: Michał Podbielski
Screenshot please
__________________
vBulletin Enterprise Translator (vBET) - your forum in 53 languages - get more traffic, users and incomes from AdSense!
Reply With Quote
  #15  
Old 07 Jul 2009, 00:43
Trek Trek is offline
 
Join Date: Sep 2003
Originally Posted by NLP-er View Post
Screenshot please
Umm, there are screenshots already.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

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


New To Site? Need Help?

All times are GMT. The time now is 04:38.

Layout Options | Width: Wide Color: