Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Responsive FileManager
#51
Thanks ,that works fine.

One thing, i wil change the code from the thumb
Code:
<img alt ...

for some reason i wil put a div arount the image tag
Code:
<div> <img alt ...
... , but cant find the code.
Reply
#52
(2015-11-11, 07:43:35)Frens Wrote: Thanks ,that works fine.

One thing, i wil change the code  from the thumb
Code:
<img alt ...

for some reason i wil put a div arount the image tag
Code:
<div> <img alt ...
  ... , but cant find the code.

If I understood you correctly - You want that Thumbs IMG tag would be inserted between DIV tags?
If I am right - than you can modify  admin\template\js\ckeditor\plugins\thumb\dialogs\thumb.js   file's line #112 as follow:

Code:
reff.setHtml( '<div class="thumb-image"><img alt="'+data.txtAlt+'" src="'+data.file_url+'" style="'+styles+'" /></div>' );


Good luck. Andrejus.
Reply
#53
(2015-11-12, 18:21:25)asemion Wrote:
(2015-11-11, 07:43:35)Frens Wrote: Thanks ,that works fine.

One thing, i wil change the code  from the thumb

Code:
<img alt ...

for some reason i wil put a div arount the image tag

Code:
<div> <img alt ...
  ... , but cant find the code.

If I understood you correctly - You want that Thumbs IMG tag would be inserted between DIV tags?
If I am right - than you can modify  admin\template\js\ckeditor\plugins\thumb\dialogs\thumb.js   file's line #112 as follow:


Code:
reff.setHtml( '<div class="thumb-image"><img alt="'+data.txtAlt+'" src="'+data.file_url+'" style="'+styles+'" /></div>' );


Good luck. Andrejus.


Hi  Andrejus,


Thanks its Ok now, Big Hug for you.
Reply
#54
Hi,

Change in he config.php
Code:
'fixed_image_creation' => true,
'fixed_path_from_filemanager' => array( '../../data/thumbs/' ),
'fixed_image_creation_name_to_prepend' => array( '' ),
'fixed_image_creation_to_append' => array( '' ),
'fixed_image_creation_width' => array( 200 ),
'fixed_image_creation_height' => array(160 ),
'fixed_image_creation_option' => array( 'crop', 'auto' ),


It works fine , but when upload a file it shows a X with a message: Server error (the image is upload).

Furder
When upload a new file there are 2 files in the map, sample:
my_file.jpg and my_file_thumb.jpg which is not desired?!
Reply
#55
(2015-12-07, 20:39:23)Frens Wrote: Hi,

Change in he config.php

Code:
'fixed_image_creation' => true,
'fixed_path_from_filemanager' => array( '../../data/thumbs/' ),
'fixed_image_creation_name_to_prepend' => array( '' ),
'fixed_image_creation_to_append' => array( '' ),
'fixed_image_creation_width' => array( 200 ),
'fixed_image_creation_height' => array(160 ),
'fixed_image_creation_option' => array( 'crop', 'auto' ),


It works fine , but when upload a file it shows a X  with a message: Server error (the image is upload).

Furder
When upload a new file there are 2 files in the map, sample:
my_file.jpg and my_file_thumb.jpg which is not desired?!


Hi, Frens.
If you modify config.php in your installation with a code above then everything should work as needed.
In data/uploads catalog should appear uploaded image and in data/thumbs catalog should appear his thumbnail with the same name and 200x160px dimensions.
If you have the otherwise - therefore you missed something or directory structure on your site nonstandard (changed from default).
I now again trying on my sites to send images with the following parameters and to me everything went well and without any server errors.
Reply
#56
Thanks for comment

It works , thats no problem.

But normally the folder shows ONE image , i think thats the best way. (it is also standard)

So mayby there is a othter method only change the widht of 122px from the image
Reply
#57
(2015-12-09, 19:14:06)Frens Wrote: Thanks for comment

It works , thats no problem.

But normally the folder shows ONE image , i think thats the best way. (it is also standard)

So mayby there is a othter method only change the widht of 122px from the image


No other method to change the thumbs width of 122px to desired in RFM.
Only the above-described method when changed settings in the file config.php
It is strange that to you created 2 files in the same directory. Perhaps incorrectly identified the main catalogs path in config.php
I suggest you to check these settings:
'upload_dir'
'current_path'
'thumbs_base_path'

To me on local server (XAMPP) they are as follows:
'upload_dir' => '/getsimple/data/uploads',
'current_path' => '../../data/uploads',
'thumbs_base_path' => '../../data/thumbs',

