HTML BBcode-hack
Goto page 1, 2  Next
 
Post new topic   Reply to topic   printer-friendly view    phpMiX.org Forum Index -> phpBB MODs -> HTML BBcode
View previous topic :: View next topic  
Author Message
Joakim
Apprentice
Apprentice


Joined: 13 Jul 2004
Posts: 18
Location: Sweden

PostPosted: Mon Feb 07, 2005 11:02 pm    Post subject: HTML BBcode-hack Reply with quote

I'm looking for this hack and I've checked out the MultiBB mod, but I don't quite understand it. Is your hack included in that mod or what ?
 
 
_________________
Feel the Force !
 
Back to top
View user's profile Send private message Visit poster's website
MennoniteHobbit



Joined: 11 May 2004
Posts: 196
Location: Indiana, USA

PostPosted: Tue Feb 08, 2005 12:12 am    Post subject: Re: HTML BBcode-hack Reply with quote

The MultiBBCode MOD is required by markus' HTML MOD... it allows better BBCode layout and the like. 
Back to top
View user's profile Send private message Send e-mail MSN Messenger
Joakim
Apprentice
Apprentice


Joined: 13 Jul 2004
Posts: 18
Location: Sweden

PostPosted: Tue Feb 08, 2005 6:39 pm    Post subject: Re: HTML BBcode-hack Reply with quote

Ok. But where do I find markus' mod then ? The downloadlink is gone...
 
 
_________________
Feel the Force !
 
Back to top
View user's profile Send private message Visit poster's website
markus
[Administrator]
[Administrator]


Joined: 28 Jul 2003
Posts: 1124

PostPosted: Tue Feb 08, 2005 6:54 pm    Post subject: Re: HTML BBcode-hack Reply with quote

Hi!

I have sent you the latest version of the Multiple BBCode MOD via PM. Smile

Don't remember now if I needed to make any additional change in the MX version of some files, though. Maybe the posting_body.tpl or if you need to use this for the KB, then look at the template used for this module to perform the edits...

 
 
_________________
http://www.phpmix.org
 
Back to top
View user's profile Send private message
MennoniteHobbit



Joined: 11 May 2004
Posts: 196
Location: Indiana, USA

PostPosted: Tue Feb 08, 2005 6:55 pm    Post subject: Re: HTML BBcode-hack Reply with quote

Ehm... http://forums.phpmix.org/viewtopic.php?t=358

Quote:
Note:
This MOD has been kindly approved by the phpBB MOD Team Smile

Check out its Release Announcement topic:
http://www.phpbb.com/phpBB/viewtopic.php?t=235489


Wink

As phpBB's down, though, you'll have to wait til their server's up and running. Confused Unless markus posted his MOD at phpBBHacks, or decides to post a temp. ZIP anytime soon, that's how it goes... Crying or Very sad
 
Back to top
View user's profile Send private message Send e-mail MSN Messenger
markus
[Administrator]
[Administrator]


Joined: 28 Jul 2003
Posts: 1124

PostPosted: Tue Feb 08, 2005 7:02 pm    Post subject: Re: HTML BBcode-hack Reply with quote

Well, my approved MODs are also available in the download section, here:
http://www.phpmix.org/projects

...it's a subcategory. I believe I set the permissions correctly. Confused

 
 
_________________
http://www.phpmix.org
 
Back to top
View user's profile Send private message
Joakim
Apprentice
Apprentice


Joined: 13 Jul 2004
Posts: 18
Location: Sweden

PostPosted: Tue Feb 08, 2005 10:42 pm    Post subject: Re: HTML BBcode-hack Reply with quote

How dangerous is this mod ? I mean is it secure ? I've read somewhere that is might be a bit risky....
 
 
_________________
Feel the Force !
 
Back to top
View user's profile Send private message Visit poster's website
MennoniteHobbit



Joined: 11 May 2004
Posts: 196
Location: Indiana, USA

PostPosted: Tue Feb 08, 2005 10:53 pm    Post subject: Re: HTML BBcode-hack Reply with quote

This MOD allows only admins to use certain HTML tags, I believe, so there really shouldn't be any [other] holes.

If you find one, PM markus about it, and I'm sure he'd be able to fix it when he has the time.
 
Back to top
View user's profile Send private message Send e-mail MSN Messenger
markus
[Administrator]
[Administrator]


Joined: 28 Jul 2003
Posts: 1124

PostPosted: Wed Feb 09, 2005 12:27 am    Post subject: Re: HTML BBcode-hack Reply with quote

Well, I wrote a note in the installation instructions about security.

I meant, you should only allow usage of this MOD (ie. freely post HTML content) to people you trust 100%.

AFAIK, there is no other security related issue. Using this MOD is just like writing HTML pages. ie. something good or not depending on what's being posted. Smile


Note: Moved from General Discussion to a proper forum

 
 
_________________
http://www.phpmix.org
 
Back to top
View user's profile Send private message
Joakim
Apprentice
Apprentice


