Welcome Guest, Not a member yet? Register   Sign In
need help with responsive filemanager
#1

Hi, 

I am trying to integrate 
http://www.responsivefilemanager.com/ind...uCisj.dpbs
this filemanager library.

I want to use it as file selector.
For example,
1. User clicks add image button
2. filemanager dialogbox opens in fancybox
3. user selects image
4. when he selects filemanager will close and return url or selected image

thanks in advance
Reply
#2

...and why or where do you need help with this?

Please be more specific
Reply
#3

This is how I setup mine:

application
public_html
-- assets
---- admin
------ plugins
-------- filemanager
---- css
---- images
---- js
-- etc;

This is how you setup the responsive filemanager config.php file:

PHP Code:
    /*
    |--------------------------------------------------------------------------
    | path from base_url to base of upload folder
    |--------------------------------------------------------------------------
    |
    | with start and final /
    |
    */
    
'upload_dir' => '/assets/images/',

    
/*
    |--------------------------------------------------------------------------
    | relative path from filemanager folder to upload folder
    |--------------------------------------------------------------------------
    |
    | with final /
    |
    */
    
'current_path' => '../../../images/',

    
/*
    |--------------------------------------------------------------------------
    | relative path from filemanager folder to thumbs folder
    |--------------------------------------------------------------------------
    |
    | with final /
    | DO NOT put inside upload folder
    |
    */
    
'thumbs_base_path' => '../../../images/thumbs/'

I left out the other stuff set as you like but those are the most important.

Pay attention to the way the paths are setup each ../ is one directory up from here...
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply
#4

I should read library documentation carefully:

Select Image: (type=1 and set id of input text in field_id variable):
path to filemanager../filemanager/dialog.php?type=1&field_id=fieldID

this information what I needed. 
I solved my problem by:

1. By putting <input id="img-path" type="text" name="">  in my view
2. and opening filemanager using filemanager../filemanager/dialog.php?type=1&field_id=img-path this query
Reply
#5
Thumbs Up 

(09-04-2017, 11:56 PM)neuron Wrote: I should read library documentation carefully:

Select Image: (type=1 and set id of input text in field_id variable):
path to filemanager../filemanager/dialog.php?type=1&field_id=fieldID

this information what I needed. 
I solved my problem by:

1. By putting <input id="img-path" type="text" name="">  in my view
2. and opening filemanager using filemanager../filemanager/dialog.php?type=1&field_id=img-path this query

Can you please give me a example. I am very disturbed for intigrate this in your way plz help me send me a example or source code plzz
Reply




Theme © iAndrew 2016 - Forum software by © MyBB