coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 cpmFetch by vuud => Topic started by: freeedy on August 14, 2007, 07:20:48 PM

Title: How to display Text - Categories and albums
Post by: freeedy on August 14, 2007, 07:20:48 PM
Hi everyone, I hear that this mod can display the actual text of the categories and albums, I am currently using it to display the last added media. I really think its great, although I dont know anything about php I will like for help to display the categories and albums too.

And if you have any other tip, or any other arrangemente thats looks cool please let me know.
Title: Re: How to display Text - Categories and albums
Post by: capecodgal on August 14, 2007, 07:26:56 PM
I added views and albums to mine so far

example:

www.julianmcmahonfan.com

(the side column for most viewed and all that)


You want it to be like this:

<?php 
include_once "./allery/cpmfetch/cpmfetch.php";
$objCpm = new cpm('./gallery/cpmfetch/cpmfetch_config.php');
$options = array( 'windowtarget' => '_blank'); 
$options = array("subtitle" => "<center> {{cName}}:  {{aTitle}}</center>", ); 
$objCpm->cpm_viewLastAddedMedia(1,4,$options);
$objCpm->cpm_close(); 
?>
Title: Re: How to display Text - Categories and albums
Post by: capecodgal on August 14, 2007, 07:30:20 PM
Correction to the above post (can't seem to ind an edit button)


<?php 
include_once "./gallery/cpmfetch/cpmfetch.php";
$objCpm = new cpm('./gallery/cpmfetch/cpmfetch_config.php');
$options = array( 'windowtarget' => '_blank'); 
$options = array("subtitle" => "<center> {{cName}}:  {{aTitle}}</center>", ); 
$objCpm->cpm_viewLastAddedMedia(1,4,$options);
$objCpm->cpm_close(); 
?>

Title: Re: How to display Text - Categories and albums
Post by: freeedy on August 14, 2007, 09:26:41 PM
Great site dude, you just gave me a great idea for the design of my page, thank you very much.

Just one more question, in the left part of your site you have different sections, last upload, mos viewed. Well, I want to know how did you called for several bunch of photos?? Did you use several include cpmfetch codes??
Title: Re: How to display Text - Categories and albums
Post by: capecodgal on August 14, 2007, 09:43:59 PM
yes if you go check the docs there are many functions you can call like most viewed FROM (you pick the source) and Random FROM (again you decide the source) and so on- here use this list it helped me a lot:

http://cpmfetch.fistfullofcode.com/features/index.php


then go to the user guide and read up on the $options array you can do ALOT with this one mod - it is amazing but there is so much that its hard to get it all at once. Alot of it is trial and error until you get the right combo to work for what you want it to do
Title: Re: How to display Text - Categories and albums
Post by: freeedy on August 14, 2007, 10:01:42 PM
Really thank you for your help, I think I am close to get what I was looking for.
Title: Re: How to display Text - Categories and albums
Post by: capecodgal on August 15, 2007, 01:11:13 AM
your welcome  ;D