Page 1 of 3

[solved] IM Portal & BBcode Box Reloaded

PostPosted: Sat Jan 19, 2008 12:59 pm
Author: siljo
Your phpBB Version: 2.0.21
phpBB Type: phpBB / IMPortal
MODs: Yes
Your knowledge: Beginner
Board URL: http://www.siljo-planet.net/

PHP Version: 5.2.5
MySQL Version: 5.0.51


What was done before the problem appeared?
/


What was done to try to solve the problem?
/



De.scription and Message

In my forum i use [url=http]BBcode Box Reloaded[/url].

I`m trying to use it in portal,but the BBcodes dont work.Can somebody help me?

Re: IM Portal & BBcode Box Reloaded

PostPosted: Sun Jan 20, 2008 4:27 am
Author: found it
This does require a lot of recoding to importal ...but idf you follow the bbcode box install instructions and apply it to importal you can resolve this...

I hope this helps a bit..

:D

Re: IM Portal & BBcode Box Reloaded

PostPosted: Mon Jan 21, 2008 3:21 pm
Author: siljo
Ok got it working.Now i have the same posting menu in forum and in admin/block editor.But not all bbcodes work.Only the standard one`s work (bold,italic,underline,..),but codes like flash,strike,google video,you tube,.... and others don`t work.(They are all working normali in forum & shoutbox ).

Where can i add this "extra" bbcodes so that they will work in admin/block editor?

Re: IM Portal & BBcode Box Reloaded

PostPosted: Mon Jan 21, 2008 11:57 pm
Author: found it
I have you added the java.script code at the top of the tpl page...? I cannot remember what it is exactly...

:mrgreen:

Re: IM Portal & BBcode Box Reloaded

PostPosted: Tue Jan 22, 2008 12:51 am
Author: siljo
This is my blocks_edit_body.tpl

Code: Select all
{BBC_JS_BOX}  <script><!--// bbCode control by// subBlue design// [url=http]http://www.subBlue.com[/url]  // Startup variablesvar imageTag = false;var theSelection = false;  // Check for Browser & Platform for PC & IE specific bits// More details from: [url=http://www.mozilla.org/docs/web-developer/sniffer/browser_type.htmlvar]http://www.mozilla.org/docs/web-develop ... pe.htmlvar[/url] clientPC = navigator.userAgent.toLowerCase(); // Get client infovar clientVer = parseInt(navigator.appVersion); // Get browser version  var is_ie = ((clientPC.indexOf("msie") != -1) && (clientPC.indexOf("opera") == -1));var is_nav = ((clientPC.indexOf('mozilla')!=-1) && (clientPC.indexOf('spoofer')==-1)                 && (clientPC.indexOf('compatible') == -1) && (clientPC.indexOf('opera')==-1)                 && (clientPC.indexOf('webtv')==-1) && (clientPC.indexOf('hotjava')==-1));var is_moz = 0;  var is_win = ((clientPC.indexOf("win")!=-1) || (clientPC.indexOf("16bit") != -1));var is_mac = (clientPC.indexOf("mac")!=-1);  // Helpline messagesb_help = "{L_BBCODE_B_HELP}";i_help = "{L_BBCODE_I_HELP}";u_help = "{L_BBCODE_U_HELP}";q_help = "{L_BBCODE_Q_HELP}";c_help = "{L_BBCODE_C_HELP}";l_help = "{L_BBCODE_L_HELP}";o_help = "{L_BBCODE_O_HELP}";p_help = "{L_BBCODE_P_HELP}";w_help = "{L_BBCODE_W_HELP}";a_help = "{L_BBCODE_A_HELP}";s_help = "{L_BBCODE_S_HELP}";f_help = "{L_BBCODE_F_HELP}";  // Define the bbCode tagsbbcode = new Array();bbtags = new Array('[b]','[/b]','[i]','[/i]','[u]','[/u]','[quote]','[/quote]','[code]','[/code]','[list]','[/list]','[list type=]','[/list]','[flash=,]','[/flash:1ilml43w]','[url]','[/url]');imageTag = false;  // Shows the help messages in the helpline windowfunction helpline(help) {     document.post.helpbox.value = eval(help + "_help");}    // Replacement for arrayname.length propertyfunction getarraysize(thearray) {     for (i = 0; i <thearray>= 4) && is_ie && is_win) {         theSelection = document.selection.createRange().text;         if (!theSelection) {             txtarea.value += bbopen + bbclose;             txtarea.focus();             return;         }         document.selection.createRange().text = bbopen + theSelection + bbclose;         txtarea.focus();         return;     }     else if (txtarea.selectionEnd && (txtarea.selectionEnd - txtarea.selectionStart > 0))     {         mozWrap(txtarea, bbopen, bbclose);         return;     }     else     {         txtarea.value += bbopen + bbclose;         txtarea.focus();     }     storeCaret(txtarea);}    function bbstyle(bbnumber) {     var txtarea = document.post.message;       txtarea.focus();     donotinsert = false;     theSelection = false;     bblast = 0;       if (bbnumber == -1) { // Close all open tags & default button names         while (bbcode[0]) {             butnumber = arraypop(bbcode) - 1;             txtarea.value += bbtags[butnumber + 1];             buttext = eval('document.post.addbbcode' + butnumber + '.value');             eval('document.post.addbbcode' + butnumber + '.value ="' + buttext.substr(0,(buttext.length - 1)) + '"');         }         imageTag = false; // All tags are closed including image tags <img>         txtarea.focus();         return;     }       if ((clientVer >= 4) && is_ie && is_win)     {         theSelection = document.selection.createRange().text; // Get text selection         if (theSelection) {             // Add tags around selection             document.selection.createRange().text = bbtags[bbnumber] + theSelection + bbtags[bbnumber+1];             txtarea.focus();             theSelection = '';             return;         }     }     else if (txtarea.selectionEnd && (txtarea.selectionEnd - txtarea.selectionStart > 0))     {         mozWrap(txtarea, bbtags[bbnumber], bbtags[bbnumber+1]);         return;     }         // Find last occurance of an open tag the same as the one just clicked     for (i = 0; i <bbcode></script><div>{L_BLOCKS_TITLE}</div><br><div>{L_BLOCKS_TEXT}</div><br><form><table><tr> <th>{L_EDIT_BLOCK}</th></tr>  <tr> <td>{L_B_TITLE}:</td><td> <input></td></tr>  <tr> <td>{L_B_POSITION}:</td><td> <select>{POSITION}</select></td></tr>  <tr> <td>{L_B_ACTIVE}:</td><td> <input> {L_YES}  <input> {L_NO}</td></tr>  <tr> <td>         <table>           <tr>             <td>{L_B_CONTENT}:<br><br><br></td>           </tr>           <tr>             <td> <br>               <table>                 <tr>                   <td><b>{L_EMOTICONS}</b></td>                 </tr>                 <BEGIN>                 <tr>                   <BEGIN>                   <td><a><img></a></td>                   <END>                 </tr>                 <END>                 <BEGIN>                 <tr>                   <td><span><a>{L_MORE_SMILIES}</a></span></td>                 </tr>                 <END>               </table>             </td>           </tr>         </table></td>       <td><table>         {BBC_DISPLAY_BOX}         <tr>             <td><textarea>{CONTENT}</textarea></td>         </tr>       </table></td>     </tr>  <tr> <td>{L_B_TYPE}:</td><td> <input> {L_B_BBCODE}  <input> {L_B_HTML}</td></tr>  <tr> <td>{L_B_CACHE}:</td><td> <input> {L_YES}  <input> {L_NO}</td></tr>  <tr> <td>{L_B_CACHETIME}:</td><td> <input></td></tr>  <tr> <td>{L_B_BLOCK_FILE}:</td><td> <select>{BLOCKFILE}</select></td></tr>  <tr> <td>{L_B_VIEW_BY}:</td><td> <select>{VIEWBY}</select></td></tr>  <tr> <td>{L_B_BORDER}:</td><td> <input> {L_YES}  <input> {L_NO}</td></tr>  <tr> <td>{L_B_TITLEBAR}:</td><td> <input> {L_YES}  <input> {L_NO}</td></tr>  <tr> <td>{L_B_LOCAL}:</td><td> <input> {L_YES}  <input> {L_NO}</td></tr>  <tr> <td>{L_B_BACKGROUND}:</td><td> <input> {L_YES}  <input> {L_NO}</td></tr>  <tr> <td>{L_B_GROUP}:</td><td> {GROUP}</tr>  <tr> <td>{S_HIDDEN_FIELDS} <input></td></tr></table></form><br>


I dont`t know.This should work,or should i remove something?

