Advanced search  

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]

Pages: [1]   Go Down

Author Topic: Last uploads as Category?  (Read 3329 times)

0 Members and 1 Guest are viewing this topic.

DenisG

  • Coppermine regular visitor
  • **
  • Country: gb
  • Offline Offline
  • Gender: Male
  • Posts: 74
Last uploads as Category?
« on: July 29, 2011, 04:36:08 pm »

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/
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Last uploads as Category?
« Reply #1 on: July 29, 2011, 09:53:47 pm »

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

DenisG

  • Coppermine regular visitor
  • **
  • Country: gb
  • Offline Offline
  • Gender: Male
  • Posts: 74
Re: Re: Last uploads as Category?
« Reply #2 on: July 30, 2011, 11:38:24 am »

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 :-[ )
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Re: Last uploads as Category?
« Reply #3 on: July 30, 2011, 01:35:53 pm »

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:
Code: [Select]
        <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.
Logged

DenisG

  • Coppermine regular visitor
  • **
  • Country: gb
  • Offline Offline
  • Gender: Male
  • Posts: 74
Re: Last uploads as Category?
« Reply #4 on: July 30, 2011, 03:28:33 pm »

 ;D Thanks Andre, Very much.

I did get to sort of work with this:
Code: [Select]
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:
Code: [Select]
<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.
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Last uploads as Category?
« Reply #5 on: July 30, 2011, 03:59:06 pm »

Remove
Code: [Select]
                <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.
Logged

DenisG

  • Coppermine regular visitor
  • **
  • Country: gb
  • Offline Offline
  • Gender: Male
  • Posts: 74
Re: Last uploads as Category?
« Reply #6 on: July 30, 2011, 09:22:12 pm »

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

You're a champion sir!

Denis.
Logged
Pages: [1]   Go Up
 

Page created in 0.019 seconds with 20 queries.