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

0 Members and 1 Guest are viewing this topic.

ppeter

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 36
anycontent another xxx.php
« on: May 06, 2004, 02:12:53 pm »

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

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
Re: anycontent another xxx.php
« Reply #1 on: May 06, 2004, 03:37:29 pm »

You put your content in here;
Code: [Select]
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.
Logged
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

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 36
Re: anycontent another xxx.php
« Reply #2 on: May 06, 2004, 11:00:19 pm »

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
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: anycontent another xxx.php
« Reply #3 on: May 07, 2004, 08:10:38 am »

this is a sample you could copy'n paste into anycontent.php:
Code: [Select]
<?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 like
Code: [Select]
include('/your/path/to/phpnews/news.php');instead of
Code: [Select]
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
Logged

ppeter

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 36
Re: anycontent another xxx.php
« Reply #4 on: June 10, 2004, 10:03:31 am »

anycontent works very well with PHPNews http://newsphp.sourceforge.net/
Logged
Pages: [1]   Go Up
 

Page created in 0.018 seconds with 14 queries.