anycontent another xxx.php anycontent another xxx.php
 

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

anycontent another xxx.php

Started by ppeter, May 06, 2004, 02:12:53 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

ppeter

hello!

if i will integrate in anycontent another php side, what is the right code?

<?php include("anycontent.php");>

or

case 'anycontent':
               if ($cat == 0) {
                   include('anycontent.php');
               }
               flush();
               break;

how to i integrate it in the anycontent?

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

Casper

You put your content in here;
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
();


Then you login/admin mode/config, find 'contents of main page' and add 'anycontent'.  Depending on where you add it in the list, will decide where it is shown on the page.
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

ppeter

yes, my question is: how can i input now a website like this one
http://www.apfel.at/phpnews/news.php or http://www.apfel.at/feedonfeeds/view.php

i mean coding, because i am a php beginner
is that correct:

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

?>
<tr><td class="tableb" >
include('http://www.apfel.at/phpnews/news.php');
</td></tr>
<?php
endtable();

i mean here is no sample of a content with php

Joachim Müller

this is a sample you could copy'n paste into anycontent.php:
<?php
// ------------------------------------------------------------------------- //
// Coppermine Photo Gallery 1.2.1                                            //
// ------------------------------------------------------------------------- //
// Copyright (C) 2002,2003 Gregory DEMAR                                     //
// http://www.chezgreg.net/coppermine/                                       //
// ------------------------------------------------------------------------- //
// Updated by the Coppermine Dev 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.                                       //
// ------------------------------------------------------------------------- //
starttable("100%""Welcome");

?>

<tr><td class="tableb" >
<?php
include('http://www.apfel.at/phpnews/news.php');
?>

</td></tr>
<?php
endtable
();
?>
You'll then have to switch the usage of anycontent.php on in coppermine config (see http://coppermine.sourceforge.net/manual.php#changing ).
If your webhost doesn't allow you to refer to URIs in includes, you'll have to go for an absolute path, so it'd be something likeinclude('/your/path/to/phpnews/news.php');instead of include('http://www.apfel.at/phpnews/news.php');

Please understand that this forum can't give support for general php issues - go to http://www.php.net/include for details.

GauGau

ppeter