473,566 Members | 3,307 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 2018
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
10457
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 to phpBB-powered forums, like the one at http://www.winlyrics.com . I started writing my own parser, but still I would rather use some more tested...
1
1550
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 - until I changed the order of the parser - then it stopped working... I'm assuming my problem is down to things like this:
1
1652
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 poor englist)
6
61494
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 here. Error Returned mySQL query error: SELECT MIN(pid) as pid FROM ib_posts WHERE queued=0 AND topic_id=85734 AND post_date 1160298086 LIMIT 0,1
0
1026
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... http://www.willmcgugan.com/2007/03/10/bbcode-python-module/ Will McGugan
10
2237
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 edit the code (without needing to know html) and so I was just wondering where I should look. Most of the links refer to phpBB forums, but this will be...
8
1832
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 the BBCode parser should be configured. Is it to be configured by ourselves or will it be done by the hosting ISP. And will the tag be supported by...
2
3732
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 to be a .dll file located in the extensions folder in the php root directory, and there needs to be a line in the php.ini file that is uncommented...
2
1673
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, if so how can I do it having 100% of effectivity? 2) How can I analyse (after reading and saving into $www_test_com_html_code variable)? I would...
0
7673
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7893
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8109
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
7953
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6263
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
3643
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3626
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2085
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
0
926
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.