1 (edited by rahahm33 2009-01-02 00:36)

Topic: [request] ALLOW HTML IN SOME FORUMS

cmon this should be in the core. sometimes i need to put html instead of bbcode places.

Re: [request] ALLOW HTML IN SOME FORUMS

What kind of HTML?

3 (edited by rahahm33 2009-01-02 00:46)

Re: [request] ALLOW HTML IN SOME FORUMS

everything

4

Re: [request] ALLOW HTML IN SOME FORUMS

You mean like these: http://punbb.informer.com/forums/help/bbcode/

Re: [request] ALLOW HTML IN SOME FORUMS

no bbcode fails sometimes i want to embed or do something that bbcode cant do.

6

Re: [request] ALLOW HTML IN SOME FORUMS

rahahm33 wrote:

everything

Last edited by rahahm33 (Today 00:46:48)

Is it worthwhile trying to explain how this is just wrong on so many levels?

7

Re: [request] ALLOW HTML IN SOME FORUMS

rahahm33 wrote:

no bbcode fails sometimes i want to embed or do something that bbcode cant do.

If bbcode fails in specific circumstances, report it as a parser bug.

What other types of tags are missing?

Re: [request] ALLOW HTML IN SOME FORUMS

only if u think it is. point is restricting admins to only bbcode makes punbb inefficient under certain circumstances.

Re: [request] ALLOW HTML IN SOME FORUMS

well <embed> is missing for one (something i could use on my board).

10

Re: [request] ALLOW HTML IN SOME FORUMS

rahahm33 wrote:

only if u think it is. point is restricting admins to only bbcode makes punbb inefficient under certain circumstances.

Then see if there are any extensions to cater for admins entering raw html.

It most definitely should not be a core feature, however. This is something that should be dissuaded wherever possible, not actively encouraged by default.

Re: [request] ALLOW HTML IN SOME FORUMS

why not? vb, ipb, phpbb3, smf all have it as an optional feature by in their core by default. its definitely useful when you look at the extreme limitations of bbcode.

12

Re: [request] ALLOW HTML IN SOME FORUMS

rahahm33 wrote:

why not? vb, ipb, phpbb3, smf all have it as an optional feature by in their core by default. its definitely useful when you look at the extreme limitations of bbcode.


The forums you said above arnt set out to be Fast and lightweight like Punbb is meant to be. your average forum admin would most likely not need this as a required function and thus will be an extension.

rahahm33 wrote:

well <embed> is missing for one (something i could use on my board).

Its hard when deciding what the general population will need a feature or wont. Some may see it as a required item however most don't need it, and having it to limit all html exploits could cause Punbb to go downhill on fast and lightweight.

Sorry. Unactive due to personal life.

13 (edited by User33 2009-01-02 01:09)

Re: [request] ALLOW HTML IN SOME FORUMS

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.

Re: [request] ALLOW HTML IN SOME FORUMS

thx for the fix, was basically what i was looking for.

Re: [request] ALLOW HTML IN SOME FORUMS

Garciat wrote:

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.

I tried adding those lines, and embedding still doesn't work for me. Using PunBB 1.3.2.

Re: [request] ALLOW HTML IN SOME FORUMS

There was an extension/plugin to allow HTML in punBB version 1.x

http://www.punres.org/viewtopic.php?id=705

Has anyone modded this to work in 1.3.4?

17

Re: [request] ALLOW HTML IN SOME FORUMS

Try this : http://punbb.informer.com/forums/topic/ … -reply-pm/

18

Re: [request] ALLOW HTML IN SOME FORUMS

I post here because I have PunBB 1.3.2 and I try Abir's extension, made for 1.4.

Don't try this extension it blocks your website ver 1.3 !!

See : http://punbb.informer.com/forums/post/146173/#p146173

Be careful.