forum.coppermine-gallery.net

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Miscellaneous => Topic started by: bigun on November 17, 2004, 01:49:43 am

Title: Displaying a picture on the main page
Post by: bigun 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?
Title: Re: Displaying a picture on the main page
Post by: Joachim Müller 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
Title: Re: Displaying a picture on the main page
Post by: alessandro 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
Title: Re: Displaying a picture on the main page
Post by: Joachim Müller 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
Title: Re: Displaying a picture on the main page
Post by: alessandro 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