6,301

(5 replies, posted in PunBB 1.2 troubleshooting)

What browser are you using?

6,302

(180 replies, posted in PunBB 1.2 troubleshooting)

It should give you a "Bad referer" message on all operations but updating admin/options.

I'm not sure what good stripping out http:// or https:// from the Base URL would do. The Base URL should contain http:// or equivalent because it is the URL to the forums used in all outgoing e-mail.

6,303

(8 replies, posted in PunBB 1.2 bug reports)

That's by design. People have a tendency to fill out that form incorrectly and when they miss something I figured they wouldn't need to fill out the password fields again. I'm not sure. Someone reported it to me a while back and requested that I change it.

6,304

(2 replies, posted in PunBB 1.2 discussion)

If you have any suggestions as to how the style sheets can/should be modified for PunBB 1.2, this is the place to tell me. I hardly know any CSS, so if you make any suggestions, please include how the change should be implemented.

Paul made a few suggestions in this topic and number 2 on that list is already taken care of.

Edit: Perhaps I should note that what I'm asking for here isn't a complete rewrite of the markup/CSS such as the design Louis is working on (I hope! :D), but a fine-tuning of the current design.

No worries. I'm just glad we found the problem :)

The next release of PunBB will incorporate the fix.

6,306

(1 replies, posted in PunBB 1.2 troubleshooting)

You need to update "Base URL" in admin/options. Also, if you've tinkered with cookie_domain in config.php, you will need to update that.

6,307

(4 replies, posted in PunBB 1.2 troubleshooting)

Yes, you can have spaces in between words in the lang files. I'm not sure I understand what you mean.

Fixed it! Here's a quickfix. Open up search.php and go to line 191. There, replace

if ($word != 'and' || $word != 'or' || $word != 'not')

with

if ($word != 'and' && $word != 'or' && $word != 'not')

Aha, now I think I know! What is "Topics per page default" and "Posts per page default" set to in admin/options? If they're set to nothing, that's the problem.

It's actually a bug in PunBB. You shouldn't be able to set them to nothing.

6,310

(2 replies, posted in PunBB 1.2 discussion)

As I pointed out in the other topic, quick reply is only enabled for registered users. The reason for that is that it gives people incentive to register. If they register, they'll get access to more features such as the quick reply.

However, the "register as you post" thing is kinda nice. I'll consider it :)

I'm going to investigate it right now.

Could you try echoing out that query instead of executing it? I.e. replace:

$result = $db->query('SELECT id, poster, subject, posted, last_post, last_post_id, last_poster, num_views, num_replies, closed, sticky, moved_to FROM '.$db->prefix.'topics WHERE forum_id='.$id.' ORDER BY sticky DESC, last_post DESC LIMIT '.$start_from.', '.$disp_topics) or error('Unable to fetch topic list for forum', __FILE__, __LINE__, $db->error());

with

dump('SELECT id, poster, subject, posted, last_post, last_post_id, last_poster, num_views, num_replies, closed, sticky, moved_to FROM '.$db->prefix.'topics WHERE forum_id='.$id.' ORDER BY sticky DESC, last_post DESC LIMIT '.$start_from.', '.$disp_topics);

6,313

(2 replies, posted in Programming)

There's an end paranthesis missing in the if condition.

if ($website != "" && !stristr($website,"http://") {

should be

if ($website != "" && !stristr($website,"http://")) {

6,314

(5 replies, posted in PunBB 1.2 troubleshooting)

Where did you try this, in these forums or somewhere else? Also, which browser are you using? Can you try with a different browser?

6,315

(300 replies, posted in PunBB 1.2 discussion)

Updated.

6,316

(16 replies, posted in Feature requests)

0zone wrote:

I do save the templates to disk, but instead of including them each time they are needed I load them on their first request and then eval them. And yes eval is faster than including because include reads the file AND evals it.

And how does that differ from reading the file manually and then evaling it?

Edit: *hits head* Now I see what you mean. That's true. However, your method doesn't at all take advantage of the benefits of PHP accelerators such as mmcache, PHPA and Zend Optimizer.

0zone wrote:

My board is not slow at all mind you, it gets an average of a 0.025 loadtime. And yes, preg_replaces are slow, but as they are only called once when the template is compiled it doesn't matter.

I never said your board was slow. I just said using templates in that matter, or any matter for that matter (no pun intended), will be a lot slower than just outputting static markup.

Also, the average loadtime for your board doesn't tell me anything. 0.025 could mean it's blistering fast, but it could also mean it's incredibly slow. Heck, I can get huge boards like vBulletin or IPB to load that fast under the right circumstances. Loadtimes are only interesting when comparing them to other boards on the same hardware and with the same data. The variables that affect loadtimes are endless. What kind of hardware the board is running on, the versions of all used tools (Apache, PHP, MySQL etc.), whether a PHP accelerator is used or not, the number of users/topics/posts in the database, the number of board features enabled, what kind of concurrency was used when running the benchmarks (i.e. what value for -c when running apachebench), etc. etc. etc.

We could talk about this forever. The fact remains: PunBB will not have a template system in any forseable future. I have to draw the line somewhere if PunBB is to remain the "faster, smaller and less graphic alternative". PunBB 2.0 (whenever that may be) will most likely be styled completely with CSS and then a template system won't be needed.

Nice to see a mod that works for three different versions of PunBB :D

Railer: The changes made in PunBB 1.1.2 were few and small, so there shouldn't be much problem installing it. If there are any problems, they will most likely be line numbers not matching up exactly.

6,319

(10 replies, posted in PunBB 1.2 troubleshooting)

I just tried registering with a username containing ']['. Might I ask exactly what username he was using before you changed it? Also, what PunBB version are you running?

6,320

(17 replies, posted in Archive)

Ok, jag antar att du har pekat domänen och eventuella subdomäner mot ditt IP. När du gjort det är det bara en fråga om att redigera httpd.conf. Min ser ut såhär för www.punbb.org och forums.punbb.org:

NameVirtualHost *

<VirtualHost _default_>
    DocumentRoot /sökväg/till/siten
    ServerName www.punbb.org
</VirtualHost>

<VirtualHost *>
    DocumentRoot /sökväg/till/forumet
    ServerName forums.punbb.org
</VirtualHost>

6,321

(17 replies, posted in Archive)

Jag antar att du menar en subdomän eller? T.ex. bla.gardell.com?

6,322

(16 replies, posted in Feature requests)

0zone wrote:

Rickard, thats not true, my template engine is only 20 lines long, its also fast and even supports if statements.

It's not the functions for loading/compiling etc. I consider a large addition to the code, it's rewriting every single script so that they utilize the templates.

You're executing no less than 8 preg_replace's for every single template and doing disk IO to load/save. I wouldn't call that fast when comparing it to direct static output. Say a page is built up of 20 templates. That equals 160 calls to preg_replace and 20 disk reads. That code will be MUCH slower than direct static output.

If I were you, I would save the compiled templates to disk and then just use include/require instead of loading them into memory and using eval(). That way PHP "accelerators" such as mmcache and Zend Optimizer can cache the PHP bytecode for the templates and your pages will generate much faster.

Please enable DEBUG mode and try again. It won't work then either, but you'll get a more detailed error message.

6,324

(4 replies, posted in Feature requests)

Something like this? http://punbb.org/forums/viewtopic.php?id=2821

6,325

(10 replies, posted in PunBB 1.2 troubleshooting)

Hmm, I thought I had tried every possible combination of characters (well, more or less). I'll have a look at it tonight.