Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: May 2001
Posts: 6,708
Member
Member
Offline
Joined: May 2001
Posts: 6,708
Hack Name::Custom Username Font & Glow Color.

Description:Lets users choose a font and glow color for their Username.

Hack By:Lord Dexter

Original Author:Michael

Features:
-Preview
-Color table.

Download: HERE

Report any bugs or places I haven't XHTML'ed here. There hasn't been much change from the v6.0 version, just updated the code you need to find and got rid of some bugs I found in the v6.0 Version. Enjoy the hack. smile

Sponsored Links
Joined: Mar 2001
Posts: 42
Member
Member
Offline
Joined: Mar 2001
Posts: 42
How do I get my original font back? I originally had Verdana as my font for text, but now the usernames are in Times. How do I get that back? Thanks

Joined: May 2001
Posts: 6,708
Member
Member
Offline
Joined: May 2001
Posts: 6,708
ZIP Updated. I missed a line in the code. Just re-hack your public_topic_page.pl and you should be fine.

Joined: Mar 2001
Posts: 42
Member
Member
Offline
Joined: Mar 2001
Posts: 42
hmmm, did that and then it took away the entire column to the left where it has my the name and all the other info for member # and such. It also made all the text glow red. I need help..

Joined: Mar 2001
Posts: 42
Member
Member
Offline
Joined: Mar 2001
Posts: 42
Is there anyway that I can send you this file so you can look at it. I have other hacks running like avatar and custom titles. Maybe they are interferring with it. I tried looking at the code to figure it out but I know nothing about cgi. Get back to me, thanks.

[ 11-14-2001: Message edited by: The Wedge ]

Sponsored Links
Joined: Mar 2001
Posts: 42
Member
Member
Offline
Joined: Mar 2001
Posts: 42
Nevermind. Got everything working smoothly now. Thanks

Joined: May 2001
Posts: 6,708
Member
Member
Offline
Joined: May 2001
Posts: 6,708
Was it my code that was wrong or yours? Because I've tested this on my test board and it works fine.

Joined: May 2001
Posts: 1,042
Likes: 7
Moderator
Moderator
Offline
Joined: May 2001
Posts: 1,042
Likes: 7
I only had one problem, and that was that everyone in a post had the same font and glow, how this was deteremined i don't know, but i fixed by leaving ubb_lib_posting.cgi alone, going into public_page_topic.pl and putting in:

###
###Below:
###
$alt_color = "$vars_style{AltColumnColor1}";
}

###
###I put in:
###

my $this_color = $user_profile[16];
chomp ($this_color);
if ($this_color ne "") {
$this_color = qq($this_color);
} else {
$this_color = qq(white);
}

my $this_glow = $user_profile[17];
chomp ($this_glow);
if ($this_glow ne "") {
$this_glow = qq(style="filter:glow(color=$this_glow, strength=3,400)");
} else {
$this_glow = qq(black);
}

###
###And then replaced:
###


$show_public_name


###
###with:
###



$show_public_name


###
###
###

That way, it won't show up for someone who has this disabled.

Joined: May 2001
Posts: 6,708
Member
Member
Offline
Joined: May 2001
Posts: 6,708
So do you think I should hack this hack without using ubb_lib_posting.cgi at all? So it doesn't cause too many problems?

Joined: May 2001
Posts: 1,042
Likes: 7
Moderator
Moderator
Offline
Joined: May 2001
Posts: 1,042
Likes: 7
Quote
quote:
I didn't even use ubb_lib_posting.cgi when trying it on my boards. It's your hack, i was just giving a suggestion.

Sponsored Links
Joined: May 2001
Posts: 6,708
Member
Member
Offline
Joined: May 2001
Posts: 6,708
I wasn't too sure If I should change it.
But do you think other people will have the same problem and the same glow will appear in the whole thread? Because when I tested it that really didn't happen.

Joined: May 2001
Posts: 1,042
Likes: 7
Moderator
Moderator
Offline
Joined: May 2001
Posts: 1,042
Likes: 7
I think more testing should be done. It could have very well interfered with one of my hacks that i previously installed, that i can't tell.

It looks like wedge just messed up the tables and didn't close the glow tag. But if says that he got it working alright...

Joined: May 2001
Posts: 6,708
Member
Member
Offline
Joined: May 2001
Posts: 6,708
I think it might be the birthday cake from the calendar hack interferring with it. Did you have any other hacks that modified that area of code in public_topic_page.pl

Joined: May 2001
Posts: 1,042
Likes: 7
Moderator
Moderator
Offline
Joined: May 2001
Posts: 1,042
Likes: 7
I have content enforcer, avatar dropdown, icq/aim, and i did rearrange the html around the whole page.

Joined: May 2001
Posts: 6,708
Member
Member
Offline
Joined: May 2001
Posts: 6,708
Maybe it was becase you re-arranged your HTML. I don't think any of your hacks did it...

Joined: Nov 2001
Posts: 33
Junior Member
Junior Member
Offline
Joined: Nov 2001
Posts: 33
i have this hack installed but the user status line and member number lines get changed to the same color as your inside text name color?

Joined: May 2001
Posts: 6,708
Member
Member
Offline
Joined: May 2001
Posts: 6,708
Can I have a line to your board? Also, make sure you have closed the tags in public_topic_page.pl

Joined: Mar 2001
Posts: 4
Junior Member
Junior Member
Offline
Joined: Mar 2001
Posts: 4
Yes. I got the same problem as well.


'A friend with weed, is a friend indeed'
Joined: May 2001
Posts: 6,708
Member
Member
Offline
Joined: May 2001
Posts: 6,708
Can you post the area of code you added to in public_topic_page.pl please.

Joined: Mar 2001
Posts: 4
Junior Member
Junior Member
Offline
Joined: Mar 2001
Posts: 4
Running an
Ultimate Bulletin Board 6.1.0
Code
code:


'A friend with weed, is a friend indeed'
Joined: May 2001
Posts: 6,708
Member
Member
Offline
Joined: May 2001
Posts: 6,708
I have no idea why it's doing that. All the tags are closed.

Joined: Dec 2000
Posts: 371
Member
Member
Offline
Joined: Dec 2000
Posts: 371
I tried everything but it does not work. It has something to do with the relation between the customfield-userprofile.

Suppose i have all of the mods found here installed, and i have customfield 6, 7 and 8 available...how can i find out wich userprofiles in relation to this fields i can use?

q~custom1_field_use~ => q~OPT~,
q~custom2_field_use~ => q~OPT~,
q~custom3_field_use~ => q~OPT~,
q~custom4_field_use~ => q~OPT~,
q~custom5_field_use~ => q~OPT~,
q~custom6_field_use~ => q~DEL~,
q~custom7_field_use~ => q~OPT~,
q~custom8_field_use~ => q~OPT~,
q~customfield1~ => q~~,
q~customfield2~ => q~Font Face~,
q~customfield3~ => q~Font color~,
q~customfield4~ => q~Font size~,
q~customfield5~ => q~User Mood~,
q~customfield6~ => q~~,
q~customfield7~ => qq~Font Color color-table~,
q~customfield8~ => qq~Glow Color color-table~,
q~homepage_field_use~ => q~OPT~,
q~icq_field_use~ => q~OPT~,
q~interests_field_use~ => q~DEL~,
q~location_field_use~ => q~DEL~,
q~occupation_field_use~ => q~DEL~,
q~picture_field_use~ => q~OPT~,
q~signature_field_use~ => q~OPT~,
);
1;

[ 11-25-2001 10:47 PM: Message edited by: Variables ]

Joined: May 2001
Posts: 6,708
Member
Member
Offline
Joined: May 2001
Posts: 6,708
Oh well thats why it doesn't work. This hack uses Custom fields one and two. I'll have to check the 8 Custom fields hack to get the User profile numbers.

Joined: Dec 2000
Posts: 371
Member
Member
Offline
Joined: Dec 2000
Posts: 371
That's it. Userprofiles:

6 = 61

7 = 62

8 = 63

Tnx LD.

I know now how userprofiles in relation with customfields are used.

Joined: May 2001
Posts: 6,708
Member
Member
Offline
Joined: May 2001
Posts: 6,708
Open ubb_lib_posting.cgi and find:

