1
nmshah
how to disable the xoops linebreak option in mytube module
  • 2009/1/9 12:42

  • nmshah

  • Just can't stay away

  • Posts: 556

  • Since: 2007/7/2 8


I am using the mytube module with fckeditor as the default editor for the complete site. Every time i add a description in the mytube module for any video clip i line break is automatically added. Since i am using fckeditor i'll like to disable the auto linebreak option. Can some one tell me how to do this?

2
McDonald
Re: how to disable the xoops linebreak option in mytube module
  • 2009/1/9 12:51

  • McDonald

  • Home away from home

  • Posts: 1072

  • Since: 2005/8/15


Open the file include/videoloadinfo.php and find this line:
$description = $xtubemyts -> displayTarea( $video_arr['description'], 1, 1, 1, 1, 1 );
And replace it with this one:
$description = $xtubemyts -> displayTarea( $video_arr['description'], 1, 1, 1, 1, 0 );

Explanation:
displayTarea( $text, $html = 0, $smiley = 1, $xcode = 1, $image = 1, $br = 1)
So when you apply the 2nd line from above you have:
- HTML enabled,
- Smiley enabled,
- XOOPS code enabled,
- images enabled and
- linebreaks disabled.

3
McDonald
Re: how to disable the xoops linebreak option in mytube module
  • 2009/1/9 12:58

  • McDonald

  • Home away from home

  • Posts: 1072

  • Since: 2005/8/15


Sorry, forgot something...

Also open the file singlevideo.php and find this line:
$video['description2'] = $xtubemyts -> displayTarea( $video_arr['description'], 1, 1, 1, 1, 1 );

And replace it with this line:
$video['description2'] = $xtubemyts -> displayTarea( $video_arr['description'], 1, 1, 1, 1, 0 );

4
nmshah
Re: how to disable the xoops linebreak option in mytube module
  • 2009/1/9 18:55

  • nmshah

  • Just can't stay away

  • Posts: 556

  • Since: 2007/7/2 8


Thanks a lot

Login

Donat-O-Meter

Stats
Goal: $15.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $15.00
Make donations with PayPal!