[2.0.10] HTML BBcode MOD

The cleanup is complete. This forum is now read only.
Post Reply

Rating:

Excellent!
33
87%
Very Good
2
5%
Good
1
3%
Fair
2
5%
Poor
0
No votes
 
Total votes: 38

Extensions Robot
Extensions Robot
Extensions Robot
Posts: 27919
Joined: Sat Aug 16, 2003 7:36 am

[2.0.10] HTML BBcode MOD

Post by Extensions Robot » Wed Oct 27, 2004 9:01 pm

MOD Name: HTML BBcode MOD
Author: markus_petrux
MOD Description: This MOD adds an HTML BBcode to your forum, which allows you to enter HTML tags yourself when posting a message. It is also possible to post JavaScript, Flash or Java objects, Forms, etc. You can even use other BBCode tags within an HTML block! Syntax is pretty simple: [html]text[/html].
While this BBCode is powerful, it is also somehow dangerous! By default, it is only allowed for the main board administrator. It can also be allowed for other Admins or members of a usergroup via ACP.

WARNING: You shouldn't allow anyone to post HTML unless you trust them 100%. Use at your own peril!

MOD Version: 1.1.4

Download File: html_bbcode_mod_1_1_4.zip
mods overview page: View
File Size: 5270 Bytes

Security Score:
Last edited by Extensions Robot on Mon Apr 30, 2007 12:30 am, edited 1 time in total.
(this is a non-active account manager for the phpBB Extension Customisations Team)

wGEric
Former Team Member
Posts: 8805
Joined: Sun Oct 13, 2002 3:01 am
Location: Friday
Name: Eric Faerber
Contact:

Post by wGEric » Tue Nov 02, 2004 10:58 pm

MOD Validated/Released

Notes:
Adds a BBCode that lets you post HTML. You can choose who can use this BBCode because letting users use HTML in their posts opens the board up for security problems.

This MOD requires the Multiple BBCodes MOD.
Last edited by wGEric on Mon Oct 17, 2005 9:14 pm, edited 1 time in total.

markus_petrux
Former Team Member
Posts: 1887
Joined: Wed Apr 23, 2003 7:11 am
Location: Girona, Catalunya (Spain)
Contact:

Post by markus_petrux » Wed Nov 03, 2004 12:33 am

Thanks, Eric! :)

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The Beta topic for this MOD was here:
http://www.phpbb.com/phpBB/viewtopic.php?t=225389
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Notes:
  1. This MOD is compatible with the latest version of the Multiple BBCode MOD (1.4.0)
    You can get it here: http://www.phpbb.com/phpBB/viewtopic.php?t=145513
  2. Please, carefully read Author Notes section in the MOD header before installing this MOD.
Known Issues:
  • Problem: If you're using phpBB 2.0.20 (and up), you may find that HTML tags and/or attributes aren't displayed, even when using the HTML BBCode.

    Workaround: Go to your AdminCP / General Admin / Configuration, scroll down and set the option "Allow HTML" to No.

Enjoy! :)
Last edited by markus_petrux on Thu May 18, 2006 10:28 pm, edited 1 time in total.
EasyMOD Standards | MOD Template Actions | MODs in Development Rules
Useful information for MOD Authors | MOD Queue Stats | Search MODs
Write SQL/DDL portable to all SQL servers supported by phpBB!
Get EasyMOD 0.3.0! | Suport al phpBB en Català!
8)

User avatar
davidshook
Registered User
Posts: 24
Joined: Sat Nov 06, 2004 8:25 am

Text box not working correctly

Post by davidshook » Wed Nov 10, 2004 6:38 am

I have installed multi-bbc-1-4-0 and html_bbcode_mod_1_1_4
Now I am having problems with the text box that's used for posting messages.

Nothing happens when I press the bbcode bottons. The text does not get enclosed in the tags.
In InternetExplorer I can't even highlight the text in the text box.
Also, I can't add the emoticons to the text box.
... I am assuming that this is a javascript problem.

When I add the tags by typing them into the text and than preview the message it seems to display correctly.

Please help. In my stupidity, I did not keep a backup.

I also have the following MOD's: NoseBleed template, the lates phpbb, attachment mod, eXtreme Styles, easymod instal (which doesn't seem to work correctly), Topic_Description105a MOD

markus_petrux
Former Team Member
Posts: 1887
Joined: Wed Apr 23, 2003 7:11 am
Location: Girona, Catalunya (Spain)
Contact:

Post by markus_petrux » Wed Nov 10, 2004 8:09 pm

Have you installed this MOD with EasyMOD? Did you get any errors?

Is the problem happening using subSilver, NoseBleed or both templates?

Do you have a link?
EasyMOD Standards | MOD Template Actions | MODs in Development Rules
Useful information for MOD Authors | MOD Queue Stats | Search MODs
Write SQL/DDL portable to all SQL servers supported by phpBB!
Get EasyMOD 0.3.0! | Suport al phpBB en Català!
8)

warnmar10
Registered User
Posts: 154
Joined: Mon Sep 13, 2004 2:13 pm

