Page 1 of 1
[solved] IM Portal & BBcode Box Reloaded

Posted:
Sat Jan 19, 2008 1: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 MessageIn 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

Posted:
Sun Jan 20, 2008 5: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..

Re: IM Portal & BBcode Box Reloaded

Posted:
Mon Jan 21, 2008 4: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

Posted:
Tue Jan 22, 2008 12:57 am
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...

Re: IM Portal & BBcode Box Reloaded

Posted:
Tue Jan 22, 2008 1: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

Posted:
Tue Jan 22, 2008 4: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

Posted:
Tue Jan 22, 2008 3: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

Posted:
Wed Jan 23, 2008 12:10 am
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

Posted:
Wed Jan 23, 2008 4:52 pm
Author: siljo
Is [url=http]THIS[/url] the one?
Re: IM Portal & BBcode Box Reloaded

Posted:
Wed Jan 23, 2008 11: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

Posted:
Thu Jan 24, 2008 3: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

Posted:
Fri Jan 25, 2008 3:27 am
Author: siljo
No it`s still the same.
Re: IM Portal & BBcode Box Reloaded

Posted:
Fri Jan 25, 2008 4: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

Posted:
Fri Jan 25, 2008 3: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

Posted:
Sat Jan 26, 2008 1:37 am
Author: found it
I have this working on one of my sites.... I will find all the files and post them here...
Re: IM Portal & BBcode Box Reloaded

Posted:
Sat Jan 26, 2008 3:29 pm
Author: siljo
That would e great.Thank you
Re: IM Portal & BBcode Box Reloaded

Posted:
Wed Jan 30, 2008 6:35 am
Author: siljo
"found it";p="30722" wrote:I have this working on one of my sites.... I will find all the files and post them here...
Any news on this?
Re: IM Portal & BBcode Box Reloaded

Posted:
Wed Jan 30, 2008 9:16 am
Author: found it
thanks for reminding me ....please find attahed my importal admin files...
Re: IM Portal & BBcode Box Reloaded

Posted:
Thu Jan 31, 2008 9:01 am
Author: siljo
Hi,all the files are identical (winmerge) except blocks_edit_body.tpl where you have
- Code: Select all
<td><table> {BBC_DISPLAY_BOX} <tr> <td><textarea>{MESSAGE}</textarea></td></tr></table></td></tr>
and i have
- Code: Select all
<td><table> {BBC_DISPLAY_BOX} <tr> <td><textarea>{CONTENT}</textarea></td> </tr> </table></td> </tr>
The only diference is {MESSAGE}/{CONTENT}.Ii put in {MESSAGE} the previous txt disapires.And i still get uid when i post message.
Could you post the bb block?
Re: IM Portal & BBcode Box Reloaded

Posted:
Thu Jan 31, 2008 10:46 am
Author: found it
hi sorry what is the bb block?
Re: IM Portal & BBcode Box Reloaded

Posted:
Fri Feb 01, 2008 6:35 am
Author: siljo
bbcode block <img>
Re: IM Portal & BBcode Box Reloaded

Posted:
Tue Feb 05, 2008 3:06 pm
Author: siljo
Is there anything i should change in fetchposts.php?I think this could be the one that is cousing me trouble.
Re: IM Portal & BBcode Box Reloaded

Posted:
Thu Feb 07, 2008 3:59 pm
Author: siljo
Any news on this?
Re: IM Portal & BBcode Box Reloaded

Posted:
Sat Feb 09, 2008 2:44 am
Author: found it
hi
I have looked at this again and still cant see anything different to the files I gave you...
fetchpost.php is the same and had=s no changes I am at a lost as to why it dosnt work for you...
I will keep looking...

Re: IM Portal & BBcode Box Reloaded

Posted:
Sun Feb 10, 2008 8:41 am
Author: siljo
Thank you found it.I hope we will get this working <img>
Re: IM Portal & BBcode Box Reloaded

Posted:
Tue Feb 19, 2008 2:53 am
Author: siljo
Could you please check the functions_portal.php and lite.php
Re: IM Portal & BBcode Box Reloaded

Posted:
Wed Feb 20, 2008 4:47 am
Author: found it
No nothing different in those files..
heres all my importal files so you can have a look...

Re: IM Portal & BBcode Box Reloaded

Posted:
Sun Feb 24, 2008 5:39 am
Author: siljo
Files are identical,and i still can`t get this working.Perhaps there is something in bbcode.php?
Re: IM Portal & BBcode Box Reloaded

Posted:
Tue Mar 04, 2008 4:03 am
Author: siljo
Sorry for this,but bump <img>
Re: IM Portal & BBcode Box Reloaded

Posted:
Thu Mar 13, 2008 12:42 pm
Author: siljo
found it did you forget about me?
Re: IM Portal & BBcode Box Reloaded

Posted:
Thu Mar 13, 2008 1:37 pm
Author: found it
I did and I am sorry for that got caught up in other work....
I will have another look tomorrow for you and go from there...
Re: IM Portal & BBcode Box Reloaded

Posted:
Mon Mar 17, 2008 4:12 pm
Author: siljo
Got it working

Re: IM Portal & BBcode Box Reloaded

Posted:
Tue Mar 18, 2008 1:34 am
Author: found it
excellant was it something simple...?
could you possibly post what you did so anyone else looking to do the same can find the answer here...

Re: IM Portal & BBcode Box Reloaded

Posted:
Tue Mar 18, 2008 2:51 pm
Author: siljo
Sure

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>REPLACE WITH:{BBC_JS_BOX}FIND: <END> </table> </td> </tr> </table></td><td><table> <tr> <td><span> <input> </span></td> <td><span> <input> </span></td> <td><span> <input> </span></td> <td><span> <input> </span></td> <td><span> <input> </span></td> <td><span> <input> </span></td> <td><span> <input> </span></td> <td><span> <input> </span></td> <td><span> <input> </span></td> </tr> <tr> <td> <table> <tr> <td><span> {L_FONT_COLOR}: <select> <option> <option>{L_FONT_TINY}</option> <option>{L_FONT_SMALL}</option> <option>{L_FONT_NORMAL}</option> <option>{L_FONT_LARGE}</option> <option>{L_FONT_HUGE}</option> </select> </span></td> <td><span><a>{L_BBCODE_CLOSE_TAGS}</a></span></td> </tr> </table> </td> </tr> <tr> <td> <span> <input type="text" name="helpbox" size="45" maxlength="100" style="widthpx]
This is what i had to do,to get this mod working in Admin CP and Portal <img>
Re: IM Portal & BBcode Box Reloaded

Posted:
Tue Mar 18, 2008 5:03 pm
Author: found it
Nice one I am sorry it took so long to solve but I am glad you got there...
I will mark this as solved...
