So this very useful article, learn how to add BBCode to articles. This is a very good and useful thing.
So open the file in the folder articles.php your FTP and find the following code:
Coderequire_once INCLUDES."comments_include.php";
and after
Coderequire_once INCLUDES."bbcode_include.php";
Find line 39
Code$article = stripslashes($data['article_article']);
Change:
Code$article = parsesmileys(stripslashes(parseubb($data['article_article'])));
This article will show BBCode.
And now look at the management of the BBCode article:
Open the file administration / articles.php and find:
Coderequire_once INCLUDES."html_buttons_include.php";
Replace the following:
Code//require_once INCLUDES."html_buttons_include.php";
require_once INCLUDES."bbcode_include.php";
Find line 196
CodeNOTE there are 2 Codes
echo display_html("inputform", "body", true, true, true, IMAGES_A);
Replace the following:
Code//echo display_html("inputform", "body", true, true, true, IMAGES_A);
echo display_bbcodes("99%", "body");
Find line 206
Codeecho display_html("inputform", "body2", true, true, true, IMAGES_A);
Replace the following:
Code//echo display_html("inputform", "body2", true, true, true, IMAGES_A);
echo display_bbcodes("99%", "body2");
Now, we have articles BBCode
Author: @Paslaptinga
http://all-fusion.lt |