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: Showing the Album thumb  (Read 7765 times)

0 Members and 1 Guest are viewing this topic.

tyio

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 27
Showing the Album thumb
« on: December 28, 2006, 12:20:32 pm »

Hi :)


just wonder to know, if there is a "$objCpm->cpm_XXXX" that permit to show the album thumb (specially choose into coppermine) and allow me, when i click into it, to go on the album :)



thanks for your time, i'll do a simply Flash files, because i see you'ren't so familiar with it, to show you what i'll do with your code :)


^^
Logged

vuud

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1803
  • [cpmfetch.fistfullofcode.com]
    • Fist Full Of Code
Re: Showing the Album thumb
« Reply #1 on: December 28, 2006, 03:48:34 pm »

Hi :)


just wonder to know, if there is a "$objCpm->cpm_XXXX" that permit to show the album thumb (specially choose into coppermine) and allow me, when i click into it, to go on the album :)



thanks for your time, i'll do a simply Flash files, because i see you'ren't so familiar with it, to show you what i'll do with your code :)


^^


The release from the other day (1.9.5) has a function:

$objCpm->cpm_getAlbumListFrom(2,2,"cat=5");

params are $rows, $columns, $source, $optionarray

That I think will do what you want.


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

tyio

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 27
Re: Showing the Album thumb
« Reply #2 on: January 13, 2007, 01:15:32 pm »

thanks for reply :)
sorry, i didn't have a notifcation ;((((



i use your coding, using 1.9.6 but seems not to recognize the syntax, giving me a :

Quote
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'GROUP BY a.aid ORDER BY a.aid DESC' at line 1

and i only use

Quote
<?php
  include "./cpmfetch.php";
  $objCpm = new cpm(); 
  $objCpm->cpm_getAlbumListFrom(2,2,1);
  $objCpm->cpm_close();
?>
Logged

vuud

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1803
  • [cpmfetch.fistfullofcode.com]
    • Fist Full Of Code
Re: Showing the Album thumb
« Reply #3 on: January 13, 2007, 01:57:55 pm »

thanks for reply :)
sorry, i didn't have a notifcation ;((((



i use your coding, using 1.9.6 but seems not to recognize the syntax, giving me a :

and i only use


Please use this, and paste me the output:

<?php
  include "./cpmfetch.php";
  $objCpm->cpm_debugMode(true);
  $objCpm = new cpm();
  $objCpm->cpm_getAlbumListFrom(2,2,"cat=5");
  $objCpm->cpm_close();
?>

I assume this is in the cpmfetch folder since the new cpm() is empty.

Thanks!

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

tyio

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 27
Re: Showing the Album thumb
« Reply #4 on: January 13, 2007, 02:20:00 pm »

Oh, many thanks for your quick answer :)


there is a pb in the syntax you just give to me, i have

Quote
Fatal error: Call to a member function on a non-object in /home/www/XXXX/cpmfetch/tyio.php on line 3

and it's the  $objCpm->cpm_debugMode(true); that going wrong ;(( (i have test the install.php and no pb with the little test fonction, so, no pb with the path )


any idea :)


if you need a url , tell me :)
Logged

tyio

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 27
Re: Showing the Album thumb
« Reply #5 on: January 13, 2007, 02:21:28 pm »

http://tyio.3dvf.net/cpmfetch/install.php

here the link of the install mod :)


and here a link of the files you give :

http://tyio.3dvf.net/cpmfetch/tyio.php
Logged

tyio

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 27
Re: Showing the Album thumb
« Reply #6 on: January 13, 2007, 03:17:32 pm »

Ah, i have sucess one thing


now, i use this kind of syntax

$objCpm->cpm_getAlbumListFrom("cat=3",5,2);

and i have well the album showed

but i have some problem, do you think possible just to show, the last album updated of all the category and just the album thumbsnail that link to the album root ?


thanks :)
Logged

vuud

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1803
  • [cpmfetch.fistfullofcode.com]
    • Fist Full Of Code
Re: Showing the Album thumb
« Reply #7 on: January 13, 2007, 09:56:36 pm »

Oh, many thanks for your quick answer :)


there is a pb in the syntax you just give to me, i have

and it's the  $objCpm->cpm_debugMode(true); that going wrong ;(( (i have test the install.php and no pb with the little test fonction, so, no pb with the path )

any idea :)

if you need a url , tell me :)


Sorry, that was the old (pre 1.9) syntax

Should be:

Code: [Select]
$objCpm->debugMode(true);
But if it works, don't worry too much about 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.023 seconds with 16 queries.