Ok, then wait for my mod =P It's almost done and does work ^^

2,202

(5 replies, posted in PunBB 1.2 troubleshooting)

Ah. Add the parameter fid=<forumid> to your extern.php URL.

2,203

(5 replies, posted in PunBB 1.2 troubleshooting)

1. What?

2. By including extern.php

Darn, just now I started making the mod yikes

http://www.punres.org/download.php?id=648

Doesn't that work for you?

Err... make a database column where you set the minimum posts, fetch that when accessing the forum and compare it to the one stored in $pun_user.

2,207

(0 replies, posted in General discussion)

You'd wonder what happens then, wouldn't you?
Well... here we go:

http://icstrategy.midgetforhire.com/tes … phTest.php
http://icstrategy.midgetforhire.com/tes … usoide.php
http://icstrategy.midgetforhire.com/tes … n/Test.php
http://icstrategy.midgetforhire.com/tes … Fun/fv.php You can use the GET parameters T and max here
http://icstrategy.midgetforhire.com/tes … /GDFun.php Just fill in some text and press submit

And ofcourse my signature ^^

2,208

(15 replies, posted in PunBB 1.2 discussion)

Find the function pun_hash() is functions.php and modify it so it only uses md5()

2,209

(15 replies, posted in Feature requests)

Excellent big_smile I'll go add this to the wiki =P

2,210

(15 replies, posted in Feature requests)

Oh, I see what's wrong =P Silly me =/

FIND

