Yes, is it SVN and yes, I uploaded the .htaccess file. I can access the admin panel, but that's just about it. So is it really not finished or is it a problem on my part?

Well, I typed up a 10-minute report of my error, but then my computer crashed and now I don't feel like typing another one, so I'm going to give you my problem in a nutshell:

I can't view any forums(../forum/1) because I get a 404 error; I can't view any topic because I get a PunBB error message saying 'Bad request' or similar; I can't update my any of my settings when SEF is enabled (I must disable it in the cache); I can't view any user profiles(../user/1) because I get 404 error

So basically SEF URLs are broken (for me, anyway).

A seperate parser that optimises the page for printing/saving is basically what I mean. I have checked punres for a similar mod but I couldn't find one, so yea.

Thanks a lot!

I'm not sure if 1.3 has this option as I screwed around with the admin panel and now it's not working anymore. But if not, it would be neat to have one.

I want to have multiple emoticons to represent an image, such as sad and :'( all linked to sad.png. This is what I've tried:

<?php
$array1 = array(':)', ':D', array(':(', ':/'));
$array2 = array('happy', 'exicited', 'sad');
echo str_replace($array1, $array2, ':) :D :( :/');

//happy exicited :( :/
?>

It doesn't output what I want (happy excited sad sad). Is this because str_replace doesn't handle multi-dimensional arrays? If so, what is the most efficient way of doing this? Just replicating the value? (i.e $array2 = array('happy', 'exicited', 'sad', 'sad');)

Yes, that and the 'stuff'(for lack of a better word) are exactly what I meant. But now I've changed my mind - there's no point in caching such dynamic values (like total number of posts) since it changes so rapidly, there will be only a small increase in server load (heck, maybe even an increase with all that disk usage). And if your forum isn't very popular, recalculating the stats won't really affect your others users' experience, if at all. But things like moderators, that have a semi-static value, should be cached.

83

(8 replies, posted in PunBB 1.2 troubleshooting)

I changed the source myself, actually. Using === is faster(marginally) than == while comparing strings.

Topic says it all.

85

(8 replies, posted in PunBB 1.2 troubleshooting)

I believe I've found the problem. On line 48 in admin_reports.php, where it says

    if ($zapped === '')

i've replaced with

    if ($zapped === null)

And it worked. Did others have this problem or am was I the only one? Weird.

86

(26 replies, posted in PunBB 1.2 discussion)

http://punbb.org/downloads.php

Download the script here.

87

(8 replies, posted in PunBB 1.2 troubleshooting)

I 'zapped' a report that I created but the report still stays in the 'New Reports' section. Anyone know why? I have no mods installed, except for a BBCode mod, so it's basically a clean version of PunBB.

Thanks in advance.

Ah ok, sorry to waste your time.

If you are logged into a banned account, you cannot log out unless you delete the cookie.

Reason why:

In login.php, 'include/common.php' is executed before checking the GET inputs. 'common.php' executes function check_bans();, which (if user is banned) executes function message();, which finally prints the ban message and terminates the script. This way, the GET inputs will never get checked and you will never log out.

I don't know if this is intentional or not. If it is, I can see your reasonings and I agree with them, but you should make that optional.

Triple equal signs compare strings faster than double equal signs. There are about 300 cases of using double equal signs when comparing strings in the script as a whole and if you replace all those with triple equal signs, processing will become faster and will allow even more simultaneous queries. You can do this easily by using a text editor that has a replace in all documents feature and replacing something like == ' to === ' and then !=== ' to !== '.

Sorry for my bad wording; it's 3AM and I'm exhausted. By the way, I love your script :thumbsup:

Also, a 'Disable View Count' feature would be nice since the views aren't unique which kinda defeats the point in the first place.