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)
-   -   Mini Mods - Usergroup Legend with Links To FAQ (https://vborg.vbsupport.ru/showthread.php?t=321181)

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

1 Attachment(s)
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:

Code:

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

JARNAR 06-06-2017 04:32 AM

1 Attachment(s)
Quote:

Originally Posted by MarkFL (Post 2587317)
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)???

MarkFL 06-06-2017 04:39 AM

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

Code:

font-weight: normal;

JARNAR 06-06-2017 09:12 AM

1 Attachment(s)
Thanks Mark,

Do you know from what it could depends?

MarkFL 06-06-2017 12:30 PM

Try adding this to your delimiter CSS:

Code:

text-decoration: none;

JARNAR 06-07-2017 01:51 AM

Quote:

Originally Posted by MarkFL (Post 2587328)
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?

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

Quote:

Originally Posted by MarkFL (Post 2587346)
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?

JARNAR 06-07-2017 07:02 AM

1 Attachment(s)
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:

Code:

$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>';
You can edit that to your liking. :)

yin9 05-29-2020 12:34 AM

Working on 4.2.5 and PHP 7.1.3.

Thanks for this mod.


All times are GMT. The time now is 01:02 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.01086 seconds
  • Memory Usage 1,741KB
  • 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
  • (6)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (13)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