php forum
php mysql forum
php mysql smarty
 
Page 2 of 2 < 1 2
Topic Options
#141700 - 09/17/02 03:33 PM Re: [6.0x] 1 step custom titles [ Finished ]
-Mac- Offline
Junior Member

Registered: 08/23/02
Posts: 22
Loc: UK

   Re: [6.0x] 1 step custom titles [ Finished ] to Del.icio.us Add to del.icio.us
  Digg Re: [6.0x] 1 step custom titles [ Finished ] Digg it
Ok... so I'm looking to have custom user titles on my 6.05 board, settable by me the admin. But... how do I do that?

The idea I thought of is, in the control panel, when you look up a username, or select view all users, it has a column for status, which shows the members status. If that became a text box for each member, with their current status in each text box... you could then write your own custom status in that box, and then hit the update all members button to give them a new status. This is how it worked on my old ubb 5.10 board, so I wondered why it hasn't been done as a hack for ubb6.0x??

I would imagine this could be done by someone who wanted to, the question is, how? smile

Top
#141701 - 10/19/02 03:10 PM Re: [6.0x] 1 step custom titles [ Finished ]
UltimateDBZ Offline
Member

Registered: 06/19/01
Posts: 95
Loc: Illinois, USA
EDIT: I made this mod a few mins ago, check the following post for instructions...

Here's a way tonly display the custom text and line break if the user has entered custom text in their profile. It looks a bit tacky to have a blank line after the user's rank and before the Member # if they haven't entered a custom text.

Top
#141702 - 10/20/02 11:30 AM Re: [6.0x] 1 step custom titles [ Finished ]
UltimateDBZ Offline
Member

Registered: 06/19/01
Posts: 95
Loc: Illinois, USA
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:</font><hr />
Code:
sub topic_row {
<hr /></blockquote>Add Below:

<blockquote><font class="small">code:
[qb]
Code:
my $line_break = "
";
[/qb]
Find:

Quote:
code:</font><hr />
Code:
	if ($alt_color eq "$vars_style{AltColumnColor1}") {
		$alt_color = "$vars_style{AltColumnColor2}";
	} else {
		$alt_color = "$vars_style{AltColumnColor1}";
	}
<hr /></blockquote>Add Below:

<blockquote><font class="small">code:
[qb]
Code:
	if ($user_profile[16] eq '') {
		$line_break = '';
	} else {
		$line_break = "
";
	}
[/qb]
Find:

Quote:
code:</font><hr />
Code:
$user_status


$user_profile[16]

<hr /></blockquote>Replace With:

<blockquote><font class="small">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

Top
#141703 - 06/18/03 11:15 AM Re: [6.0x] 1 step custom titles [ Finished ]
tgreene Offline
Member

Registered: 11/28/02
Posts: 187
Loc: Jonesboro, Arkansas
I just installed this on my 6.3.1.2 board, and rather than using the <b>Bold Attributes</b>, I chose to use colored font tags to keep with the continuity of my board.

I have this setup for Admin changes only in the CP, and use it as an identifier for financial contributors.

Top
#141704 - 06/20/03 09:54 AM Re: [6.0x] 1 step custom titles [ Finished ]
tgreene Offline
Member

Registered: 11/28/02
Posts: 187
Loc: Jonesboro, Arkansas
For some bizarre reason, whenever I enter {My Profile}, the custopm tag disappears... It is set to only be added in the CP.

Top
Page 2 of 2 < 1 2


Top Posters Last 30 Days
AllenAyres 20
Gizmo 10
blaaskaak 2
S7ARBVCK 2
Iann128 1
Claus1 1
M4D 1
Who's Online
0 Registered (), 33 Guests and 5 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Latest Posts
Security Patch released for all 7.x versions
by AllenAyres
Yesterday at 08:00 PM
What do you use to edit the files
by AllenAyres
Yesterday at 07:54 PM
Team UBBDev Rides Again!
by AllenAyres
Yesterday at 07:32 PM
Here I am! Rock me like a Hurricane!
by AllenAyres
Yesterday at 07:20 PM
BeyondCompare v3.00
by AllenAyres
Yesterday at 07:16 PM
[7.3.1] add search to showmembers page
by AllenAyres
Yesterday at 07:13 PM
Noob - need help, or a reality check!
by Gizmo
09/04/08 03:21 AM
New Mods
[7.3.1] add search to showmembers page
by blaaskaak
Yesterday at 04:50 AM
Installing FlashChat with 7.3
by Paug
08/23/08 12:14 AM
[7.3.x] ubb.links
by AllenAyres
06/20/08 11:50 PM
[7.2.1] - Naked shoutbox
by sirdude
08/17/07 10:36 PM
[7.x] Generic Page Outside of forum directory
by
01/14/07 10:58 PM
Newest Members
veedubb8, twentyseven, Claus1, welcomeback1, Paug
13327 Registered Users

 

 

 
fusionbb message board php hacks