// If the poster is a guest (or a user that has been deleted)
    else
    {

Add after:

$user_avatar = '<img src="'.$pun_config['o_avatars_dir'].'/guest.png" alt="" />';

You can delete the

elseif($cur_post['g_id'] == 3)
            $user_avatar = '<img src="'.$pun_config['o_avatars_dir'].'/guest.png" alt="" />';

from the previous code too.

2,211

(15 replies, posted in Feature requests)

Let me try ^^

if ($pun_config['o_avatars'] == '1' && $cur_post['use_avatar'] == '1' && $pun_user['show_avatars'] != '0')
        {
            if ($img_size = @getimagesize($pun_config['o_avatars_dir'].'/'.$cur_post['poster_id'].'.gif'))
                $user_avatar = '<img src="'.$pun_config['o_avatars_dir'].'/'.$cur_post['poster_id'].'.gif" '.$img_size[3].' alt="" />';
            else if ($img_size = @getimagesize($pun_config['o_avatars_dir'].'/'.$cur_post['poster_id'].'.jpg'))
                $user_avatar = '<img src="'.$pun_config['o_avatars_dir'].'/'.$cur_post['poster_id'].'.jpg" '.$img_size[3].' alt="" />';
            else if ($img_size = @getimagesize($pun_config['o_avatars_dir'].'/'.$cur_post['poster_id'].'.png'))
                $user_avatar = '<img src="'.$pun_config['o_avatars_dir'].'/'.$cur_post['poster_id'].'.png" '.$img_size[3].' alt="" />';
        }
        elseif($cur_post['g_id'] == 3)
            $user_avatar = '<img src="'.$pun_config['o_avatars_dir'].'/guest.png" alt="" />';
        else
            $user_avatar = '<img src="'.$pun_config['o_avatars_dir'].'/standard.png" alt="" />';

Does that do it?

2,212

(3 replies, posted in General discussion)

lol

2,213

(5 replies, posted in General discussion)

Coppermine isn't bad, and I heard you can integrate with PunBB easily...

2,214

(15 replies, posted in Feature requests)

I'll figure that out tomorrow, too sleepy for it now =/

2,215

(15 replies, posted in Feature requests)

Lemme think now...

<?php
if ($pun_config['o_avatars'] == '1' && $cur_post['use_avatar'] == '1' && $pun_user['show_avatars'] != '0')
        {
            if ($img_size = @getimagesize($pun_config['o_avatars_dir'].'/'.$cur_post['poster_id'].'.gif'))
                $user_avatar = '<img src="'.$pun_config['o_avatars_dir'].'/'.$cur_post['poster_id'].'.gif" '.$img_size[3].' alt="" />';
            else if ($img_size = @getimagesize($pun_config['o_avatars_dir'].'/'.$cur_post['poster_id'].'.jpg'))
                $user_avatar = '<img src="'.$pun_config['o_avatars_dir'].'/'.$cur_post['poster_id'].'.jpg" '.$img_size[3].' alt="" />';
            else if ($img_size = @getimagesize($pun_config['o_avatars_dir'].'/'.$cur_post['poster_id'].'.png'))
                $user_avatar = '<img src="'.$pun_config['o_avatars_dir'].'/'.$cur_post['poster_id'].'.png" '.$img_size[3].' alt="" />';
        else if($cur_post['g_id'] == 3)
                $user_avatar = '<img src="'.$pun_config['o_avatars_dir'].'/guest.png" alt="" />';    
        }
        else
            $user_avatar = '<img src="'.$pun_config['o_avatars_dir'].'/standard.png" alt="" />';
?>

Try that ^^ If that doesn't do it, I don't know anymore =/

2,216

(15 replies, posted in Feature requests)

The try removing

elseif($pun_user['is_guest'])
            $user_avatar = '<img src="'.$pun_config['o_avatars_dir'].'/guest.png" alt="" />';

And put

if($pun_user['is_guest'])
            $user_avatar = '<img src="'.$pun_config['o_avatars_dir'].'/guest.png" alt="" />';

after the checks.

2,217

(15 replies, posted in Feature requests)

I suppose so...

Finds this in viewtopic.php:

if ($pun_config['o_avatars'] == '1' && $cur_post['use_avatar'] == '1' && $pun_user['show_avatars'] != '0')
        {
            if ($img_size = @getimagesize($pun_config['o_avatars_dir'].'/'.$cur_post['poster_id'].'.gif'))
                $user_avatar = '<img src="'.$pun_config['o_avatars_dir'].'/'.$cur_post['poster_id'].'.gif" '.$img_size[3].' alt="" />';
            else if ($img_size = @getimagesize($pun_config['o_avatars_dir'].'/'.$cur_post['poster_id'].'.jpg'))
                $user_avatar = '<img src="'.$pun_config['o_avatars_dir'].'/'.$cur_post['poster_id'].'.jpg" '.$img_size[3].' alt="" />';
            else if ($img_size = @getimagesize($pun_config['o_avatars_dir'].'/'.$cur_post['poster_id'].'.png'))
                $user_avatar = '<img src="'.$pun_config['o_avatars_dir'].'/'.$cur_post['poster_id'].'.png" '.$img_size[3].' alt="" />';
        }
        else
            $user_avatar = '';

Replace it by:

if ($pun_config['o_avatars'] == '1' && $cur_post['use_avatar'] == '1' && $pun_user['show_avatars'] != '0')
        {
            if ($img_size = @getimagesize($pun_config['o_avatars_dir'].'/'.$cur_post['poster_id'].'.gif'))
                $user_avatar = '<img src="'.$pun_config['o_avatars_dir'].'/'.$cur_post['poster_id'].'.gif" '.$img_size[3].' alt="" />';
            else if ($img_size = @getimagesize($pun_config['o_avatars_dir'].'/'.$cur_post['poster_id'].'.jpg'))
                $user_avatar = '<img src="'.$pun_config['o_avatars_dir'].'/'.$cur_post['poster_id'].'.jpg" '.$img_size[3].' alt="" />';
            else if ($img_size = @getimagesize($pun_config['o_avatars_dir'].'/'.$cur_post['poster_id'].'.png'))
                $user_avatar = '<img src="'.$pun_config['o_avatars_dir'].'/'.$cur_post['poster_id'].'.png" '.$img_size[3].' alt="" />';
        }
        elseif($pun_user['is_guest'])
            $user_avatar = '<img src="'.$pun_config['o_avatars_dir'].'/guest.png" alt="" />';
        else
            $user_avatar = '<img src="'.$pun_config['o_avatars_dir'].'/standard.png" alt="" />';

Create the images guest.png and standard.png. It should do it.

2,218

(15 replies, posted in General discussion)

I can heard a little kid say to his mom "I'm gonna play with my wiiwii" ^^

2,219

(5 replies, posted in Programming)

I made this in GD just now, just because I was bored:

http://icstrategy.midgetforhire.com/tests/GDTest.php

$datestamp = mktime(0,0,0,$month,$day,0)
should be
                $datestamp = mktime(0,0,0,$month,$day,0);

2,221

(3 replies, posted in PunBB 1.2 troubleshooting)

Make sure you uploaded all the files.

Yeah, it seems your host screwed up some DB settings ^^ So it's best to contact them.

2,223

(5 replies, posted in PunBB 1.2 show off)

*drools*
*drools even more*
Now how on earth did you do that? =P

Really nice! I especially like your blue one.

EDIT: If you could make a blackish one like that... big_smile

2,224

(22 replies, posted in PunBB 1.2 troubleshooting)

Is there a config.php in the /forum directory?

2,225

(71 replies, posted in News)

You're correct, but it surely will discourage scripts =/ And it won't crash the server.