February 08 2012 06:02:51
Languages
Navigation
Friends & Affiliates
Roadmap
[N] Error log like in P...
[N] Submit photo - Subc...
[N] Warnings - who can ...
[N] [edit profile]Save ...
[N] Moving panels with ...
[N] Forum thread deform...
[N] Thumbnails in downl...
[N] [Locale German] New...
[N] Warnings only for a...
[N] Different avatar sizes
Users Online
· Guests Online: 6

· Members Online: 0

· Total Members: 464
· Newest Member: Erikutis
Last Seen Users
· ritmi 1 day
· K-braun 2 days
· dalem 4 days
· Erikutis 4 days
· videry 5 days
· inflames 5 days
· SilverAngel 5 days
· jebajseti 6 days
· outchorn 6 days
· uygarozan 1 week

Login
 Username  Password  
View Thread: How to add BBCode Article
Who is here? 1 Guest
 Print Thread
How to add BBCode Article
paslaptinga
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:

Download source  Code
require_once INCLUDES."comments_include.php";




and after

Download source  Code
require_once INCLUDES."bbcode_include.php";




Find line 39

Download source  Code
$article = stripslashes($data['article_article']);




Change:

Download source  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:

Download source  Code
require_once INCLUDES."html_buttons_include.php";




Replace the following:

Download source  Code
//require_once INCLUDES."html_buttons_include.php";
require_once INCLUDES."bbcode_include.php";




Find line 196

Download source  Code
NOTE there are 2 Codes

echo display_html("inputform", "body", true, true, true, IMAGES_A);




Replace the following:

Download source  Code
//echo display_html("inputform", "body", true, true, true, IMAGES_A);
echo display_bbcodes("99%", "body");




Find line 206

Download source  Code
echo display_html("inputform", "body2", true, true, true, IMAGES_A);




Replace the following:

Download source  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
  x 1  x 1
 
http://commasy.lt
Jump to Forum:
Similar Threads
Thread Forum Replies Last Post
bbcode permissions infusion General Questions 2 12-08-2011 15:06
Article back forward pif Modifikacijos 3 24-01-2011 19:32
article Infusions 1 06-01-2011 20:53
BBCODE Video Modifikationen 5 28-11-2010 10:42
spoiler bbcode & print page Suspected Bugs and Errors 3 09-11-2010 19:33
Share this thread
URL:
BB-Code:
HTML:
AddThis:
Share |
Render time: 0.09 seconds - 88 Queries 837,215 unique visits