Post by warnmar10 » Fri Nov 19, 2004 4:33 am

Cool! Works for me!

Joe Belmaati
Registered User
Posts: 2110
Joined: Sun Sep 28, 2003 7:35 pm
Location: Denmark

Post by Joe Belmaati » Tue Nov 23, 2004 7:14 am

This MOD kicks major *** !

An idea could be to leave all html that has already been posted alone without having to go back and wrap all those posts in [html] tags.... I don't know if that is possible to implement..

Thanks, Markus!!
Last edited by Joe Belmaati on Tue Nov 23, 2004 7:46 am, edited 1 time in total.

markus_petrux
Former Team Member
Posts: 1887
Joined: Wed Apr 23, 2003 7:11 am
Location: Girona, Catalunya (Spain)
Contact:

Post by markus_petrux » Tue Nov 23, 2004 7:41 am

Have you added the following line in includes/constants.php ?

Code: Select all

define('FOUNDER', 2)
If so, the block where the HTML BBCode options are in the ACP->Configuration should be visible. This is the code that enables the visibility of this configuration option in admin/admin_board.php

Code: Select all

//+MOD: HTML BBCode MOD
if( $userdata['user_id'] == FOUNDER )
{
	$template->assign_block_vars('bbcode_html_allowed', array());
}
//-MOD: HTML BBCode MOD

$template->pparse("body");
:?:
EasyMOD Standards | MOD Template Actions | MODs in Development Rules
Useful information for MOD Authors | MOD Queue Stats | Search MODs
Write SQL/DDL portable to all SQL servers supported by phpBB!
Get EasyMOD 0.3.0! | Suport al phpBB en Català!
8)

markus_petrux
Former Team Member
Posts: 1887
Joined: Wed Apr 23, 2003 7:11 am
Location: Girona, Catalunya (Spain)
Contact:

Post by markus_petrux » Tue Nov 23, 2004 7:43 am

Joe Belmaati wrote: nvm solved my problem. Nothing relating to this MOD.

I should have quoted you before. :lol:
EasyMOD Standards | MOD Template Actions | MODs in Development Rules
Useful information for MOD Authors | MOD Queue Stats | Search MODs
Write SQL/DDL portable to all SQL servers supported by phpBB!
Get EasyMOD 0.3.0! | Suport al phpBB en Català!
8)

Joe Belmaati
Registered User
Posts: 2110
Joined: Sun Sep 28, 2003 7:35 pm
Location: Denmark

Post by Joe Belmaati » Tue Nov 23, 2004 7:49 am

I am ashamed to admit that my modding in admin_board.php was bogus. I parsed the body BEFORE the switch!! :D

I edited my original post and added an idea to it...

markus_petrux
Former Team Member
Posts: 1887
Joined: Wed Apr 23, 2003 7:11 am
Location: Girona, Catalunya (Spain)
Contact:

Post by markus_petrux » Tue Nov 23, 2004 8:48 am

Joe Belmaati wrote: An idea could be to leave all html that has already been posted alone without having to go back and wrap all those posts in [html] tags.... I don't know if that is possible to implement..

I have no idea on how to do this easily. :?
EasyMOD Standards | MOD Template Actions | MODs in Development Rules
Useful information for MOD Authors | MOD Queue Stats | Search MODs
Write SQL/DDL portable to all SQL servers supported by phpBB!
Get EasyMOD 0.3.0! | Suport al phpBB en Català!
8)

Joe Belmaati
Registered User
Posts: 2110
Joined: Sun Sep 28, 2003 7:35 pm
Location: Denmark

Post by Joe Belmaati » Tue Nov 23, 2004 9:53 am

No problem, Markus. Is there a way to get it to parse php as well..?

macgeek
Registered User
Posts: 123
Joined: Sat Oct 19, 2002 4:45 am
Location: Pearl City, Hawaii USA
Contact:

Post by macgeek » Tue Nov 23, 2004 11:21 am

OMG!!!! This mod is SO AWESOME!!! :) I can now create tables in my postings.

--- macgeek

markus_petrux
Former Team Member
Posts: 1887
Joined: Wed Apr 23, 2003 7:11 am
Location: Girona, Catalunya (Spain)
Contact:

Post by markus_petrux » Tue Nov 23, 2004 3:07 pm

Joe Belmaati wrote: Is there a way to get it to parse php as well..?

PHP in postings ? 8O Not with this one, I'm afraid. It might be something to think of for another MOD.

I believe exTreme Styles MOD allows PHP in templates.
EasyMOD Standards | MOD Template Actions | MODs in Development Rules
Useful information for MOD Authors | MOD Queue Stats | Search MODs
Write SQL/DDL portable to all SQL servers supported by phpBB!
Get EasyMOD 0.3.0! | Suport al phpBB en Català!
8)

Joe Belmaati
Registered User
Posts: 2110
Joined: Sun Sep 28, 2003 7:35 pm
Location: Denmark

Post by Joe Belmaati » Tue Nov 23, 2004 3:17 pm

Yes, I use php in templates quite that extensively..

Post Reply

Return to “[2.0.x] MOD Database Cleanup”