Sorry, I won't be implementing a password for usergallery.
If someone else would like to do it, they are more then welcome, but I don't see it as worth while.
Every picture that resides in the uploads directory is freely available to anyone who would like to connect to them, if they can guess the name. In my opinion, adding a password to lock gallerys would be a false sense of security, and doesn't make any sense...
If someone wants secure galleries they should use a package built for such a task, perhaps like Gallery2 (which serves picture from the database, if I am not mistaken...)
lordcoffee, are you willing to share your changes with me as a basis for a reworked (and pretty) thumbnail page?
usergallery thumbpage with 2 or more columns
-
lordcoffee
- Regular
- Posts: 308
- Joined: Tue Nov 29, 2005 10:22 pm
- Location: Munich - Germany
- Contact:
You are right!
and here it is...
serendipity_event_usergallery.zip
I already changed the text for "Dimensions" and "Filesize" back to english in this file.
and here it is...
serendipity_event_usergallery.zip
I already changed the text for "Dimensions" and "Filesize" back to english in this file.
-
mgroeninger
- Regular
- Posts: 546
- Joined: Mon Dec 20, 2004 11:57 pm
- Contact:
-
lordcoffee
- Regular
- Posts: 308
- Joined: Tue Nov 29, 2005 10:22 pm
- Location: Munich - Germany
- Contact:
Do you have any idea how to Display the subcategories of the choosen one?
So that e.g. I choose a categorie named "Family" and the subcategories like "christmas 2005" and "Newyear" are displayed as Text links o the top. The subcategories should also have a "back" button. That would be much better than to enter everey Link manualy to every categorie.
Lordcoffee
So that e.g. I choose a categorie named "Family" and the subcategories like "christmas 2005" and "Newyear" are displayed as Text links o the top. The subcategories should also have a "back" button. That would be much better than to enter everey Link manualy to every categorie.
Lordcoffee
-
mgroeninger
- Regular
- Posts: 546
- Joined: Mon Dec 20, 2004 11:57 pm
- Contact:
Off the top of my head, I don't have a good solution to the subcategory problem... I will see about doing a query against the subcategory and returning the first picture...
And I'll have to think about the back button, because I will need to make sure it isn't displayed on the root directory... (should just be simple check, but I don't have time to think it all the way through right now..)
And I'll have to think about the back button, because I will need to make sure it isn't displayed on the root directory... (should just be simple check, but I don't have time to think it all the way through right now..)
-
mgroeninger
- Regular
- Posts: 546
- Joined: Mon Dec 20, 2004 11:57 pm
- Contact:
Ok, I miss interpreted what you were asking, I think... (I hadn't looked at the plugin in a long time, and thought I had done something I hadn't..)
So, are you wondering if it is possible to do something like the staticpage navigation tree stuff for the gallery?
I would have to say "no", for now... that seems to me to be a clunky kind of process to do without completely converting the plugin into something it isn't... Namely, this was just supposed to be a quick plugin to allow anonymous users to view the pictures on the server...
However, I have it so that you can add a "back" link (or any other text) to the top of the template... this would allow you to install multiple galleries and have them linked back to a static page... And you could put a description in...
It wouldn't be great for a gallery system which changes constantly, but it would work for simple installs...
So, here is what I have so far (not quite ready for release):
A smarty based thumbnail page, which should work well with most of the themes I have seen... (Smarty is kind of cool... I might have to see what it takes to integrate it into my other project)... Lordcoffee, it should also work with the CSS changes you made (though I will test that before I release it).
The plugin now allows configurable (2-5) column output for both thumbnails and standard output. For the thumbnail page this is accomplished with nested divs, one for each row, then a div for each thumbnail...
As I have said before, I know nothing of CSS... I would greatly appreciate it if someone could take a look at my work and see what needs to be fixed... Either I can send you a link to a demo (I'd prefer not to publish, since it has a lot of pictures in it and is really slow) or I can send you source fo install... Just let me know. [strike]The biggest problem I see that I am not sure how to fix is that images of different heights leave empty space in the row div (short images do not fill the complete height).[/strike] I think I found an answer to this here. Long story=>short: height percentages require the parent have a height set... Since the gallery is atleast 4 divs down the line, this would be really hard to default to work...
If I have no takers I will probably update CVS as is and let it sit until someone complains about something.
So, are you wondering if it is possible to do something like the staticpage navigation tree stuff for the gallery?
I would have to say "no", for now... that seems to me to be a clunky kind of process to do without completely converting the plugin into something it isn't... Namely, this was just supposed to be a quick plugin to allow anonymous users to view the pictures on the server...
However, I have it so that you can add a "back" link (or any other text) to the top of the template... this would allow you to install multiple galleries and have them linked back to a static page... And you could put a description in...
It wouldn't be great for a gallery system which changes constantly, but it would work for simple installs...
So, here is what I have so far (not quite ready for release):
A smarty based thumbnail page, which should work well with most of the themes I have seen... (Smarty is kind of cool... I might have to see what it takes to integrate it into my other project)... Lordcoffee, it should also work with the CSS changes you made (though I will test that before I release it).
The plugin now allows configurable (2-5) column output for both thumbnails and standard output. For the thumbnail page this is accomplished with nested divs, one for each row, then a div for each thumbnail...
As I have said before, I know nothing of CSS... I would greatly appreciate it if someone could take a look at my work and see what needs to be fixed... Either I can send you a link to a demo (I'd prefer not to publish, since it has a lot of pictures in it and is really slow) or I can send you source fo install... Just let me know. [strike]The biggest problem I see that I am not sure how to fix is that images of different heights leave empty space in the row div (short images do not fill the complete height).[/strike] I think I found an answer to this here. Long story=>short: height percentages require the parent have a height set... Since the gallery is atleast 4 divs down the line, this would be really hard to default to work...
If I have no takers I will probably update CVS as is and let it sit until someone complains about something.
-
lordcoffee
- Regular
- Posts: 308
- Joined: Tue Nov 29, 2005 10:22 pm
- Location: Munich - Germany
- Contact:
You've got a personal message with my email adresse.
I've editet the .php file to get the pictures same height as width. Just added height=100px and width=100px to the
I've editet the .php file to get the pictures same height as width. Just added height=100px and width=100px to the
this isn't beautifull but it works fine hereecho '<div class="serendipity_gallery_thumbs"><div class="serendipity_gallery_title">'.$image['name'].'.'.$image['extension'].'<br />';
if ($is_image) {
?>
<a href="#"><img src="<?php echo $image['link'] ?>" height=100px width=100px border="0" onclick="F1 = window.open('<?php echo $Fullimage; ?>','Zoom','height=<?php echo $popupHeight; ?>,width=<?php echo $popupWidth; ?>,top='+ (screen.height-<?php echo $popupHeight ?>)/2 +',left='+ (screen.width-<?php echo $popupWidth ?>)/2 +',toolbar=no,menubar=no,location=no,resize=1,resizable=0<?php echo ($is_image ? '' : ',scrollbars=yes'); ?>');" /></a>
<?php
} else {
?>
<a href="<?php echo $Fullimage; ?>" target=blank><img src="<?php echo serendipity_getTemplateFile('admin/img/mime_unknown.png'); ?>"></a> <br> <a href="<?php echo $Fullimage; ?>" target=blank>Download</a>
<?php
}
-
mgroeninger
- Regular
- Posts: 546
- Joined: Mon Dec 20, 2004 11:57 pm
- Contact:
Ah, ok... that makes sense... I have added a configurations setting to do that and I will resend the code to you.
I also forgot to mention that I have not changed the image display page (used by the default display method) to use Smarty, but I probably ought to do that.... I just haven't gotten to it.. So that will add a little more time on before I get the plugin in CVS (once the css is nice and clean).
I also forgot to mention that I have not changed the image display page (used by the default display method) to use Smarty, but I probably ought to do that.... I just haven't gotten to it.. So that will add a little more time on before I get the plugin in CVS (once the css is nice and clean).
-
lordcoffee
- Regular
- Posts: 308
- Joined: Tue Nov 29, 2005 10:22 pm
- Location: Munich - Germany
- Contact: