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)

Boofo 04-30-2012 06:24 PM

That doesn't work everywhere, though. ;)

BirdOPrey5 04-30-2012 06:28 PM

It also sounds like it will add a query for every time it is called, which can be many times per page.

SEOvB 04-30-2012 07:38 PM

Quote:

Originally Posted by BirdOPrey5 (Post 2324978)
It also sounds like it will add a query for every time it is called, which can be many times per page.

That....is a good point. I didn't look at the code for the fetch_musername function and assumed it was magically optimized for being called a million times.

I'll have to look into this one more. The easier solution would probably be to keep most of this mod's code & modify the memberaction dropdown template.

Edit: Actually, and correct me if I'm wrong, but it looks like the fetch_musername function makes use of the vBulletin cache. Also doesn't look like it's causing any undue load.

And hey, Boofo! I use your mods! (not on this account)

-Nick, SEOvB Developer

BirdOPrey5 04-30-2012 10:28 PM

It can use the cache but my thinking is most of those values would not be cached- it would be a simple enough check- it should report the number of queried on the bottom of the page - see if there is any difference on a page like forumhome or forumdisplay with the plugin enabled or disabled.

I'm not sure there would be a difference- just something to consider.

Boofo 04-30-2012 10:53 PM

No, in that hook you are okay. I did the fetch_musername for a mod in that hook and it added no queries.

Boofo 04-30-2012 10:53 PM

Quote:

Originally Posted by SEOvB (Post 2324993)
And hey, Boofo! I use your mods! (not on this account)

-Nick, SEOvB Developer

On which account?

Alan_SP 05-01-2012 07:05 PM

It works in many places, but it doesn't work in SHOWTHREAD, showing thread starter's name in markup.

Anyway, your plugin is really good quick fix for those that don't need it there. :up:

Paul. 05-21-2012 05:28 PM

I love this.
But, is it possible to deselect some user groups currently using it?
I only want Administrator accounts using it.

Syxguns 06-03-2012 06:13 AM

Many thanks for this mod! I have been searching for it for two days, and finally asked in the general questions! Works great on 4.2!

LouiseWilson 06-04-2012 06:40 AM

1 Attachment(s)
Having an issue with this mod on VB 4.2.0 see attached image

The HTML Markup I have is as follows
Code:

<IMG SRC="smallbits/owner.gif" BORDER="0"><span style="color: red;"></span>
also tried it without the image in the markup same issue

any advice ?

LouiseWilson 06-04-2012 06:44 AM

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).

Fixed thanks again Boofo, however when using an image with it still dont look right disabled for now :)

ezak 06-05-2012 04:45 PM

Quote:

Originally Posted by LouiseWilson (Post 2336377)
Having an issue with this mod on VB 4.2.0 see attached image

The HTML Markup I have is as follows
Code:

<IMG SRC="smallbits/owner.gif" BORDER="0"><span style="color: red;"></span>
also tried it without the image in the markup same issue

any advice ?

have the same problem
any fix for this problem for 4.2.0 ?

LouiseWilson 06-05-2012 05:57 PM

I've read through the whole thread now and this will fix on 4.2.0

Example
Code:

<IMG SRC='smallbits/mod.gif' BORDER='0'><span style='color: green;' title='Mod'>  </span>
you will notice I've used ' instead of " and added title='Mod'

Cla75 07-04-2012 09:08 PM

I have the same problem with vb 4.2
The mod does not work because it duplicates the nickname

Quote:

PROVA primo messaggio
da cla75 ora ? in linea">cla75 - oggi 08:14 PM
I'm waiting
very nice mod
thanks

pbforum 07-21-2012 11:52 AM

not working on my forum
if i installed put </a> front of html code ... user cannot click on username

LouiseWilson 07-21-2012 04:46 PM

see below my HTML Markup to use

Example
Code:

<IMG SRC='smallbits/owner.gif' BORDER='0'><span style='color: red;' title='Site Adminstrator'> </span>

Popa Andrei 07-24-2012 12:17 AM

Morea clearly for all who see is online and is offline mesasge next to the name,in the markup dont use " and use this '

DanielMaidment 08-26-2012 12:43 AM

Is there a way to make it display a users DISPLAYGROUP not PRIMARY usergroup?

NTT 08-26-2012 01:57 PM

any fix for this problem for 4.2.0 ?

MrHorror 08-28-2012 10:21 PM

I installed this mod today. If you're using the LAST POST AVATAR DISPLAY on FORUM HOME mod in conjunction with this mod? Be warned. It will delete your LAST POST avatar from the forum home. I also tried reinstalling it. And it didn't delete the avatar that time, but it did show html code from the color markup when hovering over the avatar picture.

MrHorror 08-29-2012 08:17 PM

Here's the specific problem I am having with this mod...

https://vborg.vbsupport.ru/external/2012/08/6.jpg

The html code for the usergroup colors? Shows up in the yellow highlight box whenever you mouse over the avatar on forum home. I need the mod designer to show me how to hide this from showing up in the yellow box.

tanzeelniazi 08-29-2012 09:31 PM

2 time Name showing in 4.2.0
Can u fix it ?
Thanks

ssoc 08-29-2012 10:26 PM

1 Attachment(s)
I have a similar (if not the same) issue...

Attachment 140813

TeknoSounds 08-31-2012 11:52 AM

Its been broken since day 1, developer isn't going to be fixing it. Someone else needs to delve into the code either to rewrite how its done so it shows up properly or just ignore it.

Shaneisace 09-06-2012 03:45 PM

