Login     Sign up
STATUS MESSAGE
jacky loon (@jack41)
Join date: Nov 9th 2010
Community posts: 87
View Profile
Send Message

I want something like this with the status update. for example if i write 4 separate lines on my status, it should appear like this.

line 1
line 2
line 3
line 4

instead of
line 1, line 2, line 3, line 4.

Anyone help?
thanks

161 months ago
Jcow Master (@falcone)
Join date: Sep 2nd 2010
Community posts: 917
View Profile
Send Message

is explained already a few times. you need to use the function nl2br

161 months ago
jacky loon (@jack41)
Join date: Nov 9th 2010
Community posts: 87
View Profile
Send Message

[quote=falcone]is explained already a few times. you need to use the function nl2br [/quote]
will u plz explain a little more that where to use this function and what is the function and where to put this function

161 months ago
Jcow Master (@falcone)
Join date: Sep 2nd 2010
Community posts: 917
View Profile
Send Message

in common.inc.php, function stream_display

in the return

change $row['message'] to nl2br($row['message'])

161 months ago
dustin parulis (@dustinparulis)
Join date: Mar 5th 2011
Community posts: 14
View Profile
Send Message

I tried this and my status is still gong on one line and cutting off. I am using the 5.0 version.

161 months ago
jacky loon (@jack41)
Join date: Nov 9th 2010
Community posts: 87
View Profile
Send Message

[quote=falcone]in common.inc.php, function stream_display

in the return

change $row['message'] to nl2br($row['message') [/quote]
Not finding this in free version 4.2.1. will you plz more clarify with the line number?
Thanks

161 months ago
Jcow Master (@falcone)
Join date: Sep 2nd 2010
Community posts: 917
View Profile
Send Message

in 4.2.1 free version it is in includes\libs\ss.inc.php

161 months ago
AL (@switch48)
Join date: Sep 1st 2010
Community posts: 450
View Profile
Send Message

Hey mate

so

this
[code]
'.decode_bb($row['message']).
[/code]

to this
[code]
'.decode_bb nl2br($row['message')).
[/code]

just gives me a blank screen :(

161 months ago
Jcow Master (@falcone)
Join date: Sep 2nd 2010
Community posts: 917
View Profile
Send Message

[quote=switch48]Hey mate

so

this
[code]
'.decode_bb($row['message']).
[/code]

to this
[code]
'.decode_bb nl2br($row['message')).
[/code]

just gives me a blank screen :( [/quote]

[code]
'.decode_bbb.

[/code]

161 months ago
AL (@switch48)
Join date: Sep 1st 2010
Community posts: 450
View Profile
Send Message

:) cheers mate

160 months ago
dustin parulis (@dustinparulis)
Join date: Mar 5th 2011
Community posts: 14
View Profile
Send Message

Mine is doing the same thing after putting the code in there...
Code:
<td class="user_post_left" width="'.$avatar_box_size.'" valign="top">'.avatar($row,$avatar_size).'</td>
<td class="user_post_right" valign="top">
<strong>'.url($mu.'u/'.$row['username'], $row['fullname']).'</strong>
'.decode_bb(nl2br($row['message'])).

Result:Everything below is on 2 lines, up until utm on one rest on another.

[url]http://zagat.com/buzz/health-department-bans-soda-fried-food-at-employee-gatherings#utm_source=twitter&utm_medium_refferal[/url] FOOD POLICE |

160 months ago
Tim (@timothy)
Join date: Mar 17th 2011
Community posts: 31
View Profile
Send Message

I would like a situation where during signup the new members are able to tag their avater or image from a drop down list, just like the location list. The tags on the image will appear below the image where ever the image appears, even on the home scrolling page. Where do I find the file and how do I adjust the code. Tks

159 months ago
1 2 Next