# Forums

Unfortunately no one can be told what FluxBB is - you have to see it for yourself.

You are not logged in.

## #351 2016-02-25 15:53:09

novski
New member
Registered: 2016-02-23
Posts: 2

### Re: [MOD] EZBBC Toolbar

cyberman wrote:

Equation Editor is a separate editor..

Thats not what i wanted to request. I thaught of a parser as well. Have a look here:
codecogs .com/latex/quick-install.php

It has a installguide that can be loaded and then gives out the latex formated formulaes.
So i think a simple button on the editbar with a popup window that loads that eqneditor from the codecogs site and then parses the latex is quite easy... (im not a programer...)
Regards, Novski

Offline

## #352 2016-03-03 18:22:07

gaara14
New member
Registered: 2016-02-03
Posts: 3

### Re: [MOD] EZBBC Toolbar

Thanks for this mod. A must have.
(fluxBB 1.5.9)

Last edited by gaara14 (2016-03-03 18:23:35)

Offline

## #353 2016-03-03 21:49:35

cyberman
Member
From: Germany
Registered: 2010-01-11
Posts: 297
Website

### Re: [MOD] EZBBC Toolbar

novski wrote:

I thaught of a parser as well.

EZBBC isn't a parser.

EZBBC is only an UI to a BBC code set which exists inside FluxBB.

Have tried the editor for phpBB (another forum software). And the result is for example

$$x^{2} * \frac{a}{b}$$

As you can see there's a new command "tex" inside. That's means in my humble opinion it would be a job for FluxBB parser and not for EZBBC.

Offline

## #354 2016-03-06 09:26:02

Arctus
Member
Registered: 2011-04-05
Posts: 1

### Re: [MOD] EZBBC Toolbar

Hello.
centre
right
[right\] [/right\]
[center\][/center\]
this bb codes works on my forum

Last edited by Arctus (2016-03-06 09:26:43)

Offline

## #355 2016-03-06 11:44:51

Developer
From: France
Registered: 2010-01-07
Posts: 843
Website

### Re: [MOD] EZBBC Toolbar

Hello Arctus,

Can you give a try to the FluxToolbar?

All these tags are included.

FeatherBB - A simple and lightweight new generation forum system
Based on FluxBB, written in PHP, using Slim Framework for a proper OOP-MVC architecture.

Offline

## #356 2016-03-07 08:32:07

cyberman
Member
From: Germany
Registered: 2010-01-11
Posts: 297
Website

### Re: [MOD] EZBBC Toolbar

Can you give a try to the FluxToolbar?

All these tags are included.

What's the last version which will work with Flux 1.4 series?

Offline

## #357 2016-03-07 09:58:41

Developer
From: France
Registered: 2010-01-07
Posts: 843
Website

### Re: [MOD] EZBBC Toolbar

FeatherBB - A simple and lightweight new generation forum system
Based on FluxBB, written in PHP, using Slim Framework for a proper OOP-MVC architecture.

Offline

## #358 2016-03-07 10:54:05

cyberman
Member
From: Germany
Registered: 2010-01-11
Posts: 297
Website

### Re: [MOD] EZBBC Toolbar

Thx - will give a try.

Upgrading to 1.5.x is a real big job in cause of too much mods .

The link for all other 1.4.x lovers

https://fluxbb.org/resources/mods/fluxt … r_v2.1.zip

