Module: BBcode version 2 (complete rewrite)
Posted by Maurice Makaay
|
Re: Module: BBcode version 2 (complete rewrite) February 03, 2009 06:09PM |
Registered: 16 years ago Posts: 7 |
|
February 03, 2009 06:34PM |
Admin Registered: 21 years ago Posts: 8,532 |
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
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 04:29AM |
Registered: 16 years ago Posts: 7 |
|
Anonymous User
Re: Module: BBcode version 2 (complete rewrite) July 18, 2009 09:25AM |
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 02:02PM by ab1.
-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 02:02PM by ab1.
|
July 18, 2009 01:06PM |
Admin Registered: 21 years ago Posts: 8,532 |
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
Maurice Makaay
Phorum Development Team
my blog
linkedin profile
secret sauce
|
Anonymous User
Re: Module: BBcode version 2 (complete rewrite) July 18, 2009 02:01PM |
|
April 16, 2010 09:17AM |
Admin Registered: 19 years ago Posts: 746 |
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.
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.
|
April 16, 2010 10:32AM |
Admin Registered: 21 years ago Posts: 8,532 |
Fixed in changeset 4717, thanks.
Maurice Makaay
Phorum Development Team
my blog
linkedin profile
secret sauce
Maurice Makaay
Phorum Development Team
my blog
linkedin profile
secret sauce
|
Re: Module: BBcode version 2 (complete rewrite) April 19, 2010 12:17PM |
Registered: 15 years ago Posts: 12 |
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();
Edited 1 time(s). Last edit at 04/19/2010 12:17PM by zetoun.
file : mods/bbcode_editor_tools.js
function editor_tools_handle_img();
Language: Javascriptvar 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 12:17PM by zetoun.
|
September 21, 2010 10:16AM |
Registered: 16 years ago Posts: 81 |
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
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.

