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,826 2006-07-19 17:44
Re: These Features Included? (3 replies, posted in PunBB 1.2 discussion)
1,827 2006-07-19 16:14
Re: Wrong box pos in FF! (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 2006-07-19 15:58
Re: MySQL Encrypted Passwords (6 replies, posted in PunBB 1.2 troubleshooting)
http://dev.mysql.com/doc/refman/5.0/en/ … tions.html
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 2006-07-19 15:37
Re: MySQL Encrypted Passwords (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 2006-07-19 15:35
Re: Wrong box pos in FF! (5 replies, posted in PunBB 1.2 troubleshooting)
Try putting a <br /> after the last </div> of the news section.
1,831 2006-07-19 14:27
Re: Me photoshopping a bit :) (16 replies, posted in General discussion)
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 2006-07-18 22:12
Re: Me photoshopping a bit :) (16 replies, posted in General discussion)
Ehm, yes. It pickes a random coordinate min 0, max $xsize for the x coordinate. Sounds logical to me =/
1,833 2006-07-18 20:42
Re: Me photoshopping a bit :) (16 replies, posted in General discussion)
Thanks
Oh, and Jansson, just tried to do that one again... it always goes wrong when I try to use the clone tool
1,834 2006-07-18 20:40
Re: Display first post (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 2006-07-18 19:40
Re: Display first post (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
1,836 2006-07-18 19:16
Re: Display first post (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 2006-07-18 19:10
Re: Me photoshopping a bit :) (16 replies, posted in General discussion)
Yeah, I tried that one, didn't work out too well I'll probably need to do it on a smaller image ^^
1,838 2006-07-18 18:19
Re: Me photoshopping a bit :) (16 replies, posted in General discussion)
Did another one
The big planet is done with two layers
1,839 2006-07-18 18:13
Re: Integrate PunBB forum into Wordpress (18 replies, posted in PunBB 1.2 modifications, plugins and integrations)
Quaker, use the code tag ffs.
1,840 2006-07-18 18:03
Re: Me photoshopping a bit :) (16 replies, posted in General discussion)
What? A nice random starfield
1,841 2006-07-18 17:22
Re: Me photoshopping a bit :) (16 replies, posted in General discussion)
Heheh... Tutorial eh
? 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
? 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
-- Bekko
1,842 2006-07-18 16:31
Topic: Me photoshopping a bit :) (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
http://icstrategy.midgetforhire.com/Ima … anet-2.jpg
http://icstrategy.midgetforhire.com/Ima … 20copy.jpg
http://icstrategy.midgetforhire.com/Ima … planet.png
Please comment
-- Bekko
1,844 2006-07-18 08:34
Re: I hate computers! (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...
Looking nice
1,845 2006-07-18 08:31
Re: HTML instead of BBCODE (5 replies, posted in PunBB 1.2 modifications, plugins and integrations)
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 2006-07-18 08:28
Re: The Logout link has an amp; in it (5 replies, posted in PunBB 1.2 discussion)
Each (navigational) link should use &. The other ones simply don't use &
The quote link too:
<a href="post.php?tid=12413&qid=73089">Quote</a>
Just go check with w3c
1,847 2006-07-17 21:24
Re: Free PHP/HTML editor (99 replies, posted in Programming)
Zend Studio is slow as hell on XP =/
On Linux it's my first choice for PHP though
1,848 2006-07-17 20:28
Re: Free PHP/HTML editor (99 replies, posted in Programming)
I'm not liking Eclipse =/
*wanders off back to Dreamweaver*
1,849 2006-07-17 20:27
Re: PunBB "Userbar" (13 replies, posted in General discussion)
I'm guessing something went wrong when updating to 9.0.1 =/
1,850 2006-07-17 19:37
Re: PunBB "Userbar" (13 replies, posted in General discussion)
I made one myself... just messing around with CS2
Oh, and does it only happen to me that photoshop always wants to close when i press CTRL+Z? =/