(isn't available anymore in project page)

Offline

## #359 2016-03-07 16:06:23

Developer
From: France
Registered: 2010-01-07
Posts: 843
Website

### Re: [MOD] EZBBC Toolbar

FeatherBB - A simple and lightweight new generation forum system
Based on FluxBB, written in PHP, using Slim Framework for a proper OOP-MVC architecture.

Offline

## #360 2016-07-20 15:19:12

Gamer
Member
Registered: 2013-10-09
Posts: 88
Website

### Re: [MOD] EZBBC Toolbar

im getting this error inside the admin plugins

Warning: file_exists(): open_basedir restriction in effect. File(/home/vhosts/www.myhost.com/plugins/ezbbc/style/Thumbs.db/ezbbc.css) is not within the allowed path(s): (/home/vhosts/www.myhost.com/:/tmp/:/usr/share/pear/) in /home/vhosts/www.myhost.com/plugins/AP_EZBBC_Toolbar.php on line 877

i have the last version of fluxbb

Last edited by Gamer (2016-07-20 15:19:44)

Offline

## #361 2016-09-19 05:44:20

New member
Registered: 2016-09-19
Posts: 1

### Re: [MOD] EZBBC Toolbar

Is there a plan to update the video code for https?

Offline

## #362 2017-01-23 01:22:49

Recognition
Member
Registered: 2017-01-20
Posts: 79
Website

### Re: [MOD] EZBBC Toolbar

Ive been getting internal server errors when i try to use some of the features of this. Is there a certain permission i need to set? I have everything at 7777 but maybe the server is flagging that as an issue?

http://allr6.com/discuss you will see what i mean
1.5.10

For example when i try to use the Image thing:
http://allr6.com/discuss/plugins/ezbbc/ … eq_message

or quote or code and a few more!!

?

I tried changing the permissions of those files to 744 755 766 777 666 nothing worked?

[22-Jan-2017 18:22:18 America/Denver] PHP Warning:  Cannot modify header information - headers already sent by (output started at /home/recognition/allr6.com/discuss/edit.php:1) in /home/recognition/allr6.com/discuss/include/functions.php on line 1472

but i dont think it is the issue?

Last edited by Recognition (2017-01-23 02:01:16)

Offline

## #363 2017-08-05 10:33:33

Opitux
New member
Registered: 2017-08-05
Posts: 1

### Re: [MOD] EZBBC Toolbar

Hi everybody,

This is my first message on fluxbb.org
Excuse my English which is not really fluent

We use the EZBBC Toolbar for randonner-leger.org website.
Our template is responsive but all the plugin is not. We have to add a viewport element manually in some pop-up pages (colorpicker.php, heading.php, link.php, email.php, image.php, quote.php and code.php).

Could-it be possible to update the plugin whith the viewport element ?

Offline

## #364 2018-01-19 11:47:08

lorem ipsum
New member
Registered: 2018-01-17
Posts: 3

### Re: [MOD] EZBBC Toolbar

I'm using EZBBC since abt. one year, and it's great! Thanks!

But I found a nasty bug: when one of the list buttons is used and the text to be list-formatted contains (double) quotes, the bug eats all text from the first occurence of a quote sign up to the end of the paragraph.

(Please excuse if this bug has already been mentioned. I'm registered here since two days only and still didn't find the time to read all 15 pages.)

Offline

## #365 2018-01-20 09:35:13

lorem ipsum
New member
Registered: 2018-01-17
Posts: 3

### Re: [MOD] EZBBC Toolbar

Seems that I was able to understand and fix the bug for myself. Maybe it's of interest for others, so I try to document it.

Background:

As we know, there are two ways of using the list buttons: with or without selecting (marking) text in the input field before. In the first case, the selected paragraphs will be turned into list items which pre-fill the EZBBC list input mask, while in the second case we'll get an empty mask which can be filled out manually. Important to know: The bug only occurs in the first case.

Then each paragraph of the selected text will become part of an HTML input tag, which will look like this:

<input type="text" ... value="[paragraph]" ... />

The value part, which pre-fills the input fields, is enclosed in quotes, so it's obvious that the paragraph itself may NOT contain quotes, otherwise the first of them will act as end delimiter for the value part, leaving the rest of our text as "ignorable garbage" (at least from the browser's point of view).

Bugfix

Quotes which are part of the text itself need to be esacaped or converted such that they are no longer recognized as delimiters. This is missing in the current EZBBC code. I decided to convert them into their entity equivalent &quot;, which can be done by adding a single javascript code line. The following modification did it for me:

Open list.php and locate the following code part:

