Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Not a member yet? Click here to register.
Forgot Password?

Remove <br /> from photo description?

Asked Modified Viewed 1,188 times
S
snowneo
S
  • Newbie, joined since
  • Contributed 7 posts on the community forums.
  • Started 3 threads in the forums
  • Started this discussions
asked
Newbie

How can I remove the <br /> that is place on the description for new lines?
0 replies

2 posts

S
snowneo
S
  • Newbie, joined since
  • Contributed 7 posts on the community forums.
  • Started 3 threads in the forums
  • Started this discussions
answered
Newbie

Problem fixed.

In photogallery.php

I changed the following
 if ($data['photo_description']) {
echo nl2br(parseubb($data['photo_description'])) . "\n";
}


into

 if ($data['photo_description']) {
echo ($data['photo_description']) . "\n";
}
0 replies
P
PolarFox
P
  • Veteran Member, joined since
  • Contributed 1,633 posts on the community forums.
  • Started 29 threads in the forums
answered
Veteran Member

nice :D
0 replies

Labels

None yet

Statistics

  • Views 0 views
  • Posts 2 posts
  • Votes 0 votes
  • Topic users 2 members

2 participants

P
P
  • Veteran Member, joined since
  • Contributed 1,633 posts on the community forums.
  • Started 29 threads in the forums
S
S
  • Newbie, joined since
  • Contributed 7 posts on the community forums.
  • Started 3 threads in the forums
  • Started this discussions

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet