Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Usergroup Legend with Links To FAQ Details »»
Usergroup Legend with Links To FAQ
Version: 1.3, by MarkFL MarkFL is offline
Developer Last Online: Jun 2020 Show Printable Version Email this Page

Category: Mini Mods - Version: 4.x.x Rating:
Released: 12-23-2015 Last Update: 01-01-2017 Installs: 29
Uses Plugins
Translations  
No support by the author.

Overview:

This product allows you to display a legend of selected usergroups in your WGO block, directly below the list of users who have visited the site recently. You may link each usergroup name to an FAQ item if you have such items defined to describe certain usergroups. You may choose to strip the trailing "s" from the usergroup names in case the usergroup names are plural, but you want the singular to show in the legend. You may choose to simply delimit the list with commas, or choose one from 10 special characters, or enter you own custom character(s). You may choose the size of the delimiter as a percentage of the default font-size. You may assign any custom CSS to the legend's usergroup list.



Updates:

Version 1.1:
  • Added setting for the control of the delimiter CSS.

Version 1.2:
  • Legend is only visible for users that can either see who is online or can see who has visited.

Version 1.2.1:
  • Fixed bug with diamond delimiter.

Version 1.3:
  • Added setting to allow for image as custom delimiter.

Compatibility:

Tested and working on VB 4.2.x and should work on all 4.x versions of vBulletin.

Backup/Warning:

This product does not alter your database, however it is always good practice to make regular backups and you should make a backup before installing ANY new mod.

As always, products are USE AT YOUR OWN RISK. I will provide support and do my best to help but no absolute guarantee is offered.

To Install:
  1. Download and extract the attached .zip file.
  2. Follow AdminCP -> Plugins & Products -> Manage Products -> Add/Import Product.
  3. Click on "Choose File" and browse to the product .xml file that was packaged in the .zip file.
  4. Click "Import."
  5. You MUST enable the product in the settings before it will function.
  6. Configure the remaining settings to your liking. Each setting has a detailed explanation of its use.



Support for this product can be found here:

Download Now

File Type: zip MarkFL - Usergroup Legend v1.3.zip (4.0 KB, 160 views)

Screenshots

File Type: png markfl_usergroup_legend.png (17.4 KB, 0 views)
File Type: jpg markfl_usergroup_legend_acp.jpg (85.7 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
2 благодарности(ей) от:
seb5594, yin9

Comments
  #42  
Old 01-02-2017, 11:28 AM
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Location: St. Augustine, FL
Posts: 3,853
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Update - Version 1.3:
  • Added setting to allow for image as custom delimiter.
Reply With Quote
  #43  
Old 06-06-2017, 03:13 AM
JARNAR JARNAR is offline
 
Join Date: Apr 2017
Location: Pistoia, Italy
Posts: 20
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hello Mark,

How do you add a separator between the names?

As you can see (attached image), the two texts are barred and it doesn't look good:
Attached Images
File Type: jpg Screenshot (65).jpg (11.2 KB, 0 views)
Reply With Quote
  #44  
Old 06-06-2017, 03:32 AM
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Location: St. Augustine, FL
Posts: 3,853
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You can add CSS to the delimiters (separators)...try something like:

Code:
margin-right: 0.25em;
in the setting labeled "Additional Delimiter CSS."
Reply With Quote
  #45  
Old 06-06-2017, 04:32 AM
JARNAR JARNAR is offline
 
Join Date: Apr 2017
Location: Pistoia, Italy
Posts: 20
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by MarkFL View Post
You can add CSS to the delimiters (separators)...try something like:

Code:
margin-right: 0.25em;
in the setting labeled "Additional Delimiter CSS."

The barrier remains above the separator(screen 1):

How to get the not-bold separators (like a Boofo's Legend; screen 2)???
Attached Images
File Type: jpg Screenshot (66).jpg (7.8 KB, 0 views)
File Type: png screen62.png (8.5 KB, 0 views)
Reply With Quote
  #46  
Old 06-06-2017, 04:39 AM
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Location: St. Augustine, FL
Posts: 3,853
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If you want the separator to not be bold, then add the delimiter CSS:

Code:
font-weight: normal;
Reply With Quote
Благодарность от:
JARNAR
  #47  
Old 06-06-2017, 09:12 AM
JARNAR JARNAR is offline
 
Join Date: Apr 2017
Location: Pistoia, Italy
Posts: 20
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks Mark,

Do you know from what it could depends?
Attached Images
File Type: jpg Screenshot (67).jpg (29.5 KB, 0 views)
Reply With Quote
  #48  
Old 06-06-2017, 12:30 PM
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Location: St. Augustine, FL
Posts: 3,853
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Try adding this to your delimiter CSS:

Code:
text-decoration: none;
Reply With Quote
  #49  
Old 06-07-2017, 01:51 AM
JARNAR JARNAR is offline
 
Join Date: Apr 2017
Location: Pistoia, Italy
Posts: 20
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by MarkFL View Post
Try adding this to your delimiter CSS:

Code:
text-decoration: none;
It change anything.

I think I've found the problem with Google inspecting:

<span style="font-weight: bold; color: #2c221e; text-decoration: line-through;" <="" span=""><span style="font-size: 102%; margin-right: 0.5em; font-weight: normal; color: #000000; text-decoration: none;">|</span>Utenti Bannati&nbsp;&nbsp;</span>

These spaces directly insert your product, prolong the barred character. How do you remove them?
Reply With Quote
  #50  
Old 06-07-2017, 02:02 AM
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Location: St. Augustine, FL
Posts: 3,853
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If I understand correctly, it looks like something in your usergroup HTML markup...check that out.
Reply With Quote
  #51  
Old 06-07-2017, 03:19 AM
JARNAR JARNAR is offline
 
Join Date: Apr 2017
Location: Pistoia, Italy
Posts: 20
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by MarkFL View Post
If I understand correctly, it looks like something in your usergroup HTML markup...check that out.
The Boofo's product, doesn't present this problem. It's part of the product:


$usergroup_list .= '<div style="display: inline-block; padding-left: 0">' . $vbulletin->usergroupcache[$id_arr[0]]['opentag'] . '<span style="font-size: ' . $vbulletin->options['markfl_usergroup_legend_delimitsize'] . '%; ' . $vbulletin->options['markfl_usergroup_legend_delimcss'] . '">' . $delimiter . '</span>' . $uname . $vbulletin->usergroupcache[$id_arr[0]]['closetag'] . '&nbsp;&nbsp;</div>';

What is the name of the template of your product?
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 05:00 AM.


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.05362 seconds
  • Memory Usage 2,359KB
  • Queries Executed 28 (?)
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
  • (5)bbcode_code
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (3)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (2)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (7)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)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_postinfo_query
  • fetch_postinfo
  • 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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete