Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases

Reply
 
Thread Tools
Glowing User Names Details »»
Glowing User Names
Version: 1.00, by Mr L Mr L is offline
Developer Last Online: Oct 2007 Show Printable Version Email this Page

Version: 2.3.x Rating:
Released: 09-30-2003 Last Update: Never Installs: 12
 
No support by the author.

I know that there are several hacks around for glowing user names but I could not find one that fitted my requirments which was all users had no glow unless selected.

Here is a very quick and easy to install hack that I knocked up this morning. Tested on vBulletin 2.3.0.

To install, this requires one file and one template edit, along with a custom profile field.

To use, users simply set the colour they require in their profile.

Please click "Install" if you use this.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 12-07-2003, 06:29 AM
GMfullsize GMfullsize is offline
 
Join Date: Nov 2003
Location: GMfullsize.com
Posts: 29
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #13  
Old 12-07-2003, 07:18 AM
Mr L Mr L is offline
 
Join Date: Jan 2002
Posts: 99
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #14  
Old 12-07-2003, 07:24 AM
Mr L Mr L is offline
 
Join Date: Jan 2002
Posts: 99
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #15  
Old 12-07-2003, 07:26 AM
Mr L Mr L is offline
 
Join Date: Jan 2002
Posts: 99
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #16  
Old 12-07-2003, 11:43 AM
Kruppa Kruppa is offline
 
Join Date: Apr 2003
Location: Canada
Posts: 41
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!
Reply With Quote
  #17  
Old 12-07-2003, 12:07 PM
Mr L Mr L is offline
 
Join Date: Jan 2002
Posts: 99
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #18  
Old 12-07-2003, 01:18 PM
Kruppa Kruppa is offline
 
Join Date: Apr 2003
Location: Canada
Posts: 41
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #19  
Old 12-09-2003, 07:47 AM
Cryo Cryo is offline
 
Join Date: Dec 2003
Location: Buffalo, NY
Posts: 197
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!
Reply With Quote
  #20  
Old 12-09-2003, 08:48 AM
Mr L Mr L is offline
 
Join Date: Jan 2002
Posts: 99
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #21  
Old 12-09-2003, 02:46 PM
Cryo Cryo is offline
 
Join Date: Dec 2003
Location: Buffalo, NY
Posts: 197
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 06:22 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05173 seconds
  • Memory Usage 2,308KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (3)bbcode_php
  • (5)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete