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

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