I've struck a few probs getting mega-pun-final installed on my local WAMP test server - errors like:

Parse error: syntax error, unexpected $end in C:\wamp\websites\megapun1\include\user\newsbox.php on line 77

when I want to go to the forum index page, or

Parse error: syntax error, unexpected $end in C:\wamp\websites\megapun1\Links.php on line 301

when I want to browse the links page. it looks to me like there is something amiss in the way that footer.php is beeing pulled in or called.

The contact form also shows its PHP code to me:

\n"; echo "\n"; foreach ($fields as $field){ echo " ".$field[0].$field[4]."  \n "; switch ($field[2]){ case "line": echo ""; if (isset($error[$field[1]])) echo "
".$error[$field[1]]."

etc etc, which is not useful to me smile

And when I login I always get wonderful stuff like this in the header above most pages:

; ?>'; ?>query('SELECT COUNT(id) FROM '.$db->prefix.'messages WHERE showed=0 AND owner='.$pun_user['id']) or error('Unable to check for new messages', __FILE__, __LINE__, $db->error()); if ($db->result($result_messages, 0)){ $tpl_temp .= "\n\t\t\t\t".'

Apache also shows up many many 404 errors like this:

[Tue May 08 08:16:34 2007] [error] [client 127.0.0.1] File does not exist: C:/wamp/websites/megapun/img/'.$pun_user['style'].', referer: http://localhost/megapun/index.php
[Tue May 08 08:17:02 2007] [error] [client 127.0.0.1] File does not exist: C:/wamp/websites/megapun/img/'.$pun_user['style'].', referer: http://localhost/megapun/admin_index.php
[Tue May 08 08:17:34 2007] [error] [client 127.0.0.1] File does not exist: C:/wamp/websites/megapun/img/'.$pun_user['style'].', referer: http://localhost/megapun/admin_loader.php?plugin=AP_Adsense_Options.php
[Tue May 08 08:18:09 2007] [error] [client 127.0.0.1] File does not exist: C:/wamp/websites/megapun/img/'.$pun_user['style'].', referer: http://localhost/megapun/admin_loader.php?plugin=AP_Private_messaging.php
[Tue May 08 08:18:24 2007] [error] [client 127.0.0.1] File does not exist: C:/wamp/websites/megapun/img/'.$pun_user['style'].', referer: http://localhost/megapun/admin_loader.php?plugin=AP_Adsense_Options.php
[Tue May 08 08:18:29 2007] [error] [client 127.0.0.1] File does not exist: C:/wamp/websites/megapun/img/'.$pun_user['style'].', referer: http://localhost/megapun/admin_loader.php?plugin=AP_Links_with_category.php

etc x 100.

So some bits work, but most of it doesn't, at least locally on Win32 WAMP. If I browse as a guest, most of it works. But if I logon as admin, lots of things start to go wrong.

I don't really want to test it out on any live web server yet.

You should also probably modify the digg linker thingo too, so that it doesn't always try and pull down the Digg favicon every time the page loads. It's a pain when you are off-line.

Oh, and it is worth noting that mega-pun home page generates about 17-18 SQL queries, as opposed to the standard 7 or 8 for a basic punBB board. That's a lot. Something for folks to keep in mind.

RAHster wrote:

Requested the same in Feb... 
http://punbb.org/forums/viewtopic.php?id=13931

Thanks, Sirena, for bringing this back up.  I could really use it. 

RICK

Actually, thanks to the kindness of Soonotes, problem solved:

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

It works a treat and now I can specify alpha sorting by forum. Very handy!

I've been meaning to put the solution up on the Punres wiki ...

A quick question - what is \syn\phpMSH and all those .svn files?

That's a huge folder hierarchy in the download, and it looks to be "This is a Subversion working copy administrative directory." .

So maybe that isn't needed?

Thanks bingiman - I'm keen to check it out. Nice title for it too.

