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: Show only album thumbs from category  (Read 8397 times)

0 Members and 1 Guest are viewing this topic.

vrba

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Show only album thumbs from category
« on: September 02, 2008, 01:12:50 am »

I ckecked the forum - but I dont find answer:
How to show (with cpmfetch) only (random) albums thumbs on first page of portal from specific category?

Please, help me.

p.s.: I have some albums in category nr. 7 and the latest coppermine gallery

thanks advance... :-*
Logged

vrba

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Re: Show only album thumbs from category
« Reply #1 on: September 02, 2008, 01:18:37 am »

For random media for specific category I found solution for my portal (see bellow) but I dont find answer for abowe question.. :'(

<?php
require_once "./gallery/cpmfetch/cpmfetch.php";
$objCpm = new cpm("./gallery/cpmfetch/cpmfetch_config.php");
$objCpm->cpm_setfilter($filter = ".jpg");
$options = array('windowtarget' => '_top',"imagewidth"=>"130","subtitle" => "<center></center>","tablestyle" => "cpmfetch");
$objCpm->cpm_viewRandomMediaFrom ("cat=2", 1, 6, $options);
$objCpm->cpm_close();
?>
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Show only album thumbs from category
« Reply #2 on: September 02, 2008, 06:48:08 am »

http://forum.coppermine-gallery.net/index.php/topic,35221.msg197845.html#msg197845
From that posting:
Things to include in a cry for help:

    * The Exact error message.  "I get an error about something..." - Copy and paste
    * What version of coppermine you are using
    * What version of CoppermineFetch you are using
    * A link to your website and gallery
    * A link to an example of the problem (if possible)
    * How computer savvy you are (newbie, intermediate, damn good)
    * What kind of web server you are running on (if known)
    * Include the code you are using.
Logged

vrba

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Re: Show only album thumbs from category
« Reply #3 on: September 02, 2008, 10:33:38 am »

@Joachim: I thing you dont uderstand me!
There is no error message, i am using the latest coppermine gallery as I wrote in my first message. And latest cpmfetch (2.0.0.).
I only want that someone write some code which I need because I am lost. Thats all.
Anyway thanks for your help...
Logged

fangweile

  • Coppermine frequent poster
  • ***
  • Country: 00
  • Offline Offline
  • Posts: 103
  • Saranghaeyo ^_^
    • All Koreans - Home of Korean Actors and Actresses
Re: Show only album thumbs from category
« Reply #4 on: September 02, 2008, 12:47:08 pm »

After I read your message, I still can't understand what you are trying to do. Can you have a further explanation on what you are trying to achieve. ::)
Logged
[My Coppermine Galleries]
All Koreans, Lim Eun-kyeong's IFC
Saranghae 김태희

vrba

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Re: Show only album thumbs from category
« Reply #5 on: September 02, 2008, 01:43:00 pm »

I have a portal at: http://www.sloscena.net/portal/
Nove I have some random images form gallery (in red square)

http://www.sloscena.net/temp/screen_portal.jpg [Edit GauGau] Replaced hotlinked images with attachment screen_portal.jpg [/Edit]

I also have a gallery.
I have some albums in specific category (now I have only two for testing).

See at: http://www.sloscena.net/portal/galerija/index.php?cat=4

There is two thumb for each album:
http://www.sloscena.net/temp/screen_galerija.jpg [Edit GauGau] Replaced hotlinked images with attachment screen_galerija.jpg [/Edit]

I want to have in portal only random thumbs of albums from this category everytime you come to the portal.

For example:
http://www.sloscena.net/temp/screen_portal_case1.jpg [Edit GauGau] Replaced hotlinked images with attachment screen_portal_case1.jpg [/Edit]

And next time:
http://www.sloscena.net/temp/screen_portal_case2.jpg [Edit GauGau] Replaced hotlinked images with attachment screen_portal_case2.jpg [/Edit]


And so on...
Sorry, my english is very poor i hope you understand me...
Thanks for your time! :D




« Last Edit: September 03, 2008, 09:26:51 am by Joachim Müller »
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Show only album thumbs from category
« Reply #6 on: September 03, 2008, 09:27:24 am »

Don't hotlink images in the future, but attach them. I edited your posting accordingly.
Logged

vrba

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Re: Show only album thumbs from category
« Reply #7 on: September 03, 2008, 09:52:33 am »

Don't hotlink images in the future, but attach them. I edited your posting accordingly.

ok, thanks,..
Logged

fangweile

  • Coppermine frequent poster
  • ***
  • Country: 00
  • Offline Offline
  • Posts: 103
  • Saranghaeyo ^_^
    • All Koreans - Home of Korean Actors and Actresses
Re: Show only album thumbs from category
« Reply #8 on: September 03, 2008, 01:27:53 pm »

If you want to display the albums thumbnail in this category -->http://www.sloscena.net/portal/galerija/index.php?cat=4

the code must be similar to this

Code: [Select]
<?php
require_once "./gallery/cpmfetch/cpmfetch.php";
$objCpm = new cpm("./gallery/cpmfetch/cpmfetch_config.php");
$objCpm->cpm_setfilter($filter ".jpg");
$options = array('windowtarget' => '_top',"imagewidth"=>"130","subtitle" => "<center></center>","tablestyle" => "cpmfetch");
$objCpm->cpm_viewRandomMediaFrom ("cat=4"16$options);
$objCpm->cpm_close();
?>


If you want to display pictures in an album, use this code

Code: [Select]
<?php
require_once "./gallery/cpmfetch/cpmfetch.php";
$objCpm = new cpm("./gallery/cpmfetch/cpmfetch_config.php");
$objCpm->cpm_setfilter($filter ".jpg");
$options = array('windowtarget' => '_top',"imagewidth"=>"130","subtitle" => "<center></center>","tablestyle" => "cpmfetch");
$objCpm->cpm_viewRandomMediaFrom ("album=4"16$options);
$objCpm->cpm_close();
?>


Here are some useful links for your additional needs.
http://forum.coppermine-gallery.net/index.php/topic,35450.0.html
http://cpmfetch.fistfullofcode.com/docs/stable_basic/index.html
Logged
[My Coppermine Galleries]
All Koreans, Lim Eun-kyeong's IFC
Saranghae 김태희
Pages: [1]   Go Up
 

Page created in 0.039 seconds with 19 queries.