1,826

(3 replies, posted in PunBB 1.2 discussion)

1. Will be available in 1.3
2. Mods are available for this, just look at PunRes
3. Depends... I seem to recall a mod for this, but can't really remember

1,827

(5 replies, posted in PunBB 1.2 troubleshooting)

Try this as main.tpl:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
 
<html dir="<pun_content_direction>">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<pun_char_encoding>" />
<pun_head>
<style type="text/css">
    #left {
        width: 120px;
        float: left;
    }
    #main {
        margin-left: 130px;
    }
    #container {
        width: 100%;
        float: right;
        margin-left: -120px;
    }
</style>
</head>
<body>
 
<div id="punwrap">
<div id="pun<pun_page>" class="pun">
 
<div id="brdheader" class="block">
    <div class="box">
        <div id="brdtitle" class="inbox">
            <pun_title>
            <pun_desc>
        </div>
        <pun_navlinks>
        <pun_status>
    </div>
</div>
 
<div id="container">
    <div id="main">
    
        <pun_announcement>
    
        <pun_main>
        
    </div>    
</div>
 
<div id="left">    
    <div class="block">
        <h2 class="block2"><span>Whos Online?</span></h2>
        <div class="box">
            <pun_online>
        </div>
    </div>

    <div class="block">
        <h2><span>Menu</span></h2>
            <div class="box">
                <pun_sidelinks>            
            </div>
    </div>

    <div class="block">
        <h2 class="block2"><span>News</span></h2>
        <div class="box">
            <div class="inbox">
            More news here soon.       
            </div>
        </div>
    </div>
    <div class="block">
        <h2 class="block2"><span>More Links</span></h2>
        <div class="box">
            <div class="inbox">
                <ul>
                    <li><a href="index.php">Link 1</a></li>
                    <li><a href="index.php">Link 2</a></li>
                    <li><a href="index.php">Link 3</a></li>
                    <li><a href="index.php">Link 4</a></li>
                </ul>        
            </div>
        </div>
    </div>
</div>
 
<div class="clearer"></div>
 
<pun_footer>
 
</div>
</div>
 
</body>
</html>

1,828

(6 replies, posted in PunBB 1.2 troubleshooting)

http://dev.mysql.com/doc/refman/5.0/en/ … tions.html smile
MySQL can encrypt in MD5 or SHA1. So if your can access the code from your IRC server (the part where it authenticates), you must use something like this in your query:

SELECT password FROM punbb_users WHERE user='%s' AND password=SHA1(%s)

If your server uses MD5, change SHA1 to MD5. (code example uses C string insertion, %s indicates a string should come there)

1,829

(6 replies, posted in PunBB 1.2 troubleshooting)

PunBB uses sha1 if available, else falls back to md5. These cannot be decrypted, so your only option is to modify the IRC server so it uses pun_hash() to check the passwords. You can also modify this function to use an encyption of your choice, ofcourse.

1,830

(5 replies, posted in PunBB 1.2 troubleshooting)

Try putting a <br /> after the last </div> of the news section.

1,831

(16 replies, posted in General discussion)

MadHatter wrote:

so where is the star drawn when y's random value is 1201?

You don't get the (mt_)rand function, now do you?

int mt_rand ( [int min, int max] )

The smallest coordinate is 0, biggest coordinate is your x/y size. This way a pixel cannot be drawn outside of your image.

1,832

(16 replies, posted in General discussion)

Ehm, yes. It pickes a random coordinate tongue min 0, max $xsize for the x coordinate. Sounds logical to me =/

1,833

(16 replies, posted in General discussion)

Thanks big_smile

Oh, and Jansson, just tried to do that one again... it always goes wrong when I try to use the clone tool sad

1,834

(7 replies, posted in PunBB 1.2 troubleshooting)

$cur_post = $db->fetch_assoc($result)

should be

$cur_post = $db->fetch_assoc($result);

Silly me.

1,835

(7 replies, posted in PunBB 1.2 troubleshooting)

The first change is somewhere in the middle, the last one near the end of the file smile

1,836

(7 replies, posted in PunBB 1.2 troubleshooting)

Change

while ($cur_post = $db->fetch_assoc($result))
{

to

$cur_post = $db->fetch_assoc($result)

and remove

<?php

}