On web server (GS installed in the sub catalog, not in the root) they are as follows:
'upload_dir' => '/projects/getsimple/data/uploads',
'current_path' => '../../data/uploads',
'thumbs_base_path' => '../../data/thumbs',

On both servers RFM plugin works as needed.
Reply
#58
Thanks ,that works fine.
Reply
#59
Thanks its Ok now

'fixed_image_creation_width' => array( 200 ),
'fixed_image_creation_height' => array(160 ),

I try to let the image height Scale along the widht this way , but not work, an idea?
'fixed_image_creation_width' => array( 200 ),
'fixed_image_creation_height' => array( ),
Reply
#60
(2015-12-13, 06:19:06)Frens Wrote: Thanks its Ok now

'fixed_image_creation_width' => array( 200 ),
'fixed_image_creation_height' => array(160 ),

I try to let the image height Scale along the widht  this way , but not work, an idea?
'fixed_image_creation_width' => array( 200 ),
'fixed_image_creation_height' => array( ),


If you use only one parameter ('fixed_image_creation_width' or 'fixed_image_creation_height') and second parameter leave an empty meaning that it will be generated automatically. So can be used only one option 'fixed_image_creation_option' set to auto. Like that:

Code:
'fixed_image_creation_option' => array( 'auto' ),

If you use parameter 'crop' - you must provide both image dimensions. So if you want that thumbs will be generated according to set width to 200px and height will set automatically you need to change the settings as follows:

Code:
'fixed_image_creation' => true,
'fixed_path_from_filemanager' => array( '../../data/thumbs/' ),
'fixed_image_creation_name_to_prepend' => array( '' ),
'fixed_image_creation_to_append' => array( '' ),
'fixed_image_creation_width' => array( 200 ),
'fixed_image_creation_height' => array( '' ),
'fixed_image_creation_option' => array( 'auto' ),

By the way, if you have problems with that's method You can be forced to change thumbs creation default settings in file responsivefilemanager/upload.php
For that open the file in editor, find line #92 and change dimensions according to your wishes. For example follows:

Code:
if ( ! create_img($targetFile, $targetFileThumb, 200, 160))

Now all new thumb images will have width: 200px and height: 160px by default.
Reply
#61
I have try it all , but for me its not working good.

sample:
Wil make a image widht 320px , height scalable to the widht
Reply
#62
(2015-12-16, 20:37:13)Frens Wrote: I have try it all , but for me its not working good.

sample:
Wil make a image widht 320px , height  scalable to the widht


Well, I do not know what else I can help you.

If someone you do not go out - it does not mean that the fault of the plugin. Sorry...
Reply
#63
(2015-12-17, 16:32:01)asemion Wrote:
(2015-12-16, 20:37:13)Frens Wrote: I have try it all , but for me its not working good.

sample:
Wil make a image widht 320px , height  scalable to the widht


Well, I do not know what else I can help you.

If someone you do not go out - it does not mean that the fault of the plugin. Sorry...

I not say that its a fault of the plugin, try to find out ....
You help me great!
Reply
#64
(2015-12-17, 21:14:37)Frens Wrote: I not say that its a fault of the plugin, try to find out ....
You help me great!


As I wrote previously, everything is done by editing settings.php file. To solve your task (image width 320px , height  scalable to the width) you need to change the code as follows:


Code:
'fixed_image_creation' => true,
'fixed_path_from_filemanager' => array( '../../data/thumbs/' ),
'fixed_image_creation_name_to_prepend' => array( '' ),
'fixed_image_creation_to_append' => array( '' ),
'fixed_image_creation_width' => array( 320 ),
'fixed_image_creation_height' => array( '' ),
'fixed_image_creation_option' => array( 'auto' ),
Reply
#65
(2015-08-26, 06:40:43)Oleg06 Wrote: my editor looks like this
http://prntscr.com/88uiw6
after installing the plugin additional buttons disappear
http://prntscr.com/88ujca

Hi,

I would like to know which Editor you are using, it looks powerful.
I have been using the default editor, lack of features Sad

Thanks and regards,
T.
Reply
#66
I use ckeditor version 4.5.4 with additional plugins
http://getsimplecms.ru/data/uploads/gs/G...5.4-EN.zip
Russian vercion
http://getsimplecms.ru/samaya-prostaya-c...imple-cms/
Reply
#67
(2016-01-15, 00:18:13)thangnaodo Wrote: I would like to know which Editor you are using, it looks powerful.
I have been using the default editor, lack of features Sad

