1,301

(3 replies, posted in PunBB 1.2 show off)

It would look tons better if the site was centered smile

1,302

(14 replies, posted in PunBB 1.2 discussion)

Sorry, made an error in the link; should work now smile

1,303

(5 replies, posted in PunBB 1.2 troubleshooting)

Just change your base url and it should be fine smile

1,304

(8 replies, posted in Programming)

I wouldn't use str_shuffle wink

Do you want to show both affiliates or only one?

1,305

(14 replies, posted in PunBB 1.2 discussion)

This should though (when it's done uploading)

1,306

(14 replies, posted in PunBB 1.2 discussion)

This should work really

1,307

(14 replies, posted in PunBB 1.2 discussion)

svn checkout http://punbb.org/svn/punbb/branches/punbb-1.3-dev/

Or enter the link after checkout in TortoiseSVN if you're on Windows smile

1,308

(19 replies, posted in PunBB 1.2 show off)

B. wrote:
elbekko wrote:

I mean the footer of the forum smile

Ah yes, ofcourse. Sorry. smile

I think I see what you mean. The footer draws more attention than the actual forum part. I turned the black text to a shade of grey.

Thanks for your comments.

Much better now smile

1,309

(19 replies, posted in PunBB 1.2 show off)

I mean the footer of the forum smile

1,310

(19 replies, posted in PunBB 1.2 show off)

Very nice, although you should make the footer text lighter, so it isn't standing out that much wink

1,311

(20 replies, posted in General discussion)

Installed it today... still the same problem as I had in the betas: I have to open at least 3 tabs before I can open a site, and after that I can only navigate by using the links. No chance in using the address bar.

Oh well tongue

1,312

(1 replies, posted in PunBB 1.2 troubleshooting)

Set character encoding in your language files (common.php) to UTF-8

1,313

(20 replies, posted in General discussion)

StevenBullen wrote:

Plus I was reading that FF has more holes than IE now sad could this be true...

Microsoft propaganda anyone? tongue
Doubt it really.

1,314

(10 replies, posted in PunBB 1.2 troubleshooting)

Nope, those look fine...

In the output it's messed up for some reason:

                <li id="navextra2"><a href="http://www.simzi.co.uk/misc.php?action=markread"?Mark all as read</a></li>

But that's a code you entered, so edit it there wink

1,315

(10 replies, posted in PunBB 1.2 troubleshooting)

I see no error in FF1.5 nor IE7.

But it's probably an <a> tag that isn't being closed wink

1,316

(7 replies, posted in PunBB 1.2 troubleshooting)

If you have shell access to your server, do this:

$ mysql -u <username> -p
Password: <enter your password here>
mysql> CREATE DATABASE <db_name>;
mysql> use <db_name>;
mysql> \. <location of file to import .sql file>
mysql> \q

This will allow you to easily import everything alot faster than through phpMyAdmin, but I'm not quite sure if it works with remote locations (if not, just upload it to your FTP and find the absolute path to it).

Did it plenty of times for a DB I have to migrate alot. It's tons faster than phpMyAdmin IMO.

1,317

(95 replies, posted in News)

The newsletter was sent though... maybe you didn't subscribe well? =/

1,318

(14 replies, posted in Programming)

But when you pass it as a character it must be represented as \0, no?

1,319

(12 replies, posted in PunBB 1.2 troubleshooting)

As I said, I made this quickly tongue

But, as all input is run through htmlspecialchars(), it can be done by just adding quotes to the BBCode, something like this:

<?php
$str = htmlspecialchars('[img?width="60"&height="60"&alt="Booh" onmouseover="alert(\'Insecure!\')""]http://punbb.org/forums/img/avatars/2.png[/img]');
$str = preg_replace("#\[img\?width\="(.+)"&height\="(.+)"&alt\="(.+)"\](.+)\[/img\]#i", '<img src="$4" width="$1" height="$2" alt="$3" />', $str);
echo $str;
?>

The onmouseover won't work this way, but the image will smile

http://mail.google.com/support/bin/answ … p;hl=en_GB

I doubt the PunBB SMTP system supports SSL though wink

1,321

(8 replies, posted in PunBB 1.2 troubleshooting)

Line 65 in header.php loads the user-selected stylesheet.

1,322

(12 replies, posted in PunBB 1.2 troubleshooting)

Do note, all those extra attributes need to be filled in wink Else the image code won't be parsed.

It should be somewhere in parser.php, I think you could put it in do_bbcode if you'd like to allow it everywhere.

1,323

(12 replies, posted in PunBB 1.2 troubleshooting)

OK, so I had my shot at it, and I found a pretty good solution:

This is the code I had in my testing file:

<?php
$str = '[img?width=60&height=60&alt=Booh]http://punbb.org/forums/img/avatars/2.png[/img]';
$str = preg_replace("#\[img\?width\=(.+)&height\=(.+)&alt\=(.+)\](.+)\[/img\]#i", '<img src="$4" width="$1" height="$2" alt="$3" />', $str);
echo $str;
?>

The HTML output is:

<img src="http://punbb.org/forums/img/avatars/2.png" width="60" height="60" alt="Booh" />

Now, I don't know exactly where you'd put this code, but atleast the code is there ^^

1,324

(12 replies, posted in PunBB 1.2 troubleshooting)

Not now, I'm quite busy, but I could have a look at it sometime... unless someone with better RegEx knowledge can do this tongue

1,325

(12 replies, posted in PunBB 1.2 troubleshooting)

Hrmm... would introduce a new way of BBCode handling tongue Something like

[img=width=<w>&height=<h>&alt=<alt text>]<source>[/img]

All optional, if not occuring a standard value will be taken or it won't be put in. Something like that?