Adding Banner Links above each intermedia Image Adding Banner Links above each intermedia Image
 

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

Adding Banner Links above each intermedia Image

Started by skidpics, May 02, 2007, 08:08:20 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

skidpics

Where would I add a banner rotations script in order for it to show up above each intermediate image?


I use MiniCMS, and it is awesome, but it does not allow itself to add to ALL previews, instead, you have to code it one by one...


-- Skidpics

Nibbler

Are you specifically looking for a plugin to do this?

skidpics

I have looked for quite some time, and have not found one...that I am aware of..

I can place the code myself, I just need to know what file, and where in the file.. 

Thanks!

Joachim Müller

As Nibbler suggested: there's no plugin to accomplish this. However you could achieve this using a regular mod/hack. Clarification: plugins are pre-made scripts that use coppermine's plugin API. Mods/hacks require editing the core code or your theme.

skidpics

The clarification makes sense.

So, which specific file controls the output of the intermediate images?


Nibbler

Copy $template_display_media from the sample theme into your theme.php and add in the banner.

skidpics

Tnanks for the info! 

I am searching the forums, but I cannot locate a link to download the sample theme.  I do not have it listed in my themes dir...

Could you point me in the right direction for this theme?

Nibbler


skidpics

I will just re-download coppermine and extract the theme then.  Thanks for the help!