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?
76 2007-01-08 20:31
Re: Do the SEF URLs not function for anyone else? (4 replies, posted in PunBB 1.2 discussion)
77 2007-01-08 05:00
Topic: Do the SEF URLs not function for anyone else? (4 replies, posted in PunBB 1.2 discussion)
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).
78 2007-01-08 04:44
Topic: A printer-friendly version of threads. (27 replies, posted in Feature requests)
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.
79 2007-01-07 18:10
Re: Remove nested quotes when qouting someone. (2 replies, posted in Feature requests)
Thanks a lot!
80 2007-01-07 07:07
Topic: Remove nested quotes when qouting someone. (2 replies, posted in Feature requests)
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.
81 2007-01-02 03:20
Topic: How would you go about on doing this? (str_replace related) (2 replies, posted in Programming)
I want to have multiple emoticons to represent an image, such as 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');)
82 2007-01-02 03:12
Re: Should caching the forum stats show any visible improvements? (7 replies, posted in PunBB 1.2 troubleshooting)
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 2007-01-01 18:59
Re: Zapping... (8 replies, posted in PunBB 1.2 troubleshooting)
I changed the source myself, actually. Using === is faster(marginally) than == while comparing strings.
84 2007-01-01 18:57
Topic: Should caching the forum stats show any visible improvements? (7 replies, posted in PunBB 1.2 troubleshooting)
Topic says it all.
85 2007-01-01 17:56
Re: Zapping... (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 2007-01-01 05:56
Re: I want punbb!!!! (26 replies, posted in PunBB 1.2 discussion)
http://punbb.org/downloads.php
Download the script here.
87 2007-01-01 03:28
Topic: Zapping... (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.
88 2006-12-27 03:21
Re: [BUG?] Cannot log out when you are banned. (3 replies, posted in PunBB 1.2 discussion)
Ah ok, sorry to waste your time.
89 2006-12-27 03:07
Topic: [BUG?] Cannot log out when you are banned. (3 replies, posted in PunBB 1.2 discussion)
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.
90 2006-12-26 07:38
Topic: When comparing strings use triple equal signs instead of double. (3 replies, posted in Feature requests)
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.