(6 replies, posted in Feature requests)

twindj wrote:

and why not?

I tend not to trust mods made by other people, and especially if it is one allowing uploading of files as any bugs could result in huge security issues for your whole site. I would also rather keep uploading seperate then if any problem did occur it would only affect the uploading site and not the forum too.


(6 replies, posted in Feature requests)

There is a mod to allow it, but personally I wouldn't recommend it.

There is a similar issue with some other unicode characters, there's a bit more info about it here if it helps.

Using a sub-domain makes it look less important and less professional, which I understand no doubt offended some of the more invested people here. There needs to be a balance between branding/advertising and keeping the community happy, and currently it seems they aren't very happy.

Personally I think it would be a better idea to keep the punbb.org domain and have some kind of "owned/developed/hosted by informer" message somewhere in the header, could even put a link to informer.com in the nav links before the link to PunBB.


(3 replies, posted in PunBB 1.2 troubleshooting)

__FILE__ contains the name of the current file, __LINE__ is the line number.


(8 replies, posted in PunBB 1.2 show off)

MattF wrote:
Ghirai wrote:

You're right it doesn't seem to work on IE6, but does with 7. Don't plan on fixing it though.

There are a lot of IE users who can't use V7, unless M$ has suddenly made it run on anything older than XP.

Probably not a very large amount that would be interested in (or that you would want on) a computer security related board tongue


(6 replies, posted in General discussion)

softlayer.com or theplanet.com would definitely get my vote.


(5 replies, posted in PunBB 1.2 discussion)

0) Yes fairly easily, check the FAQ and integration boards for more information.
1) Yes, there is a mod on www.punres.org for this.
2) Possible, but I don't think there is any existing mod, so it would depend on your experience as a PHP coder (or your funds/ability to find someone to do it for you).
3) Pretty much same as 2, it's possible, but you would need to specifically have it done for you (or do it yourself).


(5 replies, posted in General discussion)

All terminals will have their own local IP (10.40.x.x as you mentioned is indeed a local IP). They will be routed through a gateway (hub/server), which will then route the traffic into the internet (via your ISP). It is possible it could be routed through various connections to balance load, though most likely it will just go through one, meaning 1 external IP address.


(2 replies, posted in PunBB 1.2 show off)

Looks nice.

Btw you should send a image/png mime type from your banner rotator script, just now it's being served as text/plain.

Apostrophes work fine in the (or at least my) board title?

I assume you mean $password1 and $password2 in register.php? There's no need to escape either of them, they are simply turned into the sha1/md5 hash then that hash is inserted into the database. $username is escaped when it is inserted using $db->escape (calls either mysql_escape_string or mysql_real_escape_string if available).

I assume using for opposed to foreach would be a personal preference, I don't suppose it makes much difference performance wise?

As a side note, it's always good practice to use full php tags ( <?php )not short tags ( <? ), since short tags are not enabled on all servers.

I am fairly there will be some problems with having 2 mysql connections open at once there.

The gallery script doesn't seem to specify which mysql resource to use (php allows that, but then defaults to the last opened one), which could well result in some unexpected behaviour.


(47 replies, posted in Programming)

mesmerize wrote:
Reines wrote:

RE: Pricing - I'm not sure, I guess the best bet would be to find out what people think is a reasonable price.

Not to upset you or anything but as this is a free software and covered under GPL, the terms are that any modifications can not be sold or you would be in breach of this original agreement when you downloaded Punbb.
All modifications and released updates should really be open source and free.

Actually you are allowed to sell GPL covered software, the drawback though is anyone who buys it is then allowed to give it out free if they wish to do so.

http://www.gnu.org/licenses/gpl-faq.htm … AllowMoney

Add a ban and leave the username blank, simply put the domain name under email. (Also make sure you got allow banned emails set to no in options/permissions).


(47 replies, posted in Programming)

TFD wrote:

when is this coming?

Not sure, I need to finish the subscription part just now - currently you need to wait to be returned to member before you can extend your subscription again, obviously it would make much more sense to allow users to simply extend their subscription before it expires.
I am also hoping to add gateways for ccbill, nochex, worldpay and moneybookers if possible, however I've never used any of these payment options myself before.