Re: IM Portal & BBcode Box Reloaded

PostPosted: Tue Jan 22, 2008 3:58 am
Author: found it
remove this part and let me know

Code: Select all
<script><!--// bbCode control by// subBlue design// [url=http]http://www.subBlue.com[/url]  // Startup variablesvar imageTag = false;var theSelection = false;  // Check for Browser & Platform for PC & IE specific bits// More details from: [url=http://www.mozilla.org/docs/web-developer/sniffer/browser_type.htmlvar]http://www.mozilla.org/docs/web-develop ... pe.htmlvar[/url] clientPC = navigator.userAgent.toLowerCase(); // Get client infovar clientVer = parseInt(navigator.appVersion); // Get browser version  var is_ie = ((clientPC.indexOf("msie") != -1) && (clientPC.indexOf("opera") == -1));var is_nav = ((clientPC.indexOf('mozilla')!=-1) && (clientPC.indexOf('spoofer')==-1)                 && (clientPC.indexOf('compatible') == -1) && (clientPC.indexOf('opera')==-1)                 && (clientPC.indexOf('webtv')==-1) && (clientPC.indexOf('hotjava')==-1));var is_moz = 0;  var is_win = ((clientPC.indexOf("win")!=-1) || (clientPC.indexOf("16bit") != -1));var is_mac = (clientPC.indexOf("mac")!=-1);  // Helpline messagesb_help = "{L_BBCODE_B_HELP}";i_help = "{L_BBCODE_I_HELP}";u_help = "{L_BBCODE_U_HELP}";q_help = "{L_BBCODE_Q_HELP}";c_help = "{L_BBCODE_C_HELP}";l_help = "{L_BBCODE_L_HELP}";o_help = "{L_BBCODE_O_HELP}";p_help = "{L_BBCODE_P_HELP}";w_help = "{L_BBCODE_W_HELP}";a_help = "{L_BBCODE_A_HELP}";s_help = "{L_BBCODE_S_HELP}";f_help = "{L_BBCODE_F_HELP}";  // Define the bbCode tagsbbcode = new Array();bbtags = new Array('[b]','[/b]','[i]','[/i]','[u]','[/u]','[quote]','[/quote]','[code]','[/code]','[list]','[/list]','[list type=]','[/list]','[flash=,]','[/flash:3eeiyf7d]','[url]','[/url]');imageTag = false;  // Shows the help messages in the helpline windowfunction helpline(help) {    document.post.helpbox.value = eval(help + "_help");}    // Replacement for arrayname.length propertyfunction getarraysize(thearray) {    for (i = 0; i <thearray>= 4) && is_ie && is_win) {       theSelection = document.selection.createRange().text;       if (!theSelection) {          txtarea.value += bbopen + bbclose;          txtarea.focus();          return;       }       document.selection.createRange().text = bbopen + theSelection + bbclose;       txtarea.focus();       return;    }    else if (txtarea.selectionEnd && (txtarea.selectionEnd - txtarea.selectionStart > 0))    {       mozWrap(txtarea, bbopen, bbclose);       return;    }    else    {       txtarea.value += bbopen + bbclose;       txtarea.focus();    }    storeCaret(txtarea);}    function bbstyle(bbnumber) {    var txtarea = document.post.message;      txtarea.focus();    donotinsert = false;    theSelection = false;    bblast = 0;      if (bbnumber == -1) { // Close all open tags & default button names       while (bbcode[0]) {          butnumber = arraypop(bbcode) - 1;          txtarea.value += bbtags[butnumber + 1];          buttext = eval('document.post.addbbcode' + butnumber + '.value');          eval('document.post.addbbcode' + butnumber + '.value ="' + buttext.substr(0,(buttext.length - 1)) + '"');       }       imageTag = false; // All tags are closed including image tags <img>       txtarea.focus();       return;    }      if ((clientVer >= 4) && is_ie && is_win)    {       theSelection = document.selection.createRange().text; // Get text selection       if (theSelection) {          // Add tags around selection          document.selection.createRange().text = bbtags[bbnumber] + theSelection + bbtags[bbnumber+1];          txtarea.focus();          theSelection = '';          return;       }    }    else if (txtarea.selectionEnd && (txtarea.selectionEnd - txtarea.selectionStart > 0))    {       mozWrap(txtarea, bbtags[bbnumber], bbtags[bbnumber+1]);       return;    }        // Find last occurance of an open tag the same as the one just clicked    for (i = 0; i <bbcode></script>

