Not a member yet?
Click here to register.

Forgotten your password?
Request a new one here.
Follow us on Facebook
Follow us on Google+
View Thread
Who is here? 1 guest(s)
 Print Thread
News parseubb

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 07:50
Sorry for my English.
Im from Slovakia Wink
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 18:52
Sorry for my English.
Im from Slovakia Wink
Jump to Forum:
Similar Threads
Thread Forum Replies Last Post
Scrolling News Panel Modifications and Requests 7 24-04-2014 21:19
AriooBarzan JQuery News Slider (with News Image an Official releases [Panels] 19 24-04-2014 06:02
Last change in news Modifications and Requests 3 22-04-2014 10:51
linked news titles Themes Support 3 19-04-2014 18:11
News modification Modifications and Requests 3 14-04-2014 18:58
Official Home of PHP-Fusion uses cookies. Some may already have been set. Read more about our Cookies here.
Please click the button I Consent Cookies to hide this bar and accept our cookies. If you continue to use the site with no action taken, we'll assume that you consent our cookies anyway.
Cookiebar Panel fromVenue