Thread subject: pHpFusion Nederlands (BE|NL) » Ondersteuning, Themas, Infusies, Modificaties en Installatie :: tabel in forum onderwerp

Posted by Steff on 31 januari 2009, 14:15
#6

/includes/bbcodes/table_bbcode_include.php :
[geshi=php] /*-------------------------------------------------------+
| PHP-Fusion Content Management System
| Copyright (C) 2002 - 2008 Nick Jones
| http://www.php-fusion.co.uk/
+--------------------------------------------------------+
| Filename: table_bbcode_include.php
| Author: Jeepers1993
+--------------------------------------------------------+
| This program is released as free software under the
| Affero GPL license. You can redistribute it and/or
| modify it under the terms of this license which you
| can read by viewing the included agpl.txt or online
| at www.gnu.org/licenses/agpl.html. Removal of this
| copyright header is strictly prohibited without
| written permission from the original author(s).
+--------------------------------------------------------*/
if (!defined("IN_FUSION")) { die("Access Denied"); }

$text = preg_replace('#\[table\](.*?)\[/table\]#si', '\1
', $text);
$text = preg_replace('#\[row\](.*?)\[/row\]#si', '\1', $text);
$text = preg_replace('#\[cell\](.*?)\[/cell\]#si', '\1', $text);
?>[/geshi]
/includes/bbcodes/table_bbcode_include_var.php :
[geshi=php] /*-------------------------------------------------------+
| PHP-Fusion Content Management System
| Copyright (C) 2002 - 2008 Nick Jones
| http://www.php-fusion.co.uk/
+--------------------------------------------------------+
| Filename: table_bbcode_include_var.php
| Author: Jeepers1993
+--------------------------------------------------------+
| This program is released as free software under the
| Affero GPL license. You can redistribute it and/or
| modify it under the terms of this license which you
| can read by viewing the included agpl.txt or online
| at www.gnu.org/licenses/agpl.html. Removal of this
| copyright header is strictly prohibited without
| written permission from the original author(s).
+--------------------------------------------------------*/
if (!defined("IN_FUSION")) { die("Access Denied"); }

$__BBCODE__[] =
array(
"description" => "Table",
"value" => "table",
"bbcode_start" => "",
"bbcode_end" => "
",
"usage" => "Content
"
);
$__BBCODE__[] =
array(
"description" => "Row",
"value" => "row",
"bbcode_start" => "[row]",
"bbcode_end" => "[/row]",
"usage" => "[row]Content[/row]"
);
$__BBCODE__[] =
array(
"description" => "Cell",
"value" => "cell",
"bbcode_start" => "[cell]",
"bbcode_end" => "[/cell]",
"usage" => "[cell]Content[/cell]"
);
?>[/geshi]


De "Table" BBcode activeren in system/bbcodes/ en je kan het gebruiken :-)



Opmerking: Zorg wel dat je alle tags CORRECT afsluit, en gebruik bijvoorbeeld "Cell" IN "Row" en "Row" IN "Table" anders gaat je layout er vreselijk uitzien mocht je iets verkeerd hebben staan.

Edited by Steff on 31 januari 2009, 14:20