News:

CPG Release 1.6.29
During HTML5 upload, keep pseudo blank code 200 messages from triggering error condition
added Russian language
correct failure to use theme menu icons in album manager
minor vulnerabilities mitigation

Main Menu

Add News in the gallery

Started by piero06, March 13, 2005, 01:32:55 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

piero06

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 :)


Joachim Müller

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

piero06

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 !  ;)

Nibbler

Use anycontent.php

<?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.