Get started with PHP-Fusion

Start a New Thread

Users Participated

  • Craig
    Post made: 1
  • MiChAeLoKGB
    Post made: 2

  1. PHP-Fusion Support Forums
  2. PHP-Fusion 7 Support
  3. Content Administration

News parseubb

This forum is for questions regarding the addition of content to your site

2 Replies 1,165 Views Last Updated on 2 years ago

MiChAeLoKGB


Junior Member

#1

Posted 2 years ago

Hi,

im trying to use Multilanguage BB code on news. I edited the news.php and now it works on short news text, but I don't know how to edit it to work on whole news (on thext when you click read more).

This is the part of code that works (I added 2nd row)
[syntaxhighlighter brush=plain,first-line=1,highlight=0,collapse=false,html-script=false]$news_news = preg_replace("/<!?--\s*pagebreak\s*-->/i", "", ($data['news_breaks'] == "y" ? nl2br(stripslashes($data['news_news'])) : stripslashes($data['news_news'])));
$news_news = "".parseubb($data['news_news'], "english")."\n";[/syntaxhighlighter]

This is the part with extended (whole) news text, and I don't know how to edit it to get it work.

[syntaxhighlighter brush=plain,first-line=1,highlight=0,collapse=false,html-script=false]$news_news = preg_split("/<!?--\s*pagebreak\s*-->/i", $data['news_breaks'] == "y" ? nl2br(stripslashes($data['news_extended'] ? $data['news_extended'] : $data['news_news'])) : stripslashes($data['news_extended'] ? $data['news_extended'] : $data['news_news']));
//$news_news = "".parseubb($data['news_extended'], "english")."\n";
$pagecount = count($news_news);[/syntaxhighlighter]
Edited by MiChAeLoKGB on 07-02-2013 08:50
Sorry for my English.
Im from Slovakia ;)

Posts: 17

Joined: 10/04/2010

Craig


Fusioneer

#2

Posts: 4528

Joined: 27/09/2005

MiChAeLoKGB


Junior Member

#3

Posted 2 years ago

Yes, but this will delete the TinyMCE and it MUST be on. So this doesn't helped me.

I tried to use the code from this MOD, but also no sucess.

As I told, I want to use ONLY ONE BBcode on news and articles.

Merged on Feb 10 2013 at 18:52:13:
Nobody else?
Edited by MiChAeLoKGB on 10-02-2013 19:52
Sorry for my English.
Im from Slovakia ;)

Posts: 17

Joined: 10/04/2010

Jump to Forum:
13 users are online
0 member and 13 guests