2 of 2
2
instantiate Session class outside of EE
Posted: 18 May 2009 12:08 PM   [ Ignore ]   [ # 19 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  266
Joined  07-24-2007

Ryan,
What settings does one put into the FileManager config file? I seem to be able to get past the login screen OK, but get the “example page” when I browse for files. I think I have the path correct in the extension settings (originally I left off the /js/, but putting that in correctly didn’t help…). Currently I have:

// Authenication
    
$mcFileManagerConfig['authenticator'] = "SessionAuthenticator";
    
$mcFileManagerConfig['authenticator.login_page'] = "";
    
$mcFileManagerConfig['authenticator.allow_override'] = "*";

Does something need to go into the login_page parameter in the config file?

Edit: Of course, I’m using your extension…which is why I am directing my question to you. smile

Edit II: Oh and further config settings on FileManger…

// SessionAuthenticator
    
$mcFileManagerConfig['SessionAuthenticator.logged_in_key'] = "isLoggedIn";

—Hopelessly lost as usual.

Profile
 
 
Posted: 18 May 2009 01:04 PM   [ Ignore ]   [ # 20 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  252
Joined  12-13-2007

@LynneL,
You need to change the path from the examples page in index.php:

if (!$type) {
    header
('location: pages/fm/index.html');
    die();
}
 Signature 

Fusionary | Geniuscar

Profile
 
 
Posted: 18 May 2009 01:53 PM   [ Ignore ]   [ # 21 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  266
Joined  07-24-2007

Qua? Not sure what you mean…

If I shut off authentication entirely - $mcFileManagerConfig[‘authenticator’] = “”; (which I know is a big no no) I get File Manager no problem. Why would I need to modify the actual FileManager index.php? No one seemed to talk about that up-thread…

Profile
 
 
Posted: 18 May 2009 02:15 PM   [ Ignore ]   [ # 22 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  252
Joined  12-13-2007

Sorry, I wrote before I totally understood your question.

The reason to edit index.php is if you wanted to access the file manager directly, even outside of ever logging into ee.

Here’s what my login_page is set to:

$mcFileManagerConfig['authenticator.login_page'] = "login_session_auth.php";
 Signature 

Fusionary | Geniuscar

Profile
 
 
Posted: 25 June 2009 01:24 PM   [ Ignore ]   [ # 23 ]  
Lab Assistant
RankRank
Total Posts:  293
Joined  09-06-2006

I can’t for the life of me get this to work

I am using Tiny MCE Extension for EE (v.1.0.0)  (not the LG version)
I have the Moxiecode Authentication (v.0.2.0)  extension installed

My path to my filemanager is correct: /tinymce/jscripts/tiny_mce/plugins/filemanager/js/
My session Key is defined: isLoggedIn

In my filemanager my session key is:
  $mcFileManagerConfig[‘SessionAuthenticator.logged_in_key’] = “isLoggedIn”;

And I still am getting the sample login page when I try to click the filemanager icon in tinymce in the publish text area


You must set a password in the file “login_session_auth.php” inorder to login using this page or reconfigure it the authenticator config options to fit your needs. Consult the Wiki for more details.

What could I possibly be missing?

Profile
 
 
Posted: 29 June 2009 09:54 AM   [ Ignore ]   [ # 24 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  194
Joined  07-20-2006

You may have this fixed by now, but it could be a caching thing as mentioned by Stephen earlier - this was driving me mad this morning until I tried restarting Safari.

Handy extension - thanks!

 Signature 

Web designer and EE Pro Network member

Profile
 
 
Posted: 21 August 2009 10:31 AM   [ Ignore ]   [ # 25 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  467
Joined  09-06-2006

Is anyone using this with an MSM setup? I need each site to reference different config files, but if I change the path settings for one site, it changes them for all.

 Signature 

Kyle Summer | smartpill design | New Haven, CT |  twitter

Profile
 
 
Posted: 23 September 2009 11:42 PM   [ Ignore ]   [ # 26 ]  
Grad Student
Avatar
Rank
Total Posts:  63
Joined  05-31-2007

After installing Moxiecode Authentication, I couldn’t figure out why I was still getting the login screen when trying to use the MCImageManager via the LG Image Manager extension.

Then I realized that you have to log out of EE and log back in for the session to get set.  Hope that helps someone.

 Signature 

Need EE Help? Hire me: Jacksonville Website Design
Install Freo Add-on Installer to make installing Modules, Extensions, & Plugins a breeze!

Profile
 
 
   
2 of 2
2
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 1743, on December 02, 2009 03:47 PM
Total Registered Members: 120463 Total Logged-in Users: 67
Total Topics: 126540 Total Anonymous Users: 36
Total Replies: 665370 Total Guests: 318
Total Posts: 791910    
Members ( View Memberlist )