Info
- 15 posts
- 6 voices
- Started 2 years ago by Marius-
- Latest reply from airsidelimo
- This topic is not resolved
Can I remove features from BBCODE BUTTONS?
-
- Posted 2 years ago #
I just installed it, and it's great, but for me, it has too many features.
Can I remove some of them? I mainly want to keep Bold, Italic, Quote and Link. Not the other stuff.
There's no settings panel for it in Admin. -
- Posted 2 years ago #
You know what, this plugin doesn't work at all for me.
-
edit: Just tried out BBCode Lite, and that works.
Can you limit the width of an image, so it doesn't exceed the forum? -
- Posted 2 years ago #
Just tried deleting BBCode because I found that BBcode Lite made it work. But then the buttons disappeared.
Does BBCode Lite require the normal BBCode Buttons plugin to work? -
- Posted 2 years ago #
This plugin is no good. You have to press each button twice? One for quote-start, one for quote-end. You can't mark up text and wrap it in tags. This is not logical
-
- Posted 2 years ago #
Alright can someone help me remove some features from this?
I want to remove List, Unordered List, Close, Center, ORdered list, Code, URL, Strike through:<?php /* Plugin Name: BBcode Buttons Toolbar Plugin URI: http://bbpress.org/plugins/topic/114 Description: Automatically adds an easy access button toolbar above the post textarea to allow quick tags in BBcode. This is an enhanced replacement for the Comment Quicktags plugin. No template editing required. Author: _ck_ Author URI: http://bbShowcase.org Version: 0.0.9 License: CC-GNU-GPL http://creativecommons.org/licenses/GPL/2.0/ Donate: http://bbshowcase.org/donate/ */ add_action('post_form','bbcode_buttons',11); add_action('edit_form','bbcode_buttons',11); add_action('bbcode_buttons','bbcode_buttons'); function bbcode_buttons() { $tags = bb_allowed_tags(); echo "<scr"."ipt type='text/javascript' defer='defer'> function BBcodeButtons_init() { BBcodeButtons.push(new BBcodeButton('ed_bold','Fet','[b]','[/b]','b','font-weight:bold;','Fete bokstaver')); BBcodeButtons.push(new BBcodeButton('ed_italic','Kursiv','[i]','[/i]','i','padding-right:7px;font-style:italic;','Kursive bokstaver')); BBcodeButtons.push(new BBcodeButton('ed_under','U','[u]','[/u]','u','text-decoration:underline;','underline')); BBcodeButtons.push(new BBcodeButton('ed_strike','S','[s]','[/s]','s','text-decoration:line-through;','strike through')); BBcodeButtons.push(new BBcodeButton('ed_link','URL','','[/url]','a','text-decoration:underline;','make a link')); BBcodeButtons.push(new BBcodeButton('ed_block','“Sitat”','[quote]','[/quote]','q','padding:0 1px 1px 1px;','Siter tekst'));"; if (isset($tags['img'])) {echo "BBcodeButtons.push(new BBcodeButton('ed_img','Bilde','[img]','[/img]','m',-1));";} echo "BBcodeButtons.push(new BBcodeButton('ed_ul','UL','[list]','[/list]','u','','unordered list')); BBcodeButtons.push(new BBcodeButton('ed_ol','OL','[list=1]','[/list]','o','','ordered list')); BBcodeButtons.push(new BBcodeButton('ed_li','LI','[*]','[/*]','l','','list item'));"; if (isset($tags['center'])) {echo "BBcodeButtons.push(new BBcodeButton('ed_center','center','[center]','[/center]','c','','center'));";} echo "BBcodeButtons.push(new BBcodeButton('ed_code','CODE','[code]','[/code]','p','line-height:160%;font-size:80%;letter-spacing:1px;font-family:anadale,serif;','unformatted / code')); BBcodeButtons.push(new BBcodeButton('ed_close','close','','','c',' ','auto-close any tags you left open')); }</scr"."ipt> <scr"."ipt src='" .bb_get_option('uri').trim(str_replace(array(trim(BBPATH,"/\"),".php","\"),array("",".js","/"),__FILE__),"/\")."?0.0.9' type='text/javascript' defer='defer'></scr"."ipt>"; } ?> -
- Posted 2 years ago #
Ugh, talking to myself here. There is a bug with the Link function which fucks up IE, I suppose everyone has stopped caring now.
-
- Posted 2 years ago #
Simply put two slashes in front of any code you want to disable.
ie.
// BBcodeButtons.push(new BBcodeButton('ed_ol','OL','[list=1]','[/list]','o','','ordered list')); // BBcodeButtons.push(new BBcodeButton('ed_li','LI','[*]','[/*]','l','','list item'));"; -
- Posted 2 years ago #
HEEEEEEEEEEEEEEEEEEEEEEEEEEELLLLLLLL........
Not to shout but HEEEEEEEEEEEEEEEEELLLLL
I sat up all night removing code completely, and it's this easy? Just two slashes? Poor bastards couldn't write that in the fucking readme file.
-
It's not that easy, when removing the "Code" button this way, I get the following error:
Parse error: syntax error, unexpected '<' in /home/michael/public_html/forum/bb-plugins/bbcode-buttons/BBcode-buttons.php on line 29 -
- Posted 2 years ago #
When you do it for the code line make sure you put it after the echo part, ie.
echo "// BBcodeButtons.pushThe reason why there is so little documentation is because there aren't any donations for my plugins so there is no development/documentation. There is no support, keep that in mind when you take something for free and then want to customize it.
-
- Posted 2 years ago #
Ah you're the author huh. Yeah well, it's good you took initiative. Would really appreciate an admin panel for it. Like "what color do you want as background, what features do you want to include" etc. Had a hardass time styling the css in this one. The result turned out good though, so it wasn't impossible.
However, more importantly, I wish for the option to select text, and one click on button will automatically at a start and end-tag. Instead of clicking twice. This is the number one wish! All the other stuff I can live with.
-
- Posted 2 years ago #
Ah, I have one simple wish too. Maybe you could give me the code to put in right here :)
A youtube button! Is this possible? -
- Posted 10 months ago #
Lol @ Marius
-
- Posted 10 months ago #
Yeah well, it's good you took initiative. Would really appreciate an admin panel for it. Like "what color do you want as background, what features do you want to include" etc. Had a hardass time styling the css in this one. The result turned out good though, so it wasn't impossible.
However, more importantly, I wish for the option to select text, and one click on button will automatically at a start and end-tag. Instead of clicking twice. This is the number one wish! All the other stuff I can live with.
-
- Posted 10 months ago #
i am agree with all..except Marius!! Marius just shut up!! go to hell..!lolz
Affordable Logo Design
logo design services
business logo design
logo designing -
- Posted 9 months ago #
actually i don't have any need to delete something from this so i m not gonna do something like you people did
thanks
-:suha -
You must log in to post.