Last uploads as Category? Last uploads as Category?
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Last uploads as Category?

Started by DenisG, July 29, 2011, 04:36:08 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

DenisG

Hi all.

Nearly solved or so I thought with this search result http://forum.coppermine-gallery.net/index.php/topic,67572.msg335473.html#msg335473 but I just cant get a thumbnail image to insert with text and the layout be the same as the rest of the page.

Is there any way to make Last Uploads into a full (or near as possible) Category. Or, can anyone offer a hint as to what the html should look like in anycontent.php, ie as per the main page, thumbnail to the left and clickable with text boxed to the right.

Any assistance would be appreciated.

Denis.
http://www.denisg.co.uk/gallery/

Αndré

What exactly doesn't work as you want? Can you please give a live example? Thanks.

DenisG

Quote from: Αndré on July 29, 2011, 09:53:47 PM
What exactly doesn't work as you want? Can you please give a live example? Thanks.

Hi Andre. I dont have a problem with my Coppermine installation at all. It's just something I would like to do with comments I have had. There are a number of folks who just follow my gallery and know it well and just want to see what I last uploaded, not to go through the various Categories and albums. Now to me thats simple, click on Last Uploads in the Album list tab. It appears that it is too hard for some to remember and they would like a more "obvious" reminder that it's there.

I understand what they are saying and it would be nice if Last Uploads could be made into a thumbnail "Category" on the front page, just like Nature on my home page. I did try this by html inserted into the the anycontent.php file but I just seem to make a mess of it.

Maybe it was just wishfull thinking. A less so but alternative option would be to take out Last uploads from Album List tab and make it part of the main menu but to be honest I'm an old photographer, not a programming guru like yourselves so I wouldn't know where to start :-[

If you go to the gallery home page http://www.denisg.co.uk/gallery/ and scroll down you will see that I have put in a Latest Uploads category and album. I would like to be able to click on the album thumbnail and go directly to the Coppermine Last uploads. It does not NEED to be a category Andre, just something that looks like would be fine. I just can't make it do that from anycontent.php. I will leave this example up for a few days for you but I do need to bring the page back to normal soon.

Hope this helps.

Denis.
(and yes, I will be upgrading to 12 as soon as we sort this :-[ )

Αndré

Quote from: DenisG on July 30, 2011, 11:38:24 AM
I did try this by html inserted into the the anycontent.php file but I just seem to make a mess of it.
That's what I want to know ;)

Just have a look at the source code of your gallery and you'll find e.g. the following part of a category:
        <tr>
                <td class="catrow" align="left"><table border="0"><tr><td><a href="index.php?cat=2"><img src="albums/UploadsFTP2/Insects/thumb_PICT0369E.jpg" class="image" width="140" height="104" border="0" alt="" /></a></td><td><span class="catlink"><a href="index.php?cat=2">Nature</a></span>A number of albums covering Nature and Wildlife subjects including birds, insects, butterflies and dragonflies etc.. as well as some photographs from Silverband Falconry.</td></tr></table></td>
                <td class="catrow" align="center">11</td>
                <td class="catrow" align="center">1,593</td>
        </tr>


All you have to do is to copy that part to your anycontent.php file and edit the link and the thumbnail image.

DenisG

 ;D Thanks Andre, Very much.

I did get to sort of work with this:
code as entered:(Lines 39/40 anycontent.php)
<tr><td class="tableb" >
<a href="http://www.denisg.co.uk/gallery/thumbnails.php?album=lastup&cat=0" Title="My Last Uploads"><img src="../images/lastup.jpg" alt="Click here

to see my last uploads."></a>
If you just want to see what are the latest photographs added to the gallery.
</td></tr>


But I couldn't get the text to align correctly :-[

So, I used yours modified as follows:
<tr><td class="tableb" >
<tr>
                <td class="catrow" align="left"><table border="0"><tr><td><a href="http://www.denisg.co.uk/gallery/thumbnails.php?album=lastup&cat=0"><img src="../images/lastup.jpg" class="image" width="140" height="104" border="0" alt="" /></a></td><td><span class="catlink"><a href="http://www.denisg.co.uk/gallery/thumbnails.php?album=lastup&cat=0">Latest Uploads</a></span> The latest photographs added to the gallery.</td></tr></table></td>
                <td class="catrow" align="center">11</td>
                <td class="catrow" align="center">1,593</td>
        </tr>

</td></tr>


I guess I could have slimmed the links down a bit, but hey, it works EXACTLY as I wanted it to!  8). Thank you soooooo much for your help.

Denis.

Αndré

Remove
                <td class="catrow" align="center">11</td>
                <td class="catrow" align="center">1,593</td>

from your code to get rid of the needless columns.

DenisG

Thanks Andre. Last instruction done and I guess that's job completed.

You're a champion sir!

Denis.