Jump to content


- - - - -

Use Frontend Login & have access to Manager tools in Frontend


  • You cannot reply to this topic
1 reply to this topic

#1 Randy

    Likes Etomite Forums!

  • Member
  • PipPip
  • 309 posts

Posted 13 November 2006 - 07:58 PM

Rationale: Eto provides such GREAT UI tools, I couldn't stomach the idea of (re)writing them so I could use them outside of manager.

Background: My client uses quotes (not random) throughout their site. I needed an app to allow them to edit these at will. Since I couldn't add the quote editor to the manager (as it is not appropriate to do), I built a snippet to take care of this. Users can log into the frontend with AuthenticateVisitor snippet. If they have priviledges, they can click an 'edit' button and edit the quotes.

Problem: These same users are the site 'editors'. They now require two different logins to the same site to do what they see as 'editing' stuff. So to edit quotes, they log into the frontend, to edit content they log into the backend. This wasn't acceptable...

Implied assumptions:
  • Patch is to an unmodified 0.6.1.2 PL:2 installation
  • AuthenticateVisitor is implemented as Ralph describes elsewhere
Issue to be aware of:
  • This is a divergence from the design philosphy of Etomite
  • Manager log in will no longer work so you must provide link users can get to after frontend login
Solution:

Edit file: /manager/includes/accesscontrol.inc.php

Change line 4: Comment out startCMSSession();
Add new line 5: session_start();
//startCMSSession();
session_start();
Add new line 171: startCMSSession();
<?php
  exit;
}
startCMSSession();	   <---------NEW LINE
if(isset($_SESSION['validated']) && $_SESSION['permissions']['frames']!=1) {


I'm a new user of Eto. I have no problem with the 'editors' logging in to the manager....but how do I make the quote editor (a custom app) available within a unified interface? If there is a better way of accomplishing my goal, please let me know.

#2 Ralph

    Loves Etomite Forums!

  • Admin
  • 6,524 posts
  • Gender:Male

Posted 13 November 2006 - 08:13 PM

The way that Etomite currently works doesn't allow for simple integration of custom data management modules... I generally write my own front end data management modules which work for the same user whether logged into the manager or the front end... If you would like some login spec's to see how this works on one of my development sites just PM me and I'll get you setup... I even have some skeleton code that you can work from... Which reminds me, Mikef, if you read this, I haven't forgotten about you...





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users