Re: IM Portal & BBcode Box Reloaded

PostPosted: Tue Jan 22, 2008 2:10 pm
Author: siljo
Yes that did the trick the buttons are working now,but the codes are not working.

I want to use the flash code and i get this:

Code: Select all
[flash width=180 height=246]file.swf[/flash:e6b4606ec1]


And other extra codes are also not working.

Re: IM Portal & BBcode Box Reloaded

PostPosted: Tue Jan 22, 2008 11:10 pm
Author: CaNNon
There was a BB code fix around here for a similar issue but I can't seem to find it.
If anyone has it bookmarked could you post a link for siljo to have a look?

Thanks.

Re: IM Portal & BBcode Box Reloaded

PostPosted: Wed Jan 23, 2008 3:52 pm
Author: siljo
Is [url=http]THIS[/url] the one?

Re: IM Portal & BBcode Box Reloaded

PostPosted: Wed Jan 23, 2008 10:08 pm
Author: CaNNon
Thats good info but I was looking for one that had a issue with [b] (not sure if thats the right tag) I think they had a fix for it. I know it's not your exact problem but it mat have given you some ideas.

Re: IM Portal & BBcode Box Reloaded

PostPosted: Thu Jan 24, 2008 2:58 am
Author: found it
Add

Code: Select all
//-- mod ]

after

[code]include($phpbb_root_path . 'includes/functions_post.'.$phpEx);include($phpbb_root_path . 'includes/bbcode.'.$phpEx);


in admin/admin_blocks.php

see if that helps.

Re: IM Portal & BBcode Box Reloaded

PostPosted: Fri Jan 25, 2008 2:27 am
Author: siljo
No it`s still the same.

Re: IM Portal & BBcode Box Reloaded

PostPosted: Fri Jan 25, 2008 3:58 am
Author: found it
Hi

Ok I added this file to my admin folder to get this to work... probably not the right way of doing it but it worked for me...

please find attached

Re: IM Portal & BBcode Box Reloaded

PostPosted: Fri Jan 25, 2008 2:06 pm
Author: siljo
No it is still showing me uid when i post it to block.I think that the problem is in block?

Re: IM Portal & BBcode Box Reloaded

PostPosted: Sat Jan 26, 2008 12:37 am
Author: found it
I have this working on one of my sites.... I will find all the files and post them here...