coppermine-gallery.com/forum

Support => Older/other versions => cpg1.2 Standalone Support => Topic started by: Jaero on March 04, 2004, 07:58:05 AM

Title: Adding Content to Gallery main page
Post by: Jaero on March 04, 2004, 07:58:05 AM
[size=9]Forgive me for I don't know PHP well, and I'm sorry if this has been discussed at length before (my forum search didn't find the answer I seek).[/size]

In the demo (http://coppermine.sourceforge.net/demo/), there is an "About this Demo" table below "Last Additions". I'm curious how to do that (again, I'm not too familiar with PHP).

I'm making a Fan Art & Fiction Gallery (http://me.warcry.com/content/fanart/index.php) (no, I've not yet found a manager to handle text-based documents) - which is still under contruction (go past the front page and the CSS gets ugly). However, the template (http://me.warcry.com/index.php/content/fanart/index_.php) I made for our galleries is a bit different. The introduction & 'featured artist' tables, as well as the guidelines table at the bottom, I was only able to add to the CPG gallery in template.html - but this made the tables show up in every single page of the gallery (== bad). I want the tables to show up only on the main gallery page, just as the 'about' table in the Demo does.

Also, in template.html, I framed the gallery to match the site's layout - and this also frames every thing on every page - which would be fine, but then the "Powered by CPG" footer is framed as well, and screws things up a bit.


Any help here would be incredibly appreciated. I would ask our Warcry network coders to help me, but you folks naturally know the software much better.

Again, please forgive my lack of knowledge of this code.


[size=9]PS. I've seen it mentioned, but could someone direct me to a thread regarding adding a "Last Addition" thumbnail to another part of the site? I want to add a "most recent submission" to the right sidebar of my site.[/size]
Title: Re: Adding Content to Gallery main page
Post by: Joachim Müller on March 04, 2004, 08:49:28 AM
Quote from: "Jaero"In the demo (http://coppermine.sourceforge.net/demo/), there is an "About this Demo" table below "Last Additions". I'm curious how to do that (again, I'm not too familiar with PHP).
http://coppermine.sourceforge.net/demo/docs/index.htm#changing - anycontent (http://forum.coppermine-gallery.net/index.php?topic=621)

Quote from: "Jaero"I've seen it mentioned, but could someone direct me to a thread regarding adding a "Last Addition" thumbnail to another part of the site? I want to add a "most recent submission" to the right sidebar of my site.
http://forum.coppermine-gallery.net/index.php?topic=2960
http://forum.coppermine-gallery.net/index.php?topic=625

I'm not sure what you want to say with the rest of your posting. Although I appreciate you trying to give much detail, I don't understand what your actual question is.

GauGau

P.S. Next time, please do only post one question per thread...
Title: Adding Content to Gallery main page
Post by: Jaero on March 04, 2004, 05:06:34 PM
Thanks for your reply gaugau. Clearly my title "Coppermine newbie" is accurate. I thought I had checked the documentation before posting this, but perhaps I was wrong.

I think I can explain it in a less confusing way now. If I included the "anycontent" - that would suit my needs for adding something beneath the gallery. However, is there any way I could add something in the same way above the gallery in addition to that?
Title: Adding Content to Gallery main page
Post by: hyperion on March 04, 2004, 06:38:45 PM
http://forum.coppermine-gallery.net/index.php?topic=921
Title: Adding Content to Gallery main page
Post by: Jaero on March 04, 2004, 11:24:41 PM
When I try this (exactly what is said) - I get
QuoteParse error: parse error, expecting `']'' in /home/web/me/content/fanart/index.php on line 92
Title: Adding Content to Gallery main page
Post by: Casper on March 05, 2004, 12:11:34 AM
If thatbdidn't work, try using the custom header/ custom footer instructions in the faq, here http://coppermine.sourceforge.net/faq.php?q=customHeader#customHeader.
Title: Adding Content to Gallery main page
Post by: Jaero on March 05, 2004, 01:15:24 AM
I tried that as well, and got errors in both index.php and theme.php - I added some new code to get it to work - but that's now what I want. I DON'T want something that will add the header/footer to every page.