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: Adding Content to Gallery main page  (Read 3603 times)

0 Members and 1 Guest are viewing this topic.

Jaero

  • Coppermine newbie
  • Offline Offline
  • Posts: 13
    • http://me.warcry.com
Adding Content to Gallery main page
« 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, 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 (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 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]
Logged
Jaero - jaero@warcry.com
Site Manager - ME Warcry
http://me.warcry.com

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Adding Content to Gallery main page
« Reply #1 on: March 04, 2004, 08:49:28 am »

Quote from: "Jaero"
In the 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

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

Jaero

  • Coppermine newbie
  • Offline Offline
  • Posts: 13
    • http://me.warcry.com
Adding Content to Gallery main page
« Reply #2 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?
Logged
Jaero - jaero@warcry.com
Site Manager - ME Warcry
http://me.warcry.com

hyperion

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Posts: 1317
  • - retired -
Logged
"Then, Fletch," that bright creature said to him, and the voice was very kind, "let's begin with level flight . . . ."

-Richard Bach, Jonathan Livingston Seagull

(https://forum.coppermine-gallery.net/proxy.php?request=http%3A%2F%2Fwww.mozilla.org%2Fproducts%2Ffirefox%2Fbuttons%2Fgetfirefox_small.png&hash=9f6d645801cbc882a52f0ee76cfeda02625fc537)

Jaero

  • Coppermine newbie
  • Offline Offline
  • Posts: 13
    • http://me.warcry.com
Adding Content to Gallery main page
« Reply #4 on: March 04, 2004, 11:24:41 pm »

When I try this (exactly what is said) - I get
Quote
Parse error: parse error, expecting `']'' in /home/web/me/content/fanart/index.php on line 92
Logged
Jaero - jaero@warcry.com
Site Manager - ME Warcry
http://me.warcry.com

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
Adding Content to Gallery main page
« Reply #5 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.
Logged
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

Jaero

  • Coppermine newbie
  • Offline Offline
  • Posts: 13
    • http://me.warcry.com
Adding Content to Gallery main page
« Reply #6 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.
Logged
Jaero - jaero@warcry.com
Site Manager - ME Warcry
http://me.warcry.com
Pages: [1]   Go Up
 

Page created in 0.019 seconds with 19 queries.