Login
Username

Password



Not a member yet?
Click here to register.

Forgotten your password?
Request a new one here.
Navigation
Follow us on Facebook
Follow us on Google+
View Thread
Who is here? 1 guest(s)
 Print Thread
News parseubb
MiChAeLoKGB
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 07:50
Sorry for my English.
Im from Slovakia Wink
 
http://www.erahier.sk
Craig
http://www.phpfus...load_id=61
 
http://www.phpfusionmods.co.uk/
MiChAeLoKGB
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
 
http://www.erahier.sk
Jump to Forum:
Similar Threads
Thread Forum Replies Last Post
linked news titles Themes Support 3 19-04-2014 18:11
News modification Modifications and Requests 3 14-04-2014 18:58
Disable panels on news readmore Content Administration 2 14-04-2014 09:54
most read news Site & Forum Issues 2 08-04-2014 18:27
Last change in news Modifications and Requests 3 07-04-2014 14:47
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