RE: Pricing - I'm not sure, I guess the best bet would be to find out what people think is a reasonable price.


(47 replies, posted in Programming)

I started work on a mod for punbb 1.2.* that allows people to subscribe via paypal, and automatically upgrades them to a new user group upon successful payment. It could be used for pretty much what your suggesting, if you simply have the initial member group without access to any boards.

However I would like to try tweak a little bit of it before release, and was considering charging for it (seems only fair since the mod is for use by people who are wanting to charge for membership to their forums).

I'm not sure if you were looking for a mod like this, or if you were wanting input on how you should go about coding one yourself. Thought I might as well mention it though.
A little more info: PunBB Subscription Mod.


(18 replies, posted in Feature requests)

Interesting "bug".

PunBB ads the newline in:

$b[] = '[/quote]

even when its in code tags.


(18 replies, posted in Feature requests)

try this (note. wrote it in bout 5mins, 100% untested):


$a[] = '#\s*\[/quote\]\s*#i';

on the next line add:
$a[] = '#\[iframe\][\r\n]*(.*?)\s*\[/iframe\]\s*#is';

$b[] = '[/quote]

on the next line add:
$b[] = '[iframe]$1[/iframe]'."\n";

if (preg_match('#\[quote=("|"|\'|)(.*)\\1\]|\[quote\]|\[/quote\]|\[code\]|\[/code\]#i', $text))

replace with:
if (preg_match('#\[quote=("|"|\'|)(.*)\\1\]|\[quote\]|\[/quote\]|\[code\]|\[/code\]|\[iframe\]|\[/iframe\]#i', $text))


on the next line add:


on the next line add:

add a new method:

function handle_iframe_tag($url) {
    $full_url = str_replace(array(' ', '\'', '`', '"'), array('%20', '', '', ''), $url);
    if (strpos($url, 'www.') === 0)            // If it starts with www, we add http://
        $full_url = 'http://'.$full_url;
    else if (strpos($url, 'ftp.') === 0)    // Else if it starts with ftp, we add ftp://
        $full_url = 'ftp://'.$full_url;
    else if (!preg_match('#^([a-z0-9]{3,6})://#', $url)) // Else ef it doesn't start with abcdef://, we add http://
        $full_url = 'http://'.$full_url;
    return '<iframe src="'.htmlspecialchars($full_url).'">You need iframes enabled to view this.</iframe>';

save & reupload:


(18 replies, posted in Feature requests)

As a feature I'm almost 100% the answer will be no, however a mod could easily be written to provide it.


(15 replies, posted in PunBB 1.2 discussion)

To expand slightly on what Mediator said:

php.net wrote:

PHP 4 end of life announcement

Today it is exactly three years ago since PHP 5 has been released. In those three years it has seen many improvements over PHP 4. PHP 5 is fast, stable & production-ready and as PHP 6 is on the way, PHP 4 will be discontinued.

The PHP development team hereby announces that support for PHP 4 will continue until the end of this year only. After 2007-12-31 there will be no more releases of PHP 4.4. We will continue to make critical security fixes available on a case-by-case basis until 2008-08-08. Please use the rest of this year to make your application suitable to run on PHP 5.

For documentation on migration for PHP 4 to PHP 5, we would like to point you to our migration guide. There is additional information available in the PHP 5.0 to PHP 5.1 and PHP 5.1 to PHP 5.2 migration guides as well.


(8 replies, posted in Programming)

Here's a package I put together a while ago that uses lighttpd rather than apache: http://www.stealingyour.info/misc/lighttpd.rar

It was just thrown together for my own use, so doesn't have any documentation or anything.


(7 replies, posted in PunBB 1.2 discussion)

Sounds like someone is ddosing your site, either that or you just got a lot of traffic all of a sudden from somewhere.


(2 replies, posted in PunBB 1.2 troubleshooting)

Try leaving the $cookie_domain empty.


(8 replies, posted in PunBB 1.2 troubleshooting)

Thanks will give that a go later. Can do the ban thingy myself though, was just really the mysql im not great with tongue