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 [2]   Go Down

Author Topic: How can i put sponsors for different album/cats?  (Read 14851 times)

0 Members and 1 Guest are viewing this topic.

ojohn

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 44
How can i put sponsors for different album/cats?
« Reply #20 on: December 21, 2003, 09:01:17 pm »

oasis: So for each album i create ill have to go back to anycontent and it in?
Logged

Oasis

  • VIP
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 252
  • iNSiGNiA
    • Pixnet Gallery
How can i put sponsors for different album/cats?
« Reply #21 on: December 21, 2003, 09:11:07 pm »

no no... you remove all conditionals (ifs), and see if anycontent actually appears AT ALL in displayimage.php and thumbnails.php

If it DOES, then we can get moving with this.
It it DOESN'T, you have obviously missed some part of the changes
Logged
Pixnet Gallery: http://www.pixnet.net
iNSiGNiA Weblog: http://www.jayliu.org

ojohn

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 44
How can i put sponsors for different album/cats?
« Reply #22 on: December 21, 2003, 09:25:47 pm »

oasis: It didn't work heres a link:

http://www.maderacoyotes.com/photos/index.php?cat=4
Logged

ojohn

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 44
How can i put sponsors for different album/cats?
« Reply #23 on: December 22, 2003, 12:02:18 am »

oasis: it did work but i need it to show in the cats.

Link
http://www.maderacoyotes.com/photos/
Logged

Tarique Sani

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 2712
    • http://tariquesani.net
How can i put sponsors for different album/cats?
« Reply #24 on: December 22, 2003, 04:47:52 am »

Oops! missed a lot on this thread - My intention of putting anycontent was showing some additional content like a small blurb, news headline etc on the first page of your site - and it does precisely that.

Removing conditionals will only make it appear on the pages which are handled by index.php - thats about it

If functionality like banner / sponsor per album etc is to be added I would prefer that it be done in a separate mod and not by mangling anycontent.php

anycontent.php is a simple tool - lets keep it simple :)
Logged
SANIsoft PHP applications for E Biz

ojohn

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 44
How can i put sponsors for different album/cats?
« Reply #25 on: December 22, 2003, 05:29:03 am »

tarique: well that not going to help
Logged

Tarique Sani

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 2712
    • http://tariquesani.net
How can i put sponsors for different album/cats?
« Reply #26 on: December 22, 2003, 09:01:05 am »

Quote from: "ojohn"
tarique: well that not going to help

My comments were directed at the devs here who have been trying to help you
Logged
SANIsoft PHP applications for E Biz

ojohn

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 44
How can i put sponsors for different album/cats?
« Reply #27 on: December 22, 2003, 09:25:02 pm »

oasis: This is what i got in the index.php

            case 'anycontent';
                include('anycontent.php');
                flush();
                break;

Is that right?
Logged

Oasis

  • VIP
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 252
  • iNSiGNiA
    • Pixnet Gallery
How can i put sponsors for different album/cats?
« Reply #28 on: December 23, 2003, 10:18:16 am »

@tarique: I already noticed that anycontent was only being displayed in index.php, so I told ojohn to add the includes to thumbnails.php and displayimage.php, so now they should appear there as well.  :)
The conditionals I was talking about are those that gaugau suggested putting in anycontent.php, so that the appropriate banners will appear for the albums/category that is being shown.

@ojohn: I looked at your site yesterday, and the "Test banner for blahblah" was there, but now they are not. Did you remove EVERYTHING from anycontent? If there is nothing in anycontent, well, how can you expect anything to show up?
Logged
Pixnet Gallery: http://www.pixnet.net
iNSiGNiA Weblog: http://www.jayliu.org

ojohn

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 44
How can i put sponsors for different album/cats?
« Reply #29 on: December 23, 2003, 08:06:48 pm »

oasis: NO click in a cat. And when you click on a cat it shows but when you click on album its gone.
Logged

Oasis

  • VIP
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 252
  • iNSiGNiA
    • Pixnet Gallery
How can i put sponsors for different album/cats?
« Reply #30 on: December 23, 2003, 09:41:29 pm »

Please post constructively, I can hardly understand what you are saying.
1. "No click in a cat". What on earth does that mean?
2. "When you click on a cat it shows". Well from what I see it surely doesn't.
3. "When you click on album it's gone" Well, obviously you didn't put it correctly in thumbnails.php, because in displayimage.php it seems to be showing just fine (http://www.maderacoyotes.com/photos/displayimage.php?album=random&cat=4&pos=-146)

