vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   User chooses color for username in profile. (https://vborg.vbsupport.ru/showthread.php?t=79139)

Wasim 03-31-2005 10:13 PM

User chooses color for username in profile.
 
1 Attachment(s)
Ive been looking for a hack like this for a long time. I thought it would already exist considering this is such a simple request. Just an option in the UCP where you can select your username color with a pallette. Something similar to the picture I have attached...

ericgtr 03-31-2005 10:50 PM

Do you really want a guy named Donkeybong to have a highlighted name though? ;) I don't believe there is a mod for this and I will second your request, neat idea. You would just want to be sure and rule out your existing background colors.

Wasim 03-31-2005 11:49 PM

Quote:

Originally Posted by ericgtr
You would just want to be sure and rule out your existing background colors.

What exactly do you mean by that?

BTW, thanks for backing up my idea. :)

ericgtr 03-31-2005 11:52 PM

I would think that some users would take advantage of it by changing their username color to the background color, making it appear as if they have no name.

Wasim 04-01-2005 01:06 AM

Quote:

Originally Posted by ericgtr
I would think that some users would take advantage of it by changing their username color to the background color, making it appear as if they have no name.

I dont think it should be that big of a deal.

Wasim 04-02-2005 10:22 PM

Any takers on this yet?

Neo 04-02-2005 11:27 PM

Quote:

Originally Posted by ericgtr
I would think that some users would take advantage of it by changing their username color to the background color, making it appear as if they have no name.

HAHAHA simple, you use the color varibles and use a if statement to take that color out... I might look into this if I got thee time

why-not 04-03-2005 01:01 AM

Why not just add a column to to the usertextfield table 'usercolor', then add a bitwize value to your usergroup permissions 'genericoptions' because it not used much, then add two properties in the usergroup!

1. User can select color for username: Yes/No
2. If (1) = NO enter a color for the username!

Edits...

(1) Admin Panel edit (usergroup.php)

(1) Profile options edit (profile.php)

(1) database change (usertextfield) table alter ADD char (6) column

(2) include file type edits (init.php => to add the bitwise permission, functions_showthread.php to add the color if() block question) ie: does user have permission (yes/no) yes change color, no use default color!

I might not put it in the functions_showthread.php but instead just put it in showthread.php, but I am thinking functions_showthread.php will be the best place for it. I will have to look, when I get home.

If what I said is fine I will make it real quick when I get home in few hours! If you want me to do it then you will need to do the following!

Create 8 phrases (2) to use in the user group permissions, and the other (6) for the admin help! I'll do one, so you see what I mean, if you want to change there value(s) go head!

Once I see you have these done, I will do the mod real quick. I would write the phrases myself, but having written almost 400 of them in the last two days, I can not bear to write to many more at the moment! So you help me and help your self and I will do the code part!

Code:

INSERT INTO xx_prefix_phrase VALUES ('', -1, 'can_select_color', 'User Group Can Select User Name Font Color', 3);


INSERT INTO prefix_phrase VALUES ( '', -1, 'usergroup_add_edit_canselectcolor_title', 'User Group Can Select User Name Font Color', 6000);
INSERT INTO prefix_phrase VALUES ( '', -1, 'usergroup_add_edit_canselectcolor_text', 'Selecting (yes) will allow this user group the permission to change colors for their username. It will also display the color selector in the users options menu found in user control panel options menu.', 6000 );
INSERT INTO prefix_adminhelp VALUES ( '', 'usergroup', 'add,edit', 'canselectcolor', 706, 1 );

// you do this one


INSERT INTO xx_prefix_phrase VALUES ('', -1, 'user_default_color', '', 3);

INSERT INTO prefix_phrase VALUES ( '', -1, 'usergroup_add_edit_userdefaultcolor_title', '', 6000 );
INSERT INTO prefix_phrase VALUES ( '', -1, 'usergroup_add_edit_userdefaultcolor_text', '', 6000 );
INSERT INTO prefix_adminhelp VALUES ( '', 'usergroup', 'add,edit', 'userdefaultcolor', 707, 1 );


Sonia

Neo 04-03-2005 01:35 AM

bling bling

Wasim 04-03-2005 02:54 AM

Nice! So are Neo and Sonia teaming up to make this mod?


All times are GMT. The time now is 02:00 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.01064 seconds
  • Memory Usage 1,740KB
  • 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
  • (1)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)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