Removed, need to get permission :(

Superorb 09-07-2012 04:24 AM

Subscribed, waiting for a fix.

Syxguns 09-07-2012 07:33 AM

I don't think that there will be a fix. I don't want to remove the mod, because it makes the forum look nice, but I would like to figure out a fix for the hover showing the details, like ssoc showed above. I would think that it would be alright for someone to tell us what changes we would need to make in the XML file to accomplish this, since the designer has left it untouched!

Superorb 09-07-2012 07:16 PM

If you look at the HTML source the Title tag has the Span info stuck into it for some reason. Someone would need to edit the original code to not inject the custom tags into the title tag.

Syxguns 09-07-2012 08:34 PM

Quote:

Originally Posted by Superorb (Post 2363471)
If you look at the HTML source the Title tag has the Span info stuck into it for some reason. Someone would need to edit the original code to not inject the custom tags into the title tag.

Is it as simple as removing that line of code, or would you need to replace that line with another conditional tag for mouse over?

Superorb 09-07-2012 08:47 PM

Quote:

Originally Posted by Syxguns (Post 2363489)
Is it as simple as removing that line of code, or would you need to replace that line with another conditional tag for mouse over?

I don't want it to say "Administrator" or "Moderator" for the title tag in all places and for all users. I'd like the title tag to behave like the default install but with the edited colors.

I looked at the code and it's confusing. I haven't done any real coding since C 12 years ago.

Syxguns 09-07-2012 09:41 PM

Quote:

Originally Posted by Superorb (Post 2363498)
I don't want it to say "Administrator" or "Moderator" for the title tag in all places and for all users. I'd like the title tag to behave like the default install but with the edited colors.

I looked at the code and it's confusing. I haven't done any real coding since C 12 years ago.

The first part of your question I can answer I think. I only have the colors and the fonts show. You will only know that I'm an Admin because of the color, but it does not say "Administrator" or "Moderator" because I removed the condition in vB.

AdminCP >> Settings > Options > Forum Listings Display Option
At the bottom of the list you will see: "Show Moderators" set that to "No"

I'll take a look at the code. I'm not much of a coder either, but maybe I might find something to change, or speak to another coder, and maybe they can tell me what to change. In fact I know the exact person to ask. Maybe we can figure out how to fix this little problem, and just post a fix in the thread.

Superorb 09-07-2012 09:54 PM

Quote:

Originally Posted by Syxguns (Post 2363511)
The first part of your question I can answer I think. I only have the colors and the fonts show. You will only know that I'm an Admin because of the color, but it does not say "Administrator" or "Moderator" because I removed the condition in vB.

AdminCP >> Settings > Options > Forum Listings Display Option
At the bottom of the list you will see: "Show Moderators" set that to "No"

I'll take a look at the code. I'm not much of a coder either, but maybe I might find something to change, or speak to another coder, and maybe they can tell me what to change. In fact I know the exact person to ask. Maybe we can figure out how to fix this little problem, and just post a fix in the thread.

I still want to show mods, I just don't want a bunch of the <span> text to be displayed in front of the username, or for it to show the <span> code in the Title attribute when I hover over it. Basically, I want it to be like default with the pretty colors/formatting.

Syxguns 09-07-2012 10:03 PM

I'm going to look at it and see if I can get that fixed. That is the only problem I have with the mod.

Superorb 09-07-2012 10:21 PM

Quote:

Originally Posted by Syxguns (Post 2363518)
I'm going to look at it and see if I can get that fixed. That is the only problem I have with the mod.

Thanks for looking into this :)

Syxguns 09-08-2012 12:34 AM

Quote:

Originally Posted by Superorb (Post 2363522)
Thanks for looking into this :)

I'm already a little confused. This HTML mouse over event is not logged in the XML file. I'm having a friend Sartech look at it. We may be able to add a disable event in the XML file, or we may have to make a slight modification in the vB code.

Not sure yet, I'm gonna wait until I receive a PM on this. In the meantime I'm going to try to track down where the event is taking place in vB.

Syxguns 09-08-2012 04:24 AM

Wow, we just removed title="{vb:raw thread.preview}" and it still showed the HTML markup. I have a thread open about it, maybe someone will give me a solution.

Superorb 09-08-2012 01:55 PM

I've noticed before that I've wanted to edit a variable like thread.preview, but I can't find where it lives if it's not in the phrase manager. Any ideas?

Syxguns 09-08-2012 05:24 PM

Quote:

Originally Posted by Superorb (Post 2363678)
I've noticed before that I've wanted to edit a variable like thread.preview, but I can't find where it lives if it's not in the phrase manager. Any ideas?

One area is called "threadbit", and the other is called "search_threadbit" You will find them in the Styles & Templates area. However, I already removed them and it did not solve the problem.

Syxguns 09-11-2012 12:17 AM

I made code changes to several areas of threadbit and search_threadbit, and have not been successful with removing the mouse over effect. So you are left to disable the mod, if it annoys you and hope that there will be an update for it, or continue to use it despite the mouse over effect.

I worked with another on trying to change the effect the mod was having but we have not been successful. :(

stardotstar 09-11-2012 12:48 AM

Hi Syxguns, I am very interested in getting this working properly and admire your efforts.

However I have not installed this version of the mod, only the [FIXED] one and it didn't work (as expected).

I am most keen to see this work in the search_threadbit.

Am I correct in understanding that your current version of the mod works properly across most of the areas where the usernames are displayed (including search) but the mouseover shows the markup rather than the group name?

Maybe I can work with you to get to the bottom of it - I have pretty limited skills but have modified a few hacks in the past.

Regards
W

ps where can I get the latest version of the code you have got to. I have the fixed one and this one and when I diff the files I can see the only changes are to do with what sections it applies the markup to - is that right?


All times are GMT. The time now is 01:23 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.01781 seconds
  • Memory Usage 1,830KB
  • 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
  • (4)bbcode_code_printable
  • (12)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