7,751

(6 replies, posted in General discussion)

When the cat's away.... :P

7,752

(0 replies, posted in News)

One of the more active PunBB modders, Cactuz, just opened up the gates to his website The PunBB Resource. PunRes (as I will call it from now on) aims to be the number one website for modifications, styles and other hints and hacks for PunBB.

The website offers, aside from hosting of mods and other files, an excellent tool called ModGenerator. With ModGen you can create nicely formatted mod installation instructions with ease. PunRes also offers ModViewer which is a tool for aiding in the installation of mods.

If you are interested in developing mods for PunBB or if you just want to download a nice style for your forum, I recommend that you pay PunRes a visit!

The website is located at http://punres.cactuz.nu/.

7,753

(6 replies, posted in General discussion)

I'm leaving for my brothers wedding in an hour, so I won't be posting anything today/tonight (at least not on purpose :P)

7,754

(16 replies, posted in Feature requests)

Why, sure :)

set_include_path(get_include_path().':../forums');

@include 'config.php';

// If config.php doesn't exist, PUN shouldn't be defined
if (!defined('PUN'))
    exit('config.php doesn\'t exist or is corrupt. Please run install.php to install PunBB first.');

define('PUN_DONT_UPDATE_COOKIE', 1);    // This will make sure that the forum doesn't set a new cookie for the visiting user
require 'include/common.php';

$result = $db->query('SELECT id, subject FROM '.$db->prefix.'topics WHERE moved_to IS NULL ORDER BY last_post DESC LIMIT 14') or error('Unable to fetch topic list', __FILE__, __LINE__, $db->error());

while ($cur_topic = $db->fetch_assoc($result))
{
    if ($options['censoring'] == '1')
        $cur_topic['subject'] = censor_words($cur_topic['subject']);

    if (strlen($cur_topic['subject']) > 30)
        $cur_topic['subject'] = trim(substr($cur_topic['subject'], 0, 24)).' ...';

    echo "\t\t\t\t\t\t\t".'<b>·</b> <a href="http://punbb.org/forums/viewtopic.php?id='.$cur_topic['id'].'">'.htmlspecialchars($cur_topic['subject']).'</a><br>'."\n";
}

Please note two things however:

1. You have to enter the path to your forum root directory on the line stating "set_include_path". My path there is ../forums. Edit that line and enter the path to your forum root dir relative to where the script is located. This procedure is far from perfect. It has been greatly improved in an upcoming version of PunBB.

2. If you have any admin/mod only forums, topics from those forums will also be displayed (even if the visiting user is only a guest or a regular user). I'm going to fix that, but right now, I just don't have the time. I'm off to a wedding.

7,755

(9 replies, posted in PunBB 1.2 discussion)

Whoops, I seem to have missed this one. Actually, PunBB does not support putting PHP code in the templates. If you want that you'll have to look at the source code for that specific "place" and put your PHP code there. What is it you want to do? Perhaps I can give you some tips.

Ah, the first mod to use Cactuz' ModGenerator, excellent!

One tiny detail though. You should probably just check the boolean $cookie['is_guest'] since $cur_user will be completely empty if it's a guest. It works the way you posted, but it's prettier with is_guest :)

7,757

(2 replies, posted in Feature requests)

Take a look at the front page now and you will find information about the website I was talking about.

Updated.

7,759

(37 replies, posted in General discussion)

Farch wrote:

Kennel
it was on Windows 2003 (not SP1) IE 6.0.3790 (not SP1) Eng

now I use Mozilla 1.5a and Opera 7 for tests

and all going normal :)

Ok, good :)

Farch wrote:

also I thinks that many, many people will move up to u board while they understand what is GNU GPL, and how much cost IBF and VB , phpBB is not a forum IMHO completely =) it`s toooooo sllooo...w

Hehehe :P

Farch wrote:

only u need is famous , I have a two sites in russia (3000 visits/day) and some ring of russian programmers on php, so I need from u banners, buttons etc for u advertisment

Ah, of course! I'll get to work on that right away.

7,760

(2 replies, posted in Feature requests)

Farch wrote:

[c] text [/c] aligns text by center (etc <div align="center"> text </div>)
[l] text [/l] aligns text by left (etc <div align="left"> text </div>)
[r] text [/r] aligns text by left (etc <div align="right"> text </div>)

[hr] makes a nice <hr> tag also :)

[google=blabla] search the google.com for the "blabla" words

I can tell you now that I probably won't add any of these to the source code. Making a mod shouldn't be too hard though. Just look at how tags like bold and underline are dealt with in include/parser.php

Farch wrote:

and I would like to know how to remove an redirects after Login / LogOut / POst Submit etc

I don`t want wait on my own board :)

Try setting "Redirect time" to 0 in admin/options.

Farch wrote:

as for this simple tags I think I will write them in next 4-6 hours and public here my first so called HACK for the pBB (Kennel can I name u board pBB ? ;) )

Yeah, do that. I recommend that you wait a until later tonight before you post the mod as I will soon unveil a website (created by Cactuz) dedicated to modding. It has some cool stuff you should check out before writing the mod installation instructions.

7,761

(37 replies, posted in General discussion)

Farch wrote:

U board just ROX .. no way to fudforum and others ;)
ibf & phpbb & vb are little pussycats =)

Hehe, thanks :)


Farch wrote:

when I installed it on localhost I have some problems but I refresh the page two times (at two places) and all go correctly.. now is all working fine

the problems was about login and logout

Hmm, ok. What browser are you using?

Hehe, I'm so stupid. I can't even set up my own forum correctly :-)

Anyway, I fixed it now, so you can upload.

WOW! This looks awesome.

7,764

(1 replies, posted in General discussion)

Thank you :)

7,765

(3 replies, posted in PunBB 1.2 show off)

One thing however. From the copyright FAQ in General Discussion:

Q: May I add my own copyright to the page footer?

Yes, but you may not alter the original copyright in such a way that it loses it's original "meaning". It must, in other words, still be absolutely clear who is the copyright holder of PunBB. Adding an additional line with your copyright notice is ok.

When I read the copyright notice in your forum, I get the idea that DatorWeb.com is the copyrightholder of PunBB. I'm not sure what you should change it to though :)

7,766

(2 replies, posted in Feature requests)

Well, exactly which tag or tags that are causing the problems I don't know. However, both the forums and the main site here at punbb.org use tags that are not available in HTML 1.0. Making an alternate version is a lot of work and will involve editing of all scripts.

7,767

(11 replies, posted in Archive)

Fan, jag hade en gång en skön screenshot på dialogrutan som poppar upp i IE när Gator vill installera sig. Det finns en checkbox där det står "Always trust content from Gator Incorporated" eller nåt sånt. Skrattretande att det inte finns en "Never trust..." :)

I will look at this for the next version of PunBB. If HTTP_REFERER isn't "valid", it should redirect to index.php.

For some reason your browser/proxy/firewall/anti-popup software must be messing with HTTP_REFERER. A quick fix for your problems is:

1. Open up login.php.
2. Go to line 70.
3. Replace: redirect($_POST['redirect_url'], $lang_login['Login redirect']);
3. With: redirect('index.php', $lang_login['Login redirect']);

It's in include/parser.php

7,771

(11 replies, posted in Archive)

Olagligheter och olagligheter. Jag tror nog herr rumpelstiltskin driver med oss. Vill man ha crack till Gator har man inte riktigt alla hästar i stallet om vi säger så :)

I know. Just post a sticky topic with the subject in ALL CAPS! Nah, just kidding. A mod for this would be cool :)

Very cool! I will add this and the chinese simplyfied language pack to the download page. Thank you very much!

7,774

(9 replies, posted in Archive)

Jag är lite stressad nu, så jag hinner inte titta på detta. Jag tar en titt lite senare i eftermiddag.

7,775

(0 replies, posted in News)

Thanks to the users Daclis and Alexander Zhelnov we now have Chinese simplified and Russian language packs for PunBB. Thank you very much guys! You can download the language packs from the download page.

Please note that search does not work when using a multibyte character encoding like chinese in PunBB 1.0. The problem with search will be resolved in the next version of PunBB. If you are running a board in Chinese, I therefore recommend that you disable search in admin/options.