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
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
Page 1 of 2 1 2 >


Who's Online
0 registered (), 27 Guests and 12 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Latest Posts
Forum 'Trader Ratings'.
by blaaskaak
Today at 08:27 AM
Problems reading a lot of old posts here
by Ruben Rocha
11/18/08 04:33 PM
PhotoPost BB Code Popup
by Iann128
11/15/08 01:24 PM
Customization needed
by Gizmo
11/12/08 12:28 PM
Team UBBDev Rides Again!
by AllenAyres
11/11/08 02:16 PM
Active Topics.
by AllenAyres
11/11/08 02:13 PM
Looking for a simple upload script
by AllenAyres
11/11/08 02:12 PM
New Mods
Forum 'Trader Ratings'.
by McLemore
Yesterday at 02:14 PM
[7.4] Keep log of custom title changes
by blaaskaak
10/27/08 07:51 AM
User Authentication Class
by
01/19/07 02:59 PM
Multiple Identity Detector
by
12/30/06 06:39 PM
PhotoPost BB Code Popup
by
11/06/06 05:43 PM
Newest Members
Begbie, cenk, MATTO, DougMMcts, tim Anderson
13361 Registered Users
Top Posters
AllenAyres 25448
JoshPet 11330
Rick 8372
LK 7396
Lord Dexter 6503
Greg Hard 5533
Charles Capps 5438

 

 

 
fusionbb message board php hacks