Album List Categorie Name Problem Album List Categorie Name Problem
 

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]

Main Menu

Album List Categorie Name Problem

Started by theflori, December 10, 2006, 04:57:04 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

theflori

Hello!
here is my code, why dont show cName in Fontend?


<?
defined( '_VALID_MOS' ) or die( 'Restricted access' );

$gallery = $params->get('gallery');
$cpmFetch = $params->get('cpmFetch');

include_once $cpmFetch."/cpmfetch.php";
$objCpm = new cpm($gallery);
$objCpm->cpm_setReturnType("resultset");
$data = $objCpm->cpm_viewLastAddedMediaFrom(1000, 1000, "cat=");

$cnt = 0;
$arrayofalbums = array();

            foreach ($data as $row) {
if (! in_array($row['aTitle'],$arrayofalbums)) {

print '<img src="http://87.230.6.119/Gallery/cpmfetch/pfeil.gif"><img src="http://87.230.6.119/Gallery/images/spacer.gif" width="3" height="1">';
print '<a href="http://87.230.6.119/Gallery/thumbnails.php?album=' . $row[pAid] . '"\>';
print $row['aTitle'];
print '</a>';
print '<br>';
print $row['cName'];
print "";
print "\n";
array_push($arrayofalbums,$row['aTitle']);
$cnt++;
print "<br>";
if ($cnt == 6) break;
}
}



?>

vuud

Quote from: theflori on December 10, 2006, 04:57:04 PM
Hello!
here is my code, why dont show cName in Fontend?


<?
defined( '_VALID_MOS' ) or die( 'Restricted access' );

$gallery = $params->get('gallery');
$cpmFetch = $params->get('cpmFetch');

include_once $cpmFetch."/cpmfetch.php";
$objCpm = new cpm($gallery);
$objCpm->cpm_setReturnType("resultset");
$data = $objCpm->cpm_viewLastAddedMediaFrom(1000, 1000, "cat=");

$cnt = 0;
$arrayofalbums = array();

            foreach ($data as $row) {
if (! in_array($row['aTitle'],$arrayofalbums)) {

print '<img src="http://87.230.6.119/Gallery/cpmfetch/pfeil.gif"><img src="http://87.230.6.119/Gallery/images/spacer.gif" width="3" height="1">';
print '<a href="http://87.230.6.119/Gallery/thumbnails.php?album=' . $row[pAid] . '"\>';
print $row['aTitle'];
print '</a>';
print '<br>';
print $row['cName'];
print "";
print "\n";
array_push($arrayofalbums,$row['aTitle']);
$cnt++;
print "<br>";
if ($cnt == 6) break;
}
}



?>


Sorry, what does cName do, and where did you see that it works?



Please post for help to the forum... PM me only if you are sending security related items (passwords, security problems, etc).

cpmFetch - Images, RSS feeds from CPG from outside CPG
New release notification signup also. 
See http://cpmfetch.fistfullofco

theflori


vuud

Quote from: theflori on December 10, 2006, 08:19:30 PM
cName shows the categorie name!

On a cpm_viewLastAddedMediaFrom call it does not.

Under the 1.6.x series only:

getMediaAddedToCategoriesSince
getMediaAddedSince


Provide it back.

On the dev versions 1.9.x none of them do.  That is an oversight on my part and in the near future all of them that return pictures will have it.



Please post for help to the forum... PM me only if you are sending security related items (passwords, security problems, etc).

cpmFetch - Images, RSS feeds from CPG from outside CPG
New release notification signup also. 
See http://cpmfetch.fistfullofco