forum.coppermine-gallery.net
Support => Older/other versions => cpg1.2 Standalone Support => Topic started 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 :)
-
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
-
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 ! ;)
-
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.