3 Buttons mod

samlewit

Joined: 2002-10-12
Posts: 37
Posted: Thu, 2004-06-10 19:01

I've never written any kind of mod for anything, but I was adding this to my site and I thought I'd share it. I'm not a great programmer or site builder, so you may want to alter it. I thought there used to be a place here for mods, but I couldn't find it anywhere.

You can view this in action at www.bayarearailfan.org

This adds 3 buttons...

1) "view comments" button on the main albums page so that ANYONE can view all the comments in any one particular
album. I don't like to force people to create an account and login. Currently there is no way (that I know of) to let
people view all the comments without having to create an account.

2) Add a "View Full Size" button on the photos page. I have some maps and newspaper clippings which are very large,
so when someone goes to view a photo, they get the smaller resized version. Then I have to add a comment in the
description of each one to click on the image to see a larger one. Kind of silly not to have some kind of a link on
this page.

3) I allow anyone to upload photos, but they very rarely do because they don't know they can. Who is going to look
under the "ADMIN OPTIONS" to add photos? This places an "Add Photo(s)" button right at the top. There are two
drawbacks... one is that the "Admin Options" will still be there to confuse, and two the pulldown uses Javascript to
open the Add Photos window. I just use a target="_blank" to open a new window. Not all that pretty, but it seems to work.
Note: You need to have your permissions set to allow uploads for this to work (I think). I haven't tried it, but if you
don't, clicking on the button will (should) probably just redirect you back where you were.

The file is at www.bayarearailfan.org/3buttons.zip