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: anycontent.php  (Read 4026 times)

0 Members and 1 Guest are viewing this topic.

outpatient

  • Coppermine newbie
  • Offline Offline
  • Gender: Female
  • Posts: 10
    • My Family Album
anycontent.php
« on: January 15, 2005, 06:15:25 am »

I apologize in advance if this question doesnt belong here... I just couldnt find anywhere else to put it!

I have screwed up my anycontent.php file and didn't save a backup.  I know. Could someone please upload it or email it to me? Or better yet, copy the code here?

Pretty please?

I really appreciate it.  Thank you in advance!
Logged

Abbas Ali

  • Administrator
  • Coppermine addict
  • *****
  • Country: in
  • Offline Offline
  • Gender: Male
  • Posts: 2165
  • Spread the PHP Web
    • Ranium Systems
Re: anycontent.php
« Reply #1 on: January 15, 2005, 06:26:02 am »

Please give proper name to the topics you post.

Anyways just download a fresh copy of cpg (your version), untar or unzip it and copy anycontent.php from the unzipped folder to your current installation folder.
Logged
Chief Geek at Ranium Systems

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: anycontent.php
« Reply #2 on: January 16, 2005, 05:11:54 am »

Of course Abbas is right; in the case of anycontent.php, this is all you need:
Code: [Select]
<?php
// your content here
?>
The "original" looks like this (and has - compared to above version - only the copyright header and a start and end of a coppermine table:
Code: [Select]
<?php
// ------------------------------------------------------------------------- //
// Coppermine Photo Gallery 1.3.2                                            //
// ------------------------------------------------------------------------- //
// Copyright (C) 2002-2004 Gregory DEMAR                                     //
// http://www.chezgreg.net/coppermine/                                       //
// ------------------------------------------------------------------------- //
// Updated by the Coppermine Dev Team                                        //
// (http://coppermine.sf.net/team/)                                          //
// see /docs/credits.html for details                                        //
// ------------------------------------------------------------------------- //
// 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.                                       //
// ------------------------------------------------------------------------- //
// CVS version: $Id: anycontent.php,v 1.5 2004/07/24 15:03:52 gaugau Exp $
// ------------------------------------------------------------------------- //

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
();

?>


For future reference: you can get the most recent version of every coppermine file from the web cvs (stable branch): http://cvs.sourceforge.net/viewcvs.py/coppermine/stable/ - for anycontent, this would be the link: http://cvs.sourceforge.net/viewcvs.py/coppermine/stable/anycontent.php
We never do support by email, as it would defeat the point of a forum.

Joachim
Logged
Pages: [1]   Go Up
 

Page created in 0.026 seconds with 20 queries.