Login
Username

Password



Not a member yet?
Click here to register.

Forgotten your password?
Request a new one here.
Navigation
Latest Addons
AD Gallery 6
SyntaxHighlighte... 41
Newsletters v4.03 102
Facebook Like Box 114
Newsletters v4.02 55
Metro 143
Facebook Connect 161
Shoutbox Panel 120
Redactor for PHP... 102
MI Floating Side... 105
Facebook Login/R... 146
Avatar Studio v2.03 174
Relationship Sta... 92
Sexual Orientati... 111
Fisherman 132
Popular Addons
iTheme2 5789
Arise 5777
User Control v1.23 4608
Event Calendar 4035
Photowidget panel 3878
Radio-Theme red2... 3342
Highslide Gallery 3306
CSS/JavaScript D... 3217
Facebook Connect... 2972
Dynamic Menu 2885
Slideshow Lightb... 2712
L-AMANT 2654
Enigma 2627
2Dark 2601
Black 2565
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)
$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";


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

$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);

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.fusiontube.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
How to change displaying my home page from news.php to index.php? General Discussion 19 14-05-2013 09:24
Number of news on the main page 7.02.06 System Administration 3 28-04-2013 02:29
Cannot post news System Administration 4 14-04-2013 17:11
Single News Panel Panels and Infusions 2 14-04-2013 16:22
stylo news panel header color Themes Support 2 14-04-2013 14:04
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 byVenue