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: Add News in the gallery  (Read 4695 times)

0 Members and 1 Guest are viewing this topic.

piero06

  • Coppermine newbie
  • Offline Offline
  • Posts: 10
Add News in the gallery
« 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 :)

Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47844
  • aka "GauGau"
    • gaugau.de
Re: Add News in the gallery
« Reply #1 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
Logged

piero06

  • Coppermine newbie
  • Offline Offline
  • Posts: 10
Re: Add News in the gallery
« Reply #2 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 !  ;)
Logged

Nibbler

  • Guest
Re: Add News in the gallery
« Reply #3 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.
Logged
Pages: [1]   Go Up
 

Page created in 0.018 seconds with 20 queries.