473,327 Members | 1,896 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,327 software developers and data experts.

How to included HTML formats and images in php forums?

228 100+
Hi guys,
I want to build a forum for my php project and am done with almost all of it. but i wanted to include features such as bolding, italic and including images from the internet. I have seen on many forums that they use tags like this text to be bolded, [IMG]IMAGE URL [/IMG]....How can i process such tags? i am new to php.....
Feb 6 '08 #1
3 921
nomad
664 Expert 512MB
Hi guys,
I want to build a forum for my php project and am done with almost all of it. but i wanted to include features such as bolding, italic and including images from the internet. I have seen on many forums that they use tags like this text to be bolded, [IMG]IMAGE URL [/IMG]....How can i process such tags? i am new to php.....
You can use the same naming tags in PHP is you do in HTML .
example:
<?php
$days = Array("Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat");
echo "<TABLE BORDER=1 CELLPADDING=5><tr>\n";
foreach ($days as $day) {
echo "<TD BGCOLOR=\"#CCCCCC\" ALIGN=CENTER><strong>$day</strong></td>\n";

nomad
Feb 6 '08 #2
Markus
6,050 Expert 4TB
Hi guys,
I want to build a forum for my php project and am done with almost all of it. but i wanted to include features such as bolding, italic and including images from the internet. I have seen on many forums that they use tags like this text to be bolded, [IMG]IMAGE URL [/IMG]....How can i process such tags? i am new to php.....
The code they use is known as BBCode.

http://www.bbcode.org/implementations.php

have a look :)
Feb 6 '08 #3
samvb
228 100+
The code they use is known as BBCode.

http://www.bbcode.org/implementations.php

have a look :)
thanks for the link and the big tip buddy.
Feb 7 '08 #4

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

Similar topics

0
by: Nunya D. Bidness | last post by:
If anyone is interested in testing these components goto http://www.vibrantinnovations.com/vibrantlayouttools.asp The Vibrant Layout Tools ActiveX component is a suite of tools that allow...
71
by: tomy_baseo | last post by:
I'm new to HTML and want to learn the basics by learning to code by hand (with the assistance of an HTML editor to eliminate repetitive tasks). Can anyone recommend a good, basic HTML editor that's...
7
by: Alex | last post by:
One of the first things I wanted to do when I start learning Python was to produce a simple standalone application that I could distribute to my users (windows users). Python's moto is "Batteries...
14
by: Bernie Yaeger | last post by:
The following code works fine: Dim sr As StreamReader = New StreamReader("c:\htdogpro\bhome.htm") htmstring = sr.ReadToEnd() msg.Body = htmstring msg.BodyFormat = MailFormat.Html ' as...
8
by: Christopher Kurtis Koeber | last post by:
Dear All, Recently I created a thread about trying to load a particular ICON image that GDI plus could not load. I realized that GDI plus definitely does not support it because it had a certain...
6
by: lilcech | last post by:
How can i cobine my image with a html file so i only have one file. The image is used inside the html file so if i delete it or move it, then it wont show up in the html file. :)
0
by: Anil Gupte | last post by:
I am using an Image Button from Microsoft's Power Pack. When I use the ..Enabled=True/False I get the following error "SetPixel is not supported for images with indexed pixel formats" I am...
1
by: r_ahimsa_m | last post by:
Hello, I am learning PHP5 and www technologies. I would like to send email from .php script. The email will contain HTML with images (BMP, GIF, JPEG) and movies (MPEG) included. I have a...
1
by: Sarvesh1989 | last post by:
I have one main div & in that main div i have included 2 differrent div it show good result in firefox but in ie it doesn't show that same result div just get one above the other.plz do help me. ...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.