Firefox PHP

Module: BBcode version 2 (complete rewrite)

Posted by Maurice Makaay 
Re: Module: BBcode version 2 (complete rewrite)
February 04, 2009 12:09AM
Sorry i didnt explain well. I translated lang file...but i cannot find


this quote to translate
Re: Module: BBcode version 2 (complete rewrite)
February 04, 2009 12:34AM
That occurance is defined in the bbcode module language file.
mods/bbcode/lang/....php
You'd have to create a language file for the BBcode module to override that.


Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
Re: Module: BBcode version 2 (complete rewrite)
February 04, 2009 10:29AM
tnx maurice
Anonymous User
Re: Module: BBcode version 2 (complete rewrite)
July 18, 2009 03:25PM
I don't know anything in php but i try to make an implementation of the module, for a better compatibility with the smileys module:

-Incorporating a smiley line which allows to disable the smiley tool box in the tool bar while letting the smileys enabled:

"Enabled", or "Enabled + editor tools button"



Edited 1 time(s). Last edit at 07/18/2009 08:02PM by ab1.
Re: Module: BBcode version 2 (complete rewrite)
July 18, 2009 07:06PM
I am not fully sure what you are trying here. You want to remove the smiley button? Then go to the settings of the smileys module and disable the options "Enable body smiley button in the editor tools" and/or "Enable subject smiley button in the editor tools".


Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
Anonymous User
Re: Module: BBcode version 2 (complete rewrite)
July 18, 2009 08:01PM
Thanks, i didn't see these buttons. My limited english language doesn't help me.
Re: Module: BBcode version 2 (complete rewrite)
April 16, 2010 03:17PM
Hi Maurice,

I just installed version 5.2.15a which includes also the BBCode Module in version 2.0.10 and I noticed that language strings for the new left/right alignment tags are missing in english.php.

Regards
Oliver


Using Phorum since 7/2000: forum.langzeittest.de (actual version 5.2.23)
Modules "Made in Germany" for version 5.2: Author_as_Sender, CarCost, Close_Topic, Conceal_Message_Timestamp,
Format_Email, Index_Structure, Mailing_List, Pervasive_Forum, Spritmonitor, Terms_of_Service and German_Language_Files_Package.
Re: Module: BBcode version 2 (complete rewrite)
April 16, 2010 04:32PM
Fixed in changeset 4717, thanks.


Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
Re: Module: BBcode version 2 (complete rewrite)
April 19, 2010 06:17PM
i add a image size check function in bb code editor, maybe you could add this too

file : mods/bbcode_editor_tools.js
function editor_tools_handle_img();

Language: Javascript
var jsImage = { width : ';';, height : ';';, options:{maxwidth:-1,maxheight:-1,minwidth:10,minheight:10,onSucess:';';},   reset : function() { var t = jsImage; t.width = t.height = ';';; },   update : function() { var t = jsImage;   t.width = t.preloadImg.width; t.height = t.preloadImg.height;   var r=';';; if(t.options.minwidth>0 && t.width<t.options.minwidth) { r=';image too small';; } else if(t.options.minheight>0 && t.height<t.options.minheight) { r=';image too small';; } else if(t.options.maxwidth>0 && t.width>t.options.maxwidth) { r=';image too big, max width=';+t.options.maxwidth+'; px';; } else if(t.options.maxheight>0 && t.height>t.options.maxheight) { r=';image too big, max height=';+t.options.maxheight+'; px';; } else { if(t.onSucess!=undefined && t.onSucess!=';';) { t.onSucess(t.preloadImg.src); } return; } alert(r); },   get : function(src) { var t = jsImage;   t.reset(); if ( ! src ) { return "invalid image url"; }   t.preloadImg = new Image(); t.preloadImg.onload = t.update; t.preloadImg.onerror = t.reset; t.preloadImg.src = src; },   check : function(src,options) { var t = jsImage;   if(typeof(options)==';object';) { for(var i in t.options) { if(options[i]!=undefined) { t.options[i]=options[i]; } } }   t.get(src); } } var editor_tools_handle_img_ok=function (url) { editor_tools_add_tags(';[img]'; + url + ';[/img]';, ';';); editor_tools_focus_textarea(); } function editor_tools_handle_img() { var url = ';http://';;   for (;;) { // Read input. url = prompt(editor_tools_translate("enter image url"), url); if (url == null) return; // Cancel clicked. url = editor_tools_strip_whitespace(url);     // Check the URL scheme (http, https, ftp and mailto are allowed). var copy = url.toLowerCase(); if (copy == ';http://'; || ( copy.substring(0,7) != ';http://'; && copy.substring(0,8) != ';https://'; && copy.substring(0,6) != ';ftp://';)) { alert(editor_tools_translate("invalid image url")); continue; }   // Check image width & height jsImage.check(url,{maxwidth:600,maxheight:600,onSucess:editor_tools_handle_img_ok});   break; }   }



Edited 1 time(s). Last edit at 04/19/2010 06:17PM by zetoun.
Re: Module: BBcode version 2 (complete rewrite)
September 21, 2010 04:16PM
Hi,
In he BBCode Editor toolbar used in this forum I find in the code button various options such as "Plain text, CSS, HTML, Javascript" etc. How to get a similar list in the BBCode editor used in our forum as well. Currently when I click that button in our forum I am not getting that dropdown div panel but instead the selected text is getting covered with the [code] BB code tag only.
Can some one help please.
Regards,
Sreenadh
Sorry, only registered users may post in this forum.

Click here to login