Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Apr 2001
Posts: 12
Junior Member
Junior Member
Offline
Joined: Apr 2001
Posts: 12
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

Sponsored Links
Joined: Mar 2001
Posts: 318
Member
Member
Offline
Joined: Mar 2001
Posts: 318
this is very awsome! any way you can make it soo you can disable either the color of the font or the glow?

Joined: May 2001
Posts: 71
Member
Member
Offline
Joined: May 2001
Posts: 71
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


[insert irony here]
Joined: Jul 2001
Posts: 1
Junior Member
Junior Member
Offline
Joined: Jul 2001
Posts: 1
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.
Joined: Jun 2001
Posts: 2
Junior Member
Junior Member
Offline
Joined: Jun 2001
Posts: 2
wow! it's cool..... good work michael!

Sponsored Links
Joined: Jul 2001
Posts: 18
Junior Member
Junior Member
Offline
Joined: Jul 2001
Posts: 18
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 ]


Kind Regards, Ping Productions
Joined: Apr 2001
Posts: 12
Junior Member
Junior Member
Offline
Joined: Apr 2001
Posts: 12
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

Joined: May 2001
Posts: 18
Junior Member
Junior Member
Offline
Joined: May 2001
Posts: 18
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

Joined: Jul 2001
Posts: 14
Junior Member
Junior Member
Offline
Joined: Jul 2001
Posts: 14
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

Joined: Apr 2001
Posts: 3
Junior Member
Junior Member
Offline
Joined: Apr 2001
Posts: 3
Does it support IE???
I can't run it weel.

Sponsored Links
Joined: Apr 2001
Posts: 4
Junior Member
Junior Member
Offline
Joined: Apr 2001
Posts: 4
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.

Joined: Apr 2001
Posts: 60
Spotlight Winner
Spotlight Winner
Offline
Joined: Apr 2001
Posts: 60
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 ]

Joined: May 2001
Posts: 6,708
Member
Member
Offline
Joined: May 2001
Posts: 6,708
Great hack, sounds good. I'll try this out later. smile

Joined: Jun 2001
Posts: 56
Member
Member
Offline
Joined: Jun 2001
Posts: 56
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 ]


Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
JAISP
JAISP
PA
Posts: 449
Joined: February 2008
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services