forum.coppermine-gallery.net

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Miscellaneous => Topic started by: outpatient on January 15, 2005, 06:15:25 am

Title: anycontent.php
Post by: outpatient 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!
Title: Re: anycontent.php
Post by: Abbas Ali 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.
Title: Re: anycontent.php
Post by: Joachim Müller 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