Not real programming language but its still funny:

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

-----

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

2

(71 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

3

(52 replies, posted in PunBB 1.2 discussion)

thanks again, awesome update

yes, the poll mod

http://img40.imageshack.us/img40/2833/untitled17fr.gif

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

6

(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

main.tpl

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<?
include('.../include/bittorrent.php');
stdhead('Foums');


?>

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


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

</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>
                 <pun_navlinks2>
                  <pun_status2>
        </div>
</div>



<pun_announcement>

<pun_main>

<pun_footer>

</div>
</div>

</body>
</html>

<?

stdfoot();

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

8

(1 replies, posted in Feature requests)

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

9

(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);

to

$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

da39a3ee5e6b4b0d3255bfef95601890afd80709

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...

da39a3ee5e6b4b0d3255bfef95601890afd80709

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 tbdev.net in fact im working on a integration

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

http://www.tbdev.net/index.php?showtopic=2508

14

(8 replies, posted in PunBB 1.2 bug reports)

thanks for the info, my integration is fixed tongue

15

(1 replies, posted in PunBB 1.2 show off)

GG!

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 */


tongue

project update:

http://www.tbdev.net/index.php?showtopic=2416

20

(2 replies, posted in PunBB 1.2 troubleshooting)

thx for the fast answer

21

(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?

http://img371.imageshack.us/img371/714/punbb9om.jpg

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.

24

(0 replies, posted in PunBB 1.2 troubleshooting)

Im trying to integrate this in my site without frames

punbb.php

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

$page=$_GET['page'];

switch ($page)
{
        case "index":
        require_once('./punbb/index.php');
        break;
        default:
        require_once('./punbb/index.php');
}


stdfoot();
?>

but when i goto

mysite.com/punbb.php?page=index

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

Ok, what im basically doing is integrating punBB and TBdev

What is TBDev?

http://www.tbdev.net

It is a stable, open source, bittorrent tracker.

What's punbb?

You should know that tongue

What I am working on


Things i have done:

-Integrated tbdev's takesignup.php so when a user signs up, s/he is put in the punnbb_users table so passwords and username are the same for both

-Integrated the loging out, so when the user logs out s/he logs out of both.
-Integrate the Logins, so it will only use TBdev's log in page to log in the forum and the tracker

Things I plan on doing:

-For existing trackers with members when a user log's in the details(username,regdate ect..) get sent right over to the punbb_user's table


Expect arrival: Saturday tongue

Depending if you want to sign up or not i have the beta here:

http://www.tbdev.net/index.php?showtopic=2382