• Welcome to PHPVIBE Forums. Please log in.

[ Video Sharing CMS v4 ] Video description and text

Started by x5000x,

Previous topic - Next topic

0 Members and 3 Guests are viewing this topic.

x5000xTopic starter

Hello,

Video description text is not aligned with the info icon. Please post correct code to fix this. See attached image.

Thanks!
  •  

PHPVibe A.

It can't be done if you want it auto formated, as it wrapps it into a paragraph tag. If you remove that, it will become one line as before, no more new spaces.

But you could experiment with :

function makeLn($text) {
return '<p>'.str_replace('. ','.</p><p>', $text).'</p>';
}


end of lib/functions.html.php

x5000xTopic starter

Quote from: Alexander on
It can't be done if you want it auto formated, as it wrapps it into a paragraph tag. If you remove that, it will become one line as before, no more new spaces.

But you could experiment with :

function makeLn($text) {
return '<p>'.str_replace('. ','.</p><p>', $text).'</p>';
}


end of lib/functions.html.php

Thanks for quick response all i did is removed '<p>' and '</p>' worked like a charm. Final code was:
function makeLn($text) {
return '<p>'.str_replace('. ','.</p><p>', $text).'</p>';
}

  •  

PHPVibe A.

I guess you have an extra </p> in the code :)

x5000xTopic starter

  •  

x5000xTopic starter

Alex,

Looking at the http://www.videoinedit.com/video/4115/inna-feat-yandel-in-your-eyes-official-music-video-/
the info picture in the video that shows when video was uploaded, is that something new in 3.5? the reason i am asking in now showing noting in 3.4 just empty space?
  •  

PHPVibe A.


Similar topics (7)