Code
code:

Replace with:

Code
code:

Hope it works. I was wondering why it wasn't working and I didn't post it in Finished mods. But now I can.

Joined: Oct 2001
Posts: 2
H2O Offline
Junior Member
Junior Member
Offline
Joined: Oct 2001
Posts: 2
Is it possible to change this mod so that only the Admin would be able to assign colours?

*also, havn't installed the mod, but how about actually just changing the color rather than having a glow?
:: if there is already a mod that does this, feel free to point me in the right direction.

Joined: Oct 2001
Posts: 2
H2O Offline
Junior Member
Junior Member
Offline
Joined: Oct 2001
Posts: 2
ugh, just realised that it isn't even there anymore..

:: Great ::

Joined: May 2001
Posts: 6,708
Member
Member
Offline
Joined: May 2001
Posts: 6,708
Try the Name effects hack if you want Admins to assign colors for you. But it's only status based. Also if you want no glow I can edit out the code for you so it's just glow.

Joined: Oct 2001
Posts: 20
Junior Member
Junior Member
Offline
Joined: Oct 2001
Posts: 20
Quote
quote:
same here

Joined: May 2001
Posts: 6,708
Member
Member
Offline
Joined: May 2001
Posts: 6,708
Have you made sure that you have used Custom fields 1 and 2?

Joined: Oct 2001
Posts: 20
Junior Member
Junior Member
Offline
Joined: Oct 2001
Posts: 20
Quote
quote:
yeap,I changed my msn hack to field 3 and used fields 1 and 2 for this one.

Joined: May 2001
Posts: 6,708
Member
Member
Offline
Joined: May 2001
Posts: 6,708
Post a URL to your board please.

Joined: Mar 2001
Posts: 3
Junior Member
Junior Member
Offline
Joined: Mar 2001
Posts: 3
I have this hack on 6.03 and going to upgrade to 6.3.1. Do you have the hack so it will work with 6.3.1 version of ubb. Thanks

Joined: Aug 2002
Posts: 41
Member
Member
Offline
Joined: Aug 2002
Posts: 41
This thing is defying me to put right! so can anyone point me at what is wrong?? This is our test site (were lucky to have the space for free!)
so don't take too much notice of what's in there if you go for a look around laugh
http://www.themotorhead.net/cgi-bin/ultimatebb.cgi?ubb=get_topic&f=1&t=000005
As you can see something is affecting the cells, what have I missed when I installed the hack?

Joined: Jun 2002
Posts: 136
Member
Member
Offline
Joined: Jun 2002
Posts: 136
IS there such a hack for 6.2.1??? I would really like to use this hack

Peter

Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
it should be the same smile


- Allen wavey
- What Drives You?
Joined: May 2001
Posts: 6,708
Member
Member
Offline
Joined: May 2001
Posts: 6,708
Whoops, didn't see this thread.

Yep, not much change to even put it on 6.3. Maybe the find code is a little different but I'm sure you can find it. If not, just give me a call. smile

Joined: Oct 2002
Posts: 394
Enthusiast
Enthusiast
Offline
Joined: Oct 2002
Posts: 394
LD,
I cant get it working on a 6.3.1.1 no matter what I try!

I cant figure it out in public_topic_page.pl because there is no section like this:

[code][/code]Can you port this file in 6.3.1.1 for me?
The others are fine, graphics are there and also custom fiels are okay.

Thank you in advance.

Joined: Feb 2000
Posts: 2,668
Deb Offline
Pooh-Bah
Pooh-Bah
Offline
Joined: Feb 2000
Posts: 2,668
Felix, check out THIS thread please. I thought perhaps you had seen it, sorry. smile


- Deb
Joined: Oct 2002
Posts: 394
Enthusiast
Enthusiast
Offline
Joined: Oct 2002
Posts: 394
Yes, Deb, I have seen it. This is the starting point. However that only apllies to 6.2

Still waiting for Lord D. for an input.

Thank you very much.

Felix


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
AllenAyres
AllenAyres
Texas
Posts: 21,079
Joined: March 2000
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

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)