What comes next - Giga Pun? Tera Pun?

smile

330

(11 replies, posted in PunBB 1.2 discussion)

That was my first thought too. What a hassle.

Did you see the one that reported that they handle '10k emails daily' ? Yeesh. Who wants to deal with that?

331

(11 replies, posted in PunBB 1.2 discussion)

I recently stumbled upon this interesting page, where some of the hardware behind some of the biggest vBulletin etc forums is highlighted:

http://www.big-boards.com/servers.php

There were no punBB forums on that list. smile

It is an interesting list, if only due to the way it reveals how some (relatively) small vBulletin forums seem to need pretty awesome clusters of hardware behind them - 6 front-end servers, 4 DB servers, etc etc.

Scary stuff, due to the extra $$$ and sysadmin complexity this implies.

It highlights some of the architectures people used to cope with high traffic - separate web and DB servers, separate static file/attachment/image servers, load-balancers etc.

It also underlines (to me) the importance of planning for growth if you have a forum in a topic that has broad appeal, although I presume that (if you don't load it up with too many mods and tweaks) a punBB forum should in general scale better than for eg a VB one - ie the threshold point where you would need to start thinking about kicking in some big iron to ensure good performance in a punBB board should be quite a bit higher than it may be for vb or phpBB.

Out of curiosity, can anyone running a big punBB board tell us their hardware specs?

From your page at:

http://shedrockonline.com/forum.php

it looks like you also have a sub-forum mod happening? Or at least the show/hide categories way of getting to sub-forums.

If that's right, you may want to add that to the list of active mods.

PS - I'd 'adjust' the MSN butterfly logo a bit too. You don't want any hassles from those guys.

If I nuke that reference to the Netscape 0.91 DTD in extern.php, the RSS still seems to work fine. Am I committing any big RSS/ validation sin if I do so?

gil wrote:

But:
As it need a human help (at least one time), doesn't it push back the majority of robot?

True.

In general, the more variation in approaches taken by punBB forums to how registration is handled, the harder it will be for bots to reliably get their message into punBB boards.

If every punBB registration page or punBB install was unique, it would mean every spambot would need to deal with it uniquely.

Spamming lots of punBB boards would then probably not be cost-effective, even with considerable automation.

To answer my own question, there is indeed one such approach for punBB (an anti-spam mathbox) discussed here:

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

A simpler way to be able to display categories is outlined here:

http://wiki.punres.org/Show_category

It is more limited in features than the mod, but it only requires one line to be changed in index.php.

What are the words that work best against the most common forms of forum spam people are getting? Is it the usual pharm stuff?

True. Changing it every few weeks or so would keep them on their toes, of course, but not completely solve the problems inherent in this approach.

I tried to find one, but maybe I didn't look hard enough.

I was seeking a simple 'front-door' anti-spam mod that would add into the punBB user registration form a feature I've seen around the place on other forums, and some blogs too.

This feature presents as a simple text only form element that asks the user a simple question.

Ones I've seen include:

'Are you human?' Yes|No, with no as the default, asked one phpPP forum or
'What does 2+2' = ?,  or
'My name is Joe Smith. What are my initials?'

Are there any views on how effective this approach is?

And is there perhaps a punmod that implements something akin to this?

It's certainly not likely to be foolproof, of course. But it's simplicity : probable effectiveness ratio appeals to me, as opposed to a graphic CAPTCHA, Akismet plugins etc.

If there's no pre-existing mod, how hard would it be to just directly code such a question into register.php, manually changing the values from time to time?

Thanks for checking out those security issues Koos.

That makes me a [little] bit more confident in installing your script.

With forum spam already a big problem, I don't want extra [perhaps more serious] security headaches in running punBB associated with your script.

Trust no one. Online.

AlanB wrote:

Andrew your site http://www.belviewumc.org is exactly what I have been looking for...

Yes, that is indeed an excellent example site.

I like the Google calendar integration - I hadn't though of that. Must research how to do it.

Just a possibly dumb basic question.

Without trying out the app in detail myself...

If this mod were installed on a punBB forum, could someone upload a php or perl file (or other executable file), rename it beforehand with a JPG extension perhaps, and then once it is on the server rename it and execute it?.

I am presuming that this can't happen (or anything similar) and that this app wouldn't let someone upload a malicious file onto a punBB web server. But some confirmation would be nice smile

I am curious because there seems to be a lot of file inclusion problems going around with PHP apps at the moment...

343

(11 replies, posted in PunBB 1.2 show off)

Neat. Attractive and well structured.

An observation though: on your home page http://www.alternativeinformation.org/forum.php it shows 33 queries being run.

You might like to look into that - that seems a lot of queries for a punBB home page.

Perhaps turn on the detailed query debug feature and have a look where all those queries are coming from and see if that query load can be tuned down.

When you get a lot of visitors that amount of MySQL queries may generate an unwelcome amount of server overhead for you.  - Eg even just 10 visitors hitting your forum home page at once =330 simultaneous database queries.

Don't even think about what the query load might be if 30 visitors (or bots) hit that page at once smile

Fair enough Smartys. You da man smile

Will the extensions system be really that flexible? Sounds pretty impressive if it will be able to sweep away these sort of direct code hacks. Make maintenance/upgrades a lot easier, that's for sure.

Works great!!

Thanks all - this will be really useful to a punBB project of mine where alpha sorting of topics just made so much sense.

Soonotes, can I suggest that you submit your code to the punres wiki - I'm sure others will find it useful. I wouldn't want to take credit for your code.

pogenwurst may also like to post this solution to the 'How do I' FAQ sticky in the punbb 'Modifications' forum:

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

And while I am dishing out suggestions left and right, could this be rolled into the code for punBB proper by one of the developers?

It doesn't add too much 'weight' to the codebase but is very useful.

Thanks guys - I really appreciate the tips.

I'll now study your code and the punBB code and see if I can make it all work together. Wish me luck smile

I know this is a bit lame of me, but I am all thumbs in SQL or PHP.

Could I ask for some advice and coding help from folks with more experience of both?

There is a code hack on the Punres wiki to allow another sort option within the Admin interface -  to allow admins to specify that specific topics should display topic posts in reverse order:

viz:
http://wiki.punres.org/Sort_topics_in_reverse_order

Could someone advise me how to modify it to allow alphabetical sorting of topic posts?

I think I am on the right path by working from the hack posted in the punres wiki.

Could this work:
(a) creating a new option value '3' for 'Alphabetical' in admin_forums.php:
viz:

<option value="3"<?php if ($cur_forum['sort_by'] == '3') echo ' selected="selected"' ?>>Alphabetical</option>

and then
(b) modifying viewforum.php to add a new 'else if' declaration like so:

} else if ($cur_forum['sort_by'] == '3') {
    $newsort = 'natsort';
}

and then
(c) doing the rest of the replacements suggested for viewforum.php so that the SQL queries pick up the newsort variable?

But would 'natsort' be the right thing to work here? I thought another 'ORDER BY DESC' would be right.

I am muddling towards implementation of the feature request I raised recently:
http://punbb.org/forums/viewtopic.php?id=15585
which has had no response from anyone so far, alas.

348

(98 replies, posted in News)

dude07 wrote:

PunnBB is like a bowel movement after being constipated for a month. Ahhhhhh......

I guess that qualifies as praise.  In other words, your software gives me the shits.... smile

To enable guests to post on comments, which is a handy feature of a blog for sure, you may have to go down the path of captchas etc before guests can post a comment, like other blog tools.

A pain, but necessary otherwise you will have admin headaches and spam takeovers of blog comments.

Aha, that's sensible. So is your sample site http://www.soonotes.com/bbs/blog.php?cid=3&c_id=3 setup to allow guests to post?