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: Album List Categorie Name Problem  (Read 5401 times)

0 Members and 1 Guest are viewing this topic.

theflori

  • Coppermine newbie
  • Offline Offline
  • Posts: 11
Album List Categorie Name Problem
« on: December 10, 2006, 04:57:04 pm »

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


Code: [Select]
<?
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;
}
}



?>
Logged

vuud

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1803
  • [cpmfetch.fistfullofcode.com]
    • Fist Full Of Code
Re: Album List Categorie Name Problem
« Reply #1 on: December 10, 2006, 06:52:50 pm »

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


Code: [Select]
<?
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?



Logged
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

  • Coppermine newbie
  • Offline Offline
  • Posts: 11
Re: Album List Categorie Name Problem
« Reply #2 on: December 10, 2006, 08:19:30 pm »

cName shows the categorie name!
Logged

vuud

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1803
  • [cpmfetch.fistfullofcode.com]
    • Fist Full Of Code
Re: Album List Categorie Name Problem
« Reply #3 on: December 10, 2006, 09:35:01 pm »

cName shows the categorie name!

On a cpm_viewLastAddedMediaFrom call it does not.

Under the 1.6.x series only:
Code: [Select]
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.



Logged
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
Pages: [1]   Go Up
 

Page created in 0.02 seconds with 19 queries.