Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Jun 2001
Posts: 49
Member
Member
Offline
Joined: Jun 2001
Posts: 49
Is there a way to pull the info from a custom registration field and have it displayed somewhere under the members name?

Sponsored Links
Joined: Nov 2001
Posts: 1,080
Member
Member
Offline
Joined: Nov 2001
Posts: 1,080
WASSUP!

$user_profile[16], $user_profile[17], $user_profile[18] and $user_profile[19] are the 4 custom profile fields, in which #16 = custom profile field 1 and so forth.

First, make sure that you select option field in the registration settings in your control panel of the custom field you wish to use. Then enter your info you want the user to see in the text area. All you have to do is match the $user_profile # with the custom field # and stick it where you want. Example: If you want to use Custom Field #1 and have it displayed under the user's name on topic pages then it could look like this:

Find:
$user_public_name

Add Under:
$user_profile[16]

This will work with plain text but if you want something like custom font colors or images then you need to do extra coding. I hope this helped!

THANKS!
PrimeTime

Joined: Jun 2001
Posts: 49
Member
Member
Offline
Joined: Jun 2001
Posts: 49
just what I needed!

now what .cgi file should this be done in?

Joined: Nov 2001
Posts: 1,080
Member
Member
Offline
Joined: Nov 2001
Posts: 1,080
WASSUP JONNY!

No .cgi file needed to be edited unless you are creating new custom profile fields (already used up 1-4)...Only .pl files are to be edited.

From my understanding, you want your customized info displayed under the usernames along with their posts. If this is the case then open up the public_topic_page.pl file in your Templates directory and scroll somewhere in the middle you'll find $public_user_name. Just take whichever $user_profile # you are using and paste under the username. GL!

THANKS!
PrimeTime

Joined: Jun 2001
Posts: 49
Member
Member
Offline
Joined: Jun 2001
Posts: 49
SWEET!

works like a charm!

thanks man!

be sure to check out my site smile

Sponsored Links
Joined: Nov 2001
Posts: 1,080
Member
Member
Offline
Joined: Nov 2001
Posts: 1,080
WASSUP!

Man...All I can say is you have a sweet site. WOW!

THANKS!
PrimeTime


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
Posts: 70
Joined: January 2007
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 20240430)