176

(6 replies, posted in General discussion)

The biggest and most reliable US dedicated server outfit is probably: http://www.theplanet.com

Hmmm. Maybe you should perhaps have a look at Rickard's News Generator plug-in -  http://punbb.org/downloads.php - and see if you could tweak/hack it to meet some of your needs. It generates pure static HTML out of punbb forums.

Just ensure something like eAccelerator, APC or Xcache are installed on your PHP setup and you will get much the same benefit as designing something akin to WP Cache for punBB, with far less hassle. All are popular and common PHP caches.

179

(5 replies, posted in PunBB 1.2 show off)

It's very well done. An attractive light layout that is easy to use too. I like for example their very big-lettered registration form.

The layout of their viewtopic.php would however benefit by having a darkish 1 or 2 pixel border around it IMHO - posts blend into the background too much, which is not easy to read.

180

(2 replies, posted in PunBB 1.2 show off)

Attractive typography, layout and colours. Page performance is also good via your light CSS and minimal graphics. Forum could be variable width though - your header is but the forum isn't.

181

(42 replies, posted in PunBB 1.2 show off)

Nice. Thanks for that.

But grrrr - I notice that the punbb devs still aren't including the forum **category** in the navigational bread-crumbs when you are in a topic.

All you see is: Forum root > Forum Name, where you should see: Forum root > Forum category > Forum name.

Or in the case of your example forum: PunDemo.org - PunBB example site > Test category > Test forum.

The absence of this is as annoying in 1.3 as it was in 1.2.x. sad

Even if the forum category name in the breadcrumb trail wasn't actually a clickable link to anything in punBB, but just displayed the simple category name, it would still be valuable to know.

182

(10 replies, posted in Feature requests)

I'm curious: what would the architecture of the site need to be to accomplish this?

Also couldn't you just 'load-balance' MySQL across 2 servers?

Maybe you could also just add this little mod to your register.php:
http://punbb.org/forums/viewtopic.php?id=16076

It is not a graphical CAPTCHA, but is is easy to setup and requires no permissions chmodding smile etc.

184

(7 replies, posted in PunBB 1.2 show off)

Meowmeow wrote:
sirena wrote:

Interesting. Very minimal. Looks a lot like the default 1.3 style.

My answer is NO. Here's the 1.3 version:

Oops. Last time I looked at 1.3 (long ago) it looked different, I'm sure.

MattF: Maybe my monitor is a little too bright or something but I just find the light-grey upon light-grey upon white with faint coloured fonts etc a little bit un-easy on my tired old eyes.

185

(7 replies, posted in PunBB 1.2 show off)

Interesting. Very minimal. Looks a lot like the default 1.3 style.

Suggestion: adding a little dash of colour into the style probably wouldn't kill you smile

186

(3 replies, posted in PunBB 1.2 troubleshooting)

Sounds like you may be running up against some memory size limits defined in either your PHP (php.ini) or MySQL (my.cnf) setup. You may beed to check what these are with your host.

I am pretty sure the PunBB AP_Backup script doesn't have anything to say about memory limits.

raymond wrote:

sirena:
Where should I check to confirm the existence of a PHP cache? I got in the Show info but loads of info appearing...

You should see a heading in the phpinfo output that looks similar to this if eAccelerator is there:

eAccelerator eAccelerator support enabled
Version  0.9.5 
Caching Enabled  true 
Optimizer Enabled  false 
Memory Size  16,777,180 Bytes 
Memory Available  16,772,608 Bytes 
Memory Allocated  4,572 Bytes 
Cached Scripts  1 
Removed Scripts  0 
Cached Keys  0 

etc etc

Having a PHP cache at work can certainly speed up PHP-dependent pages, sometimes even when you have poorly performing or problematic code on your page like you seem to.

But as a temporary fix until you sort the problems out, I would suggest that you comment out the Topic Preview mod on your live forum.

I'd also suggest that you set up a test punbb site somewhere else on your server, load all your mods etc onto it, inc the Topic preview mod, and debug it all there.

When you have it figured out all its bugs, re-introduce the mod into your main forum. It's no fun for anyone (esp forum visitors) to be debugging server problems on a live forum smile

Thanks for that info MattF - as usual you are super-helpful and on-the-ball. smile

You may also like to check on what your mods are doing - I notice your board has quite a few and they can be coded poorly.

What, for example, is the query count involved in opening that General Forums page when that topic preview mod is involved?

You should also be able to confirm the existence of a PHP cache by having a look at your phpinfo output under the 'Show info' link under Admin | Environment.

Also your page load pulls in several off-site javascripts - sometimes they may also be a problem too.

Who is your host, BTW?

Also:
Calendar 2.0 thread at PunRes at:
http://www.punres.org/viewtopic.php?id=208

