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)

Mehdi_Zakhire 09-27-2011 09:44 AM

Copy This Code to memberaction_dropdown Template in Your Style
And Fix IT ..... Test 100% vBulletin 4.1.6
.

.

.

<div class="popupmenu memberaction<vb:if condition="$page_class"> {vb:raw page_class}</vb:if>">
<a class="username {vb:raw memberinfo.online} popupctrl" href="{vb:link member, {vb:raw memberinfo}}" title="{vb:rawphrase {vb:raw memberinfo['onlinestatusphrase']}, {vb:raw username}}"><strong><vb:if condition="$memberinfo['musername']">{vb:raw memberinfo.musername}<vb:else />{vb:raw memberinfo.username}</vb:if></strong></a>
<ul class="popupbody popuphover memberaction_body">
<li class="left">
<img src="{vb:stylevar imgdir_siteicons}/profile.png" alt="" />
<a href="{vb:link member, {vb:raw memberinfo}}">
{vb:rawphrase view_profile}
</a>
</li>

<li class="right">
<img src="{vb:stylevar imgdir_siteicons}/forum.png" alt="" />
<a href="search.php?{vb:raw session.sessionurl}do=finduser&amp;userid={vb:raw memberinfo.userid}&amp;contenttype=vBForum_Post&am p;showposts=1" rel="nofollow">
{vb:rawphrase view_forum_posts}
</a>
</li>

<vb:if condition="$show['pmlink']">
<li class="left">
<img src="{vb:stylevar imgdir_siteicons}/message.png" alt="" />
<a href="private.php?{vb:raw session.sessionurl}do=newpm&amp;u={vb:raw memberinfo.userid}" rel="nofollow">
{vb:rawphrase private_message}
</a>
</li>
</vb:if>

<vb:if condition="$show['viewblog']">
<li class="right">
<img src="{vb:stylevar imgdir_siteicons}/blog.png" alt="" />
<a href="{vb:raw $vboptions.vbblog_url}{vb:if "$vboptions['vbblog_url']", '/', ''}blog.php?{vb:raw session.sessionurl}u={vb:raw memberinfo.userid}" rel="nofollow">
{vb:rawphrase view_blog_entries}
</a>
</li>
</vb:if>

<vb:if condition="$show['homepage']">
<li class="left">
<img src="{vb:stylevar imgdir_siteicons}/homepage.png" alt="" />
<a href="{vb:raw memberinfo.homepage}" rel="nofollow">
{vb:rawphrase visit_homepage}
</a>
</li>
</vb:if>

<vb:if condition="$show['viewarticles']">
<li class="right">
<img src="{vb:stylevar imgdir_siteicons}/article.png" alt="" />
<a href="list.php/author/{vb:raw memberinfo.userid}-{vb:raw memberinfo.username}" rel="nofollow">
{vb:rawphrase view_articles}
</a>
</li>
</vb:if>

<vb:if condition="$show['addfriend']">
<li class="left">
<img src="{vb:stylevar imgdir_siteicons}/add.png" alt="" />
<a href="profile.php?{vb:raw session.sessionurl}do=addlist&amp;userlist=buddy&a mp;u={vb:raw memberinfo.userid}">
{vb:rawphrase add_as_contact}
</a>
</li>
</vb:if>

<vb:if condition="$show['emaillink']">
<li class="right">
<img src="{vb:stylevar imgdir_siteicons}/email.png" alt="" />
<a href="sendmessage.php?{vb:raw session.sessionurl}do=mailmember&amp;u={vb:raw memberinfo.userid}" rel="nofollow">
{vb:rawphrase send_email}
</a>
</li>
</vb:if>
{vb:raw template_hook.memberaction_dropdown_items}
</ul>
</div>

Mr GRiM 10-12-2011 07:01 AM

Is there a similar fix for the thread view using this mod?

Erica1977 10-12-2011 09:29 PM

Seems everyone is having issues with this mod for a long time as you can see the owner of this mod is not supporting his mod so i would just forget this mod as there aint no type of support from the owner of the mod either that or someone needs to take his mod and rework it to work do not waste your time from the owner of this mod as he seems to be irresponsible for his stuff.

topsoftware 10-22-2011 03:12 PM

I have just installed this on vb 4.1.7 and apart from the problem with using the " instead of the ' it works fine.

TinCow1 10-26-2011 07:32 PM

Quote:

Originally Posted by Mr GRiM (Post 2256184)
Is there a similar fix for the thread view using this mod?

I was not able to fix the problem, but I was able to remove the bugged mouseover text. To do this, edit the phrase started_ by_ x_ y_ z_ a and insert the following in all translation fields:

Code:

<span class="label">Started by&nbsp;<a href="{1}" class="username understate">{2}</a>{5},&nbsp;{3}&nbsp;{4}</span>

GavoTrav 11-25-2011 11:06 PM

not working 4.1.8

mvfenda 12-10-2011 01:43 PM

Code:

Database error in vBulletin 4.1.4:

Invalid SQL:

                                SELECT forum.forumid, forum.lastpost, forum.lastposter, forum.lastposterid, forum.IF(lastthreadprefix <> '' AND allowprefix != 0, CONCAT('', lastthreadprefix, ' - ', lastthread), lastthread) AS lastthread, forum.lastthreadid, forum.lasticonid, forum.threadcount, forum.replycount, forum.lastpostid, forum.lastprefixid, user.usergroupid, user.homepage, user.options AS useroptions, IF(userlist.friend = 'yes', 1, 0) AS isfriend
                                        , forumread.readtime AS forumread
                                FROM forum AS forum
                                LEFT JOIN forumread AS forumread ON (forumread.forumid = forum.forumid AND forumread.userid = 705)
                                LEFT JOIN user AS user ON (user.userid = forum.lastposterid)
                                LEFT JOIN userlist AS userlist ON (userlist.relationid = user.userid AND userlist.type = 'buddy' AND userlist.userid = 705);