/* Treating the selection */
if (currentSelection != '') {
var item = currentSelection.split('\n');
for(i=0;i<item.length;i++) {
item[i] = '<li><input type="text" name="element' + i + '" value="' + item[i] + '" size="55" onKeyPress="if (event.keyCode == 13) addItem();"  /></li>';
}

By the way, some Indentations look slightly strange, so we take the opportunity to prettify them while adding a new first code line to the for loop:

/* Treating the selection */
if (currentSelection != '') {
var item = currentSelection.split('\n');
for(i=0;i<item.length;i++) {
item[i] = item[i].replace(/"/g, "&quot;");        // added to fix the "quote bug"
item[i] = '<li><input type="text" name="element' + i + '" value="' + item[i] + '" size="55" onKeyPress="if (event.keyCode == 13) addItem();"  /></li>';
}

That's it. I didn't test it very extensively for now, but I hope it will do it's job without unwanted side effects.

Offline

## #366 2019-07-22 10:31:00

lorem ipsum
New member
Registered: 2018-01-17
Posts: 3

### Re: [MOD] EZBBC Toolbar

Anyway, I discovered another flaw in the EZBBC toolbar, regarding automatic resizing of too big pictures. (If an uploaded image's width exceeds the configured limit, EZBBC downscales it accordingly.) Such rescaling is very senseful to save storage space and bandwidth by orders of magnitude, as webpages by far don't need the full resolution of a camera photo.
However, it's NOT senseful to convert even GIF or PNG pictures to JPG while rescaling, as EZBBC does! There is no need, and I don't see any rational reason to do such thing. I'm considering this a flaw, as it patronizes the user who may have had good reasons to use GIF/PNG rather than JPG. JPG is great for photos, but for simple graphics such as plotted graphs etc., it is the very wrong format, as it's quality losses and artifacts may significantly degrade the visible quality. It lets edges and clear colours look "dirty". In such cases, it is wiser to use one of the lossless formats (GIF or PNG), which have often even smaller file sizes.

I don't understand why the EZBBC developers decided to "JPGize" the lossless formats, especially since it would have taken no extra effort to respect the original formats. I fixed the problem in .../plugings/ezbbc/image.php as follows (and it took much less time than writing this post... ).

Original code snippet:

                        //Width too big, we have to resize the file
$new_width =$ezbbc_config['max_img_width'];
$new_height =$ezbbc_config['max_img_width'] / $width *$height;
switch ($file_ext) { case 'gif':$img_to_modify = imagecreatefromgif($temp_file);$new_name      = str_replace('.gif', '.jpg', $def_file_name);$file_name     = str_replace('.gif', '.jpg', $file_name);$file_path     = $pun_config['o_base_url'] . '/' .$ezbbc_config['img_folder'] . '/' . $pun_user['id'] . '/' .$new_name;
break;
case 'png':
$img_to_modify = imagecreatefrompng($temp_file);
$new_name = str_replace('.png', '.jpg',$def_file_name);
$file_name = str_replace('.png', '.jpg',$file_name);
$file_path =$pun_config['o_base_url'] . '/' . $ezbbc_config['img_folder'] . '/' .$pun_user['id'] . '/' . $new_name; break; case 'jpg':$img_to_modify = imagecreatefromjpeg($temp_file);$new_name      = str_replace('.jpg', '.jpg', $def_file_name);$file_name     = str_replace('.jpg', '.jpg', $file_name);$file_path     = $pun_config['o_base_url'] . '/' .$ezbbc_config['img_folder'] . '/' . $pun_user['id'] . '/' .$new_name;
break;
case 'jpeg':
$img_to_modify = imagecreatefromjpeg($temp_file);
$new_name = str_replace('.jpeg', '.jpg',$def_file_name);
$file_name = str_replace('.jpeg', '.jpg',$file_name);
$file_path =$pun_config['o_base_url'] . '/' . $ezbbc_config['img_folder'] . '/' .$pun_user['id'] . '/' . $new_name; break; }$resized_img = imagecreatetruecolor($new_width,$new_height);
imagecopyresampled($resized_img,$img_to_modify, 0, 0, 0, 0, $new_width,$new_height, $width,$height);
$upload_ok = imagejpeg($resized_img, $loc_user_folder . '/' .$new_name, 85);
@chmod($loc_user_folder . '/' .$new_name, 0644);
imagedestroy($resized_img); imagedestroy($img_to_modify);
@unlink($temp_file); ... My modification:  //Width too big, we have to resize the file$new_width  = $ezbbc_config['max_img_width'];$new_height = $ezbbc_config['max_img_width'] /$width * $height;$resized_img = imagecreatetruecolor($new_width,$new_height);
$new_name =$def_file_name;
$file_path =$pun_config['o_base_url'] . '/' . $ezbbc_config['img_folder'] . '/' .$pun_user['id'] . '/' . $new_name; switch ($file_ext)
{
case 'gif':
$img_to_modify = imagecreatefromgif($temp_file);
imagecopyresampled($resized_img,$img_to_modify, 0, 0, 0, 0, $new_width,$new_height, $width,$height);
$upload_ok = imagegif($resized_img, $loc_user_folder . '/' .$new_name);
break;
case 'png':
$img_to_modify = imagecreatefrompng($temp_file);
imagecopyresampled($resized_img,$img_to_modify, 0, 0, 0, 0, $new_width,$new_height, $width,$height);
$upload_ok = imagepng($resized_img, $loc_user_folder . '/' .$new_name, -1);
break;
case 'jpg':
$img_to_modify = imagecreatefromjpeg($temp_file);
imagecopyresampled($resized_img,$img_to_modify, 0, 0, 0, 0, $new_width,$new_height, $width,$height);
$upload_ok = imagejpeg($resized_img, $loc_user_folder . '/' .$new_name, 85);
break;
case 'jpeg':
$img_to_modify = imagecreatefromjpeg($temp_file);
imagecopyresampled($resized_img,$img_to_modify, 0, 0, 0, 0, $new_width,$new_height, $width,$height);
$upload_ok = imagejpeg($resized_img, $loc_user_folder . '/' .$new_name, 85);
break;
}
@chmod($loc_user_folder . '/' .$new_name, 0644);
imagedestroy($resized_img); imagedestroy($img_to_modify);

Offline