?>

1,837

(16 replies, posted in General discussion)

Yeah, I tried that one, didn't work out too well tongue I'll probably need to do it on a smaller image ^^

1,838

(16 replies, posted in General discussion)

Did another one smile
The big planet is done with two layers smile

Quaker, use the code tag ffs.

1,840

(16 replies, posted in General discussion)

What? A nice random starfield tongue

1,841

(16 replies, posted in General discussion)

Heheh... Tutorial eh smile

? First of all, create a starfield with this PHP code: (requires GD)

<?php
$xsize = 1600;
$ysize = 1200;
$im = imagecreatetruecolor($xsize, $ysize);
$grey = imagecolorallocate($im, 132, 132, 132);
$white = imagecolorallocate($im, 255, 255, 255);

// Create the less bright stars
for($i=0; $i<=7500; $i+=1)
{
    @$x = mt_rand(0, $xsize);
    @$y = mt_rand(0, $ysize);
    imagesetpixel($im, $x, $y, $grey);
}

// Create bright stars
for($i=0; $i<=3000; $i+=1)
{
    @$x = mt_rand(0, $xsize);
    @$y = mt_rand(0, $xsize);
    imagesetpixel($im, $x, $y, $white);
}

header('Content-Type: Image/PNG');
imagepng($im);
imagedestroy($im);
?>

Change the values to whatever you like wink

? Save the created image to disk, as starfield.png
? Now load this image in photoshop
? Create a new layer
? Use the ellipse select tool (right-click on the square select tool and select the ellipse one) to create a circle the size you want your planet to be
? Select a background and foreground colour.
? Go to Filter > Generate > Clouds.
? Go to Filter > Distort > Spherise, use 100% as value
? Repeat this step with a value of 50%
You now have a basic planet. We'll add an athmosphere to it:
? Right-click on your planet layer and select Blending Options
? Go to the Outer Glow tab
? Use something similar to these values, but adjust as you like:
Blend mode: Screen
Colour: pick one
Spread: 2%
Size: 38px
? Go to the Inner Glow tab
? Use something similar to these values, but adjust as you like:
Blend mode: Screen
Colour: pick one
Choke: 4%
Size: 10px
Range: 50%
Jitter: 8%

This will give you a planet on a starfield background with a nice atmosphere, much like the ones I posted above smile

-- Bekko

1,842

(16 replies, posted in General discussion)

Hey all,

I started messing around with photoshop a bit and made these planets.
I generated the starfield through PHP tongue

http://icstrategy.midgetforhire.com/Ima … anet-2.jpg
http://icstrategy.midgetforhire.com/Ima … 20copy.jpg
http://icstrategy.midgetforhire.com/Ima … planet.png

Please comment big_smile

-- Bekko

1,843

(17 replies, posted in General discussion)

Looks nice smile

1,844

(24 replies, posted in General discussion)

Your Athlon could've been a nice 4800+, if you want it to go with the rest of your machine... tongue

Looking nice big_smile

Not everyone uses the wysiwyg editors =/
And I think HTML is a bad option, as you'd have to write a parser that validates your HTML, gets out bad tags, ...

Oh, and with BBCode you can easily limit what kind of markup users use. Imagine if I put a <marquee> tag in this post =/

1,846

(5 replies, posted in PunBB 1.2 discussion)

Each (navigational) link should use &. The other ones simply don't use & tongue
The quote link too:

<a href="post.php?tid=12413&qid=73089">Quote</a>

Just go check with w3c smile

1,847

(99 replies, posted in Programming)

Zend Studio is slow as hell on XP =/
On Linux it's my first choice for PHP though smile

1,848

(99 replies, posted in Programming)

I'm not liking Eclipse =/
*wanders off back to Dreamweaver*

1,849

(13 replies, posted in General discussion)

I'm guessing something went wrong when updating to 9.0.1 =/

1,850

(13 replies, posted in General discussion)

I made one myself... just messing around with CS2 tongue
http://icstrategy.midgetforhire.com/Images/PunBB/punbb%20userbar.png

Oh, and does it only happen to me that photoshop always wants to close when i press CTRL+Z? =/