vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 5.x Products & Extensions (https://vborg.vbsupport.ru/forumdisplay.php?f=258)
-   -   Add-On Releases - Yilmaz - Username HTML Markup vB5 (https://vborg.vbsupport.ru/showthread.php?t=328524)

yilmaz 02-14-2021 04:25 PM

Quote:

Originally Posted by Troll123 (Post 2606233)
the color bar of the mods is not displayed on version 5.6.4 I made a request for help to my skin developer they did not find anything of are rated would you have an idea ?

Is the widget_onlineusers template content of the style you use original or edited?

HTML Code:

<vb:if condition="empty($widgetConfig) AND !empty($widgetinstanceid)">
        {vb:data widgetConfig, widget, fetchConfig, {vb:raw widgetinstanceid}}
</vb:if>
<vb:if condition="!empty($widgetConfig)">
        {vb:set widgetid, {vb:raw widgetConfig.widgetid}}
        {vb:set widgetinstanceid, {vb:raw widgetConfig.widgetinstanceid}}
</vb:if>

<vb:if condition="!$widgetConfig['thisPageOnly']">
        {vb:rawdata onlineUsers, wol, fetchAll, '', 'members', 1, {vb:raw widgetConfig.maxUsers}}
        {vb:rawdata onlineUserCounts, wol, fetchCounts, ''}
<vb:else />
        {vb:rawdata onlineUsers, wol, fetchAll, {vb:raw page.pageKey}, 'members', 1, {vb:raw widgetConfig.maxUsers}}
        {vb:rawdata onlineUserCounts, wol, fetchCounts, {vb:raw page.pageKey}}
</vb:if>

{vb:set title, {vb:if "!empty($widgetConfig['title'])", {vb:raw widgetConfig.title}, {vb:phrase whats_going_on}}}

<div class="b-module{vb:var widgetConfig.show_at_breakpoints_css_classes} canvas-widget default-widget wol-widget" id="widget_{vb:raw widgetinstanceid}" data-widget-id="{vb:raw widgetid}" data-widget-instance-id="{vb:raw widgetinstanceid}">

        {vb:template module_title,
                widgetConfig={vb:raw widgetConfig},
                title={vb:raw title},
                show_title_divider=1,
                can_use_sitebuilder={vb:raw user.can_use_sitebuilder}}

        <div class="widget-content<vb:if condition="$widgetConfig['displayAvatars'] AND $onlineUsers AND $user['showavatars']"> display-avatar</vb:if>">
                <vb:if condition="isset($onlineUsers['errors']) OR isset($onlineUserCounts['errors'])">
                        <div>{vb:phrase no_permission}</div>
                <vb:else />
                        <vb:if condition="!empty($widgetinstanceid)">
                                <vb:if condition="empty($widgetConfig['hide_text'])">
                                <p><vb:if condition="$onlineUserCounts['total'] > 1">{vb:rawphrase there_are_x_online, {vb:raw onlineUserCounts.total}, {vb:url 'online_details'}}<vb:else />{vb:rawphrase there_is_x_online, {vb:raw onlineUserCounts.total}, {vb:url 'online_details'}}</vb:if> {vb:rawphrase x_members_and_y_guests, {vb:raw onlineUserCounts.members}, {vb:raw onlineUserCounts.guests}}.</p>
                                <p>{vb:rawphrase most_users_ever_online_was_x_y_at_z, {vb:raw onlineUserCounts.recordusers}, {vb:datetime {vb:raw onlineUserCounts.maxonlinedate}, date}, {vb:datetime {vb:raw onlineUserCounts.maxonlinedate}, time}}</p>
                                </vb:if>
                                <vb:if condition="$onlineUsers">
                                        <ul class="onlineuserlist h-clearfix">
                                                {vb:set onlineCount, 0}
                                                <vb:each from="onlineUsers" value="onlineUser">
                                                        <vb:if condition="$onlineUser['invisible']">
                                                                {vb:set onlineUser.invisibleMarker, '*'}
                                                        <vb:else />
                                                                {vb:set onlineUser.invisibleMarker, ''}
                                                        </vb:if>
                                                        <li class="h-left">
                                                                <vb:comment>If the widget is set to display avatars and the current viewing user wants to see avatars</vb:comment>
                                                                <vb:if condition="$widgetConfig['displayAvatars'] AND $user['showavatars']">
                                                                        <a href="{vb:url 'profile', {vb:raw onlineUser}}" class="avatar h-left<vb:if condition="!empty($onlineUser['invisible'])"> onlineuserlist-invisible</vb:if>">
                                                                                <vb:if condition="!empty($onlineUser['avatarpath'])">
                                                                                        <img title="{vb:raw onlineUser.username}{vb:var onlineUser.invisibleMarker}" alt="{vb:raw onlineUser.username}{vb:var onlineUser.invisibleMarker}" src="{vb:raw baseurl_corecdn}/{vb:raw onlineUser.avatarpath}" />
                                                                                <vb:else />
                                                                                        <img title="{vb:raw onlineUser.username}{vb:var onlineUser.invisibleMarker}" alt="{vb:raw onlineUser.username}{vb:var onlineUser.invisibleMarker}" src="{vb:raw baseurl_corecdn}/images/default/default_avatar_medium.png" width="64" height="64" />
                                                                                </vb:if>
                                                                        </a>
                                                                <vb:else />
                                                                        <a href="{vb:url 'profile', {vb:raw onlineUser}}"<vb:if condition="$onlineUser['invisible']"> class="username-invisible-user"</vb:if>><vb:if condition="!empty($onlineUser['musername'])">{vb:raw onlineUser.musername}<vb:else />{vb:raw onlineUser.username}</vb:if></a><vb:if condition="++$onlineCount < count($onlineUsers)">,&nbsp;</vb:if>
                                                                </vb:if>
                                                        </li>
                                                </vb:each>
                                        </ul>
                                </vb:if>
                        <vb:else />
                                <vb:if condition="$user['can_use_sitebuilder']">
                                        <span class="note">{vb:phrase click_edit_to_config_module}</span>
                                </vb:if>
                        </vb:if>
                </vb:if>
        </div>
</div>


migratoria 02-14-2021 04:31 PM

Yilmaz in the next upgrade it is possible to implement this function for additional groups?

Troll123 02-14-2021 04:53 PM

Quote:

Originally Posted by yilmaz (Post 2606239)
Is the widget_onlineusers template content of the style you use original or edited?

HTML Code:

<vb:if condition="empty($widgetConfig) AND !empty($widgetinstanceid)">
        {vb:data widgetConfig, widget, fetchConfig, {vb:raw widgetinstanceid}}
</vb:if>
<vb:if condition="!empty($widgetConfig)">
        {vb:set widgetid, {vb:raw widgetConfig.widgetid}}
        {vb:set widgetinstanceid, {vb:raw widgetConfig.widgetinstanceid}}
</vb:if>

<vb:if condition="!$widgetConfig['thisPageOnly']">
        {vb:rawdata onlineUsers, wol, fetchAll, '', 'members', 1, {vb:raw widgetConfig.maxUsers}}
        {vb:rawdata onlineUserCounts, wol, fetchCounts, ''}
<vb:else />
        {vb:rawdata onlineUsers, wol, fetchAll, {vb:raw page.pageKey}, 'members', 1, {vb:raw widgetConfig.maxUsers}}
        {vb:rawdata onlineUserCounts, wol, fetchCounts, {vb:raw page.pageKey}}
</vb:if>

{vb:set title, {vb:if "!empty($widgetConfig['title'])", {vb:raw widgetConfig.title}, {vb:phrase whats_going_on}}}

<div class="b-module{vb:var widgetConfig.show_at_breakpoints_css_classes} canvas-widget default-widget wol-widget" id="widget_{vb:raw widgetinstanceid}" data-widget-id="{vb:raw widgetid}" data-widget-instance-id="{vb:raw widgetinstanceid}">

        {vb:template module_title,
                widgetConfig={vb:raw widgetConfig},
                title={vb:raw title},
                show_title_divider=1,
                can_use_sitebuilder={vb:raw user.can_use_sitebuilder}}

        <div class="widget-content<vb:if condition="$widgetConfig['displayAvatars'] AND $onlineUsers AND $user['showavatars']"> display-avatar</vb:if>">
                <vb:if condition="isset($onlineUsers['errors']) OR isset($onlineUserCounts['errors'])">
                        <div>{vb:phrase no_permission}</div>
                <vb:else />
                        <vb:if condition="!empty($widgetinstanceid)">
                                <vb:if condition="empty($widgetConfig['hide_text'])">
                                <p><vb:if condition="$onlineUserCounts['total'] > 1">{vb:rawphrase there_are_x_online, {vb:raw onlineUserCounts.total}, {vb:url 'online_details'}}<vb:else />{vb:rawphrase there_is_x_online, {vb:raw onlineUserCounts.total}, {vb:url 'online_details'}}</vb:if> {vb:rawphrase x_members_and_y_guests, {vb:raw onlineUserCounts.members}, {vb:raw onlineUserCounts.guests}}.</p>
                                <p>{vb:rawphrase most_users_ever_online_was_x_y_at_z, {vb:raw onlineUserCounts.recordusers}, {vb:datetime {vb:raw onlineUserCounts.maxonlinedate}, date}, {vb:datetime {vb:raw onlineUserCounts.maxonlinedate}, time}}</p>
                                </vb:if>
                                <vb:if condition="$onlineUsers">
                                        <ul class="onlineuserlist h-clearfix">
                                                {vb:set onlineCount, 0}
                                                <vb:each from="onlineUsers" value="onlineUser">
                                                        <vb:if condition="$onlineUser['invisible']">
                                                                {vb:set onlineUser.invisibleMarker, '*'}
                                                        <vb:else />
                                                                {vb:set onlineUser.invisibleMarker, ''}
                                                        </vb:if>
                                                        <li class="h-left">
                                                                <vb:comment>If the widget is set to display avatars and the current viewing user wants to see avatars</vb:comment>
                                                                <vb:if condition="$widgetConfig['displayAvatars'] AND $user['showavatars']">
                                                                        <a href="{vb:url 'profile', {vb:raw onlineUser}}" class="avatar h-left<vb:if condition="!empty($onlineUser['invisible'])"> onlineuserlist-invisible</vb:if>">
                                                                                <vb:if condition="!empty($onlineUser['avatarpath'])">
                                                                                        <img title="{vb:raw onlineUser.username}{vb:var onlineUser.invisibleMarker}" alt="{vb:raw onlineUser.username}{vb:var onlineUser.invisibleMarker}" src="{vb:raw baseurl_corecdn}/{vb:raw onlineUser.avatarpath}" />
                                                                                <vb:else />
                                                                                        <img title="{vb:raw onlineUser.username}{vb:var onlineUser.invisibleMarker}" alt="{vb:raw onlineUser.username}{vb:var onlineUser.invisibleMarker}" src="{vb:raw baseurl_corecdn}/images/default/default_avatar_medium.png" width="64" height="64" />
                                                                                </vb:if>
                                                                        </a>
                                                                <vb:else />
                                                                        <a href="{vb:url 'profile', {vb:raw onlineUser}}"<vb:if condition="$onlineUser['invisible']"> class="username-invisible-user"</vb:if>><vb:if condition="!empty($onlineUser['musername'])">{vb:raw onlineUser.musername}<vb:else />{vb:raw onlineUser.username}</vb:if></a><vb:if condition="++$onlineCount < count($onlineUsers)">,&nbsp;</vb:if>
                                                                </vb:if>
                                                        </li>
                                                </vb:each>
                                        </ul>
                                </vb:if>
                        <vb:else />
                                <vb:if condition="$user['can_use_sitebuilder']">
                                        <span class="note">{vb:phrase click_edit_to_config_module}</span>
                                </vb:if>
                        </vb:if>
                </vb:if>
        </div>
</div>


I confirm you that widget_Onlineusers of my style and origin and not modify

yilmaz 02-14-2021 06:15 PM

Quote:

Originally Posted by migratoria (Post 2606242)
Yilmaz in the next upgrade it is possible to implement this function for additional groups?

Should additional groups show in postbit and user profile?

Troll123 02-14-2021 06:35 PM

1 Attachment(s)
This is what it gives me
it misses the legend of the groups finally of account ... otherwise everything works

yilmaz 02-15-2021 03:05 AM

Quote:

Originally Posted by Troll123 (Post 2606257)
This is what it gives me
it misses the legend of the groups finally of account ... otherwise everything works

You need to do this part in settings => https://youtu.be/lEnWA8P7N3k?t=165

yilmaz 02-15-2021 03:12 AM

Quote:

Originally Posted by migratoria (Post 2606242)
Yilmaz in the next upgrade it is possible to implement this function for additional groups?

Hello migratoria,
This plugin is sufficient for additional User Groups.

Yilmaz - Usergroups Username Colors Everywhere vB5

https://vborg.vbsupport.ru/attachmen...2&d=1613364701

Troll123 02-15-2021 03:37 PM

I'm doing exactly the same thing as you and still no legend bar an idea?

yilmaz 02-15-2021 05:44 PM

1 Attachment(s)
Quote:

Originally Posted by Troll123 (Post 2606275)
I'm doing exactly the same thing as you and still no legend bar an idea?

Have you applied the marked places after the change?

https://vborg.vbsupport.ru/attachmen...1&d=1613418269

Troll123 02-17-2021 04:12 PM

sorry I'm doing exactly the same manipulations as you are doing it doesn't work for 5.6.4 of Vbulletin (doesn't work)

Yours sincerely,


All times are GMT. The time now is 02:42 AM.

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.01283 seconds
  • Memory Usage 1,834KB
  • 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
  • (2)bbcode_html_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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