Working on profile field

This forum is now closed as part of retiring phpBB2.
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

This forum is now closed due to phpBB2.0 being retired.
Spaniel
Registered User
Posts: 159
Joined: Sun Dec 30, 2007 3:51 am

Re: Working on profile field

Post by Spaniel » Tue Jan 08, 2008 7:14 am

and in changing user_interests so that line breaks remain, what do I change $code to in

Code: Select all

str_replace( "\n", '<br />', $code);


Any help with this would be greatly appreciated as I just can't get it to work.

User avatar
Brf
Support Team Member
Support Team Member
Posts: 51867
Joined: Tue May 10, 2005 7:47 pm
Location: {postrow.POSTER_FROM}
Contact:

Re: Working on profile field

Post by Brf » Tue Jan 08, 2008 12:27 pm

As I said.... look for the spot in usercp_viewprofile that that field is being displayed:

Code: Select all

'INTERESTS' => ( $profiledata['user_interests'] ) ? $profiledata['user_interests'] : '&nbsp;',
therefore, your code would be

Code: Select all

'INTERESTS' => ( $profiledata['user_interests'] ) ? str_replace( "\n", '<br />', $profiledata['user_interests']) : '&nbsp;',

Post Reply

Return to “[2.0.x] MOD Writers Discussion”