Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Jun 2001
Posts: 120
Member
Member
Offline
Joined: Jun 2001
Posts: 120
I got bored, so I wrote this code up myself. As in my above post, this modification make it so a line break is only displayed if the user has set a custom title for themself. It's a little beautification detail that'll add a bit of profesionalism to your board smile

Here's the mod:

In public_topic_page.pl:

Find:

Quote
code:
Code
sub topic_row {

Add Below:

code:
[qb]
Code
my $line_break = "
";
[/qb]
Find:

Quote
code:
Code
	if ($alt_color eq "$vars_style{AltColumnColor1}") {
$alt_color = "$vars_style{AltColumnColor2}";
} else {
$alt_color = "$vars_style{AltColumnColor1}";
}

Add Below:

code:
[qb]
Code
	if ($user_profile[16] eq '') {
$line_break = '';
} else {
$line_break = "
";
}
[/qb]
Find:

Quote
code:
Code
$user_status


$user_profile[16]


Replace With:

code:
[qb]
Code
$user_status
$line_break
$user_profile[16]

[/qb]
That's it smile Reupload, clear Topic Page cache, and you're done smile

Sponsored Links
Entire Thread
Subject Posted By Posted
[6.0x] 1 step custom titles [ Finished ] Xizer 09/16/2001 1:34 AM
Re: [6.0x] 1 step custom titles [ Finished ] Lord Dexter 09/16/2001 3:01 AM
Re: [6.0x] 1 step custom titles [ Finished ] Dark Templar 09/17/2001 3:43 AM
Re: [6.0x] 1 step custom titles [ Finished ] Lord Dexter 09/17/2001 8:33 AM
Re: [6.0x] 1 step custom titles [ Finished ] cioxx 09/18/2001 8:07 AM
Re: [6.0x] 1 step custom titles [ Finished ] Lord Dexter 09/18/2001 8:53 AM
Re: [6.0x] 1 step custom titles [ Finished ] cioxx 09/18/2001 8:57 PM
Re: [6.0x] 1 step custom titles [ Finished ] sage undertaker 09/18/2001 11:26 PM
Re: [6.0x] 1 step custom titles [ Finished ] Xizer 09/19/2001 3:36 AM
Re: [6.0x] 1 step custom titles [ Finished ] Xizer 09/19/2001 4:24 AM
Re: [6.0x] 1 step custom titles [ Finished ] Xizer 09/19/2001 4:30 AM
Re: [6.0x] 1 step custom titles [ Finished ] Xizer 09/19/2001 5:02 AM
Re: [6.0x] 1 step custom titles [ Finished ] The Fonz 09/20/2001 10:03 PM
Re: [6.0x] 1 step custom titles [ Finished ] Lord Dexter 09/21/2001 1:27 AM
Re: [6.0x] 1 step custom titles [ Finished ] Xizer 09/21/2001 4:25 AM
Re: [6.0x] 1 step custom titles [ Finished ] Xizer 09/21/2001 4:31 AM
Re: [6.0x] 1 step custom titles [ Finished ] Lord Dexter 09/21/2001 1:19 PM
Re: [6.0x] 1 step custom titles [ Finished ] The Fonz 09/21/2001 11:07 PM
Re: [6.0x] 1 step custom titles [ Finished ] Xizer 09/29/2001 9:26 PM
Re: [6.0x] 1 step custom titles [ Finished ] Dufus 10/01/2001 5:58 AM
Re: [6.0x] 1 step custom titles [ Finished ] -Mac- 09/17/2002 10:33 PM
Re: [6.0x] 1 step custom titles [ Finished ] UltimateDBZ 10/19/2002 10:10 PM
Re: [6.0x] 1 step custom titles [ Finished ] UltimateDBZ 10/20/2002 6:30 PM
Re: [6.0x] 1 step custom titles [ Finished ] tgreene 06/18/2003 6:15 PM
Re: [6.0x] 1 step custom titles [ Finished ] tgreene 06/20/2003 4:54 PM

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
hatter
hatter
USA
Posts: 69
Joined: January 2001
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
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 20240506)