forum.coppermine-gallery.net

Support => Older/other versions => cpg1.2 Standalone Support => Topic started by: piero06 on March 13, 2005, 01:32:55 pm

Title: Add News in the gallery
Post by: piero06 on March 13, 2005, 01:32:55 pm
Hi

Im italian, and so my english isn't perfect :)

I have a site based on Coppermine Gallery, and a WebForum ( VB 3.0.0 ) integrated.

I wanted to add a news module, where I posting in a categoriy of the Forum ( f.ex. ' News ' ), the topic will apper in the gallery as a News.

I know that i wasn't crear ... but i wanted to add some news about the gallery, and to display these in the gallery.

Thanks :)

Title: Re: Add News in the gallery
Post by: Joachim Müller on March 14, 2005, 07:34:41 am
Use the "anycontent.php" to add your own code to coppermine. Are you using a nuke port? If yes, then your posting is irrelevant in the first place, as this board is dedicated to the standalone version of coppermine. Posting a link to your site might help...

Joachim
Title: Re: Add News in the gallery
Post by: piero06 on March 16, 2005, 03:56:14 pm
Hi,

I don't eant a real potal as php-nuke, but only a module to add news automatly ( not editing manualy index.php file ) news in the Home Page.

Was I clear ?  :)

Thanks !  ;)
Title: Re: Add News in the gallery
Post by: Nibbler on March 16, 2005, 04:09:33 pm
Use anycontent.php

Code: [Select]
<?php

if (!defined('IN_COPPERMINE')) die('Not in Coppermine...');

starttable("100%""News");

$result db_query("SELECT * FROM vb3.vb3_post WHERE threadid=1 ORDER BY dateline DESC");

while (
$row mysql_fetch_assoc($result)){

?>

<tr>
<td class="tableb" >
<?=$row['pagetext']; ?>
</td>
</tr>
<?php
}
endtable();
?>

Change the details as appropriate.