Advanced search  

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]

Pages: [1]   Go Down

Author Topic: How do I integrate a contact page to the gallery?  (Read 3605 times)

0 Members and 1 Guest are viewing this topic.

Fab

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 29
How do I integrate a contact page to the gallery?
« on: September 24, 2006, 01:54:29 am »

How do I integrate a contact page to the gallery?

I already know about the  Custom menu link name and  Custom menu link URL in Themes settings, my question is on the integration of the gallery Header/layout/menu on the custom page.    

I tried to make one by modifying a copy of Search.php but I don't understand what to keep and what to remove.
Also tried with a copy of template.html but while the css was there it only displayed the placeholders {GAL_NAME} {SYS_MENU} {GAL_DESCRIPTION} {SUB_MENU} etc


« Last Edit: September 24, 2006, 02:29:00 am by Nibbler »
Logged

Nibbler

  • Guest
Re: How do I integrate a contact page to the gallery?
« Reply #1 on: September 24, 2006, 02:17:53 am »

This has been posted plenty of times already, but here it is again,

Code: [Select]
<?php

define
('IN_COPPERMINE'true);
require(
'include/init.inc.php');

pageheader('Your page title');

// your content here

pagefooter();
?>

Logged

Fab

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 29
Re: How do I integrate a contact page to the gallery?
« Reply #2 on: September 24, 2006, 02:25:47 am »

Thanks a million Nibbler.
I actually spent quite sometime searching for the answer before asking.
If it's a recurring question maybe a sticky  would be a good idea.
Logged

Fab

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 29
Re: How do I integrate a contact page to the gallery?
« Reply #3 on: September 24, 2006, 02:34:17 am »

How should I enter the content? I get an error message with html.
Logged

Nibbler

  • Guest
Re: How do I integrate a contact page to the gallery?
« Reply #4 on: September 24, 2006, 02:35:10 am »

Code: [Select]
<?php

define
('IN_COPPERMINE'true);
require(
'include/init.inc.php');

pageheader('Your page title');

?>

Your html content here
<?php

pagefooter
();
?>


Logged

Fab

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 29
Re: How do I integrate a contact page to the gallery?
« Reply #5 on: September 24, 2006, 02:39:39 am »

Wow that was a fast reply  :)

Thanks again Nibbler.
Logged

Gizmo

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1015
    • BullsEye Photos
Re: How do I integrate a contact page to the gallery?
« Reply #6 on: September 24, 2006, 03:42:17 am »

If you want a contact page for people to send you info then try this post - http://forum.coppermine-gallery.net/index.php?topic=29822.0.
Logged
Did you read the manual first???? Taking 2 minutes to backup your files can save you hours of wondering what you screwed up.
Billy Bullock - BullsEyePhotos Blog of Indecision

casperinmd

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Re: How do I integrate a contact page to the gallery?
« Reply #7 on: May 30, 2007, 07:30:09 pm »

Just posting a few words that I feel would help others find this topic, as I missed it when looking for how to wrap my content with the header and footer from CPG. I searched on header and footer and wrap but came up short, guess integrate would have worked. Thanks
Logged
Pages: [1]   Go Up
 

Page created in 0.019 seconds with 15 queries.