How to display Text - Categories and albums How to display Text - Categories and 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

How to display Text - Categories and albums

Started by freeedy, August 14, 2007, 07:20:48 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

freeedy

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.

capecodgal

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(); 
?>

capecodgal

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(); 
?>


freeedy

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??

capecodgal

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

freeedy

Really thank you for your help, I think I am close to get what I was looking for.

capecodgal