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;
}
}
?>
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?
cName shows the categorie name!
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.