Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1]   Go Down

Author Topic: Banner Advertisement Based on Category  (Read 3626 times)

0 Members and 1 Guest are viewing this topic.

scohen125

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 100
    • Retina Gallery
Banner Advertisement Based on Category
« on: November 30, 2012, 04:09:08 pm »

I am looking for help with a Banner Advertisements for www.RetinaGallery.com

I would like to have a banner advertisement above the home page.  In addition, I would like to display a different banner advertisement over subsequent pages which varies based on the category.  Best would be if every page in a category - album and image pages, had the banner advertisement on top from that category.  I'm using the Curves theme with some minor modifications.  For example, I'd like to have a banner advertisement on every page in the macular degeneration category from a medication used to treat macular degeneration.  I'd like to have a banner advertisement on every page in the retinal detachment category from a company that sells surgical equipment used to fix retinal detachments.

I will probably use a standard 728 x 90 px advertisement on top of each page.  I might also consider 3 advertisments each 300 x 100 px.

It will probably be easiest to put the advertisement on the very top of the page, above the coppermine header.

Any help with this will be appreciated!

Thank you,

Steven Cohen
Logged

Jeff Bailey

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 1322
  • Fishing relaxes me.
    • Bailey Family Co.
Re: Banner Advertisement Based on Category
« Reply #1 on: November 30, 2012, 09:17:59 pm »

So you would like a banner on this page http://retinagallery.com/index.php?cat=3 and all the sub categories? and for all other categories?

This should be themeable but if you want to have specific ads in specific categories you'll have to do some work to keep it updated.

You can add the banner anywhere you want are you sure you want it at the very top?

Once you confirm i'll try and put together an edit, can you attach your custom theme.php as theme.php.txt.
Logged
Thinking is the hardest work there is, which is probably the reason why so few engage in it. - Henry Ford

scohen125

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 100
    • Retina Gallery
Re: Banner Advertisement Based on Category
« Reply #2 on: December 02, 2012, 09:52:42 pm »

Jeff,

Thank you in advance for your help.  I would like to have control over the possibility of putting a banner advertisement over any pages based on their category.  So all pages in a certain category would carry the same advertisement.

My plan is to sell a banner on the home page for a fair amount of money and then banners on the category pages for less.

I'm not positive where the best place for the banner is.  I'm new to this, and if you have an idea based on my theme I will be happy to take your advice.  I have attached my theme.php  file (renamed). 

On the website for Retina Today, the banner is below the top menu and that looks pretty nice:
http://bmctoday.net/retinatoday/

On the website, Retina Physician, the banner is on the top (although at the moment it doesn't really have an advertisement on it):
http://www.retinalphysician.com/

One issue with the coppermine formatting, which I like is that the webpages have a fluid width.  The banner advertisements probably will not have a fluid width and will need to be centered.

A second problem for my specific site is that I have a different theme for Mobile devices installed.  I'll attach that too.  I'd like to somehow try to accomodate the mobile theme with an advertisement if I can. 

In a perfect world, I'd like to have an advertisement plugin so I don't have to do too much modification when Coppermine is upgraded.

I appreciate any help you could offer.

Thanks,
Steven
Logged

Jeff Bailey

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 1322
  • Fishing relaxes me.
    • Bailey Family Co.
Re: Banner Advertisement Based on Category
« Reply #3 on: December 05, 2012, 12:05:25 am »

I created a custom header that displays an ad wherever you place the {CUSTOM_HEADER} token.
If you don't like it I can create a theme edit for different placement of the ads. I'll only spend the time on a plugin if this solution doesn't work.

There are comments to help you figure it out but basically you just paste in the specific code for each catagory (if you have many categories this might be too difficult to maintain ie. the need for a plugin). The file will stay intact during upgrades as long as you don't delete it.

http://documentation.coppermine-gallery.net/en/configuration.htm#admin_theme_custom_header_path_start
http://documentation.coppermine-gallery.net/en/php-content.htm#php-content_header_footer
Logged
Thinking is the hardest work there is, which is probably the reason why so few engage in it. - Henry Ford

Jeff Bailey

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 1322
  • Fishing relaxes me.
    • Bailey Family Co.
Re: Banner Advertisement Based on Category
« Reply #4 on: December 05, 2012, 12:14:56 am »

Just noticed this http://forum.coppermine-gallery.net/index.php/topic,73766.0/topicseen.html
Maybe that plugin will work better for you.
Logged
Thinking is the hardest work there is, which is probably the reason why so few engage in it. - Henry Ford
Pages: [1]   Go Up
 

Page created in 0.021 seconds with 20 queries.