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)
-   -   Major Additions - Username HTML Markup 4.2.x (https://vborg.vbsupport.ru/showthread.php?t=229146)

shea is cool 02-12-2012 04:40 AM

Learn to code... So many errors

BlueCheri 02-12-2012 05:25 AM

Indeed very nice, works great.

Many thanx friend.

G!

Quote:

Originally Posted by Hasann (Post 1922796)
your is wrong use this

PHP Code:

<span style='font-weight: bold; color: red;'

PHP Code:

</span



BlueCheri 03-28-2012 05:04 AM

It's is not working for few usergroup (Moderator and VIP), they have a different color

Attaching the image

https://vborg.vbsupport.ru/external/2012/03/4.png

Kindly let us know the solution.

Thanx and rgds,

G!

initiald 03-28-2012 09:10 AM

Does this work 100% with vbulletin 4.1.11, anyone please confirm? especially if it can used with multiple customize usergroups, VIP, Troll, etc...

Alan_SP 03-28-2012 02:26 PM

Quote:

Originally Posted by BlueCheri (Post 2314108)
It's is not working for few usergroup (Moderator and VIP), they have a different color

As I remember, this works only with primary, not display usergroups. If you have your system set in way that primary usergroup stays unchanged, it will not show users' display usergroup.

BlueCheri 03-29-2012 05:30 AM

Thanx for tip, let me check it.

Edit: Yes you are right.

Can you please tell me what is the difference for making them primary member ?, what can the the technical or other problem by doing this?

G!

Quote:

Originally Posted by Alan_SP (Post 2314259)
As I remember, this works only with primary, not display usergroups. If you have your system set in way that primary usergroup stays unchanged, it will not show users' display usergroup.


Alan_SP 03-29-2012 05:51 PM

Well, this and https://vborg.vbsupport.ru/showthread.php?t=254373 have problems with this. Advanced You code also looks for primary users.

Anyway, core vBulletin doesn't make difference if primary usergroup allows that it has member (secondary) usergroups.

I too tried to make changes to this mod by myself, but didn't managed to figure it out how to do this.

initiald 03-29-2012 11:16 PM

NVM, it works 100% on vbulletin 4.1.11

You have to change double quote to single quote in each usergroup to display properly. best to change it first, then upload this mod.

Alan_SP 03-30-2012 04:24 PM

This is not real solution, but just a workaround, as you'll loose some information. This may be a big problem for you, or may not be a problem at all, you decide.

I'm talking about this problem, when you go to user's name in last post section and hover mouse over it, you see this:

http://img822.imageshack.us/img822/7941/image001qg.png

It is link title associated with this link. To remove this, you just need to remove title. And remove it completely. If someone knows how to really solve this problem, please post it here.

To remove title, find template memberaction_dropdown

At the beginning you have this code (at least with vB4.1.2, as I'm still on it, but it should look very similar to this on other versions, if not the same):

HTML Code:

<a class="username {vb:raw memberinfo.online} popupctrl" href="{vb:link member, {vb:raw memberinfo}}" title="{vb:rawphrase {vb:raw memberinfo['onlinestatusphrase']}, {vb:raw memberinfo.username}}"><strong><vb:if condition="$memberinfo['musername']">{vb:raw memberinfo.musername}<vb:else />{vb:raw memberinfo.username}</vb:if></strong></a>
You need to remove title part from it and remove it completely. Title part is this:

HTML Code:

title="{vb:rawphrase {vb:raw memberinfo['onlinestatusphrase']}, {vb:raw memberinfo.username}}"
After you remove it, it should look like this:

HTML Code:

<a class="username {vb:raw memberinfo.online} popupctrl" href="{vb:link member, {vb:raw memberinfo}}"><strong><vb:if condition="$memberinfo['musername']">{vb:raw memberinfo.musername}<vb:else />{vb:raw memberinfo.username}</vb:if></strong></a>
Save template and check your forum home. Everything else should work (dropdown menu when you click on user name), except there's no more title with html code shown. Also, when I'm mentioning title, for some reason online status was wrong for me. From picture you could read that I'm offline (in Croatian), but I'was online when I took this picture. Just to mention it.

SEOvB 04-30-2012 06:06 PM

Hey Guys,

This mod didn't work for me on 4.1.11 or 4.1.12. Easy fix:

1) Disable this mod.
2) Add a new plugin to vBulletin on the memberaction_dropdown hook with the following:
PHP Code:

$memberinfo['musername'] = fetch_musername($memberinfo); 

This should force vBulletin to use the musername (username + markup) of a user everywhere on the forum. As always, use at your own risk. This isn't very heavily tested.

-Nick, SEOvB Developer


All times are GMT. The time now is 01:19 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.01479 seconds
  • Memory Usage 1,751KB
  • 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_html_printable
  • (3)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (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