vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Glowing User Names (https://vborg.vbsupport.ru/showthread.php?t=57538)

GMfullsize 12-07-2003 06:29 AM

I installed it but nothing happens after I put the number in. I put in 000000 for black and nothing changed. Also how do I know what field # it is? Thanks

Mr L 12-07-2003 07:18 AM

Quote:

Originally Posted by GMfullsize
I installed it but nothing happens after I put the number in. I put in 000000 for black and nothing changed. Also how do I know what field # it is? Thanks

Go into the Control Panel and move the cursor over edit on the group you have selected. In the status bar on IE at the end of the URL it should show...

action=edit&usergroupid=7

...obviously the trailing number could be diffierent for you, but that is the number you need.

Mr L 12-07-2003 07:24 AM

Quote:

Originally Posted by M@rkus
great hack. how can i let the usernames in the "Users Online" glow also?!

Thanks for the comments. Making the online users was beyond the scope of this small hack as there are many other hacks that do that and the chances of conflicting with them would be high.

Saying this, if anyone wants to make an addon or enhance this, they are welcome to use this as a base.

Mr L 12-07-2003 07:26 AM

Quote:

Originally Posted by Kruppa
Really cool hack, my users love it. :)

I do have a problem with one user who sees everything distorted where the name is glowing. The only thing I've been able to find is that she's on a Macintosh. Is it possible it's the problem and if so is there a way around this?

It does it in all the style sets I have.

Would it help if I looked at writing a piece of code that excluded that user from this?

This is a brower issue and I doubt any changes to the code would actually fix this for one user so perhaps the best issue is to remove them from viewing it?

Kruppa 12-07-2003 11:43 AM

Quote:

Originally Posted by Mr L
Would it help if I looked at writing a piece of code that excluded that user from this?

This is a brower issue and I doubt any changes to the code would actually fix this for one user so perhaps the best issue is to remove them from viewing it?

If it wouldn't be too much trouble that would be great. She's one of my moderators and it's hard because if she doesn't recofnize the member by his/her avatar she has to click in the profile to see who it is. Thanks for your help! :)

Mr L 12-07-2003 12:07 PM

Quote:

Originally Posted by Kruppa
If it wouldn't be too much trouble that would be great. She's one of my moderators and it's hard because if she doesn't recofnize the member by his/her avatar she has to click in the profile to see who it is. Thanks for your help! :)

Okay...

...in forums/admin/functions.php find...

PHP Code:

//GLOW NAME
if (trim($post[fieldXXXXX])!="") { 

...and replace with...

PHP Code:

//GLOW NAME
if (trim($post[fieldXXXXX])!="" and $bbuserinfo[userid] <> YYYYY) { 

...with YYYYY = the id number of this moderator.

They will not see any "Glow" names, while everyone else will. Please let me know if it works ok for you, it did on my test board.

Kruppa 12-07-2003 01:18 PM

Ok I'll change it and get back to you once the person having trouble comes online next.

Also, do you know if anyone has had trouble getting the colour codes displaying the right colour? I've had a couple of people tell me they tried a certain colour code and gave them something else. For example the colour "teal" with this code: #008080 gives a kind of blue instead of the kind of green it's supposed to give.

I've tried this code in the glow text hack I have for the posts and it works fine. It's no big deal, I gave him a lighter teal that works but just wondering if it's a problem others had or just me. I don't recall seeing it in this thread.

Cryo 12-09-2003 07:47 AM

Ok, I want to alter this so it only works for admins... I tried the following...

PHP Code:

  if ($bbuserinfo['usergroupid']==6) {
    
$post[username] = "<font style='filter:glow(color=#CC00FF, strength=3);height=1px'><b>$post[username]</font>";
  }
  else {
  
    
$post[username] = "$post[username]";
    
    } 

It didn't seem to work though. Any suggestions? Thanks!

Mr L 12-09-2003 08:48 AM

Yeah, quite easy to adapt. Install the hack excatly as shown in the instructions, but set the "Field Editable" to "No" for the new profile field.

That way only Admin's or Mod's can view that field. Rather then put your colour "CC00FF" in the code, put it in the new profile field via the Admin CP.

This will allow the board Admin to control who has what colours be it just themselves, or a standard user if required. The colour not being hard coded allows for a quick change if required as well.

Cryo 12-09-2003 02:46 PM

Hrm, never even thought of that. ;) Thanks for the assistance.

BTW, I should mention that I've been looking for a hack like this for awhile. We had something like this on our old system, but lost it when we upgraded. I'm very glad to have it back!


All times are GMT. The time now is 12:37 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.01164 seconds
  • Memory Usage 1,749KB
  • 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_php_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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