Displaying a picture on the main page Displaying a picture on the main page
 

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

Displaying a picture on the main page

Started by bigun, November 17, 2004, 01:49:43 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

bigun

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?

Joachim Müller

Quote from: bigun on November 17, 2004, 01:49:43 AMIs 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...

Quote from: bigun on November 17, 2004, 01:49:43 AMOr will this take some PHP editing?
Not necessarily. I recommend using anycontent.php, and putting plain html into it:<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:<?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

alessandro

Quote from: GauGau on November 17, 2004, 07:39:51 AM
Not necessarily. I recommend using anycontent.php, and putting plain html into it:<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

Joachim Müller

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

alessandro

#4
Quote from: GauGau on November 17, 2004, 07:24:57 PM
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