How to integrate html/text file into gallery How to integrate html/text file into gallery
 

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 to integrate html/text file into gallery

Started by rozum, January 29, 2006, 11:30:30 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

rozum

I wold like to published some text into my gallery. It should look like FAQ section, but instead of FAQ content there should be my text. I know that i need to create new html file and put it into directory DOCS/name.html, and i should also create new php file and put it into root directory. I guess i could do it like faq.php, but i don't know to modify it to show content of my name.html file.
Could somebody advice me how to do it. Thanks.

Tranz

You might want to look into this:
http://cpg-contrib.org/thumbnails.php?album=1

It includes an html editor. Here's an example: http://takethu.com/index.php?file=minicms/cms&id=25

Content can be standalone pages or integrated with gallery categories, albums, or photos.

Joachim Müller

Another option: create a file in coppermine's root directory (not into the docs dir) and put this into it:<?php
/*************************
  Coppermine Photo Gallery
  ************************
  Copyright (c) 2003-2005 Coppermine Dev Team
  v1.1 originaly written by Gregory DEMAR

  This program is free software; you can redistribute it and/or modify
  it under the terms of the GNU General Public License as published by
  the Free Software Foundation; either version 2 of the License, or
  (at your option) any later version.
  ********************************************
  Coppermine version: 1.4.3
**********************************************/

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

pageheader('Your page title');

starttable('-1''Your table heading');
?>

Your content
<?php
endtable
();
pagefooter();
ob_end_flush();

?>

Duke69

Quote from: GauGau on January 29, 2006, 11:43:27 PM
Another option: create a file in coppermine's root directory (not into the docs dir) and put this into it
...
SNIP
thanks that works, but i have problems with my text, it hangs on the border
how i get a more distance to border?


<?php
/*************************
  Coppermine Photo Gallery
  ************************
  Copyright (c) 2003-2005 Coppermine Dev Team
  v1.1 originaly written by Gregory DEMAR

  This program is free software; you can redistribute it and/or modify
  it under the terms of the GNU General Public License as published by
  the Free Software Foundation; either version 2 of the License, or
  (at your option) any later version.
  ********************************************
  Coppermine version: 1.4.3
**********************************************/

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

pageheader('more about me');

starttable('-1''    more about me    ');
?>

Meine Bilder auf dieser Seite sind mit der Canon 300D entstanden, die ich seit März '04 benutze. Davor habe ich lange Zeit mit einer analogen Practica fotografiert. Weiteres folgt ...
<?php
endtable
();
pagefooter();
ob_end_flush();

?>


my gallery link: http://fotopic69.fo.funpic.de/cpgallery/ich.php

bye
Torsten

Nibbler

Your content should be valid html.


<?php
/*************************
  Coppermine Photo Gallery
  ************************
  Copyright (c) 2003-2005 Coppermine Dev Team
  v1.1 originaly written by Gregory DEMAR

  This program is free software; you can redistribute it and/or modify
  it under the terms of the GNU General Public License as published by
  the Free Software Foundation; either version 2 of the License, or
  (at your option) any later version.
  ********************************************
  Coppermine version: 1.4.3
**********************************************/

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

pageheader('more about me');

starttable('-1''    more about me    ');
?>

<tr><td>
Meine Bilder auf dieser Seite sind mit der Canon 300D entstanden, die ich seit März '04 benutze. Davor habe ich lange Zeit mit einer analogen Practica fotografiert. Weiteres folgt ...
</td></tr>
<?php
endtable
();
pagefooter();
ob_end_flush();

?>