76

(22 replies, posted in PunBB 1.3 extensions)

$result = $forum_db->query("SELECT id,username FROM pun_users WHERE last_visit>'".strtotime(gmdate("M d Y"))."' ORDER BY last_visit DESC");
while(list($id, $username) = $forum_db->fetch_row($result)) $todays_users[] = '<a href="'.forum_link($forum_url['user'], $id).'">'.$username.'</a>';
echo "Today's users: ".implode(', ', $todays_users);

Now just find a place to put that.

I don't think this extension lets users see their history, but you should try it out.

It hasn't been released, yet, so let the author know if you find any bugs or have tips.

http://punbb.informer.com/trac/browser/ … min_events

Did you try it on a fresh install?

What error do you get?

80

(2 replies, posted in PunBB 1.3 extensions)

Fixed.

81

(2 replies, posted in PunBB 1.3 extensions)

Here's an extension DTD I created so every extension's 'manifest.xml' is valid.

<!--
    Created by Garciat (http://garciat.org/)
    Free for public use.
-->

<!ENTITY % opt.elems "((note|dependencies) | (note,dependencies) | (dependencies,note))?">

<!ELEMENT extension (id, title, version, description, author, minversion, maxtestedon,
                    (%opt.elems;, install), (%opt.elems;, uninstall),
                    (%opt.elems;, hooks, %opt.elems;))>
<!ATTLIST extension
 engine CDATA #REQUIRED>

<!ELEMENT id (#PCDATA)>

<!ELEMENT title (#PCDATA)>

<!ELEMENT version (#PCDATA)>

<!ELEMENT description (#PCDATA)>

<!ELEMENT author (#PCDATA)>

<!ELEMENT minversion (#PCDATA)>

<!ELEMENT maxtestedon (#PCDATA)>

<!ELEMENT note (#PCDATA)>
<!ATTLIST note
 type CDATA #REQUIRED
 timing CDATA #REQUIRED>
 
<!ELEMENT install (#PCDATA)>

<!ELEMENT uninstall (#PCDATA)>

<!ELEMENT dependencies (dependency+)>
<!ELEMENT dependency (#PCDATA)>

<!ELEMENT hooks (hook+)>
<!ELEMENT hook (#PCDATA)>
<!ATTLIST hook
 id CDATA #REQUIRED
 priority CDATA "5">

For the moment, you can't do anything with it, but if it gets uploaded to the site, you can add something like this to your 'manifest.xml' to make it valid:

<!DOCTYPE extension SYSTEM "http://punbb.informer.com/ext-1.0.dtd">
if ($forum_user['is_guest'] && !$bbcode)

You know... just in case.

83

(6 replies, posted in PunBB 1.3 discussion)

1.- http://www.keydogbb.info/dhtml/keydog-1 … angmod.php

2.- Just copy the folder found in the ZIP to the /style/ folder

3.- Change Line 115 on 'lang/English/common.php' to:

'Index'                        =>    'Home',

Maybe there's something wrong with the language files.

Undefined index means that array key doesn't exist.

Example:

<?php
error_reporting(E_ALL);
$foo = array();
echo $foo['bar'];

You get: "Undefined index: bar"

Try uninstalling all the extensions, except for pun_bbcode and see if you still get the error. If you do, try downloading fresh PunBB and pun_bbcode packages and install them as a test forum, then see if that fixed it.

If it did, there's something wrong either with your PunBB installation or pun_bbcode extension.

What other extensions do you have installed?

Also, what program did you use to record that smile

Edit your hooks cache to fix the error then uninstall.

88

(1 replies, posted in PunBB 1.2 troubleshooting)

I'm not sure about that plugin, but you could use PHPMyAdmin or any admin interface that accepts SQL input.

A slash '/' is missing: '../extensions/login_frontpage/login.php'

Something wrong?

http://home.garciat.org/code/login_frontpage.zip

str_replace('<!-- forum_crumbs_top -->', $login_form."\n<!-- forum_crumbs_top -->", $tpl_main);

and yes, add a slash to login.php.

        <hook id="hd_template_loaded">
ob_start();
require $ext_info['path'].'login.php';
$login_form = ob_get_contents();
ob_end_clean();

            str_replace('<!-- forum_announcement -->', $login_form."\n<!-- forum_announcement -->", $tpl_main);
            
        </hook>

and get rid of the other hook.

Also, remember the CDATA tags.

Are you sure? Did you wrap the code with PHP tags?

I'm a bit tired at the moment (and hungry), so I'm gona see what I can do about that (a.k.a. I'm leaving the forums to eat something and go sleep).

So... maybe tomorrow.

I actually stop supporting my extensions as soon as no one's having problems with them... as in, I won't release a new version just because I want to, but because someone found a bug or requested a must-have feature.

I'd put its code in the extension, yes.

It's ok, I don't really care. The code is there for the community to use it in any way they want.

I'd just forget about the template and output the code wherever I want.

100

(7 replies, posted in PunBB 1.3 troubleshooting)

Thanks.

Topic closed.