Hi. I use standard CKEditor which goes with GS.
Newest GS 3.3.7 has CKEditor v. 3.6.6
By default activated mode is "basic", so you and missing features. Set up "advanced" mode and you will be lucky enough to.   Wink
My Editor with advanced mode also looks much like to Oleg.
Reply
#68
I can't seem to change the language back to english. I can switch to all the other languages though.
Reply
#69
(2016-04-16, 13:36:48)mengi Wrote: I can't seem to change the language back to english. I can switch to all the other languages though.

The default language RFM is determined from site language (Administration area Tab Settings -> Language).
But user can change the desired language just in the RFM window with button "change language" (globe picture):


[Image: rfm_1.jpg]
[Image: rfm_2.jpg]
This change is stored until the session is valid.
Reply
#70
Version changed to 2.2

Plugin changes:
  1. The kernel version has upgraded to ver. 9.10.2.
  2. From the administration page has been removed following elements: "Load PrettyPhoto JavaScript" and "Load FancyBox JavaScript". Now they will be loaded automatically (when necessary).
  3. To the administration page add new area "Thumbnails creation settings" where you can define a new thumbnail creation parameters. The descriptions and examples are available at this area.
  4. In the CKEditor Thumbnail dialog window to the Thumbnail target element add a new parameter "BaguetteBox". BaguetteBox is a lightweight, independent (no JQuery required) Javascript which allows you to create image galleries. In order to create a new gallery you need: from Thumbnail target list choose "BaguetteBox", if the image is the first in the gallery additionally check the "Start a new gallery" checkbox.
  5. Thumbnail insertion code was changed in a way that allows you to create galleries. Therefore, you can not use any additional plugins.
[Image: thumb_settings.jpg]

How to create a picture gallery with RFM without any additional plugins. Open or create a gallery page. Click CKEditor toolbar button Insert thumbnail. Select the image and make the required settings. If you use BaguetteBox for the first image, check "Start a new gallery" checkbox. After the first image will be inserted place the cursor to the right from this image and then click the button "Insert thumbnail", select the image, customized settings but uncheck the checkbox " Start a new gallery". Repeat for other images. If you not use BaguetteBox checkbox " Start a new gallery" will be not shown.
If you are using Prettyphoto or Fancybox - just insert images one after another.
Reply
#71
Version changed to 2.3

Plugin changes:
  1. In the CKEditor Thumbnail dialog window add a new settings select list "Thumbnail type". Using this list you can select which thumbnail file to be used. The selected thumbnail will be displayed in the preview screen. Considering that RFM for selected image file can create several different dimensions thumbnail files then this field can be useful if your site have such configuration.
  2. Previously inserted thumbnails can be editable. In order to make thumbnail editing click right mouse button on it and select the menu item "Edit Thumbnail".
  3. To all remaining RFM localization files added integration with GS translation array in English ($ i18n). If you want you can translate this array elements in their native language. You can send me your translations for later use.
[Image: thumb_type.jpg]
[Image: thumb_edit.jpg]

Upgrade from early versions to version 2.3:

  1. Go to the plugin Settings page and press "Recall" button.
  2. After that press "Integrate" button.
Reply
#72
Is there a way to add Responsive File Manager to the ckeditor in News Manager?

I have Responsive FileManager CKEditor integration set up for gs but it's not carrying thru to the News Manager

Thanks
John
Reply
#73
I have to look at this to check if there's a better way, but for the moment... this works for me:

Add this to your gsconfig.php file
Code:
define('GSEDITOROPTIONS', '
        filebrowserBrowseUrl:"../plugins/responsivefilemanager/dialog.php?type=2&lang=en&editor=ckeditor&fldr=",
        filebrowserImageBrowseUrl:"../plugins/responsivefilemanager/dialog.php?type=1&lang=en&editor=ckeditor&fldr=",
        filebrowserWindowWidth:"75%",
        filebrowserWindowHeight:"60%"
');

(only for the ckeditor - not for the optional image selection in post options)
Reply
#74
Carlos,
thanks for the tip but that didn't work for me
unless I did it wrong and that is always a possibility

I'm trying to make the editor in News Manager
[Image: nm-page.jpg]

look like the one in gs after added Responsive File Manager
[Image: gs-page.jpg]

I think I am used to the page editors being universal across all the whole site and I am having trouble wrapping my mind around having different settings for the same editor across plugins

John
Reply
#75
Apologies, I did a quick test to check if the image browser worked, but didn't notice the toolbars were different.
Reply




Users browsing this thread: 1 Guest(s)