View Full Version : Mini Mods - Usergroup Legend with Links To FAQ
MarkFL
12-23-2015, 10:00 PM
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.
https://vborg.vbsupport.ru/attachment.php?attachmentid=153878&stc=1&d=1450974853
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:
Download and extract the attached .zip file.
Follow AdminCP -> Plugins & Products -> Manage Products -> Add/Import Product.
Click on "Choose File" and browse to the product .xml file that was packaged in the .zip file.
Click "Import."
You MUST enable the product in the settings before it will function.
Configure the remaining settings to your liking. Each setting has a detailed explanation of its use.
https://vborg.vbsupport.ru/attachment.php?attachmentid=155632&stc=1&d=1483363584
Support for this product can be found here:
MHB - Usergroup Legend with Links To FAQ (http://mathhelpboards.com/vbulletin-products-61/usergroup-legend-links-faq-21854.html)
TAZ - Usergroup Legend with Links To FAQ (https://theadminzone.com/threads/usergroup-legend-with-links-to-faq.145139/)
Dragonsys
12-24-2015, 04:17 PM
very nice
Stratis
12-24-2015, 05:07 PM
Mark very nice.
Some questions to small issues.
a) When i use "Custom Delimiter" than character is shown at the begin to.
- Administrator - Supermoderator - Moderator, an so on.
b) is there a way to trim icons to be at the left of usergroups (closer) and not in the middle.
This because i use color code for each usergroup, so every icon(star) has other color
and when its in the middle its not good for me.
Thanks for the new Mod :)
MarkFL
12-24-2015, 05:16 PM
Mark very nice.
Some questions to small issues.
a) When i use "Custom Delimiter" than character is shown at the begin to.
- Administrator - Supermoderator - Moderator, an so on.
b) is there a way to trim icons to be at the left of usergroups (closer) and not in the middle.
This because i use color code for each usergroup, so every icon(star) has other color
and when its in the middle its not good for me.
Thanks for the new Mod :)
Do you mean you want the delimiter character(s) to be to the immediate left of the usergroup names with no spacing? to the right of the usergroup names as well?
MarkFL
12-24-2015, 05:49 PM
Update version 1.1 :
Added setting for the control of the delimiter CSS.
Stratis
12-24-2015, 06:08 PM
While answering you made the change, very well for the icon position.
Although I think this supposed not to be there (at start), or it should be?
When we use a character
153886
All other ok for me :up:
MarkFL
12-24-2015, 06:22 PM
It was an easy change to make, so I went ahead and did it.
Yes, when you use a delimiter other than a comma, then it appears to the left of each usergroup. :)
Stratis
12-24-2015, 06:34 PM
Ok :D
Last think to remind you, when ever make an update, and its easy don't forget to include an option "Usergroups can NOT view VILXH box (comma separated ID list)" Visitors are better not to see this.
:p
MarkFL
12-24-2015, 07:48 PM
Ok :D
Last think to remind you, when ever make an update, and its easy don't forget to include an option "Usergroups can NOT view VILXH box (comma separated ID list)" Visitors are better not to see this.
:p
I agree that not everyone needs to see it, really only those who can see who is online and/or who has recently visited.
Update version 1.2:
Legend is only visible for users that can either see who is online or can see who has visited.
Elixar
12-24-2015, 11:23 PM
This was always an awesome addition to MHB that I loved. Nicely done. :)
trollshrooms
12-24-2015, 11:52 PM
nothing showing for me 4.2.3 would using e360 html markup cause an issue maybe?
MarkFL
12-25-2015, 12:05 AM
nothing showing for me 4.2.3 would using e360 html markup cause an issue maybe?
It's possible another mod could be in conflict with this one...I would be happy to come to your site and troubleshoot, if you want. If so, PM to me the credentials for an admin account. :)
trollshrooms
12-25-2015, 12:07 AM
yea no prob, i disabled all mods and still nothing... selecting diamond after saving it goes back to comma i noticed
MarkFL
12-25-2015, 12:13 AM
yea no prob, i disabled all mods and still nothing... selecting diamond after saving it goes back to comma i noticed
Yes, I tried it and got the same thing...but was able to fix it. Once I know the issue at your site, I will post an update of the product.
trollshrooms
12-25-2015, 12:31 AM
Pm sent but i guess it will have to wait thanks anyways mark
MarkFL
12-25-2015, 12:33 AM
Pm sent but i guess it will have to wait thanks anyways mark
I can relay to you things to try until your site owner can set me up with a temp. admin account. :)
trollshrooms
12-25-2015, 12:43 AM
coming soon admin just came online sory about this...
MarkFL
12-25-2015, 01:31 AM
I fixed the diamond character issue, with the latest update.
For everyone's information, the issue at trollshroom's site was a missing template hook in the FORUMHOME template...so I edited the plugin to use another, and all is good now. :)
Elixar
02-07-2016, 02:50 PM
Any way to add the option to add a thread link rather than a FAQ link?
MarkFL
02-07-2016, 03:05 PM
Any way to add the option to add a thread link rather than a FAQ link?
I don't plan to change that...it seems to me the best place to place information about staff is the FAQ. :)
Elixar
02-07-2016, 03:08 PM
I don't plan to change that...it seems to me the best place to place information about staff is the FAQ. :)
No worries, I'm using the FAQ system, but also going a different approach for other FAQ's in the forums. :)
teddyvgt
03-03-2016, 05:44 AM
@MarkFL ,Hope you all plug-in support vbulletin 5.2.x
RedHacker
05-17-2016, 11:20 PM
Import product and enable but not show. I have 4.1.7
Why ? ? ?
MarkFL
05-18-2016, 12:07 AM
Import product and enable but not show. I have 4.1.7
Why ? ? ?
It may not be compatible with vB 4.1.x, or there could be a product conflict. Unfortunately, I don't have a vB 4.1.x dev site to test. :(
WindVoice
12-27-2016, 02:33 AM
Did not work with vbulletin 4.2.3
Any idea?
MarkFL
12-27-2016, 07:43 AM
Did not work with vbulletin 4.2.3
Any idea?
I've installed it on multiple vB 4.2.3 sites with success. In order for the usergroup legend to display, you have to have the display of "Currently Active Users" and/or the display of "Total members that have visited the forum today" turned on.
To see if you have "Currently Active Users" turned on, follow:
AdminCP -> Settings -> Options -> Forum Home: Options
Check the setting "Display Logged in Users?" and see which option you have chosen.
To see if you have "Total members that have visited the forum today" turned on, follow:
AdminCP -> Settings -> Options -> Forum Home: Visiting Members
Check the setting "Enable Display" and see which option you have chosen.
If you don't have either of these options turned on, then the usergroup legend won't display, since no users are being displayed in the "What's Going On?" block.
WindVoice
12-28-2016, 03:13 AM
I've installed it on multiple vB 4.2.3 sites with success. In order for the usergroup legend to display, you have to have the display of "Currently Active Users" and/or the display of "Total members that have visited the forum today" turned on.
To see if you have "Currently Active Users" turned on, follow:
AdminCP -> Settings -> Options -> Forum Home: Options
Check the setting "Display Logged in Users?" and see which option you have chosen.
To see if you have "Total members that have visited the forum today" turned on, follow:
AdminCP -> Settings -> Options -> Forum Home: Visiting Members
Check the setting "Enable Display" and see which option you have chosen.
If you don't have either of these options turned on, then the usergroup legend won't display, since no users are being displayed in the "What's Going On?" block.
Thanks for responding.
I have followed the steps you have provided. It did not show. After spending time trying to find the cause, I found that the Addon works with some templates and does not with other templates.
Still, I am not sure how to activate it on my main template.
Would appreciate your input.
Thanks!
MarkFL
12-28-2016, 05:50 AM
This product depends on the following line being present in the "FORUMHOME" template:
{vb:raw template_hook.forumhome_wgo_pos6}
If this has been removed from the template in any of your styles, then it won't work.
WindVoice
12-28-2016, 10:04 AM
This product depends on the following line being present in the "FORUMHOME" template:
{vb:raw template_hook.forumhome_wgo_pos6}
If this has been removed from the template in any of your styles, then it won't work.
Worked after adding this line :up:
Thank you so much!
Snowhog
12-30-2016, 11:47 PM
I installed this earlier this evening, but uninstalled it as it wasn't working at all for me.
I just checked FORUMHOME template, and {vb:raw template_hook.forumhome_wgo_pos6} is present between <!-- End Members Today --> and <vb:if condition="$show['upcomingevents']">
I had the following existing modification to this template:
<!-- Start modification by Snowhog on 02-05-2012 -->
<!-- legend -->
<p></p>
<center>[<span style="color: red; font-weight: bold;">Administrator</span>] [<span style="color: blue; font-weight: bold;">Super Moderator</span>] [<span style="color: purple; font-weight: bold;">Moderator</span>]</center>
<p></p>
<!-- /legend -- >
<!-- End modification by Snowhog on 02-05-2012 -->
inserted between <!-- end logged-in users --> and </div>
</vb:if>
{vb:raw template_hook.forumhome_wgo_pos2}
which I commented out before installing the MOD, but as I said above, it didn't work for me. Suggestions?
MarkFL
12-31-2016, 12:10 AM
What does your complete "FORUMHOME" template have?
Snowhog
12-31-2016, 12:18 AM
I think I "see" my problem.
My modification placed my legend below Currently Active Users. I keep Total members that have visited the forum in the last 24 hours: minimized, so I wouldn't have seen your legend. << Update: Not true. I just didn't notice the new 'section'. ;/
If I want your legend to show in place of mine; below Currently Active Users; what change to the .xml would I have to make?
Snowhog
12-31-2016, 12:33 AM
Okay, reloaded the MOD. Expanding Total members that have visited the forum in the last 24 hours: now shows the Usergroup Legend, but doesn't show anything but the Legend Delimiter I selected (Diamond).
Snowhog
12-31-2016, 12:36 AM
What does your complete "FORUMHOME" template have?
Complete contents of the template (after reinstalling your MOD and leaving my modification in place):
{vb:stylevar htmldoctype}
<html xmlns="http://www.w3.org/1999/xhtml"<vb:if condition="$vboptions['enablefacebookconnect']"> xmlns:fb="http://www.facebook.com/2008/fbml"</vb:if> dir="{vb:stylevar textdirection}" lang="{vb:stylevar languagecode}" id="vbulletin_html">
<head>
{vb:raw headinclude}
<title>{vb:raw vboptions.bbtitle}</title>
<script type="text/javascript" src="clientscript/vbulletin_read_marker.js?v={vb:raw vboptions.simpleversion}"></script>
<vb:if condition="$vboptions['storecssasfile']">
{vb:cssfile forumhome-rollup.css}
<vb:else />
{vb:cssfile forumbits.css,forumhome.css,options.css}
</vb:if>
<!--[if lt IE 8]>{vb:cssfile forumbits-ie.css,options-ie.css}<![endif]-->
<vb:if condition="$show['sidebar']">
{vb:cssfile sidebar.css,widgets.css,tagcloud.css}
<!--[if lt IE 8]>{vb:cssfile sidebar-ie.css}<![endif]-->
<script type="text/javascript">
<!--
document.write('<script type="text/javascript" src="' + yuipath + '/animation/animation-min.js?v={vb:raw vboptions.simpleversion}"></script>');
var sidebar_align = '{vb:raw show.sidebarposition}';
var content_container_margin = parseInt('{vb:math {vb:stylevar forum_sidebar_width}+{vb:math {vb:stylevar padding}*2}}');
var sidebar_width = parseInt('{vb:stylevar forum_sidebar_width}');
//-->
</script>
<script type="text/javascript" src="{vb:raw vboptions.bburl}/clientscript/vbulletin-sidebar.js?v={vb:raw vboptions.simpleversion}"></script>
</vb:if>
{vb:raw headinclude_bottom}
</head>
<body>
{vb:raw header}
{vb:raw navbar}
<div id="pagetitle">
<h1>{vb:raw vboptions.bbtitle}</h1>
<p id="welcomemessage" class="description">{vb:rawphrase welcome_to_the_x, {vb:raw vboptions.bbtitle}}</p>
</div>
<vb:if condition="$show['sidebar']">
<div id="content_container" class="{vb:raw $sidebar_class} <vb:if condition="$show['sidebarposition'] == 'left'">contentright</vb:if>">
<div id="content" <vb:if condition="$sidebar_class">class="{vb:raw $sidebar_class}"</vb:if>>
</vb:if>
<!-- main -->
{vb:raw template_hook.forumhome_above_forums}
<ol id="forums" class="floatcontainer">
{vb:raw forumbits}
</ol>
{vb:raw template_hook.forumhome_below_forums}
<!-- /main -->
<div class="navlinks">
<a href="{vb:raw $vboptions.vbforum_url}{vb:if "$vboptions['vbforum_url']", '/', ''}forumdisplay.php?{vb:raw session.sessionurl}do=markread&markreadhash={vb:ra w bbuserinfo.securitytoken}" rel="nofollow">{vb:rawphrase mark_forums_read}</a>
<vb:if condition="$vboptions['forumleaders']">|
<a href="showgroups.php{vb:raw session.sessionurl_q}" rel="nofollow">
<vb:if condition="$vb_suite_installed">
{vb:rawphrase view_site_leaders}
<vb:else />
{vb:rawphrase view_forum_leaders}
</vb:if>
</a></vb:if>
</div>
{vb:raw ad_location.board_after_forums}
<!-- what's going on box -->
<div id="wgo" class="collapse wgo_block block">
<h2 class="blockhead">{vb:rawphrase whats_going_on}</h2>
<div class="blockbody formcontrols floatcontainer">
{vb:raw template_hook.forumhome_wgo_pos1}
<vb:if condition="$show['loggedinusers']">
<!-- logged-in users -->
<div id="wgo_onlineusers" class="wgo_subblock section">
<h3 class="blocksubhead"><img src="{vb:stylevar imgdir_misc}/users_online.png" alt="{vb:rawphrase currently_active_users}" />{vb:rawphrase currently_active_users}</h3>
<div>
<p>{vb:rawphrase there_are_x_y_online_link, {vb:raw totalonline}, {vb:raw session.sessionurl_q}} <span class="shade">{vb:rawphrase x_members_and_y_guests, {vb:raw numberregistered}, {vb:raw numberguest}}</span></p>
<p>{vb:rawphrase most_users_ever_online_was_x_y_at_z, {vb:raw recordusers}, {vb:raw recorddate}, {vb:raw recordtime}}</p>
<vb:if condition="$activeusers">
<ol class="commalist" id="wgo_onlineusers_list">
<vb:each from="activeusers" value="loggedin">
<li>{vb:stylevar dirmark}<a class="username" href="{vb:link member, {vb:raw loggedin}}">{vb:raw loggedin.musername}</a>{vb:raw loggedin.invisiblemark}{vb:raw loggedin.buddymark}{vb:raw loggedin.comma}</li>
</vb:each>
</ol>
</vb:if>
</div>
<!-- end logged-in users -->
<!-- Start modification by Snowhog on 02-05-2012 -->
<!-- legend -->
<p></p>
<center>[<span style="color: red; font-weight: bold;">Administrator</span>] [<span style="color: blue; font-weight: bold;">Super Moderator</span>] [<span style="color: purple; font-weight: bold;">Moderator</span>]</center>
<p></p>
<!-- /legend -- >
<!-- End modification by Snowhog on 02-05-2012 -->
</div>
</vb:if>
{vb:raw template_hook.forumhome_wgo_pos2}
<!-- Start Members Today -->
<vb:if condition="$show['wgo_members']">
<div id="wgo_wgo_members_users" class="wgo_subblock section collapse">
<h3 class="blocksubhead"><a href="{vb:raw wgo_members.url}"><img src="{vb:stylevar imgdir_misc}/forum_stats.png" alt="{vb:phrase wgo_members_alt_title}"/></a>{vb:raw wgo_members.whotitle}</h3>
<a class="collapse" id="collapse_wgo_members_list" href="{vb:raw relpath}#top"><img src="{vb:stylevar imgdir_button}/collapse_40b{vb:raw wgo_members.collapse}.png" alt="" title="{vb:rawphrase collapse_expand}" /></a>
<div id="wgo_members_list" {vb:raw wgo_members.style}>
<p>{vb:raw wgo_members.visitors}</p>
<vb:if condition="$vboptions['wgo_members_names']">
<vb:if condition="$wgo_members['totaltoday'] == 0">
{vb:phrase no_members_list}
<vb:else />
<ul class="commalist" id="wgo_wgo_members_list">
<vb:if condition="$wgo_members['template_hook']">
{vb:raw wgo_members.template_hook}
<vb:else />
<vb:each from="wgo_members_list" value="row">
<li>{vb:stylevar dirmark}<a class="username" href="{vb:link member, {vb:raw row}}" title="{vb:raw row.wrdate}">{vb:raw row.musername}</a>{vb:raw row.markinv}{vb:raw row.comma}</li>
</vb:each>
</vb:if>
</ul>
</vb:if>
<vb:else />
{vb:phrase member_list_disabled}
</vb:if>
</div>
</div>
</vb:if>
<!-- End Members Today -->
{vb:raw template_hook.forumhome_wgo_pos6}
<vb:if condition="$show['upcomingevents']">
<div id="wgo_events" class="wgo_subblock section">
<h3 class="blocksubhead"><img src="{vb:stylevar imgdir_misc}/event.png" alt="{vb:rawphrase todays_events}" /><vb:if condition="$show['todaysevents']">{vb:rawphrase todays_events}<vb:else />{vb:rawphrase upcoming_events_for_the_next_x_days, {vb:raw vboptions.showevents}}</vb:if></h3>
<ol>
{vb:raw upcomingevents}
</ol>
</div>
</vb:if>
{vb:raw template_hook.forumhome_wgo_pos3}
<vb:if condition="$show['birthdays']">
<!-- today's birthdays -->
<div id="wgo_birthdays" class="wgo_subblock section">
<h3 class="blocksubhead"><img src="{vb:stylevar imgdir_misc}/birthday.png" alt="{vb:rawphrase todays_birthdays}" />{vb:rawphrase todays_birthdays}</h3>
<ol class="commalist">
<vb:each from="birthdays" value="row">
<li><a href="{vb:link member, {vb:raw row}}">{vb:raw row.username}</a><vb:if condition="$row['age']"> ({vb:raw row.age})</vb:if>{vb:raw row.comma}</li>
</vb:each>
</ol>
</div>
<!-- end today's birthdays -->
</vb:if>
{vb:raw template_hook.forumhome_wgo_pos4}
<div id="wgo_stats" class="wgo_subblock section">
<h3 class="blocksubhead"><img src="{vb:stylevar imgdir_misc}/forum_stats.png" alt="{vb:rawphrase x_statistics, {vb:raw vboptions.bbtitle}}" />{vb:rawphrase x_statistics, {vb:raw vboptions.bbtitle}}</h3>
<div>
<dl>
<dt>{vb:rawphrase threads}</dt>
<dd>{vb:raw totalthreads}</dd>
<dt>{vb:rawphrase posts}</dt>
<dd>{vb:raw totalposts}</dd>
<dt>{vb:rawphrase members}</dt>
<dd>{vb:raw numbermembers}</dd>
<vb:if condition="$show['activemembers']">
<dt>{vb:rawphrase active_members}</dt>
<dd>{vb:raw activemembers}</dd>
</vb:if>
</dl>
<p>{vb:rawphrase welcome_to_our_newest_member_x, {vb:link member, {vb:raw newuserinfo}}, {vb:raw newuserinfo.username}}</p>
{vb:raw template_hook.forumhome_wgo_stats}
</div>
</div>
<div id="wgo_legend" class="wgo_subblock section">
<h3 class="blocksubhead"><img src="{vb:stylevar imgdir_misc}/legend.png" alt="{vb:rawphrase icon_legend}" />{vb:rawphrase icon_legend}</h3>
<div>
<dl id="icon_legends" class="icon_legends">
<dt><img src="{vb:stylevar imgdir_statusicon}/forum_new-16.png" alt="{vb:rawphrase new_posts_forum}" /></dt><dd>{vb:rawphrase new_posts_forum}</dd>
<dt><img src="{vb:stylevar imgdir_statusicon}/forum_old-16.png" alt="{vb:rawphrase no_new_posts_forum}" /></dt><dd>{vb:rawphrase no_new_posts_forum}</dd>
<vb:if condition="$vboptions['showlocks']"><dt><img src="{vb:stylevar imgdir_statusicon}/forum_lock-16.png" alt="{vb:rawphrase forum_is_closed_for_posting}" /></dt><dd>{vb:rawphrase forum_is_closed_for_posting}</dd></vb:if>
<dt><img src="{vb:stylevar imgdir_statusicon}/category-16.png" alt="{vb:rawphrase category_forum}" /></dt><dd>{vb:rawphrase category_forum}</dd>
<dt><img src="{vb:stylevar imgdir_statusicon}/forum_link-16.png" alt="{vb:rawphrase link_forum}" /></dt><dd>{vb:rawphrase link_forum}</dd>
{vb:raw template_hook.forumhome_icon_legend}
</dl>
</div>
</div>
{vb:raw template_hook.forumhome_wgo_pos5}
</div>
</div>
<!-- end what's going on box -->
{vb:raw ad_location.board_below_whats_going_on}
<vb:if condition="$show['sidebar']">
</div>
</div>
<div id="sidebar_container" class="<vb:if condition="$show['sidebarposition'] == 'left'">sidebarleft</vb:if><vb:if condition="$close_sidebar"> sidebar_closed</vb:if>">
<a id="sidebar_button_link" href="#">
<vb:if condition="$show['sidebarposition'] == 'left'">
<img id="sidebar_button" src="{vb:stylevar imgdir_misc}/<vb:if condition="$close_sidebar">tab-expanded-left.png<vb:else />tab-collapsed-left.png</vb:if>" alt="" />
<vb:else />
<img id="sidebar_button" src="{vb:stylevar imgdir_misc}/<vb:if condition="$close_sidebar">tab-expanded.png<vb:else />tab-collapsed.png</vb:if>" alt="" />
</vb:if>
</a>
<ul id="sidebar" <vb:if condition="$close_sidebar">class="sidebar_hidden"</vb:if> >
{vb:raw sidebar}
</ul>
</div>
</vb:if>
<script type="text/javascript">
<!--
vbphrase['doubleclick_forum_markread'] = "{vb:rawphrase doubleclick_forum_markread}";
init_forum_readmarker_system();
//-->
</script>
{vb:raw footer}
</body>
</html>
Snowhog
12-31-2016, 12:46 AM
Okay, reloaded the MOD. Expanding Total members that have visited the forum in the last 24 hours: now shows the Usergroup Legend, but doesn't show anything but the Legend Delimiter I selected (Diamond).
Doh!! What a dumb a I am! Usergroup List has to be populated!!
MarkFL
12-31-2016, 09:12 AM
Glad you got it sorted out! :)
Snowhog
01-01-2017, 03:49 PM
How do you add a Custom Delimiter? I tried pointing to a .png image I have in /images, but that doesn't work; it results in the path being displayed in the legend and not the image. Does this 'option' use ASCII values only, or??
MarkFL
01-01-2017, 04:34 PM
Yes, it's set up to use characters, not images. :)
Snowhog
01-01-2017, 06:45 PM
Okay. Thank you.
MarkFL
01-01-2017, 06:47 PM
Okay. Thank you.
It's on my to-do list to allow custom images as delimiters...should have an update on this pretty soon. ;)
MarkFL
01-02-2017, 11:28 AM
Update - Version 1.3:
Added setting to allow for image as custom delimiter.
JARNAR
06-06-2017, 03:13 AM
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:
MarkFL
06-06-2017, 03:32 AM
You can add CSS to the delimiters (separators)...try something like:
margin-right: 0.25em;
in the setting labeled "Additional Delimiter CSS." :)
JARNAR
06-06-2017, 04:32 AM
You can add CSS to the delimiters (separators)...try something like:
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)???
MarkFL
06-06-2017, 04:39 AM
If you want the separator to not be bold, then add the delimiter CSS:
font-weight: normal;
JARNAR
06-06-2017, 09:12 AM
Thanks Mark,
Do you know from what it could depends?
MarkFL
06-06-2017, 12:30 PM
Try adding this to your delimiter CSS:
text-decoration: none;
JARNAR
06-07-2017, 01:51 AM
Try adding this to your delimiter CSS:
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 </span>
These spaces directly insert your product, prolong the barred character. How do you remove them?
MarkFL
06-07-2017, 02:02 AM
If I understand correctly, it looks like something in your usergroup HTML markup...check that out. :)
JARNAR
06-07-2017, 03:19 AM
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'] . ' </div>';
What is the name of the template of your product?
JARNAR
06-07-2017, 07:02 AM
Ok Mark, I removed "& nbsp; & nbsp" and I overwritten the product, now it's ok.
There is only a small segment in the separator (attached)
If you know how remove this, let me know :)
MarkFL
06-07-2017, 03:23 PM
Look in this product's plugin titled "Display Usergroup Legend in WGO" and locate the line:
$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'] . ' </div>';
You can edit that to your liking. :)
Working on 4.2.5 and PHP 7.1.3.
Thanks for this mod.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.