UBB.Dev
HACK NAME: Custom Font & Glow Color with Preview and Color-Table


DESCRIPTION:
Users may choose their own font and glow color.


FEATURES:
- Preview
- A color-table with preview and will add the value to the fields automatically
- Admin can assign a default font and glow color for members who have not entered their own color


Preview of the color-table: here


DOWNLOAD: here


CREATED BY: michael from 熱血論壇 HK Hot Forum 2001
this is very awsome! any way you can make it soo you can disable either the color of the font or the glow?
yes this is very cool imma try it on my test boardand see whats up with the rest because your demo chart has a few syntax errors and the bottom table doesnt change anything so ill test it
I have been having some trouble with this hack, It works perfectly fine using the default colors, but when it pulls the information from lines 16 and 17 in the user profile, it adds a hard return at the end of the chosen colors, which results in some strange color schemes.

EX:





Where do I need to hack the code to get it to stop doing this?


I am not very cgi savy, I know just enough to be dangerous, I have tried several mods on this over the last 2 days with no success.

I am using version 6.04a with the Avatar hack, anchor hack, who's online, and last posted by. So it's likely that I inserted a line or break somewhere where I souldn't have.

Thanks in Advance.
wow! it's cool..... good work michael!
Can you use with/ is it a add-on to..
The Glowing Names Hack?
https://www.ubbdev.com/ubbcgi/ultimatebb.cgi?ubb=get_topic&f=24&t=000106

:rolleyes:

[ July 11, 2001 06:25 PM: Message edited by: Ping Productions ]
to R.G. :

the following is the solution to your prob:

open public_topic_page.pl

###
###FIND and DELETE:
###

my $color = $user_profile[16];
chomp ($color);
if ($color ne "") {
$color = qq~$user_profile[16]~;
} else {
$color = qq~BLACK~;
}

my $glow = $user_profile[17];
chomp ($glow);
if ($glow ne "") {
$glow = qq~$user_profile[17]~;
} else {
$glow = qq~WHITE~;
}



open ubb_lib_posting.cgi

###
###FIND:
###

if ($show_public_name eq '') {
if ($user_profile[15] eq '') {
$show_public_name = $user_profile[0];
} else {
$show_public_name = $user_profile[15];
}
}


###
###ADD BELOW:
###

chomp($user_profile[16]);
if ($user_profile[16] ne '') {
$color = qq~$user_profile[16]~;
} else {
$color = qq~#000000~;
}

chomp($user_profile[17]);
if ($user_profile[17] ne '') {
$glow = qq~$user_profile[17]~;
} else {
$glow = qq~#FFFFFF~;
}

######################################
DONE!!!!!!!!now all color value can be displayed 100% correctly
to Ping Productions:
it is an independent hack, not an add-on
Doens't seems to work on my board..


The colors are changed but i can't change them to the color i want it stays on default???

When i open the file public_topic_page...

I can't find

open public_topic_page.pl

###
###FIND and DELETE:
###

my $color = $user_profile[16];
chomp ($color);
if ($color ne "") {
$color = qq~$user_profile[16]~;
} else {
$color = qq~BLACK~;
}

my $glow = $user_profile[17];
chomp ($glow);
if ($glow ne "") {
$glow = qq~$user_profile[17]~;
} else {
$glow = qq~WHITE~;
}


Where is it??

Greetz
Hi there,hack works great except for one thing.You can only edit the colours once using the preview table,after you have edited it once the option to view the tables to pick your colours vanishes from your profile.

Is there a way to fix this? confused
Does it support IE???
I can't run it weel.
i am having the same prob nemisis01 is having. Mine worked fine for a while, but now the link to the color table has disappeared.....i tried "re-hacking" it, but that didn't work either.
Lets say you want to make it so that no one can change the custom font and glow from their profile. Can you just not hack the vars_registration.cgi file?

[ July 21, 2001 02:44 AM: Message edited by: Trunkx ]
Great hack, sounds good. I'll try this out later. smile
First of all michael I would like to congratulate you on what I considder to be the absolute best font & glow color hack made laugh laugh There are a couple of entries in the instructions that are missing. You may want to update text file or peeps will have problems.I had to use both fields 3 & 4 because the 'Country Flag Hack' uses field 2..So with that, here are the updated instructions for that part of the text..Include everything that's below this dashed line:
---------------------------------------------------------
OK, then re-upload public_topic_page.pl, vars_registration.cgi, and ubb_lib_posting.cgi

Also, upload hex_code.htm and Imagemap.gif into your non-cgi folder
###########################################################
#########OPTIONAL VARIATIONS############

In this hack, I have tried to use Custom Field 1 and Custom Field 2
But if you like, you can use the other 2 custom fields (3 & 4)
The following is the the code for Custom Field 1 - 4


###Custom Field 1:
$user_profile[16]
customfield1
custom1_field_use =>


###Custom Field 2:
$user_profile[17]
customfield2
custom2_field_use =>


###Custom Field 3:
$user_profile[18]
customfield3
custom3_field_use =>


###Custom Field 4:
$user_profile[19]
customfield4
custom4_field_use =>

*********************************************
###You may replace my original:
$user_profile[16], $user_profile[17]
customfield1, customfield2
custom1_field_use =>, custom2_field_use =>
with the above code.
*********************************************
### Attention!!! If you have changed the custom fields, you must also change the values in hex_code.htm LINE 16, 26 See below for changing to custom fields 3 & 4:

###Look for:

opener.document.forms[0].customfield1.value = bgcolor;

###Replace with:

opener.document.forms[0].customfield3.value = bgcolor;

###Look for:

opener.document.forms[0].customfield2.value = bgcolor;

###Replace with:

opener.document.forms[0].customfield4.value = bgcolor;


===============================END HACK==============================

Finally: Any member can change their usernames' font & glow colors through the 'my profile' link at the top of the forum page and then clicking on'View/Update Profile'.Make the necessary changes and don't forget to click the 'View/Update Profile' button when done..
----------------------------------------------------------------
It would be great if this hack had a direct link or a button somewhere at the top of every page labeled 'Change username Font & Glow color' and link it to ht*p://blahblahblah.com/cgi-bin/ultimatebb.cgi?ubb=edit_my_profile where the changes are made..

I would also like to see instructions added to the faq section so that members know how to do this..

Finally, can this hack be incorporated into a members posted text?? Thanks for reading this..

[ July 30, 2001: Message edited by: torn ]
© UBB.Developers