d3visi0n wrote:

Everytime you ask the release date gets put forward another month.

bs, doubt this completly

2

(2 replies, posted in PunBB 1.3 troubleshooting)

No haven't seen it lately, and I understand smile..Nice lil update smile

                            <?php
                            $timestamps = array(-12, -11, -10, -9.5, -9, -8.5, -8, -7, -6, -5, -4, -3.5, -3, -2, -1, 0, 1, 2, 3, 3.5, 4, 4.5, 5, 5.5, 6, 6.5, 7, 8, 9, 9.5, 10, 10.5, 11, 11.5, 12, 13, 14);
                            $tloc = array(-8 => ' PST', -7 => ' MST', -6 => ' CST', -5 => ' EST', -4 => ' AST', -3 => ' ADT', 0 => ' GMT', 1 => ' CET');
                            foreach( $timestamps as $stamp )
                            {
                                $selected = $user['timezone'] == $stamp ? ' selected="selected"' : '';
                                $loc = isset($tloc[ $stamp ]) ? $tloc[ $stamp ] : '';
                                echo str_repeat("\t", 7) . "<option value=\"{$stamp}\"{$selected}>{$stamp}{$loc}</option>\n";
                            }
                            ?>

wink  Shorter

Just interested in the information..

Ah, my problem, modded my punbb up into my template for my site lol, what file is this located in please?  Just the footer file?

Thanks.

How do I close/sticky a topic?

Oh tongue

Was just messing with the code.  Might clear "information" up for others tongue

If you visit your own topics it doesn't mark the topic as read it stays as unread.  Same with others topics, I don't know if this is a bug or not, but its like that on this support board.

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>