php forum
php mysql forum
php mysql smarty
 
Page 1 of 2 1 2 >
Topic Options
#141680 - 09/15/01 06:34 PM [6.0x] 1 step custom titles [ Finished ]
Xizer Offline
Junior Member

Registered: 07/17/01
Posts: 12

   [6.0x] 1 step custom titles [ Finished ] to Del.icio.us Add to del.icio.us
  Digg [6.0x] 1 step custom titles [ Finished ] Digg it
This has probably been done before, but I just figured it out. Go to the cp, and in registration settings, set the first custom field to say Custom Title. Then, in the template Public_Topic_Page.pl find:

$user_status



Right below that, add:

$user_profile[16]



That's it.

Note: if you used custom field 2, you must change the 16 to 17. If you used 3, you must use 18, and so on.

Top
#141681 - 09/15/01 08:01 PM Re: [6.0x] 1 step custom titles [ Finished ]
Lord Dexter Offline
Member

Registered: 05/25/01
Posts: 6503
Loc: Melbourne, Australia
I don't think that has been done before, but good work. smile

Top
#141682 - 09/16/01 08:43 PM Re: [6.0x] 1 step custom titles [ Finished ]
Dark Templar Offline
Member

Registered: 09/30/00
Posts: 982
Loc: California | Retired UBB Hacke...
it has been done before; it's a part of my stars/custom status hack smile
_________________________
-DT

Top
#141683 - 09/17/01 01:33 AM Re: [6.0x] 1 step custom titles [ Finished ]
Lord Dexter Offline
Member

Registered: 05/25/01
Posts: 6503
Loc: Melbourne, Australia
I use Jimbo's Custom rank hack for my UBB, because I don't want everyone having Custom titles but the good thing about this mod (Dark Templers) is that it doesn't get rid of the normal status you might set.

Top
#141684 - 09/18/01 01:07 AM Re: [6.0x] 1 step custom titles [ Finished ]
cioxx Offline
Junior Member

Registered: 06/06/01
Posts: 2
kind sir, could you tell me how to make it so only administrators have access to changing custom titles?

thanks in advance

Top
#141685 - 09/18/01 01:53 AM Re: [6.0x] 1 step custom titles [ Finished ]
Lord Dexter Offline
Member

Registered: 05/25/01
Posts: 6503
Loc: Melbourne, Australia
If you only want Admins to set Custom titles/Ranks, use Jimbo's Custom status/rank hack.

Top
#141686 - 09/18/01 01:57 PM Re: [6.0x] 1 step custom titles [ Finished ]
cioxx Offline
Junior Member

Registered: 06/06/01
Posts: 2
I checked it out. But not exactly what I need. It has too many extra options and such. This hack is simple, and i'm sure there should be some line there to disable the field for regular users. Because if it's disabled from "My Profile" they wont have any other place to modify it.

something like "Admin (true) Everybody Else (false)"

Top
#141687 - 09/18/01 04:26 PM Re: [6.0x] 1 step custom titles [ Finished ]
sage undertaker Offline
Member

Registered: 07/05/01
Posts: 109
shuold be able to turn off that custom register setting to off, and edit it through there profiles in the cp. laugh . im not to sure though...

Top
#141688 - 09/18/01 08:36 PM Re: [6.0x] 1 step custom titles [ Finished ]
Xizer Offline
Junior Member

Registered: 07/17/01
Posts: 12
I don't think tha will work. I'm gonna go figure out how to do it. Should only take a few minutes.

Top
#141689 - 09/18/01 09:24 PM Re: [6.0x] 1 step custom titles [ Finished ]
Xizer Offline
Junior Member

Registered: 07/17/01
Posts: 12
Ok, I have come up with several ideas of how to make them only settable in the cp profile, but I have not tried them out yet. I think the best way to do it is to add it add a new field for it in the profile, but only put the input for it in the cp profile page and not the page where the user edits their profile section. Once I figure out how to do that I'll test it and then post it here.

Top
#141690 - 09/18/01 09:30 PM Re: [6.0x] 1 step custom titles [ Finished ]
Xizer Offline
Junior Member

Registered: 07/17/01
Posts: 12
Until I figure something out, you can try just keeping the field off until you want to change them, and then turn it back off againg when you're done.

[ 09-18-2001: Message edited by: Xizer ]

Top
#141691 - 09/18/01 10:02 PM Re: [6.0x] 1 step custom titles [ Finished ]
Xizer Offline
Junior Member

