Working on profile field

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

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

Re: Working on profile field

Post by Spaniel »

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
Support Team Member
Support Team Member
Posts: 52018
Joined: Tue May 10, 2005 7:47 pm
Location: {postrow.POSTER_FROM}

Re: Working on profile field

Post by Brf »

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”