701

(14 replies, posted in PunBB 1.3 troubleshooting)

First of all, error 404 is "Not found". Second, what PunBB version (if it's from SVN, what revision).

702

(9 replies, posted in Feature requests)

This is a really nice concept. I wouldn't know how to implement it, though.

[See, Anatoly, it does happen smile]

That used to happen to me back on 1.3RC2, make sure you have the latest revision from the SVN:

Go to http://punbb.informer.com/trac/browser/punbb/trunk and click "Zip Archive" at the bottom of the page. Replace your PunBB files with the ones you just downloaded.

Post back if that fixed the bug.

704

(11 replies, posted in PunBB 1.2 troubleshooting)

Replace Lines 941-943 on 'include/functions.php':

    foreach (glob(FORUM_ROOT.'include/url/*') as $dirname)
        if (is_dir($dirname) && file_exists($dirname.'/forum_urls.php'))
            $schemes[] = basename($dirname);

With:

    if($handle = opendir(FORUM_ROOT.'include/url'))
    {
        while (false !== ($dirname = readdir($handle)))
        {
            $dirname =  FORUM_ROOT.'include/url/'.$dirname;
            if (is_dir($dirname) && file_exists($dirname.'/forum_urls.php'))
                $schemes[] = basename($dirname);
        }
        closedir($handle);
    }

Edit: If you're too lazy, you can download the whole fixed file from: http://garciat.us.to/code/punbb/functions.php (Right-click -> Save as...)

Btw, let me know if the link doesn't work.

705

(11 replies, posted in PunBB 1.2 troubleshooting)

Replace Lines 956-961 from 'include/functions.php':

    foreach (glob(FORUM_ROOT.'style/*') as $dirname)
    {
        $tempname = basename($dirname);
        if (is_dir($dirname) && file_exists($dirname.'/'.$tempname.'.php'))
            $styles[] = $tempname;
    }

With:

    if($handle = opendir(FORUM_ROOT.'style'))
    {
        while (false !== ($dirname = readdir($handle)))
        {
            $dirname =  FORUM_ROOT.'style/'.$dirname;
            $tempname = basename($dirname);
            if (is_dir($dirname) && file_exists($dirname.'/'.$tempname.'.php'))
                $styles[] = $tempname;
        }
        closedir($handle);
    }

That should fix the empty style list. I'll post the fix for the empty URL scheme list in a minute.

706

(4 replies, posted in PunBB 1.2 bug reports)

Huh? What's the error?

707

(11 replies, posted in PunBB 1.2 troubleshooting)

Good to know smile Enjoy PunBB

708

(11 replies, posted in PunBB 1.2 troubleshooting)

It's actually glob(), not global()...
anyways, try replacing Lines 974-976 on 'include/functions.php':

    foreach (glob(FORUM_ROOT.'lang/*') as $dirname)
        if (is_dir($dirname) && file_exists($dirname.'/common.php'))
            $languages[] = basename($dirname);

With:

    if($handle = opendir(FORUM_ROOT.'lang'))
    {
        while (false !== ($dirname = readdir($handle)))
        {
            $dirname =  FORUM_ROOT.'lang/'.$dirname;
            if (is_dir($dirname) && file_exists($dirname.'/common.php'))
                $languages[] = basename($dirname);
        }
        closedir($handle);
    }

Backup new config.php, delete all files, upload new files, place new config.php (make sure the info's ok), and visit the index.

710

(11 replies, posted in PunBB 1.2 troubleshooting)

There's something wrong with your language packs. Try installing PunBB from a fresh download (no language packs).

Edit: @devs: I think it's a problem with the glob() function.

711

(28 replies, posted in PunBB 1.2 troubleshooting)

theforkofjustice wrote:
Garciat wrote:

Didn't you delete the database?

Yes.  I said so when I typed "deleted the old database"

I think you didn't get my point. I was trying to say that you may have forgotten to create the new database.

When the "Currently used extensions" list is too long, this happens:
http://i247.photobucket.com/albums/gg135/garcia-t/footer_bad.png
It also has "Copyright © 2008 PunBB", which is kinda redundant since "Powered by PunBB" is already there.


This is how I think the footer should look:
http://i247.photobucket.com/albums/gg135/garcia-t/footer_good.png

EDIT: Altered topic subject //Anatoly.

713

(28 replies, posted in PunBB 1.2 troubleshooting)

Didn't you delete the database?

714

(28 replies, posted in PunBB 1.2 troubleshooting)

Anatoly wrote:

Oh-oh, it is harder with cache_quickjump_*.php.

I will try to write an extension tomorrow. This will be a useful experience as I want to make PunBB 2.0 enabled to work without cache.

yikes PunBB 2.0!

715

(9 replies, posted in Feature requests)

I think you placed the piece of code somewhere it shouldn't be.

Try using the parser.php I provided.

Note: This is only for PunBB 1.2.20

716

(5 replies, posted in PunBB 1.3 troubleshooting)

Is that a PHP error?

Olli wrote:

In my language file, this bug is fixed (Finnish language file).

Tell him how to fix it?

718

(5 replies, posted in PunBB 1.3 troubleshooting)

If you hide the link, users won't know what forum software they're using. Also, I don't think Search Engines look at <!-- -->'s.

719

(27 replies, posted in News)

Good job, Dev team smile

720

(9 replies, posted in Feature requests)

Add:

    if($link!=$full_url && stripos($link, '[img]')!==false && $pun_user['show_img'] == '0')
    {
        $link = str_ireplace(array("[img]", "[/img]"), "", $link);
        $link = ((strlen($link) > 55) ? substr($link, 0 , 39).' &hellip; '.substr($, -10) : $link);
    }

to Line 276 on 'include/parser.php'.

or download the file from http://garciat.us.to/code/punbb/parser.php (right-click > save as...)

721

(52 replies, posted in PunBB 1.3 additions)

grudon66 wrote:
Garciat wrote:
Anatoly wrote:

Another theme: Blue.

Drop the IM pictures and I'll like it smile

What?! The pictures are cool tongue

I think they're too generic.

Anyways, I think "Blue" is the best one (without the IM pics).

Edit: How about setting up a poll?

722

(52 replies, posted in PunBB 1.3 additions)

Anatoly wrote:

Another theme: Blue.

Drop the IM pictures and I'll like it smile

723

(52 replies, posted in PunBB 1.3 additions)

Anatoly wrote:

Another theme: Something web-2-0-ish :-)

That's really good, but the colors need some work.

Also, I don't dig the top menu.

724

(9 replies, posted in Feature requests)

Oh, I kinda get what you mean now.

If Anatoly tells me what file to edit, I can edit it for you so the BBCode shows something like this instead:
http://punbb.informer.com/img/slick_punbb/logo_2_left.png

725

(9 replies, posted in Feature requests)

You want it to show the image's URL instead?