How can i put sponsors for different album/cats? - Page 2 How can i put sponsors for different album/cats? - Page 2
 

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

How can i put sponsors for different album/cats?

Started by ojohn, December 03, 2003, 08:37:30 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

ojohn

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

Oasis

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
Pixnet Gallery: http://www.pixnet.net
iNSiGNiA Weblog: http://www.jayliu.org


ojohn


Tarique Sani

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 :)
SANIsoft PHP applications for E Biz

ojohn


Tarique Sani

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
SANIsoft PHP applications for E Biz

ojohn

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

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

Is that right?

Oasis

@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?
Pixnet Gallery: http://www.pixnet.net
iNSiGNiA Weblog: http://www.jayliu.org

ojohn

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

Oasis

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.
Pixnet Gallery: http://www.pixnet.net
iNSiGNiA Weblog: http://www.jayliu.org

ojohn

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:

Oasis

: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.
Pixnet Gallery: http://www.pixnet.net
iNSiGNiA Weblog: http://www.jayliu.org

ojohn

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...

dustyb

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.


Joachim Müller

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