326

(5 replies, posted in PunBB 1.3 troubleshooting)

Download and install Notepad++ then go to Format > Encode in UTF-8 (once you have opened your file).

Nope, but it should work...

This one works on FF and IE6: http://snipplr.com/view/10831/punquote-scriptsjs-fixed/

I tried it on my test forum and it did work.

Edit: Works only on Firefox.

forum_link() is a must.

Maybe you're using spaces in the name? I don't know if that's an issue, but it could be.

To change the name:

  1. The style's folder name and "manifest" PHP file must be the same.

  2. The contents of the style's manifest must correctly point to your CSS files.

Here's a better way:

#brd-crumbs-top{
visibility: hidden;
margin: 0;
line-height: 0px;
}

It'll leave a small gap.

This can be fixed by adding:

            post = post.replace(/<p class\=\"lastedit\">(.*?)<\/p>/,'');
            post = post.replace(/<div class\=\"sig-content\">(.*?)<\/div>/,'');

between Line 97 and 98 on 'pun_quote/scripts.js'.

This will happen with any post that has a signature.

It's a pun_quote bug.

About Page wrote:

PunBB is a fast and lightweight PHP-powered discussion board. It is released under the GNU General Public License. Its primary goals are to be faster, smaller and less graphically intensive as compared to other discussion boards. PunBB has fewer features than many other discussion boards, but is generally faster and outputs smaller, semantically correct XHTML-compliant pages.

Anyways, http://punbb.informer.com/forums/viewtopic.php?id=7398

For 1.3:

$pattern[] = "/\[swf url=([^ ]+) width=([0-9]*) height=([0-9]*)\]/";
$replace[] = "\n\t\t\t\t\t<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=4,0,2,0\" width=\"\$2\" height=\"\$3\">\n\t\t\t\t\t  <param name=\"movie\" value=\"\$1\" />\n\t\t\t\t\t  <param name=\"quality\" value=\"high\" />\n\t\t\t\t\t  <param name=\"loop\" value=\"false\" />\n\t\t\t\t\t  <embed src=\"\$1\" quality=\"high\" pluginspage=\"http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash\" type=\"application/x-shockwave-flash\" width=\"\$2\" height=\"\$3\" loop=\"false\"></embed>\n\t\t\t\t\t</object>\n\t\t\t\t\t";

on include/parser.php, line 706.

What kind of HTML?

Yep, it's a something you have to get used to.

339

(5 replies, posted in PunBB 1.3 troubleshooting)

Yes, this one, but I think it's in beta: http://punbb.informer.com/trac/changese … format=zip

Styles need a PHP file named by the style's ID with the style links in it. Example:

<link rel="stylesheet" type="text/css" media="screen" href="<?php echo $base_url.'/style/'.$forum_user['style'] ?>/mycss.css" />

So, if your style is called "mystyle", you will have to create "mystyle.php" and place it on the style's folder.

I like to think: nice code is happy code. But... ok.

What extension? Also, help.php has no hooks anywhere near the smilies section.

Edit: Nvm, there is a way:

<hook id="he_new_section">
if ($section == 'smilies')
{
    $temp = forum_trim(ob_get_contents());
    ob_end_clean();
    echo str_replace('width="15" height="15" ', '', $temp);
}
</hook>

If you have access to php.ini, set "allow_url_fopen" to "On" (both without quotes).

344

(31 replies, posted in Feature requests)

Cereal tongue lol...

Seriously, that's a good idea.

345

(6 replies, posted in PunBB 1.2 discussion)

I'd backup my database and files, though.

346

(6 replies, posted in PunBB 1.2 discussion)

I made a FluxBB 1.2.21 installation and then simply replaced its files with the ones from PunBB 1.2.21 - everything worked ok.

So, I suggest you upgrade to FluxBB 1.2.21, then simply replace the files.

347

(6 replies, posted in PunBB 1.2 discussion)

The two probably run on the same database scheme...

Try adding

ini_set('allow_url_fopen', 'On');

at the beginning of the script.

Nope, you can't. This is a great idea for an extension, though.

For CSS it would be:

#brd-crumbs-top{ /* or -end for the bottom one */
visibility:hidden;
}