4. I told you to remove all conditionals (ifs) in anycontent, yet the banner is showing in some pictures and not in others(this one shows the banner: http://www.maderacoyotes.com/photos/displayimage.php?album=random&cat=5&pos=-104 and this one doesn't show the banner: http://www.maderacoyotes.com/photos/displayimage.php?album=10&pos=0) which means you didn't even bother to follow the instructions I gave you. If you can't even follow instructions properly, I will no longer waste my time.
Logged
Pixnet Gallery: http://www.pixnet.net
iNSiGNiA Weblog: http://www.jayliu.org

ojohn

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 44
How can i put sponsors for different album/cats?
« Reply #31 on: December 24, 2003, 05:00:27 am »

oasis: Don't know how you can say I didn't follow your instructors when there are mistakes in them so maybe if you could go back and see if you can get it to work right. :wink:
Logged

Oasis

  • VIP
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 252
  • iNSiGNiA
    • Pixnet Gallery
How can i put sponsors for different album/cats?
« Reply #32 on: December 24, 2003, 05:51:11 am »

:evil: What do you mean by there were mistakes in them. I gave you explicit instructions: REMOVE ALL CONDITIONALS FROM ANYCONTENT.PHP.

You would have found no mistakes in my instructions IF YOU HAD ACTUALLY FOLLOWED THEM. These are the exact changes I have made to my own code, and everything is working right for me.

So maybe it is YOU who should go back and see if you can get it to work right. Sorry, but since you are obviously not making any effort to follow my instructions, I do not see why I should waste my time or make any effort to write them. So you're on your own now. Good Luck.
Logged
Pixnet Gallery: http://www.pixnet.net
iNSiGNiA Weblog: http://www.jayliu.org

ojohn

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 44
How can i put sponsors for different album/cats?
« Reply #33 on: December 26, 2003, 05:03:57 am »

Sorry but how should they be:

if ($_REQUEST["cat"] == 5){print 'Cheer Sponsor Banner Test';}

into

($_REQUEST["cat"] == 5){print 'Cheer Sponsor Banner Test';}

please answer my last question...
Logged

dustyb

  • Coppermine newbie
  • Offline Offline
  • Posts: 12
Re: How can i put sponsors for different album/cats?
« Reply #34 on: May 06, 2004, 07:24:56 pm »

Oasis, thanks for your helpful hints on using anycontent.php in pages other than index.php. I guess that is going far beyond the original intent of the include, but that's another matter. I'm relatively new to PHP, more of a Linux system engineer and Perl Module guy myself. I'm trying to study exactly how your templating engine works in this program. Basically, I've wrapped my site navigation around {GALLERY} using template.html (pretty much as it was designed). My pages look like this through template.html:

My Top Nav
My Left Nav        {GAL_NAME}       My Right Column
                         {GALLERY}

I've done a fair amount of tweaking within theme.php, adding a couple of menu items, fixing some bad html, etc. But what I really need to get a skyscraper banner ad in that Right Column. The Right Column would only be the Skyscraper, nothign else. Ideally, I'd like to get something like {SKYSCRAPER} parsed in the template.html. I guess that is where I bump up against my understanding of the program.

So, another solution I suppose would be to use pagefooter() and let it do the footer, and then after that include anycontent.php which would open the right column cell, call the skyscaper, close the cell, row, and table. In other words, use template.html for first half, and then use pagefooter() and anycontent.php to finish it all off.

Sound right? Any other suggestions? Or quick pointers on how to get {SKYSCRAPER} into template.html? Much appreciated. Excellent program to all involved, really.

Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: How can i put sponsors for different album/cats?
« Reply #35 on: May 07, 2004, 08:01:27 am »

your suggestion is correct, since you can't add any custom functions after the pagefooter tag (that's where the parsing of template html stops "looking" for stuff in curly braces). Either include your skyscraper code within pagefooter or have the three columns end before the footer, like you sugested.
See http://forum.coppermine-gallery.net/index.php?topic=5555.0 and http://coppermine.sourceforge.net/faq.php?q=rightHandMenu#rightHandMenu

GauGau

Logged
Pages: 1 [2]   Go Up
 

Page created in 0.023 seconds with 18 queries.