MySQL Error  : FUNCTION forum.IF does not exist
Error Number  : 1305
Request Date  : Saturday, December 10th 2011 @ 07:41:39 AM
Error Date    : Saturday, December 10th 2011 @ 07:41:40 AM
Script        : http://**********.com/showthread.php?t=93583
Referrer      : http://***********.com/forum.php
IP Address    : ***.*.***.*
Username      : ******
Classname    : vB_Database
MySQL Version : 5.0.92-community-log


sticky 12-28-2011 03:53 AM

Doesn't work on 4.1.7. If I'm set to invisible it says on the forum home I am invisible for some reason. Uninstalled.

daveaite 01-02-2012 12:37 AM

I can verify. This will damage your site on 4.1.9

ozzy47 01-02-2012 01:54 AM

Damage it how?

Rich_Princess 01-02-2012 02:57 AM

Installed, working perfect with 4.1.8 on FF, Chrome, Opera, Safari, and IE with only a couple tweaks. Great mod! Thanks!

Boofo 01-08-2012 06:46 PM

The simple fix for this is to use single quotes in the markups, not double quotes.

Quote:

<span style='color: #FF0000; font-weight: bold;' title='Site Adminstrator'> = WORKS!
Quote:

<span style="color: #FF0000; font-weight: bold;" title="Site Adminstrator"> = No worky

That will solve the extra stuff showing (i.e. onlinestatus).

thecore762 01-08-2012 07:22 PM

Quote:

Originally Posted by Boofo (Post 2285323)
The simple fix for this is to use single quotes in the markups, not double quotes.






That will solve the extra stuff showing (i.e. onlinestatus).


Where do I go to edit that?

Boofo 01-08-2012 08:14 PM

In the html markup for each usergroup.

thecore762 01-08-2012 10:21 PM

Quote:

Originally Posted by Boofo (Post 2285348)
In the html markup for each usergroup.


Many thanks :)

GhostHunter2010 01-09-2012 08:49 PM

i tried this one it worked on vb 4.1.9 but one thing i didnt like it if u try to click the nick u can see the span things etc i unistalled

Boofo 01-10-2012 12:04 AM

Quote:

Originally Posted by GhostHunter2010 (Post 2285687)
i tried this one it worked on vb 4.1.9 but one thing i didnt like it if u try to click the nick u can see the span things etc i unistalled

https://vborg.vbsupport.ru/showpost....&postcount=372

KHALIK 01-15-2012 02:53 AM

I am getting the same problem as GhostHunter2010

Example here is mine
Code:

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

tonyay163 01-24-2012 01:51 AM

Is there a way to enable this for DISPLAY groups instead of Primary usergroup?

Alan_SP 01-24-2012 03:49 AM

Quote:

Originally Posted by tonyay163 (Post 2291586)
Is there a way to enable this for DISPLAY groups instead of Primary usergroup?

This I would also love very much. :)

ssoc 02-01-2012 04:09 AM

1 Attachment(s)
I also seem to be having problems with this plugin.

Once enabled, here's what happens:

Attachment 136221

The error only appears for users who are in usergroups with custom styling added.

Here's the code I have added for the Admin usergroup:

Before:

Code:

<span style="font-weight: bold; color: #0000CC;">
After:

Code:

</span>
I have disabled it for the time being, but I'd appreciate it if anyone has a fix?

Alan_SP 02-01-2012 07:14 AM

Remove double quotes ("), use single ones ('). This is already mentioned here.

So you need to have it like this:

HTML Code:

<span style='font-weight: bold; color: #0000CC;'>

sticky 02-01-2012 07:35 AM

Quote:

Originally Posted by Alan_SP (Post 2294887)
Remove double quotes ("), use single ones ('). This is already mentioned here.

So you need to have it like this:

HTML Code:

<span style='font-weight: bold; color: #0000CC;'>

Yep, made the change and it is working fine.

ssoc 02-01-2012 10:37 AM

Quote:

Originally Posted by Alan_SP (Post 2294887)
Remove double quotes ("), use single ones ('). This is already mentioned here.

So you need to have it like this:

HTML Code:

<span style='font-weight: bold; color: #0000CC;'>

Perfect, thanks

Luffy-9 02-01-2012 01:17 PM

Does it work with 4.1.10 ??

Schoelle 02-01-2012 03:14 PM

Quote:

Originally Posted by Luffy-9 (Post 2294952)
Does it work with 4.1.10 ??

Yes!

Luffy-9 02-02-2012 05:17 AM

I installed the modification but seems something is wrong [see the picture below]

http://img692.imageshack.us/img692/1594/67422374s.png

I don't want it to be like this !!!

Note:
I'm using Vb 4.1.10

Boofo 02-02-2012 05:58 AM

Come on people. Read 3 posts up.

Luffy-9 02-04-2012 06:02 AM

Sorry man I didn't notice :)
Done and vote (Y)

L2Insomnia 02-08-2012 07:25 PM

I have the same issue as Luffy and am using ' instead of " Only happens when I am logged out though.

Quote:

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

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 06:51 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.01781 seconds
  • Memory Usage 1,849KB
  • 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
  • (5)bbcode_code_printable
  • (6)bbcode_html_printable
  • (3)bbcode_php_printable
  • (14)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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