vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Forum Home Enhancements - Usergroup Legend on Forumhome for vB 4 (https://vborg.vbsupport.ru/showthread.php?t=259806)

Boofo 03-03-2011 10:00 PM

Usergroup Legend on Forumhome for vB 4
 
1 Attachment(s)
Only those who "Mark As Installed" will receive support for this modification.
If you use this modification and would like to help support its development, please consider sending a donation.


Usergroup Legend on Forumhome for vB 4
Version 1.1.1
(By Boofo)

What does this product do?
This product will show the user groups you have available on your site in a legend on the forumhome. It will also check to see if the 'Spiders Display on Forumhome and Who's Online' product is installed and enabled. If found, "Spiders" will be added to the end of the Legend.

Credits:
Thanks to LifesGreatestGift for the CSS and style variable help.

Version Information:
Version 1.0.0 --Initial release for vBulletin 4.1.2
Version 1.0.1 --Fixed issue with there not being enough space between the legend and activeusers when the legend was placed above activeusers. Also switched from p tags to spans tags to make it 100% XHTML 1.0 Transitional compliant. The centered legends are now centered on the full width of the wgo box, sans the left margin.
Version 1.0.2 --Spider Display Font Color is now set by the style variable setting for the spider color in the 'Spiders Display on Forumhome and Who's Online' v1.0.6 mod, if it is installed.
Version 1.0.3 --Removed Enable/Disable setting and added "Do not show Usergroup Legend" as the first option in the "Usergroup Legend on Forumhome Location" setting.
Version 1.0.4 --Fixed full line break spacing.
Version 1.0.5 --Changed the hook to avoid conflicting with Paul M's mods.
Version 1.0.6 --Added 3 more location settings (Above activeusers centered with 1/2 and full line breaks).
Version 1.0.7 --Added Usergroup Separator setting. You can now choose from 10 different separators to show between the usergroups.
Version 1.0.8 --Added 2 more separators to the separator setting, for a total of 12. (vertical bar and horizontal ellipsis = three dot leader)
Version 1.0.9 --Fixed legend from being pushed too far left if the line was too long. Added setting for usergroups allowed to view the legend. Removed "Do not show Usergroup Legend" as the first option in the "Usergroup Legend on Forumhome Location" setting. Added setting to show "Spiders" at the end of the legend. Added setting to show Spider Image as a separator before "Spiders" in the legend.
Version 1.1.0 --Added style variable to change the color of the legend separator. Rewrote code to add CSS instead of coding it all inline.
Version 1.1.1 --Fixed CSS as it was showing the usergroups stacked in IE. Also added a phrase for the word "Spiders".

Installation Overview:
-----------------------------------------------------
1 Product XML (2 Plugins, 24 phrases, 1 CSS Template, 6 settings and 1 Style Variable)

Installation Instructions:
-----------------------------------------------------
1. Go to your Admin CP
Scroll down to 'Plugins & Products'
Click 'Manage Products'
Click 'Add/Import Product'
Click the 'Browse' button, and locate the 'product-boofo_legend.xml' file on your computer

2. Go to your Admin CP -> vBulletin Options -> 'Usergroup Legend on Forumhome' and set the following options:
Usergroup Legend on Forumhome Display Order: Enter the usergroupids in the order you want them to display. (Default is '6,5,7,2')
Usergroup Legend on Forumhome Location: Choose the location you want the Usergroup Legend on Forumhome to show up in. (Default is 'Below activeusers with 1/2 line break (centered)')
Usergroup Legend on Forumhome Separator: Choose the separator you want to show between the usergroups. (Default is 'Star - solid')
Usergroup Legend on Forumhome View Usergroups: These usergroups can view the Usergroup Legend. (Default is '0' = all usergroups)
Enable Spiders in Usergroup Legend on Forumhome: Click Yes if you want Spiders to show in the Usergroup Legend on Forumhome. (Default is 'No')
Show Spider Image as Separator for Spiders: Click Yes if you want the spider image to show before Spiders in the legend instead of the legend separator. (Default is 'No')

Note: You must have the "Spiders Display on Forumhome and Who's Online" mod installed for the above 2 Spider options to work.

3. Style Variable:
Go to your Admin CP -> Styles & Templates -> Style Manager -> Style Variable Editor -> Click Go Button -> Boofo -> boofo_legend_separator_color
Enter a hex color code or web-safe color for the usergroup separator (Examples: hex code: #FF0000 or web-safe color: red)

Note: You will need to do this for all styles.
-----------------------------------------------------

Done!
Enjoy!


Code:

if ($mark_as_installed != 'clicked')
{
        $you_get = 'squat';
}
else
{
        $you_get = 'support';
}


voglermc 03-03-2011 11:24 PM

screen shot?

Juhnke 03-04-2011 12:20 AM

I'll try it out soon, when my host is working again.

Boofo 03-04-2011 12:38 AM

Screenshots added to first post.

sulasno 03-04-2011 01:44 AM

tagged and thanks

wally07 03-04-2011 04:02 AM

Installed, thank you! Definitely love the fact that I can have the legend centered!

Would it be possible for the legend to actually have them click-able? For instance, I have a few Moderators on my forum and if I can click on the "Moderators" on the usergroup legend, it'll show all the Moderators only.

Hopefully that made sense. Thanks in advance!

Boofo 03-04-2011 04:16 AM

I'm sure it would be possible, but not really worth all the work that would be involved for a free mod.

Atakan KOC 03-04-2011 06:10 AM

Fine. Thanks Boofo... I can not be online much for a long time. Thanks for the update.

Mikevet1984 03-04-2011 02:51 PM

Great mod! Added...One comment if allowed.

In the above active users options the bar is not centered and the more important thing the distance from he first line of usernames in my opinion is very short. Not good in appearance (i.m.o. thought)

Apart from perfect mod! Boofo did his miracle again!

Boofo 03-04-2011 02:53 PM

Quote:

Originally Posted by Mikevet1984 (Post 2169509)
Great mod! Added...One comment if allowed.

In the above active users options the bar is not centered and the more important thing the distance from he first line of usernames in my opinion is very short. Not good in appearance (i.m.o. thought)

Apart from perfect mod! Boofo did his miracle again!

What do you mean "not centered"? And look at the options. They will give you the spacing you are wanting.

Mikevet1984 03-04-2011 03:09 PM

The first one and only setting about above active users option.... gives you no chance to choose if centered or from the left. Plus it is very close to first line of user names

Boofo 03-04-2011 03:22 PM

I thought of centering that but it really looked bad as the rest of the text above it is left-aligned. And since I don't use that option, I didn't spend very much time on it.

SEW810 03-04-2011 05:27 PM

https://vborg.vbsupport.ru/external/2012/01/11.gif Installed
https://vborg.vbsupport.ru/external/2012/01/11.gif Working on vb 4.1.2
https://vborg.vbsupport.ru/external/2012/01/11.gif +5 Stars

Thank you very much !!!


if ($your_mod != 'working')
{
$all_of_us = 'f___d up';
}
else
{
$all_of_us = 'happy';
}

lol

Eduardo Leon 03-04-2011 08:51 PM

hahaha !

buena respuesta SEW810 xD !

if ($your_mod != 'working')
{
$all_of_us = 'is pretty cool';
}
else
{
$all_of_us = 'f___K D: ! ';
}

xD !

nice

horussjr 03-19-2011 12:17 PM

if position is set with below active users is wont appear under Currently Active Users but under Total members that have registered on the forum today

Boofo 03-19-2011 12:21 PM

No, it will appear where it is supposed to.

horussjr 03-19-2011 12:36 PM

i can assure you it wont.....

NTT 03-19-2011 12:39 PM

Good Job Men !

I had edited it for myself as soon as upgrade to vBB 4.1.2 !

Boofo 03-19-2011 12:53 PM

Quote:

Originally Posted by horussjr (Post 2175078)
i can assure you it wont.....

What do you mean "it won't"?

Frost5 03-19-2011 03:33 PM

Works great on 4.1.2, thanks.

horussjr 03-19-2011 06:41 PM

1 Attachment(s)
Quote:

Originally Posted by Boofo (Post 2175081)
What do you mean "it won't"?

take a look at this pictures.... same problem as the other product from where you redirected me


LE: if i disable the who have registered mod then that bar goes up to Total websites who have referred visitor today

Boofo 03-19-2011 07:58 PM

Quote:

Originally Posted by horussjr (Post 2175203)
LE: if i disable the who have registered mod then that bar goes up to Total websites who have referred visitor today

That is an easy fix. You need to go it go all those products and set the Execution Order to something other than 1, which is what this mod is set at. They are all set at one and fighting one another. Not much else you can do.

As far as this being the same thing as the other mod, they are not even close in what they can do. This mod has many more locations available, for one thing.

OldSchoolDSL 03-23-2011 05:28 AM

Installed (using this to replace another modification)

Working

4.1.2 :)

China-Rising 03-28-2011 08:58 PM

Installed and working perfectly.

One request though:

Is it possible to make the legend clickable? in other words I click on the Administrator and and it will take you to the member page of who belongs in that group? Or I click on Registered users and it takes you to the page listing all the members who belong in that group?

They have this on phpBB.

Boofo 03-28-2011 09:27 PM

Quote:

Originally Posted by China-Rising (Post 2178512)
Installed and working perfectly.

One request though:

Is it possible to make the legend clickable? in other words I click on the Administrator and and it will take you to the member page of who belongs in that group? Or I click on Registered users and it takes you to the page listing all the members who belong in that group?

They have this on phpBB.

That would require adding a lot more to this mod than I'm willing to do as it is a free mod.

China-Rising 03-28-2011 09:48 PM

Quote:

Originally Posted by Boofo (Post 2178524)
That would require adding a lot more to this mod than I'm willing to do as it is a free mod.

No problem Boofo, keep up the great work. I always find your mods very useful:)