Joined: 13 Jul 2004
Posts: 18
Location: Sweden

PostPosted: Wed Feb 09, 2005 4:52 pm    Post subject: Re: HTML BBcode-hack Reply with quote

Ok. Thanks.

What does this Multiple BBCode do exactly ? I don't get it in the mod-description....

 
 
_________________
Feel the Force !
 
Back to top
View user's profile Send private message Visit poster's website
markus
[Administrator]
[Administrator]


Joined: 28 Jul 2003
Posts: 1124

PostPosted: Wed Feb 09, 2005 8:03 pm    Post subject: Re: HTML BBcode-hack Reply with quote

It just modifies some phpBB files to make it simpler for MOD Authors to create BBCodes.

MOD authors are required (by the phpBB MOD Team) to make BBCode MODs compliant with the Multiple BBCode.

It should have been part of the phpBB code itself, but they decided (some time ago) not to add more features to 2.0.x, so that's because it lives as a MOD. Well, they also wrote some standards MOD authors should follow in order to get the phpBB MOD Team approvation.

 
 
_________________
http://www.phpmix.org
 
Back to top
View user's profile Send private message
Joakim
Apprentice
Apprentice


Joined: 13 Jul 2004
Posts: 18
Location: Sweden

PostPosted: Wed Feb 09, 2005 9:51 pm    Post subject: Re: HTML BBcode-hack Reply with quote

Ah..ok, know I get it. Thank you guys Smile
 
 
_________________
Feel the Force !
 
Back to top
View user's profile Send private message Visit poster's website
Joakim
Apprentice
Apprentice


Joined: 13 Jul 2004
Posts: 18
Location: Sweden

PostPosted: Fri Feb 11, 2005 11:32 pm    Post subject: Re: HTML BBcode-hack Reply with quote

I have now installed it and it seems to be working fine. Exept for one thing. If I enter the bbcode manually it works, but if I press the bbcode-button, it says [center] instead. (I've installed the center bbcode)
Can't find where to edit it....

 
 
_________________
Feel the Force !
 
Back to top
View user's profile Send private message Visit poster's website
markus
[Administrator]
[Administrator]


Joined: 28 Jul 2003
Posts: 1124

PostPosted: Sat Feb 12, 2005 12:28 am    Post subject: Re: HTML BBcode-hack Reply with quote

Tipically this is a problem with the items order in the bbcode related arrays.

Please, open your phpbb/includes/bbcode.php file and post the contents of the $EMBB_xxx arrays. ie. something like this:

Code:
$EMBB_widths = array('') ;
$EMBB_values = array('') ;


Open your phpbb/templates/yourtheme/posting_body.tpl file and post the contents of the bbtags array. ie. something like this:

Code:
bbtags = new Array('[b]','[/b]','[i]','[/i]','[u]','[/u]','[quote]','[/quote]','[code]','[/code]','[list]',[/list]','[list=]','[/list]','[img]','[/img]','[url]','[/url]');


Question

 
 
_________________
http://www.phpmix.org
 
Back to top
View user's profile Send private message
Joakim
Apprentice
Apprentice


Joined: 13 Jul 2004
Posts: 18
Location: Sweden

PostPosted: Sat Feb 12, 2005 10:13 am    Post subject: Re: HTML BBcode-hack Reply with quote

bbcode.php
Code:
// MULTI BBCODE-begin
function Multi_BBCode()
{
   global $template, $lang;

   // DO NOT CHANGE THIS ARRAY
   $hotkeys = array('', 'd', 'e', 'g', 'h', 'j', 'k', 'm', 'n', 'r', 't', 'v', 'x', 'y', 'z', '1', '2', '3', '4', '5', '6', '7', '8', '9', '0');

   //NOTE: the first element of each array must be ''   Add new elements AFTER the ''
   $EMBB_widths = array('') ;
   $EMBB_values = array('') ;
   //+MOD: HTML BBCode MOD
   if( bbcode_html_allowed() )
   {
      $EMBB_widths[] = '40';
      $EMBB_values[] = 'HTML';
   }
//-MOD: HTML BBCode MOD


posting_body.tpl
Code:
<!-- BEGIN MultiBB -->
{MultiBB.VALUE}_help = "{MultiBB.HELP}";
<!-- END MultiBB -->

// Define the bbCode tags
bbcode = new Array();
bbtags = new Array('[b]','[/b]','[i]','[/i]','[u]','[/u]','[quote]','[/quote]','[code]','[/code]','[list]','[/list]','[list=]','[/list]','[img]','[/img]','[url]','[/url]','[center]','[/center]');
//+MOD: HTML BBCode MOD
bbtags[bbtags.length] = '[html]';
bbtags[bbtags.length] = '[/html]';
//-MOD: HTML BBCode MOD
imageTag = false;

 
 
_________________
Feel the Force !
 
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    phpMiX.org Forum Index -> phpBB MODs -> HTML BBcode All times are GMT + 1 Hour
Goto page 1, 2  Next
Page 1 of 2


 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum