IPB Website Integration

Module Examples

You are not logged in!

Register for free and login to get access to all live-examples.

VIRtech Integration example posted by Arvy

BBCode

BBCode Live Examples

Original BBCode

[b]Usage:[/b] [i]string[/i] bbcode2html ([i]string[/i] bbcode[, [i]bool[/i] parsesmilies])
[b]Purpose:[/b] Converts BBCode to HTML using IPB's native parser.
[b]Status:[/b] [i]final[/i]
Uses IPB's native BBCode Parser to convert [i]bbcode[/i] into HTML.
[h3]Example[/h3]
In downloadpackage, a Code-Example is included. [url="http://ipbwi.pc-intern.com/examples/bbcode.php"]Live example[/url]
[h3]if successed[/h3]
HTML-Code will be returned
[h3]if failed[/h3]
[i][b]false[/b][/i] will be returned
[h3]Additional[/h3]
[list]
[*]If [i]parsesmilies[/i] is set to 1, smilies will also be parsed.
[/list]
[b]Code Examples[/b]
[list]
[*]Sends <b>Hello</b> to Browser
[code]echo (("[b]Hello[/b]"));[/code]
[*]Sends 5 "smiley" smilies
[code]echo ((":D:D:D:D:D", "1"));[/code]
[/list]';

bbcode2html

Usage: string bbcode2html (string bbcode[, bool parsesmilies])
Purpose: Converts BBCode to HTML using IPB's native parser.
Status: final

Uses IPB's native BBCode Parser to convert bbcode into HTML.

[h3]Example[/h3]
In downloadpackage, a Code-Example is included. Live example

[h3]if successed[/h3]
HTML-Code will be returned

[h3]if failed[/h3]
false will be returned

[h3]Additional[/h3]
  • If parsesmilies is set to 1, smilies will also be parsed.


Code Examples
  • Sends <b>Hello</b> to Browser
    echo (("[b]Hello[/b]"));
  • Sends 5 "smiley" smilies
    echo ((":D:D:D:D:D", "1"));
';

html2bbcode

[b]Usage:[/b] [i]string[/i] bbcode2html ([i]string[/i] bbcode[, [i]bool[/i] parsesmilies])
[b]Purpose:[/b] Converts BBCode to HTML using IPB's native parser.
[b]Status:[/b] [i]final[/i]
Uses IPB's native BBCode Parser to convert [i]bbcode[/i] into HTML.
[h3]Example[/h3]
In downloadpackage, a Code-Example is included. [url="http://ipbwi.pc-intern.com/examples/bbcode.php"]Live example[/url]
[h3]if successed[/h3]
HTML-Code will be returned
[h3]if failed[/h3]
[i][b]false[/b][/i] will be returned
[h3]Additional[/h3]
[list]
[*]If [i]parsesmilies[/i] is set to 1, smilies will also be parsed.
[/list]
[b]Code Examples[/b]
[list]
[*]Sends <b>Hello</b> to Browser
[code]echo (("[b]Hello[/b]"));[/code]
[*]Sends 5 "smiley" smilies
[code]echo ((":D:D:D:D:D", "1"));[/code]
[/list]';

Function References

The following important functions were used for this example:

Valid XHTML 1.1

W3C XHTML • © 2008 Boot Land • All rights reserved • W3C CSS