Coume 03-29-2011 05:51 AM

Thanks.

I installed it on my forum ( http://www.mythtvtalk.com/forum/ ) but all the usergroups are written in the same color.
Any idea on what to do to fix it?

Thanks

Boofo 03-29-2011 09:19 AM

Quote:

Originally Posted by Coume (Post 2178628)
Thanks.

I installed it on my forum ( http://www.mythtvtalk.com/forum/ ) but all the usergroups are written in the same color.
Any idea on what to do to fix it?

Thanks

You need to add the "Username HTML Markup" for each usergroup in the Usergroup settings.

TR KRUPT 03-29-2011 12:07 PM

I have a question does anyone know how to get the different names colored. Sorry just breaking into this whole website thing. Thanks, Also what is a HTML Markup. Sorry im very new to this. lol

Mikevet1984 03-29-2011 01:05 PM

1 Attachment(s)

Take a look at this short tutorial.

Enter Admin CP --> Usergroups --> Usergroup Manager

<Edit usergroup> for every usergroup you would like to edit. Click on the GO button.

When the permission page loads go to <Username HTML Markup > option. You will find there two empty boxes.

In the first one write:

Code:

<span style="font: 12px Tahoma; color: #FF0000; font-weight: bold;">
Change the font settings as you wish for the usergroup. #FF0000 is the html color, this is what you are looking for. For more color htmls take a look here and replace the #FF0000 with whatever you like.

In the second one write:

Code:

</span>
Take a look at the attached screenshot.

Hope I was useful and helped.

Regards!

Mr. Flowers 03-30-2011 12:33 AM

The attachment won't download for me. I really want this.
EDIT: never mind it downloaded. Works great!

Boofo 04-01-2011 01:42 AM

Quote:

Originally Posted by zxleo (Post 2169623)
hahaha !

buena respuesta SEW810 xD !

if ($your_mod != 'working')
{
$all_of_us = 'is pretty cool';
}
else
{
$all_of_us = 'f___K D: ! ';
}

xD !

nice

Your code above makes no sense.

docvader 04-15-2011 01:59 PM

Boofo, long time no talk, hope this finds you well.

I'm having the same issue as a previous participant here, with the legend showing below Paul M's "who has registered" and "who has visited", when I put the legend below the active users.

I have no idea how to change the execution order of these products. My apologies, but over ten years of using vbulletin, and I have no idea....

Thanks man. Great to see you are still around here.

forum.russbo.com

Boofo 04-15-2011 02:03 PM

Update posted to fix the issue above.

khena25 04-15-2011 06:52 PM

HI!

I installed this, but the colors don't change for the legend! :(

mitch84 04-16-2011 05:04 AM

thank you for this update

steve1966 04-16-2011 02:09 PM

Thank you rated 10

horussjr 04-16-2011 02:55 PM

now it works perfect boofo. thank you for updating:)

Boofo 04-16-2011 03:16 PM

You had doubts? ;)

Robi 04-17-2011 03:21 PM

I have question about this mod,after i installed this mod (thx Boofo) it shows up user groups on my forum home page but now i have issue with 1 usergroup (usergroup id:3) it shows usergroup but there's no visible users online for that group-while for the other usergroups work fine.My vB version is 4.1.3.Any idea or suggest how to fix it?

Thx in advance


All times are GMT. The time now is 09:57 PM.

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.01329 seconds
  • Memory Usage 1,833KB
  • 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
  • (3)bbcode_code_printable
  • (8)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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