7,501

(5 replies, posted in Programming)

It's a bit tricky. You would need to know some PHP to do it.

7,502

(5 replies, posted in PunBB 1.2 troubleshooting)

richardtock wrote:

include palgamecube.co.uk/header.php at the top of every page.

You can by messing around a little with PunBB's own header.php. It's a bit tricky though if you don't know any PHP.

The next version of PunBB will include functionality to include PHP scripts from the template files directly.

richardtock wrote:

change the forum width to 700

Have a look at the excellent skinning guide being composed by ps21: http://punbb.org/forums/viewtopic.php?id=2590

richardtock wrote:

have a drop down list of all the files in img/avartars with a preview of them a lá IB.

Probably not, no :)

Wooty wrote:

BTW, the problem with free domains like shorturl.com is not with all the BBS. I think it's currently only in PunBB.

Well, I know for a fact that the same problem occurs in vBulletin and phpBB. It's not a limitation in PunBB. I doubt the problem doesn't occur with other boards.

Wooty wrote:

And, make e-mail and website, closer to the left...

You've already pointed this out and I have already done so (and you already said it was a "good job"): http://punbb.org/forums/viewtopic.php?id=2558

7,504

(9 replies, posted in Feature requests)

Yeah, but isn't it just easier to visit punbb.org then? :)

7,505

(5 replies, posted in Programming)

Well, I guess by adding the user to both the "site" and forum database when they register in one of them. If you want to know how a user is added in the forums, check out register.php.

7,506

(9 replies, posted in Feature requests)

Well, personally I don't like software that "calls home" too much, but I'll think about it.

Log on to quakenet and then join #punbb.

7,508

(2 replies, posted in PunBB 1.2 show off)

I like the style! You should upload it to PunRes if you haven't already.

7,509

(6 replies, posted in PunBB 1.2 troubleshooting)

Why, sure :) Just replace the current format_time() (in include/common.php) with this one:

//
// Format a time string according to $time_format and timezones
//
function format_time($timestamp, $date_only = false)
{
    global $cur_user, $options, $lang_common;

    if ($timestamp == '')
        return $lang_common['Never'];

    if (!isset($cur_user) || $options['server_timezone'] == $cur_user['timezone'])
        $diff = 0;
    else
        $diff = ($cur_user['timezone'] - $options['server_timezone'])*3600;

    $timestamp += $diff;
    $now = time();

    $date = date($options['date_format'], $timestamp);
    $today = date($options['date_format'], $now+$diff);
    $yesterday = date($options['date_format'], $now+$diff-86400);

    if ($date == $today)
        $date = $lang_common['Today'];
    else if ($date == $yesterday)
        $date = $lang_common['Yesterday'];

    if (!$date_only)
        return $date.' '.date($options['time_format'], $timestamp);
    else
        return $date;
}

SAVE/UPLOAD includes all files.

What I meant was the last row in section 6. The HTML stuff after "exit($tpl_main);" isn't supposed to be there.

7,511

(6 replies, posted in PunBB 1.2 troubleshooting)

Well, I just installed the fix I worked out when fly was having problems :) It will come with 1.1.

7,512

(2 replies, posted in Feature requests)

Good points. I will investigate :)

7,513

(6 replies, posted in PunBB 1.2 troubleshooting)

Is it good now?

7,514

(3 replies, posted in General discussion)

There is nu such thing as "good free hosting". It's a contradiction in terms :)

If you're desperate: http://www.lfhost.com/

7,515

(53 replies, posted in PunBB 1.2 bug reports)

Aha, ok. Will you post your results here when you've upgraded?

I don't know what you're talking about :P

7,517

(53 replies, posted in PunBB 1.2 bug reports)

I wish I could tell you the answer, but I simply don't know :) Perhaps there a bug (very unlikely) in that MySQL version for MacOSX or maybe something just went wrong during install. Perhaps you can install a different version of MySQL? I believe 4.0.12 is the latest stable.

7,518

(53 replies, posted in PunBB 1.2 bug reports)

Try running a few simple JOINs from mysqladmin:

SELECT users.username, posts.poster FROM users INNER JOIN posts ON posts.poster_id=users.id

SELECT u.username, p.poster FROM users AS u INNER JOIN posts AS p ON p.poster_id=u.id

SELECT u.username, p.poster FROM users u INNER JOIN posts p ON p.poster_id=u.id

7,519

(3 replies, posted in PunBB 1.2 troubleshooting)

If it's that simple ju can ignore the <script> section and just do:

<a href="#" onClick="window.open('http://www.swefix.com/rewozz/','','width=340,height=325')">Webcam</a><br><br>

7,520

(53 replies, posted in PunBB 1.2 bug reports)

I doubt it. Anyway, you're running 3.23.52 (same as this forum), so it shouldn't affect anything.

Edit: And there are no conditions in the ON part that are used to restrict rows.

7,521

(53 replies, posted in PunBB 1.2 bug reports)

It calculates how many rows and how much space the DB takes up. You can safely comment it out, but if you do, comment out the whole if there.

7,522

(53 replies, posted in PunBB 1.2 bug reports)

Hmm. I have no idea. I can't see anything wrong with this query:

SELECT c.id AS cid, c.cat_name, f.id AS fid, f.forum_name, f.forum_desc, f.moderators, f.num_topics, f.num_posts, f.last_post, f.last_post_id, f.last_poster, f.closed FROM categories AS c INNER JOIN forums AS f ON c.id=f.cat_id WHERE c.admmod_only!='1' AND f.admmod_only!='1' ORDER BY c.position, cid, f.position

7,523

(53 replies, posted in PunBB 1.2 bug reports)

Try adding the following line just above the query on line 64 in index.php:

dump('SELECT c.id AS cid, c.cat_name, f.id AS fid, f.forum_name, f.forum_desc, f.moderators, f.num_topics, f.num_posts, f.last_post, f.last_post_id, f.last_poster, f.closed FROM '.$db->prefix.'categories AS c INNER JOIN '.$db->prefix.'forums AS f ON c.id=f.cat_id'.$extra.' ORDER BY c.position, cid, f.position');

And then paste the results here.

7,524

(53 replies, posted in PunBB 1.2 bug reports)

Try removing them :)

7,525

(53 replies, posted in PunBB 1.2 bug reports)

Hmm, very odd. I doubt it's a permissions problem. What dbtype do you have defined in config.php? And what prefix?