Voyons ce que ça donne :
[notag][size="4"]pncBBCode Parser[/size][/notag]
[size="4"]pncBBCode Parser[/size]
[notag]blabla[/notag]
Les modules mis en templates et inclus dans la version 0.760-1 et tirés de la branche 0.8 du CVS sont les suivants :
[notag]
h1
[/notag]h1
[notag]
h2
[/notag]h2
[notag]
h3
[/notag]h3
[notag]
h4
[/notag]h4
[notag]
h5
[/notag]h5
Différentes listes
[notag]
- Admin
- Admin Messages
- Autolinks
- Typetool
- Xanthia
- Admin
- Admin Messages
- Autolinks
- Typetool
- Xanthia
[notag]
- Admin
- Admin Messages
- Autolinks
- Typetool
- Xanthia
- Admin
- Admin Messages
- Autolinks
- Typetool
- Xanthia
[notag][ul style="list-style-type:square;"][*]Admin[*]Admin Messages[*]Autolinks[*]Typetool[*]Xanthia[/ul][/notag]
[ul style="list-style-type:square;"][*]Admin[*]Admin Messages[*]Autolinks[*]Typetool[*]Xanthia[/ul]
[notag][ol][*]Admin[*]Admin Messages[*]Autolinks[*]Typetool[*]Xanthia[/ol][/notag]
[ol][*]Admin[*]Admin Messages[*]Autolinks[*]Typetool[*]Xanthia[/ol]
Tailles :
[notag]Six projets principaux pour le développement de PostNuke[/notag]
Six projets principaux pour le développement de PostNuke
Nous avons identifié six sous-projets vitaux pour la future version .8.
Ces sous-projets couvrent un large éventail de fonctionnalités et sont tous à différents stades de leur cheminement. Les six projets (sans ordre particulier) sont les suivants:
Souligné
[notag][/notag] Nous avons identifié six sous-projets vitaux pour la future version .8.
Italique
[notag][/notag] Nous avons identifié six sous-projets vitaux pour la future version .8.
Couleur
[notag][color="red"][/color][/notag]
[color="red"]Nous avons identifié six sous-projets vitaux pour la future version .8.[/color]
Email (Les lien email sont partiellement sinon entièrement à l'épreuve des sniffeurs).
[notag][email title="Mail Me !"]email here[/email][/notag] (Bot proof)
[email title="Mail Me !"]webmaster@pnconcept.com[/email]
Liens
[notag][url href="bbcode.php" title="Ceci est un lien"]Ceci est un lien[/url][/notag]
[url href="index.html" title="Ceci est un lien"]Ceci est un lien interne[/url]
[notag][url href="http://dev.pnconcept.com/bbcode.php" title="Ceci est un lien externe"]Ceci est un lien externe[/url][/notag]
[url href="http://dev.pnconcept.com/bbcode.php" title="Ceci est un lien externe"]Ceci est un lien externe[/url]
Très gros lien (coupé à l'affichage) [url href="http://landseer.selfhost.de/761/index.php?module=RSS&func=display&fid=1&func=display&fid=1&func=display&fid=1&func=display&fid=1&func=display&fid=1&func=display&fid=1"]http://landseer.selfhost.de/761/index.php?module=RSS&func=display&fid=1&func=display&fid=1&func=display&fid=1&func=display&fid=1&func=display&fid=1&func=display&fid=1[/url]
Image
[notag][img src="http://www.postnuke-france.org/images/chestnut.gif" alt="logo" style="vertical-align:middle;"][/img][/notag]
[img src="http://www.postnuke-france.org/images/chestnut.gif" alt="logo" style="vertical-align:middle;"][/img]
Citations
[notag]
Quote
...
Quote
Cet article contient aussi quelques informations sur certaines nouveautés qui seront introduites dans la version .8.
[notag]
"test"
...
"test"
Cet article contient aussi quelques informations sur certaines nouveautés qui seront introduites dans la version .8.
(Voir la fin de l'article mentionnant le EZComments et la gestion d'erreur).
Cet article contient aussi quelques informations sur certaines nouveautés qui seront introduites dans la version .8. (Voir la fin de l'article mentionnant le EZComments et la gestion d'erreur).
Cet article contient aussi quelques informations sur certaines nouveautés qui seront introduites dans la version .8.
(Voir la fin de l'article mentionnant le EZComments et la gestion d'erreur).
NOTAG
[notag]Le tag notag empêche la transformation des autres tags se trouvant à l'intérieur des[notag][/notag][/notag]
Code Simple
[notag]
Code
...
Code
// Sélectionner un objet par son identifiant
$myObj =& DBUtil::selectObjectByID (<pntable_key>, $id);
$myObj =& DBUtil::selectObjectByID (<pntable_key>, $id);
Code avec nom de fichier
[notag]
Code
...
Code
// Sélectionner un objet par son identifiant
$myObj =& DBUtil::selectObjectByID (<pntable_key>, $id);
// Sélectionner un(des) objet(s) (avec critère)
$myObj =& DBUtil::selectObject (<pntable_key>, $where);
// Sélectionner les objets (avec critère et ordre)
$myObjArray =& DBUtil::selectObjectArray (<pntable_key>, $where, $sort);
// Insérer un objet
DBUtil::insertObject ($myObj, <pntable_key>);
// Modifier un objet
DBUtil::updateObject ($myObj, <pntable_key>);
$myObj =& DBUtil::selectObjectByID (<pntable_key>, $id);
// Sélectionner un(des) objet(s) (avec critère)
$myObj =& DBUtil::selectObject (<pntable_key>, $where);
// Sélectionner les objets (avec critère et ordre)
$myObjArray =& DBUtil::selectObjectArray (<pntable_key>, $where, $sort);
// Insérer un objet
DBUtil::insertObject ($myObj, <pntable_key>);
// Modifier un objet
DBUtil::updateObject ($myObj, <pntable_key>);
[notag]Pour mettre en évidence une ligne, entourez la des tags [highlight]line de code ici[/highlight][/notag]
Code
// Sélectionner un objet par son identifiant
[highlight]$myObj =& DBUtil::selectObjectByID (<pntable_key>, $id);[/highlight]
[highlight]$myObj =& DBUtil::selectObjectByID (<pntable_key>, $id);[/highlight]
[notag]Vous pouvez mettre en évidence plusieurs lignes en utilisant le paramêtre highlight,
Code
Code ici...
Code
<table class="pn-admintable">
<tr>
<th><!--[pnml name="_ADMINNAME"]--></th>
<th><!--[pnml name="_ADMINOPTIONS"]--></th>
</tr>
<!--[section name=items loop=$items]-->
<tr class="<!--[cycle values="pn-odd,pn-even"]-->">
<td><!--[$items[items].catname|pnvarprepfordisplay]--></td>
<td>
<!--[assign var="options" value=$items[items].options]-->
<!--[strip]-->
[<!--[section name=options loop=$options]-->
<a href="<!--[$options[options].url|pnvarprepfordisplay]-->"><!--[pnml name=$options[options].text]--></a>
<!--[if !$smarty.section.options.last]--> | <!--[/if]-->
<!--[/section]-->]
<!--[/strip]-->
</td>
</tr>
<!--[/section]-->
</table>
<tr>
<th><!--[pnml name="_ADMINNAME"]--></th>
<th><!--[pnml name="_ADMINOPTIONS"]--></th>
</tr>
<!--[section name=items loop=$items]-->
<tr class="<!--[cycle values="pn-odd,pn-even"]-->">
<td><!--[$items[items].catname|pnvarprepfordisplay]--></td>
<td>
<!--[assign var="options" value=$items[items].options]-->
<!--[strip]-->
[<!--[section name=options loop=$options]-->
<a href="<!--[$options[options].url|pnvarprepfordisplay]-->"><!--[pnml name=$options[options].text]--></a>
<!--[if !$smarty.section.options.last]--> | <!--[/if]-->
<!--[/section]-->]
<!--[/strip]-->
</td>
</tr>
<!--[/section]-->
</table>
Autre exemple
[notag]Code for below:
Code
....
Code
<?php
/************************************************************************
* pnForum - The Post-Nuke Module *
* ============================== *
* *
* Copyright (c) 2001-2004 by the pnForum Module Development Team *
* http://www.pnforum.de/ *
* *
************************************************************************
* License *
************************************************************************
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with this program; if not, write to the Free Software *
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 *
* USA *
************************************************************************
*
* @version $Id: News.php,v 1.1 2005/11/05 13:00:47 landseer Exp $
* @author Frank Schummertz, Franky Chestnut
* @copyright 2005 by Frank Schummertz, Franky Chestnut
* @package pnForum
* @license GPL <http://www.gnu.org/licenses/gpl.html>
* @link http://www.pnforum.de
*
***********************************************************************/
include_once 'modules/pnForum/common.php';
/*
* param: objectid
*/
function pnForum_commentsapi_News($args)
{
extract($args);
unset($args);
list($dbconn, $pntable) = pnfOpenDB();
$pnstoriestable = $pntable['stories'];
$pnstoriescolumn = $pntable['stories_column'];
$pntopicstable = $pntable['topics'];
$pntopicscolumn = $pntable['topics_column'];
$sql = "SELECT $pnstoriescolumn[bodytext],
$pnstoriescolumn[hometext],
$pnstoriescolumn[notes],
$pnstoriescolumn[title],
$pnstoriescolumn[topic],
$pnstoriescolumn[aid],
$pnstoriescolumn[format_type],
$pntopicscolumn[topicname]
FROM $pnstoriestable
LEFT JOIN $pntopicstable ON $pnstoriescolumn[topic]=$pntopicscolumn[topicid]
WHERE $pnstoriescolumn[sid] ='" . pnVarPrepForStore($objectid) . "'";
$result = pnfExecuteSQL($dbconn, $sql, __FILE__, __LINE__);
//echo $sql;
//exit;
if(!$result->EOF) {
list($bodytext,
$hometext,
$notes,
$title,
$topic,
$authorid,
$format_type,
$topicname) = $result->fields;
pnfCloseDB($result);
} else {
return false;
}
// workaround for bug in AddStories html fixed on 11-05-2005
$authorid = (int)$authorid;
$link = pnGetBaseURL() . 'index.php?name=News&file=article&sid=' . $objectid;
$title = ($topicname<>'' ? $topicname.' - '.$title : $title);
if(pnModIsHooked('pn_bbcode', 'pnForum')) {
$notes = '' . $notes . '';
$link = '' . _PNFORUM_BA…SUBMISSION . '';
}
$totaltext = $hometext . "\n\n" . br2nl($bodytext) . "\n\n" . $notes . "\n\n" . $link . "\n\n";
return array($title, $totaltext , $topic, $authorid);
}
?>
/************************************************************************
* pnForum - The Post-Nuke Module *
* ============================== *
* *
* Copyright (c) 2001-2004 by the pnForum Module Development Team *
* http://www.pnforum.de/ *
* *
************************************************************************
* License *
************************************************************************
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with this program; if not, write to the Free Software *
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 *
* USA *
************************************************************************
*
* @version $Id: News.php,v 1.1 2005/11/05 13:00:47 landseer Exp $
* @author Frank Schummertz, Franky Chestnut
* @copyright 2005 by Frank Schummertz, Franky Chestnut
* @package pnForum
* @license GPL <http://www.gnu.org/licenses/gpl.html>
* @link http://www.pnforum.de
*
***********************************************************************/
include_once 'modules/pnForum/common.php';
/*
* param: objectid
*/
function pnForum_commentsapi_News($args)
{
extract($args);
unset($args);
list($dbconn, $pntable) = pnfOpenDB();
$pnstoriestable = $pntable['stories'];
$pnstoriescolumn = $pntable['stories_column'];
$pntopicstable = $pntable['topics'];
$pntopicscolumn = $pntable['topics_column'];
$sql = "SELECT $pnstoriescolumn[bodytext],
$pnstoriescolumn[hometext],
$pnstoriescolumn[notes],
$pnstoriescolumn[title],
$pnstoriescolumn[topic],
$pnstoriescolumn[aid],
$pnstoriescolumn[format_type],
$pntopicscolumn[topicname]
FROM $pnstoriestable
LEFT JOIN $pntopicstable ON $pnstoriescolumn[topic]=$pntopicscolumn[topicid]
WHERE $pnstoriescolumn[sid] ='" . pnVarPrepForStore($objectid) . "'";
$result = pnfExecuteSQL($dbconn, $sql, __FILE__, __LINE__);
//echo $sql;
//exit;
if(!$result->EOF) {
list($bodytext,
$hometext,
$notes,
$title,
$topic,
$authorid,
$format_type,
$topicname) = $result->fields;
pnfCloseDB($result);
} else {
return false;
}
// workaround for bug in AddStories html fixed on 11-05-2005
$authorid = (int)$authorid;
$link = pnGetBaseURL() . 'index.php?name=News&file=article&sid=' . $objectid;
$title = ($topicname<>'' ? $topicname.' - '.$title : $title);
if(pnModIsHooked('pn_bbcode', 'pnForum')) {
$notes = '' . $notes . '';
$link = '' . _PNFORUM_BA…SUBMISSION . '';
}
$totaltext = $hometext . "\n\n" . br2nl($bodytext) . "\n\n" . $notes . "\n\n" . $link . "\n\n";
return array($title, $totaltext , $topic, $authorid);
}
?>
Voila voilà....
Ce bbcode est tiré du bbcode créé par Vjacheslav Trushkin, très modifié toutefois et intégré au module pn_bbcode.
Bientôt dans un module près de chez vous...
Chestnut !
Administrateur
Aucun Support par message privé...
Même en cas de pensée suicidaire !
Règles à suivre