and
PunBB Calendar 2.0 Categories Add-On:
http://www.punres.org/viewtopic.php?id=3864

Both of course fully integrated with PunBB.

I don't think you need to have a fiendishly complicated calendar like some of the ones you have looked at, BTW.

redneck wrote:

I'll noodle around on WHT some more, thank you very much.

No problem. As a final aside, when I have looked for hosts, I always include a Google search on a term like "HOST NAME problems" -eg "Dreamhost problems" or "Media temple problems" on any host that looks interesting. It's always revealing.

How long is a piece of string?

Your bandwidth requirements will potentially vary enormously according to a lot of things.

You can make some basic assumptions and do a few simple calculations though on the back of an envelope.

Using your own numbers, if you assume the page weight of a vanilla punbb viewtopic.php page (eg this topic itself) using the standard Oxygen style, with say 10 posts per topic, you are looking at a page weight of only about 30k per page view, including style sheets. (If your server has gzip compression turned on though on its pages that is only about 20k per page or MUCH less). So (very simply) 50 users browsing that same page would potentially pull down 50x30k = 1.5MB.

Using your hypothetical example, if 50 people posted a new post 10 times a minute for 1 hour (=50x(600x24) or 720,000 posts PER DAY = very high traffic!!!!!!) you are talking 50x[(10x30k)x60]=900MB/ hour or 21GB/ day simple bandwidth.

However if you meant 10 posts a minute TOTAL (ie 600 posts /hour ie 14400 posts /day) that would represent 14400x30k = 400MB /day. That's still quite a busy forum (busier probably than any punbb forum in the world), but not a lot of bandwidth - 12GB/ month or so.

But as I said - how long is a piece of string. If your forum has a graphically rich style with a huge header graphic and all your users have 20kb avatars enabled and you have lots of ads pulled off your own server per page view and a chatbox going and god knows what other mods running, a typical page view may represent 150kb. So you should multiply the above numbers by 5. If you host images on your forum via a gallery plugin or something, typical page views may represent 1MB or more of content. So you could need to multiply the above numbers by 30...

But complicating the calculation is the impact of server caching and compression. At various points along the way the pages generated by punBB will probably be compressed (by a PHP opcode cache or by Apache) and/or cached in one way or another. These usually will work to significantly reduce the actual bandwidth needed to serve x amount of punBB page views.

So any host that offers you 10GB a month bandwidth will probably give you lots of room.

In terms of finding a good host, just lurk around http://www.webhostingtalk.com - like every one else does smile, including mosts hosts - and keep an eye on the user reviews and also the specials various hosts offer from time to time in the 'Web Hosting Offers' forums. Also choose a host with a good online support/knowledge base and AN ACTIVE, PUBLIC USER FORUM. That can be a life-saver.

Oh, and you may find bandwidth to be the least of your worries if you anticipate running a busy forum... You will also need to start worrying about stuff like Apache and PHP and MySQL performance and optimization, and CPU load too. PHP and MySQL can be real performance pigs and will usually choke a busy forum long before it hits any bandwidth ceiling....

http://www.theunwired.net/forum/

Nicely integrated into the layout of the rest of the site.

Very dark and Goth. You might be sending people the wrong message with that style smile

Meowmeow wrote:

If we don't use, how will we find problems?

Wait until they go to 1.3 alpha/beta or 'Release Candidate' stage. I guess ?!?

extern.php?

197

(10 replies, posted in PunBB 1.2 show off)

Ugh. Popup ads.

MattF wrote:

Numbers are caseless. big_smile

Cool. But it never pays to check. Programming languages often have idiosyncratic rules about number formats, data structures etc.

... If, (and I know not the exact answer to your second statement), there is a problem with certain characters sets, (although I can't see how), then there are numerous other places where PunBB would fall on it's arse for using the same function. big_smile

Aha.

I just based my observation on some of the comments on the function from non-ASCII users visible at:
http://docs.php.net/manual/en/function.strtolower.php

The comments seem to indicate possible issues with Polish, Slovenian, Croation, Cyrillic, Chinese etc. Anyway, I know it will work for me at least with my language setup:)

But for others it's worth at least testing it out to see if it will work in your preferred language before you deploy it.

Thanks MattF. That seems a good solution.

I guess the strtolower won't affect handling of numeric codes?

NB: from a quick look at the PHP manual, if you use the function above, and the returned code needs to be in a non-ASCII character set (eg Chinese, Arabic etc), strtolower may not work reliably.

Hmm. Not sure how to do that in PHP.

Easy (non-PHP) way: tell users in the hint (eg 'lowercase only') how to enter the code. Or just user numeric codes.

Maybe a PHP guru will be able to assist in allowing different alpha case for the 1st character of the code..

But the downside of this approach is that it weakens your anti-spambot code. PunBB passwords for example are case-sensitive, for good reasons I guess.