Topic: Been messing around with extensions....
And I noticed some things. Like you can break up conditionals when trying to do a check.
e.g.::pseudo
<hook>
<![CDATA[
if( 1 > 0 )
{
echo 'yep';
}
else
{
]]>
</hook>
<hook>
<![CDATA[
echo 'nope';
}
]]>
</hook>
The code would break in the eval() function, ah well.
Was messing around with my extension "Custom Pages"
http://ex-code.info/pbb13/index.php?action=testpage
<?xml version="1.0" encoding="utf-8"?>
<extension engine="1.0">
<id>custom_index_page</id>
<title>Custom Index Pages</title>
<version>1.0.1</version>
<description>Be able to create a new page with ease</description>
<author>Lamonte Harris</author>
<minversion>1.3 Beta</minversion>
<maxtestedon>1.3 Beta</maxtestedon>
<hooks>
<hook id="in_qr_get_cats_and_forums">
<![CDATA[
$pages = array('testpage');
if( isset($_GET['action']) AND in_array($_GET['action'],$pages) )
{
$page = $_GET['action'];
if( in_array($page,$pages))
{
require_once(PUN_ROOT.'extensions/custom_index_page/' . $page . '.php');
}
require PUN_ROOT.'footer.php';
exit;
}
]]>
</hook>
</hooks>
</extension>