Not real programming language but its still funny:

You try to shoot yourself in the foot but users keep editing out the gun.


You shoot yourself in the foot, again, again, and again. (because you can't include common headers + footers)


(2 replies, posted in Test forum)


preformat me plz



(74 replies, posted in Feature requests)

tigermatt wrote:
hyapadi wrote:

Urgh... i hate mods! Modules is still ok, but mods? No thx....
It makes the upgrade process really painful.
Am I right? :<

I used updated to PunBB 1.2.10, and realised that I needed to make my Easy BB Mod work again with the post.php page. Unfortunately, I couldn't find the mod, and had to download and install it again, basically wrecking my code even more. Now, I have removed all of the forum files, cleared the database out, and then reinstalled the forum without any mods. Much easier! wink

Agreed big_smile, I one from starting from stratch as well


(52 replies, posted in PunBB 1.2 discussion)

thanks again, awesome update

yes, the poll mod

So for some reason guests can see guests post but register users, and admins cant?


(52 replies, posted in PunBB 1.2 discussion)

FredrikK wrote:
devinkray wrote:

i was in sweden over the summer, can't wait to go back!

Happy to here you like my beloved country! The home of Skurt and Rickard Andersson!

cheers, i went to stockholm and ostersund Ostersund was great i went to a 2 day festival, got drunk tongue

Anyways thx again!

yes, but i goto include the main file with all my functions into main.tpl and nothing shows up...

something like this


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "">



<html dir="<pun_content_direction>">
<meta http-equiv="Content-Type" content="text/html; charset=<pun_char_encoding>" />

<script type="text/javascript" src="include/board.js"></script>



<div id="punwrap">
<div id="pun<pun_page>" class="pun">

<div id="brdheader" class="block">
        <div class="box">
                <div id="brdtitle" class="inbox">








bittorrent.php holds the stdhead and the stdfoot functions but when i upload this, nothing changes to the forums at all sad


(1 replies, posted in Feature requests)

Is there something like this available in extern? i doubt it, how hard would this be to make?


(52 replies, posted in PunBB 1.2 discussion)

nice job, i was in sweden over the summer, can't wait to go back!

Ah ha! i fixed my problem by making

$punbb = pun_hash($chpassword);


$punbb = pun_hash($_POST['chpassword']);

i don't know why it diddnt like the $chpassword tongue

Hello I have customized punbb with my site but when a user trys to change his password in my site not the forums the password always gets set to


here is the code ive been working on

 if (strlen($chpassword) > 40)
                bark("Sorry, password is too long (max is 40 chars)");
        if ($chpassword != $passagain)
                bark("The passwords didn't match. Try again.");

define('PUN_ROOT', './punbb/');         ////Make sure you have directed to the right folder
require PUN_ROOT.'include/common.php';  ////For the Functions
define('PUN_QUIET_VISIT', 1);    ////Updates the users last log in date in the forum

        $ras = mysql_query("SELECT username, password, id, save_pass FROM punbb_users WHERE username = '$CURUSER[username]'");
        $raw = mysql_fetch_array($ras);

        $save_pass = $raw['save_pass'];
        $user_id = $raw['id'];
        $punbb = pun_hash($chpassword);
           mysql_query("UPDATE punbb_users SET password = '$punbb' WHERE username = '$CURUSER[username]'") or sqlerr(__FILE__,__LINE__);

        $expire = ($save_pass == '1') ? time() + 31536000 : 0;
        pun_setcookie($user_id, $punbb, $expire);

        $sec = mksecret();
        $passhash = md5($sec . $chpassword . $sec);

        $updateset[] = "secret = " . sqlesc($sec);
        $updateset[] = "passhash = " . sqlesc($passhash);
        logincookie($CURUSER["id"], $passhash);

        mysql_query("UPDATE users SET " . implode(",", $updateset) . " WHERE id = " . $CURUSER["id"]) or sqlerr(__FILE__,__LINE__);

this should be updating the punbb_users table too with the correct password but it doesnt know matter what i type for a password it always stays to...


the weird thing is that it logs in the user fine to both tables, but if you log out of the forum you cant log back into the forum(wrong password)...

so im asking what is wrong with my code?

i tried doing it the other way around but it diddnt work too good, maybe ill give it a go sometime

w00t in fact im working on a integration

ps dont use torrent trader they are code stealers and money making losers tongue


(8 replies, posted in PunBB 1.2 bug reports)

thanks for the info, my integration is fixed tongue


(1 replies, posted in PunBB 1.2 show off)


how did you integrate your sites footer with punbb footer, ive been trying to do that but no luck..

log in or sign up tongue

even better i changed it to

In your case, just delete the following from your stylesheet

/* IEWin Font Size only - to allow IEWin to zoom. Do not remove comments \*/
* HTML .pun {FONT-SIZE: 100%}
/* End IE Win Font Size */


project update:


(2 replies, posted in PunBB 1.2 troubleshooting)

thx for the fast answer


(2 replies, posted in PunBB 1.2 troubleshooting)

Just wondering on my own site my password lenght is varchar(32) just wondering if punbb's can be set form 40 to 32 with out a problem...

I would like to know for easyer integration

or changing it would matter?

2. The font is small in IE but not in Firefox. I read this and I cant understand what to do.

I hope someone can help me out.

extra feilds like what¿ please describe.


(0 replies, posted in PunBB 1.2 troubleshooting)

Im trying to integrate this in my site without frames


require "include/bittorrent.php";
stdhead("Punbb Forum Hack");


switch ($page)
        case "index":


but when i goto

its in my site but displaying these errors

Warning: main(./include/common.php): failed to open stream: No such file or directory in C:\WM\www\punbb\index.php on line 26

Warning: main(./include/common.php): failed to open stream: No such file or directory in C:\WM\www\punbb\index.php on line 26

Fatal error: main(): Failed opening required './include/common.php' (include_path='.;c:\php4\pear') in C:\WM\www\punbb\index.php on line 26

Hopefully someone can hel me out i donno what the problem is

UPDATE, i got it thanks for the help tongue