Hello!
If you have a look at http://www.toimoietbebe.com/concoursphoto2 you will see an install of coppermine.
Its basically set up as a photo contest. The "top 3" sectionis just the first three images from toprated (slightly modified visually, and added via the admin control panel). I'd like to put thkis top3/toprated as a header in the main gallery (or a gallery of my choosing, or al galleries, whatever's eadsiest since I only have one). So when people click through to the main gallery, the "top 3" doesn't go away.
I thought maybe it was as simple as moving:
<!-- BEGIN toprated -->
<li>
<a href="{TOPRATED_TGT}" title="{TOPRATED_LNK}" rel="nofollow"><span>{TOPRATED_ICO}{TOPRATED_LNK}</span></a>
</li>
<!-- END toprated -->
Into "anycontent.php" since that seems to sticj throughout the site once enabled in amdin config. But no joy: I realize I'm sort og stabbing in the dark.
Any guidance on how to do this?
thanks all
-maxx
anycontent.php is only displayed on the index page. What you want is a custom header?
Read this => http://documentation.coppermine-gallery.net/en/php-content.htm#php-content_header_footer
thanks for the suggestion jeff.
Um. My anycontent stays througout all pages :)
This is perhaps a mod that I made that i forgot about (its been a few weeks since i worked on this project and my notes are shall we say, "lacking")
So the content of aycontent.php and also custom header would be available to me - to try and implemenet this change.
I guess my real question is - where should I be looking for the code snippet to insert across the gallery?
Is this topic already solved?
no. I haven't been abel to work it out myself.
Someone on an unrelated thread suggested using an iframe of a filtered modified index.php
But i think that is half a solution.
Just adding that meta album to the setting 'The content of the main page' should work.
Thanks for that suggestion andre. Although that is not exactly what I'm trying to achieve:
I would like that meta album to display on every page of the gallery, not just the main page.
This is why i've been looking at custom header / anycontent.
-m
Your custom header file could look like
<?php display_thumbnails('toprated', $cat, 1, $CONFIG['thumbcols'], max(1, $matches[2]), false); ?>
thank you - that was deliciously simple. - now that you've pointed it out (and after fishing around seeing how some of the main function are written in functions.inc), it makes me feel lazy for not working harder to figure it out.
Hindsight is always 20/20 I suppose :D
Although I find it still quite confusing, I think I'm finally beginning to understand a little bit about the larger picture of the coppermine architecture (passing templates back and forth between files and so on).
I find it to be really elegant (IMHO).
Um. thanks again!