This is great, but I either messed up when I told you (I am too tired to go back and check) or you missed one important part.
If I strip out all the annoying html code in there we have this
include "./cpmfetch1/cpmfetch.php";
$objCpm1 = new cpm('/gallery2');
$objCpm1->cpm_viewRandomMediaFrom(1,1,"cat=2");
$objCpm1->cpm_viewRandomMediaFrom(1,1,"cat=2");
$objCpm1->cpm_viewRandomMediaFrom(1,1,"cat=2");
$objCpm1->cpm_viewRandomMediaFrom(1,1,"cat=2");
$objCpm1->cpm_close();
I have this sense of deja vu, so forgive me if I went over this before
If you want to display images from two different galleries on the same page, you could do it like this:
include "./cpmfetch1/cpmfetch.php";
$objCpm1 = new cpm('/gallery1');
$objCpm2 = new cpm('/gallery2');
$objCpm1->cpm_viewRandomMediaFrom(1,1,"cat=2");
$objCpm1->cpm_viewRandomMediaFrom(1,1,"cat=2");
$objCpm2->cpm_viewRandomMediaFrom(1,1,"cat=2");
$objCpm2->cpm_viewRandomMediaFrom(1,1,"cat=2");
$objCpm1->cpm_close();
$objCpm2->cpm_close();
Notice I created an $objCpm1 and $objCpm2?
You should only need a include "./cpmfetch/cpmfetch.php";
Both can work out of that.
Dear
ive done the following
1) Paste the following code
include "./cpmfetch1/cpmfetch.php";
$objCpm1 = new cpm('/gallery1');
$objCpm2 = new cpm('/gallery2');
$objCpm1->cpm_viewRandomMediaFrom(1,1,"cat=2");
$objCpm1->cpm_viewRandomMediaFrom(1,1,"cat=2");
$objCpm2->cpm_viewRandomMediaFrom(1,1,"cat=2");
$objCpm2->cpm_viewRandomMediaFrom(1,1,"cat=2");
$objCpm1->cpm_close();
$objCpm2->cpm_close();
But it only shows gallery 1 images
2) Even ive tried this :-
In cpmfetch.php ive cleared path to galery & use it as below & upload in ./cpmfetch1/
// //////////////////// NO USER SERVICEABLE PARTS BEYOND THIS POINT ////////////////////////
var $VERSION = "1.6.2";
var $cpm = "1.4.2";
var $urltocpm = ""; //from a web client point of view without domain name /photos
var $filepathtocpm = ""; //server path to cpm directory /home/vuud/cpm
But no success
Now take this i want to have fresh install of Cpmfetch MOD for 2 galleries
Tell me few answers :-
1) In root directory ive to make 2 cpmfetch folders or 1 (ex. site.com/cpmfetch & site.com/cpmfetch1)
2) In cpmfetch.php ive to edit or gallery path or not If yes then > ( if copy 2 cpmfetch folders as describe in No.1 ive to edit both cpmfetch.php the real path to gallery)
Test it on your site also if possible please send me link i want to have a look
Please Suggest !!!!!