Welcome to Geeklog, Anonymous Tuesday, December 24 2024 @ 12:21 pm EST

Geeklog Forums

need a little help


luke

Anonymous
hey i have a question:

i'm allowing users to create there own albums in media gallery when they do this a directory is created for example:

http://artist.mysite.com/nameofnewuseralbum

this contains uploaded photos.

is there away that on creation of the new folder it can automatically create and index.php or some code that links back to the users album page on my site.

so when they tell there friends check out my work at artist.mysite.com/myname for example. it will go to the correct album page.

just need to be pointed in the right direction i.e what code should i be looking at.

cheers geeklogers
 Quote

Status: offline

mevans

Forum User
Full Member
Registered: 02/08/04
Posts: 393
Location:Texas
Luke,

Which media gallery plugin are you using with Geeklog? Can you be specific and let me know the version as well. That will help us answer your question properly.

Thanks!
Mark
 Quote

luke

Anonymous
Hey

I’m using inmemoriam 1.0.1. As it allowed all users to create there own albums and I just changed the creation directories.

But also have media gallery 1.3.5 installed could I do want I want to do with this?

As I was writing this I just had a look at the latest version of media gallery and it seems like that does allow users to create albums. So I’m gonna install that

Any ideas on how I can try to achieve my original idea
 Quote

Status: offline

mevans

Forum User
Full Member
Registered: 02/08/04
Posts: 393
Location:Texas
luke,

I'm not sure what Inmemoriam can do with creating / managing user (member ) albums. Hopefually Mach can chime in here.

For Media Gallery, with the 1.4 branch it fully supports having Member Albums, you can have them automatically created when the user account is created, or use a self-enrollment feature to allow them to create their own (probably a better solution, since the auto create may leave you with a bunch of empty albums if the user never uses them). There are specific tools in place to help support the Member Album concept, such as quota's, allowed file types, etc.

What you can't do with Media Gallery is have a URL like http://yoursitehere.com/mediagallery/username instead, Media Gallery requires an album id to be passed, so the URL would look like this:

http://yoursitehere.com/mediagallery/album.php?aid=45

You can get more details on Media Gallery's member album support by checking out the documentat in our wiki here.

Let me know if you have any other questions.

Thanks!
Mark
 Quote

luke

Anonymous
Yeah this is the problem I was having the URL's are unusable for the user. They can't say oh view my pictures at http://yoursitehere.com/mediagallery/album.php?aid=45 its to long and easily forgotten.

If on the creation of a new album, another folder was created for example: http://www.yoursitehere.com/username

Could I dynamically create a piece of code that was inputted into the folder under the name index.php

With something init like:

header("Location: http://www.yoursite.com/space/public_html//album.php?aid=24");
?>

But make the "aid" dependant on creation

do you get what i mean?

what code whould i need to look at

luke



 Quote

Status: offline

mevans

Forum User
Full Member
Registered: 02/08/04
Posts: 393
Location:Texas
Luke,

I understand exactly what you are looking for, but unfortunately, Media Gallery does not provide that feature yet. I actually like the idea of having an 'alias' for an album (such as your username), so you could reference it like:

http://www.yoursitehere.com/mediagallery/username

I will put that on my list for a future release. Now this doesn't help you right now.

I think you might get a little closer if you look at the Gallery2 Bridge (it bridges Gallery2 with Geeklog). I believe Gallery 2 has member album support and the ability to reference albums like you wish. From what I've heard, implementing is pretty straight forward.

Thanks!
Mark

 Quote

luke

Anonymous
thanks for your help i will have a look at other ways of doing it

cheers luke
 Quote

All times are EST. The time is now 12:21 pm.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content