Cutomize LAST UPDATED ALBUMS Cutomize LAST UPDATED ALBUMS
 

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

Cutomize LAST UPDATED ALBUMS

Started by PvtPulse, February 28, 2007, 10:26:04 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

PvtPulse

I would like to customize mine like they did on this gallery, with the picture, and information under it.

EXAMPLE:
http://www.hurricanegame.us/gallery/

vuud

Quote from: PvtPulse on February 28, 2007, 10:26:04 AM
I would like to customize mine like they did on this gallery, with the picture, and information under it.

EXAMPLE:
http://www.hurricanegame.us/gallery/

You want to use "subtitles".  Look in the documentation for further instructions.


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

PvtPulse

I'm new at this, so wat am i doing wrong, this is what i have:

<?php
include "./cpmfetch/cpmfetch.php";
$objCpm = new cpm('/gallery');
cpm_viewLastAddedMedia (1, 4, [array $options = array( 'subtitle' => '%a');
$objCpm->cpm_close();
?>

PvtPulse

OK, I figured out what I was doing wrong. NOW I wanna know whats the code to get the latest "5" albums instead of the latest media

vuud

Quote from: PvtPulse on February 28, 2007, 07:53:52 PM
OK, I figured out what I was doing wrong. NOW I wanna know whats the code to get the latest "5" albums instead of the latest media

A simple thank you for showing you the documentation would suffice.

NOW I am gonna go make some lunch

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

PvtPulse

I was going to say thank you, but i was waiting until after I finished the thread. Thats why I asked what I would use instead of ViewlatestAddedMedia in order to get albums instead of the files

vuud

Quote from: PvtPulse on February 28, 2007, 08:37:07 PM
I was going to say thank you, but i was waiting until after I finished the thread. Thats why I asked what I would use instead of ViewlatestAddedMedia in order to get albums instead of the files

Its the demanding sense of entitlement that gets people.

If your using the stable version its in the docs under gallery level images.  If you are using the dev version search the releasenotes for cpm_viewLastUpdatedAlbumsFrom



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

PvtPulse

I used:
<?php
include "./cpmfetch/cpmfetch.php";
$objCpm = new cpm('/gallery');
$options = array( 'subtitle' => '%a');
$source = "";
$objCpm->cpm_viewLastUpdatedAlbumsFrom (2,4,$source,$options);
$objCpm->cpm_close();
?>


and got this error:

Fatal error: Call to undefined function: cpm_viewlastupdatedalbumsfrom() in /home/cbrown/domains/chrisbrown-online.net/public_html/testpage.php on line 6

PvtPulse

Can you please give me the full code of how to do this? I am trying everything I can think of and coming up with nothing. I don't see that code anywhere in the docs or release notes, and I've searched through every page.

vuud

Quote from: PvtPulse on February 28, 2007, 09:02:44 PM
I used:
<?php
include "./cpmfetch/cpmfetch.php";
$objCpm = new cpm('/gallery');
$options = array( 'subtitle' => '%a');
$source = "";
$objCpm->cpm_viewLastUpdatedAlbumsFrom (2,4,$source,$options);
$objCpm->cpm_close();
?>


and got this error:

Fatal error: Call to undefined function: cpm_viewlastupdatedalbumsfrom() in /home/cbrown/domains/chrisbrown-online.net/public_html/testpage.php on line 6

Seems like you are mixing the stable version and the development version.  Like I mentioned before, if you are on the stable version, then you need to check the documentation. 

Since its this confused at this point, upgrade cpmfetch to dev release 1.9.11.  Follow the installation instructions in the releasenotes.

This line will need to change:

$objCpm = new cpm('/gallery');

the '/gallery' will be different depending on your installation.

$objCpm->cpm_viewLastUpdatedAlbumsFrom (2,4,$source,$options);

This line, they syntax is wrong:  Should be

$objCpm->cpm_viewLastUpdatedAlbumsFrom ($source,2,4,$options);

Quote* Mmmm...  cpm_viewLastUpdatedAlbumsFrom($source, $rows, $columns, $options) - which may or may not work, depending... test before use.

Heh, does not sound like I was to sure of it there eh?  Well the $source="" I definately tested...
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