Registered: 07/17/01
Posts: 12
Also, you might want to try <b>$user_profile[16]</b> instead of $user_profile[16], I think it looks nicer when it's bold.

Top
#141692 - 09/20/01 03:03 PM Re: [6.0x] 1 step custom titles [ Finished ]
The Fonz Offline
Junior Member

Registered: 06/28/01
Posts: 26
Would you be able to enable UBB codes for this hack?

Top
#141693 - 09/20/01 06:27 PM Re: [6.0x] 1 step custom titles [ Finished ]
Lord Dexter Offline
Member

Registered: 05/25/01
Posts: 6503
Loc: Melbourne, Australia
Quote:
quote:


Good idea, What you need to do is to add the $user_profile[16] in the CP profiles, so It will appear in the CP, Then what you need to do is select "Do not even display this field as an option." when you enter the Custom title in the Custom fields in your Registration settings. It might not work but thats the way I see it.

Top
#141694 - 09/20/01 09:25 PM Re: [6.0x] 1 step custom titles [ Finished ]
Xizer Offline
Junior Member

Registered: 07/17/01
Posts: 12
Ok this seems to be a lot harder then I expected. Lord Dextor, that would only display the custom title, not a text area to enter them. And if add a text area, the cp wouldn't know what to do with it. I have to manually add a new field into it, seperate from the custom fields in the cp, and then only put the text area for it in the cp. Does anyone know where I would add the new field?

Top
#141695 - 09/20/01 09:31 PM Re: [6.0x] 1 step custom titles [ Finished ]
Xizer Offline
Junior Member

Registered: 07/17/01
Posts: 12
And for The Fonz, you can use html. For example, you could put the link code there and advertise your website, put the img code into the box to use an image, or just bold, italicise, or underline text.

Top
#141696 - 09/21/01 06:19 AM Re: [6.0x] 1 step custom titles [ Finished ]
Lord Dexter Offline
Member

Registered: 05/25/01
Posts: 6503
Loc: Melbourne, Australia
Quote:
quote:


I'll have to look in the cp_profiles file, There should be a trend of $Usder profile code fields after $user profile[15] add the new code field.

Top
#141697 - 09/21/01 04:07 PM Re: [6.0x] 1 step custom titles [ Finished ]
The Fonz Offline
Junior Member

Registered: 06/28/01
Posts: 26
Quote:
quote:


Great, I think I'm going to install this hack. smile

Top
#141698 - 09/29/01 02:26 PM Re: [6.0x] 1 step custom titles [ Finished ]
Xizer Offline
Junior Member

Registered: 07/17/01
Posts: 12
Quote:
quote:


Thanks I'll try it

Top
#141699 - 09/30/01 10:58 PM Re: [6.0x] 1 step custom titles [ Finished ]
Dufus Offline
Junior Member

Registered: 08/22/00
Posts: 19
In cp_edit_profile.pl:
Find:
&FormStart("$vars_config{CGIURL}/cp.cgi", "$Hiddens");

Insert after it:
$vars_registration{custom1_field_use}="OPT";

That makes it show the field only in the control panel. You shouldn't need to do anything else. For other fields, change the '1' to 2, 3, or 4.

Top
#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
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 1 of 2 1 2 >


Who's Online
1 Registered (Gizmo), 33 Guests and 6 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Latest Posts
Blogs, love em or hate em?
by AllenAyres
10/07/08 02:05 PM
What do you use to edit the files
by Ian_W
10/05/08 03:33 PM
BeyondCompare v3.00
by Ian_W
10/05/08 03:32 PM
Glossy Black Theme with Image Reflection
by Gizmo
10/05/08 02:17 PM
ShareThis
by Gizmo
09/28/08 05:06 AM
[7.3] Viewing MySQL logfiles made easier
by AllenAyres
09/27/08 09:57 PM
Looking for a simple upload script
by Murphdog
09/26/08 08:45 PM
New Mods
[7.3] Viewing MySQL logfiles made easier
by blaaskaak
09/24/08 05:39 PM
[7.3.1] add search to showmembers page
by blaaskaak
09/07/08 04:50 AM
Multiple Identity Detector
by
12/30/06 06:39 PM
Newest Members
pisa666, ghengis317, NitroX, Dogan, EliYah-
13345 Registered Users
Top Posters Last 30 Days
AllenAyres 11
blaaskaak 7
FREAK1 4
Ian_W 4
tackaberry 4
Gizmo 4
Mike L_dup1 4