HTML BBcode-hack
Goto page Previous  1, 2
 
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
markus
[Administrator]
[Administrator]


Joined: 28 Jul 2003
Posts: 1124

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

The BBCode entry in bbcode.php seems to be missing.

Try to apply this:

Code:
#
#-----[ OPEN ]---------------------------------
#
phpbb/includes/bbcode.php
#
#-----[ FIND ]---------------------------------
#
$EMBB_widths = array(''
#
#-----[ IN-LINE FIND ]---------------------------------
#
 array(''
#
#-----[ IN-LINE AFTER, ADD ]---------------------------------
#
,'55'
#
#-----[ FIND ]---------------------------------
#
$EMBB_values = array(''
#
#-----[ IN-LINE FIND ]---------------------------------
#
$EMBB_values = array(''
#
#-----[ IN-LINE AFTER, ADD ]---------------------------------
#
,'Center'


So it looks more or less like:

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('','55') ;
   $EMBB_values = array('','Center') ;
   //+MOD: HTML BBCode MOD
   if( bbcode_html_allowed() )
   {
      $EMBB_widths[] = '40';
      $EMBB_values[] = 'HTML';
   }
//-MOD: HTML BBCode MOD


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 1:18 pm    Post subject: Re: HTML BBcode-hack Reply with quote

Thanx, thats seems to be working, but now I have 2 'center'-boxes. How do I get rid of one ?
 
 
_________________
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 1:40 pm    Post subject: Re: HTML BBcode-hack Reply with quote

It seems you installed the Center BBCode not being compatible with the Multiple BBCode MOD.

The problem with the Multiple BBCode MOD is all BBCode MODs should be compatible with this way of installing additional BBCodes.

Try to remove this code from your posting_body.tpl

Code:
<td><span class="genmed">
  <input type="button" class="button" accesskey="y" name="addbbcode18" value="Center" style="width: 60px" onClick="bbstyle(18)" onMouseOver="helpline('y')" />
  </span></td>

 
 
_________________
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 1:45 pm    Post subject: Re: HTML BBcode-hack Reply with quote

Much better. Thanx alot for your help Very Happy
 
 
_________________
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 2:06 pm    Post subject: Re: HTML BBcode-hack Reply with quote

Great Smile


.

 
 
_________________
http://www.phpmix.org
 
Back to top
View user's profile Send private message
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 Previous  1, 2
Page 2 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