6,401

(3 replies, posted in PunBB 1.2 troubleshooting)

I dont want to send the users id to my logout file, "?action=out&id=5576", when loging out and it dosn't seems to be necessary if I remove the code above.

Removing the is_guest thing will mess with things wink
And as for removing the checks on $_GET['id'], you can, but I can then post an image to login.php?action=logout and everyone would be logged out when they visited the thread tongue

Then host your own forums wink
Using MyPunBB is a tradeoff: you don't have to worry about webspace, etc but you lose the ability to add your own mods wink

Smartys wrote:

How is that at all related to this topic?
And anyway, you're using MyPunBB: that means you can't have subforums, since Connor hasn't installed the mod.
Plus, next time, ask for MyPunBB support in the MyPunBB forums: http://www.mypunbb.com/forum.php

How is that at all related to this topic?
And anyway, you're using MyPunBB: that means you can't have subforums, since Connor hasn't installed the mod.
Plus, next time, ask for MyPunBB support in the MyPunBB forums: http://www.mypunbb.com/forum.php

6,405

(13 replies, posted in Feature requests)

af3: if you're using set_default_user then you can use useragent as well wink

6,406

(114 replies, posted in PunBB 1.2 discussion)

There probably would be some changes, but that's why there's an update script wink

That crashed Firefox 1.0.7 when I tried it (well, froze it)
And crashed IE

Yup, my mistake tongue
Edited wink

6,409

(2 replies, posted in PunBB 1.2 troubleshooting)

Sounds like you messed up when modding it
Just upload a clean copy

6,410

(12 replies, posted in PunBB 1.2 show off)

lol, yeah tongue

You're mixing up the syntax for update and insert wink
The code should look like:

mysql_query("INSERT INTO $commenttable (name, comment, time, email, ip) values ('$name', '$comment', '$time', '$email', '$ip')") or die(mysql_error());

6,412

(4 replies, posted in PunBB 1.2 show off)

I registered the info
test/test

No, since it's a problem with your CSS settings (as Paul said). The settings aren't the same as on a default board, so it's not a bug wink

6,414

(69 replies, posted in News)

http://punbb.org/downloads.php
See the links that say "Patch" and "Hdiff"?

http://punbb.org/forums/viewtopic.php?id=8436

It had to do with you being in the online list twice

6,417

(16 replies, posted in PunBB 1.2 troubleshooting)

    <div class="block">
        <h2 class="block2"><span>Recent</span></h2>
        <div class="box">
            <div class="inbox">
                <?php include('http://www.kunstpodium.com/forums/extern.php?action=new'); ?>      
            </div>
        </div>
    </div>

That's what I see when I view source. In other words, your PHP tag is being parsed as HTML

6,418

(14 replies, posted in PunBB 1.2 bug reports)

Yes
Or multiple changed files
Or this:
http://punbb.org/download/hdiff/hdiff-1 … .2.10.html
Or this:
http://punbb.org/download/patch/punbb-1 … 2.10.patch

6,419

(69 replies, posted in News)

Yes, the patch or hdiff

6,420

(10 replies, posted in PunBB 1.2 troubleshooting)

bkhl wrote:

I looked at the "Mark topics as read" mod, but that isn't fully satisfactory either, since it throws away read/unread status when users log out.

As does every single other forum system I know of that uses the time you last viewed the forum to determine new post status.
Unless you want to work with HUGE arrays, you can't store new post data for every thread in an array. Not only would it take up a lot of space, it would take forever to search through as well.

However, to get what you want, all you have to do is tell the mod never to remove the data and the forum never to set last_visited

6,421

(38 replies, posted in PunBB 1.2 discussion)

http://opensourcecms.com/index.php?opti … amp;id=361
"Version 1.2.9"

As much as I hate doing work for people when it's something so simple...

<?php
$page = isset($_GET['page']) ? $_GET['page'] : false;
$act = isset($_GET['act']) ? $_GET['act'] : false;

if (file_exists('pages/'.$act.'/'.$page.'.php'))
{
    include 'pages/'.$act.'/'.$page.'.php';
}
else if (file_exists("pages/".$act."/index.php"))
{
    include("pages/".$act."/index.php");
}
else if (!$act && !$page)
{
    include("pages/news/index.php");
}
else
{
    include("pages/news/index.php");
}
?>

I should note that this code is hideously insecure and if you use it and someone realizes, you will be hacked

And if you're wondering about making it more secure, google "Directory traversals"

6,423

(16 replies, posted in PunBB 1.2 troubleshooting)

Shine wrote:

Nobody has an answer to my first question? :
How to realise to show the last 10-15 posts within a sidebar block within the forum itself. Actually the same as seen on http://punbb.org/ ,  but now within the forumsidebar itself. ??


The extern.php include code doesn't work within the forum itself and allow_url_fopen is enabled.
Any suggestions?

Grtz., Shine

It does work though
The fact that it doesn't work for you doesn't make it any less correct wink
extern.php is what Rickard uses for the homepage.

Now then, can I have the REAL URL to extern.php and the real URL to the page you're calling it from?
And php short tags are allowed by your hosting company, aren't they?

6,424

(10 replies, posted in PunBB 1.2 troubleshooting)

bkhl wrote:

So that's how 1.3 will work? That's nice to hear.

Rickard hasn't decided I don't think
And I doubt he'd use a database based option, since it adds an extra query per page (although he might, it's up to him). But IMO a cookie based option (like phpBB) is more likely

Ludo wrote:

without mod, only moderators and admin can have access to a category that public visitors can't have access to.

Ludo,

No

And yes, PunBB does allow for groups like that
You would create a group, then edit the forum and assign that group permission to read (and that regular members/guests can't) and then change the user group for people you want to see the forum to the new group