473,499 Members | 1,931 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Enable HTML in BBcode?

Ajm113
161 New Member
Hi, I created a forum and I made a secrete BBcode tag using this tutorial:

<Link removed>

How can I enable HTML using that code if I am using it on a script that gets rid of the html with out enabling it which can allow any user that does not know the bbocde mess up the page?

Thanks!
Sep 9 '07 #1
3 2008
pbmods
5,821 Recognized Expert Expert
Heya, AJM.

BBCode is processed in real time. That is, the BBCode gets saved with the post text (to allow Users to edit the post, for example). When you fetch the post to display it, that's when you interpret the BBCode.

You can run strip_tags() on the posts when you are saving them, as that will have no effect on the BBCode. That way, when you are displaying the post text, you can process the BBCode, and you can be certain that the only HTML in the end product is the processed BBCode.
Sep 9 '07 #2
Atli
5,058 Recognized Expert Expert
Hi.

Posting links to a site that is in competition with TSDN, that contains advertisement or any other inappropriate content is a violation of the Postin Guidelines, specifically the part about Things that are generally unacceptable.

Please refrain from doing so in the future!

Moderator
Sep 9 '07 #3
Ajm113
161 New Member
Thanks! The code and what to do worked fine!
Sep 9 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

5
10450
by: Ondra Zizka | last post by:
Please does someone know whether a tool that I look for exists and where? I need some PHP script that would transform phpBB codes to valid XHTML. phpBB codes are the metatags used to format posts...
1
1546
by: Rob Meade | last post by:
Hi all, Back on the bbcode parsing (again)... Having a few problems now with nested tags - it would seem that I had written my test string in a way that worked perfectly with the parser -...
1
1641
by: 如履薄冰 | last post by:
BBcode reference: http://www.phpbb.com/phpBB/faq.php?mode=bbcode I want write a BBcode module in Python, but I'v not idea for this. Who can tell me about this arithmetic? ( I'm so sorry for my...
6
61473
by: Thaqalainnaqvi | last post by:
IPB WARNING mysql_query() : Unable to save result set (Line: 457 of /ips_kernel/class_db_mysql.php) There appears to be an error with the database. You can try to refresh the page by clicking...
0
1021
by: Will McGugan | last post by:
Hi, I have written a BBCode parsing module that may be of use to some people. It turns BBCode in to XHTML snippets. See the following page if you are interested... ...
10
2231
TheServant
by: TheServant | last post by:
Another thread sparked an interest: With using BBCode, do you have to install that package or is it the browser that recognises it? I would like to make my own for my website to let certain users...
8
1826
by: raaman rai | last post by:
i am adding dynamic contents in my website. So i also want to have a news or announcements to be dynamically displayed. But for this i need to use BBCode. But in reference to this, i dont know how...
2
3711
by: bgold12 | last post by:
I already posted this message, but it didn't work or something. So if this is a duplicate, ignore it. I just can't figure out how to install this extension. From what I understand, there needs...
2
1666
by: HC | last post by:
Hello! 1) How to read html code from www.test.com while having your own site on www.homesite.com . I have read before, that many web pages blocks access to read such html code from outer sites,...
0
7134
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7180
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
6901
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7392
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5479
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4920
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4605
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3101
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
667
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.