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: Displaying a picture on the main page  (Read 4875 times)

0 Members and 1 Guest are viewing this topic.

bigun

  • Coppermine newbie
  • Offline Offline
  • Posts: 15
Displaying a picture on the main page
« on: November 17, 2004, 01:49:43 am »

There is sort of a contest on my gallery, and the winner get's their pic posted on the main page.


Now, in the config there is a section:  "Album list view ->  The content of the main page"

Is there something I can put in this section to display a picture posted in a particular album full view?  Or will this take some PHP editing?
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Displaying a picture on the main page
« Reply #1 on: November 17, 2004, 07:39:51 am »

Is there something I can put in this section to display a picture posted in a particular album full view?
No, not exactly what you're looking for...

Or will this take some PHP editing?
Not necessarily. I recommend using anycontent.php, and putting plain html into it:
Code: [Select]
<img src="your/favorite/pic.pjg" border="0" width="400" height="300" alt="" title="the winner of the contest" />You might want to put it into a table like this:
Code: [Select]
<?php

starttable
("100%""The winner of our contest");
?>

<tr><td class="tableb" align="center">
<img src="your/favorite/pic.pjg" border="0" width="400" height="300" alt="" title="the winner of the contest" />
</td></tr>
<?php
endtable
();

?>

Joachim
Logged

alessandro

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
Re: Displaying a picture on the main page
« Reply #2 on: November 17, 2004, 01:30:16 pm »

Not necessarily. I recommend using anycontent.php, and putting plain html into it:
Code: [Select]
<img src="your/favorite/pic.pjg" border="0" width="400" height="300" alt="" title="the winner of the contest" />

Hi everyone!

What if I'd like to put the last picture instead?
I don't know php: could anyone give me the code to write into anycontent.php, to display the last uploaded picture full size?

I swear: searched a lot in the forum, but didn't find what I was looking for...

Cheers
Alessandro
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Displaying a picture on the main page
« Reply #3 on: November 17, 2004, 07:24:57 pm »

there's no automatism for what you're requesting. The code I posted doesn't show a pic dynamically, you have to specify the URL yourself. The hack you're requesting hasn't been posted yet. Everything is possible to code, but hasn't been done yet, so I guess you're in for some learning if you absolutely need this feature.

Joachim
Logged

alessandro

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
Re: Displaying a picture on the main page
« Reply #4 on: November 18, 2004, 09:48:58 am »

Everything is possible to code, but hasn't been done yet, so I guess you're in for some learning if you absolutely need this feature.
Joachim

No, not absolutely: just an idea.
Seen the success of photoblog scripts, I thought it would have been nice to have the possibility to show *also* a full image into the main page. A sort of "welcome picture", keeping all of the useful interface of coppermine itself. And giving that way the possibility to have something like a photoblog without bothering with blogging software integration.
Nothing wrong with that, of course, but I have got a coppermine gallery, and I would like to show a daily picture on the main page, that's it.

Cheers
Alessandro
« Last Edit: November 18, 2004, 05:41:43 pm by alessandro »
Logged
Pages: [1]   Go Up
 

Page created in 0.022 seconds with 19 queries.