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: put some text a the index.php  (Read 3052 times)

0 Members and 1 Guest are viewing this topic.

charlie5000

  • Coppermine newbie
  • Offline Offline
  • Posts: 14
put some text a the index.php
« on: December 06, 2007, 10:27:45 pm »

Can anyone tell how I can write some text as showed in the picture. but only at the index.php
« Last Edit: December 07, 2007, 12:24:29 am by Nibbler »
Logged

Hein Traag

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: nl
  • Offline Offline
  • Gender: Male
  • Posts: 2166
  • A, B, Cpg
    • Personal website - Spintires.nl
Re: put some text a the index.php
« Reply #1 on: December 06, 2007, 10:31:41 pm »

Logged

Nibbler

  • Guest
Re: put some text a the index.php
« Reply #2 on: December 07, 2007, 12:22:57 am »

You could use anycontent.php for that, that would be simpler.
Logged

charlie5000

  • Coppermine newbie
  • Offline Offline
  • Posts: 14
Re: put some text a the index.php
« Reply #3 on: December 07, 2007, 01:41:25 pm »

Okay thank you... Can You tell me where to write the text in the code?

Here is the kode

<?php
/*************************
  Coppermine Photo Gallery
  ************************
  Copyright (c) 2003-2007 Coppermine Dev Team
  v1.1 originally 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 version 3
  as published by the Free Software Foundation.
 
  ********************************************
  Coppermine version: 1.4.13
  $Source$
  $Revision: 3837 $
  $Author: gaugau $
  $Date: 2007-08-16 18:56:06 +0200 (Do, 16 Aug 2007) $
**********************************************/

/**
* Coppermine Photo Gallery 1.4.11 anycontent.php
*
* This file file gets included in the index.php if you set the option in admin
* can be used to display any content from any program, it is always to be edited
* according to tastes and then used
*
* @copyright 2002,2005 Gregory DEMAR, Coppermine Dev Team
* @license http://opensource.org/licenses/gpl-license.php GNU General Public License V2
* @package Coppermine
* @version $Id: anycontent.php 3837 2007-08-16 16:56:06Z gaugau $
*/

if (!defined('IN_COPPERMINE')) die('Not in Coppermine...');

starttable("100%", "Welcome");

?>
<tr><td class="tableb" >
This is for any content block - just a test - Edit the file "anycontent.php" to change what is shown here
</td></tr>
<?php
endtable();

?>


I hope you can help me...

thank you again
Logged

François Keller

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: fr
  • Offline Offline
  • Gender: Male
  • Posts: 9096
  • aka Frantz
    • Ma galerie
Re: put some text a the index.php
« Reply #4 on: December 07, 2007, 01:46:57 pm »

just replace this text
Code: [Select]
This is for any content block - just a test - Edit the file "anycontent.php" to change what is shown herewith your's
Logged
Avez vous lu la DOC ? la FAQ ? et cherché sur le forum avant de poster ?
Did you read the DOC ? the FAQ ? and search the board before posting ?
Mon Blog

charlie5000

  • Coppermine newbie
  • Offline Offline
  • Posts: 14
Re: put some text a the index.php
« Reply #5 on: December 07, 2007, 11:04:26 pm »

nothing happens when I replace the code "This is for any content block - just a test - Edit the file "anycontent.php" to change what is shown here" with for example "Welcome". when I do that nothing happens in the index.php page.....
Do you have any idea why is does not work?
Logged

Nibbler

  • Guest
Re: put some text a the index.php
« Reply #6 on: December 07, 2007, 11:07:24 pm »

You need to enable it in config.

http://coppermine-gallery.net/demo/cpg14x/docs/index.htm#changing

You want it at the top of the page so put it first on the list.
Logged

charlie5000

  • Coppermine newbie
  • Offline Offline
  • Posts: 14
Re: put some text a the index.php
« Reply #7 on: December 07, 2007, 11:34:20 pm »

I may be stupid, but what list is it you mean?

I hope you can help me
Logged

Nibbler

  • Guest
Re: put some text a the index.php
« Reply #8 on: December 07, 2007, 11:35:54 pm »

I already gave you a direct link to the relevant section of the manual that describes it.
Logged
Pages: [1]   Go Up
 

Page created in 0.019 seconds with 16 queries.