Jump to content


Baffled by EtoGal


  • You cannot reply to this topic
9 replies to this topic

#1 BSDeality

    Etomite Forum Newbie

  • Member
  • 17 posts

Posted 13 November 2006 - 10:30 PM

I've been attempting to decipher countless posts, tips and do's and don'ts but I cannot figure out EtoGal. I am getting close, but something is missing.

I have created "gallery" id 54. and put [[EtoGal]] there.
I have created "gal-admin" id 55 and put [[authenticate_visitor?id=54]] on that page. When I go to gal-admin I get the login page, I can login with my credentials and then i get forwarded to Gallery, however there is no manage pictures button, nor any upload forms, just a blank page.

etogal has appeared in my database, but contains zero rows.

help! :huh:

Edited by BSDeality, 13 November 2006 - 10:31 PM.


#2 mikef

    Loves Etomite Forums!

  • Member
  • PipPipPipPip
  • 1,551 posts

Posted 13 November 2006 - 11:43 PM

First things first ...

- what rights does the user you are logging in as have?
- have you created the 'galleries' directory on the server?

#3 BSDeality

    Etomite Forum Newbie

  • Member
  • 17 posts

Posted 13 November 2006 - 11:49 PM

my user has admininstrator rights
galleries exists in assets. chmodded to 777 too

Edited by BSDeality, 13 November 2006 - 11:50 PM.


#4 mikef

    Loves Etomite Forums!

  • Member
  • PipPipPipPip
  • 1,551 posts

Posted 14 November 2006 - 12:01 AM

Ok. That's the easy ones dealt with !

Can you put the snippet I posted in http://www.etomite.com/index.php?sh...c=5949&st=0
on a page and check the results please?

#5 BSDeality

    Etomite Forum Newbie

  • Member
  • 17 posts

Posted 14 November 2006 - 12:33 AM

I return this for result when I put the snippet on a new page.

User details
userLoggedIn returned false
Session details
_logging_first_hit => 1
visitorLogged => 1
userAgentLogged => 1
operatingSystemLogged => 1
hostNameLogged => 1
veriword => Niche
Session details - permissions
no permissions

When I put [[authenticate_user?id=56]] [[checkUser]] I return this:

User details
loggedIn => 1
id => 1
username => Stateline
Session details
_logging_first_hit => 1
visitorLogged => 1
userAgentLogged => 1
operatingSystemLogged => 1
hostNameLogged => 1
shortname => Stateline
fullname => Administration account
email => matt@xxxxxxx.com
phone => 0
mobilephone => 0
internalKey => 1
failedlogins => 0
lastlogin =>
role => 1
nrlogins => 183
permissions => Array
frames => 0
validated => 1
veriword => Retail
Session details - permissions
id => 1
name => Administrator
description => Site administrators have full access to all functions
frames => 1
home => 1
view_document => 1
new_document => 1
save_document => 1
delete_document => 1
action_ok => 1
logout => 1
help => 1
messages => 1
new_user => 1
edit_user => 1
logs => 1
edit_parser => 1
save_parser => 1
edit_template => 1
settings => 1
credits => 1
new_template => 1
save_template => 1
delete_template => 1
edit_snippet => 1
new_snippet => 1
save_snippet => 1
delete_snippet => 1
empty_cache => 1
edit_document => 1
change_password => 1
error_dialog => 1
about => 1
file_manager => 1
save_user => 1
delete_user => 1
save_password => 1
edit_role => 1
save_role => 1
delete_role => 1
new_role => 1
access_permissions => 1


I tried tirelessly to login to page 56 to get the latter results, however it never would go through correctly. I refreshed the page and then it came up.

#6 mikef

    Loves Etomite Forums!

  • Member
  • PipPipPipPip
  • 1,551 posts

Posted 14 November 2006 - 11:04 AM

View PostBSDeality, on Nov 14 2006, 12:33 AM, said:

I tried tirelessly to login to page 56 to get the latter results, however it never would go through correctly. I refreshed the page and then it came up.
I'm not sure what you mean by this, but if that snippet does not give the correct results on the page with EtoGal on it then EtoGal isn't going to work in admin mode (and other snippets that check for logged in users may have problems too). You haven't got the pages cached have you?

You should get the long list of details on any page you put the snippet on if you are logged in. If not, something isn't working correctly with sessions, and that needs to be fixed first.

Edited by mikef, 14 November 2006 - 11:05 AM.


#7 BSDeality

    Etomite Forum Newbie

  • Member
  • 17 posts

Posted 14 November 2006 - 03:35 PM

Well, I'll be a monkey's uncle! turning Cache off obviously helped. I'll play around with it a little and report back when I break something else! LOL

Thanks Mike


Matt

#8 mikef

    Loves Etomite Forums!

  • Member
  • PipPipPipPip
  • 1,551 posts

Posted 14 November 2006 - 03:43 PM

View PostBSDeality, on Nov 14 2006, 03:35 PM, said:

Well, I'll be a monkey's uncle! turning Cache off obviously helped. I'll play around with it a little and report back when I break something else! LOL

Thanks Mike
Matt
The caching is fairly dumb (technical description, not a criticism!) so it doesn't normally make sense to cache the gallery pages, unless they are truly static. (Depends on what you use the gallery for, and whether you are the only person updating the gallery.) Etogal hasn't been tested with caching on since I took it over from Frank.
If you have mixed content on a page you may want to cache the rest and leave Etogal uncached (this would usuall apply more if you were using EtoGalThumb to display a random image in another page, for example). In this case you could try caching the page and calling the snippet wrapped in [!...!] rather than [[...]].
My sites run fast enough without bothering with caching (so far), so i just having caching disabled on every page.

Glad you're now onto the next step!

Edited by mikef, 14 November 2006 - 03:44 PM.


#9 BSDeality

    Etomite Forum Newbie

  • Member
  • 17 posts

Posted 14 November 2006 - 04:20 PM

I didn't intend for them to be cached, just didn't think to turn it off.

So I've uploaded 6 images so far. My next question is how do i create different galleries? Do I need to create a new page for each one and hide it in the repository? My ideal structure would be this:

Portfolio
-Before & After's (like to see a set of (random?) images of the subdirs with descriptions)
--Job #1
--Job #2
--Job #3
--(etc)
-Work (just a gallery of one-shots type where I don't have any before pictures to go with it.)


Thanks,
Matt

#10 mikef

    Loves Etomite Forums!

  • Member
  • PipPipPipPip
  • 1,551 posts

Posted 14 November 2006 - 05:27 PM

View PostBSDeality, on Nov 14 2006, 04:20 PM, said:

I didn't intend for them to be cached, just didn't think to turn it off.

So I've uploaded 6 images so far. My next question is how do i create different galleries? Do I need to create a new page for each one and hide it in the repository? My ideal structure would be this:

Portfolio
-Before & After's (like to see a set of (random?) images of the subdirs with descriptions)
--Job #1
--Job #2
--Job #3
--(etc)
-Work (just a gallery of one-shots type where I don't have any before pictures to go with it.)
Thanks,
Matt
Each gallery does need its own page, yes. The Etogal snippet itself is very tightly geared to one page = one gallery. For more flexibility in display you need to look at the EtoGalThumb and possibly the EtoGalGallery snippets which provide much more flexible display options. There are examples of usage in my test site http://www.efikim.co.uk/etogal/ and the Rogue Gene Collective website

Whether you need to put the gallery pages in the repository and hide them depends on your site design and how you intend to use the images. In the Lower Moss Wood website some of the galleries are hidden because there was no intention of every showing the images using the Etogal snippet, and at the time it was written EtoGal didn't have a 'nodisplay' option. With the current snippet suite I wouldn't have done it that way.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users