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();
?>
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.
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
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
anycontent works very well with PHPNews http://newsphp.sourceforge.net/ (http://newsphp.sourceforge.net/)