CpmFetch 1.4 On... Displaying data and images from CPG on your website - Page 28 CpmFetch 1.4 On... Displaying data and images from CPG on your website - Page 28
 

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

CpmFetch 1.4 On... Displaying data and images from CPG on your website

Started by vuud, July 08, 2005, 06:43:10 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

vuud

Quote from: CPG Guru on December 29, 2005, 02:13:09 PM
Tell me few answers :-

1) In root directory ive to make 2 cpmfetch folders or 1 (ex. site.com/cpmfetch & site.com/cpmfetch1)

No, you should not have to.  Use a normal verson of cpmfetch

Quote
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)

In most cases no.  The "/gallery" thing

$objCpm1 = new cpm('/gallery1');
$objCpm2 = new cpm('/gallery2');

Tells it where to find stuff.  Including copies is not going to do anything.

Quote
Test it on your site also if possible please send me link i want to have a look

I don't have two galleries running on my site to try this on unfortunately.  But there is no reason why it does not work.


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

vuud

Quote from: n3n on December 29, 2005, 04:24:59 PM
Hi Vuud, im back again.
Switched webhost from IIS to Apache. (special for fetch :P)
But again I seem to have a problem with Fetch. At first it was giving me an opendir error, but
after moving the Fetch files to the root it was ok. But still im not getting any images ?
Got time to help me a bit ?

Running latest version of Joomla/Coppermine/Copperminefetch PHP5/Apache2


Cheers (again  :-[)

Are you bridged with Joomla?

I've not tested with php5 either...
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

CPG Guru

Quote from: vuud on December 29, 2005, 05:56:42 PM
No, you should not have to.  Use a normal verson of cpmfetch

In most cases no.  The "/gallery" thing

$objCpm1 = new cpm('/gallery1');
$objCpm2 = new cpm('/gallery2');

Tells it where to find stuff.  Including copies is not going to do anything.

I don't have two galleries running on my site to try this on unfortunately.  But there is no reason why it does not work.





Dear ive used

<?php include "./cpmfetch/cpmfetch.php"$objCpm1 = new cpm('/wallpaper'); $objCpm2 = new cpm('/gallery'); $objCpm1->cpm_viewRandomMediaFrom(2,2,"cat=2"); $objCpm1->cpm_viewRandomMediaFrom(2,2,"cat=2"); $objCpm2->cpm_viewRandomMediaFrom(2,2,"cat=3"); $objCpm2->cpm_viewRandomMediaFrom(2,2,"cat=3"); $objCpm1->cpm_close(); $objCpm2->cpm_close(); ?>

its only showing wallpapers (gallery1 ) not the other

Regards


n3n

Vuud:

Tnx for the reply.

Yes I am bridged with Joomla, but have also tested it without the bridge. Didnt work.

vuud

Quote from: n3n on December 29, 2005, 06:14:13 PM
Vuud:

Tnx for the reply.

Yes I am bridged with Joomla, but have also tested it without the bridge. Didnt work.

When you tested it with the bridge, was there users in the coppermine table?  The problem we have with the bridging is that users added by the bridged system do not add user entries into the coppermine table where we look.  So if you had it bridged and turned off the bridge it would still not work.

Try to create a few users in the cpg admin pages.  If you get some images after that, then thats the problem we have to work out.  Unless of course it was all high numbered joomba users that added the photos.

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

vuud

Quote from: CPG Guru on December 29, 2005, 06:12:29 PM

Dear ive used

<?php include "./cpmfetch/cpmfetch.php"$objCpm1 = new cpm('/free-desktop-wallpaper'); $objCpm2 = new cpm('/humor-photo-gallery'); $objCpm1->cpm_viewRandomMediaFrom(2,2,"cat=2"); $objCpm1->cpm_viewRandomMediaFrom(2,2,"cat=2"); $objCpm2->cpm_viewRandomMediaFrom(2,2,"cat=3"); $objCpm2->cpm_viewRandomMediaFrom(2,2,"cat=3"); $objCpm1->cpm_close(); $objCpm2->cpm_close(); ?>

PLease check my site www.funcyber.com front page, im online now for next 30 minutes, its only showing wallpapers gallery (gallery1 ) not the other , see bottom of page

my yahoo id is kaushalrahul@yahoo.com if possible come on chat


Regards



Wierd... that should work fine.  Try taking out the gallery 1 stuff just to see if gallery2 stuff starts working.

There should be no problem doing this, so lets see if we can get just the humor one working
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

CPG Guru

Quote from: vuud on December 29, 2005, 06:34:21 PM
Wierd... that should work fine.  Try taking out the gallery 1 stuff just to see if gallery2 stuff starts working.

There should be no problem doing this, so lets see if we can get just the humor one working


Ive paste this

<?php include "./cpmfetch/cpmfetch.php"; $objCpm2 = new cpm('/humor-photo-gallery'); $objCpm2->cpm_viewRandomMediaFrom(2,2,"cat=3"); $objCpm2->cpm_viewRandomMediaFrom(2,2,"cat=3"); $objCpm2->cpm_close(); ?>


humor Gallery is not shown up on bottom its empty

vuud

Quote from: CPG Guru on December 29, 2005, 06:38:04 PM
Ive paste this

<?php include "./cpmfetch/cpmfetch.php"; $objCpm2 = new cpm('/humor-photo-gallery'); $objCpm2->cpm_viewRandomMediaFrom(2,2,"cat=3"); $objCpm2->cpm_viewRandomMediaFrom(2,2,"cat=3"); $objCpm2->cpm_close(); ?>


humor Gallery is not shown up on bottom its empty

Bizarre.

Add this in before the include

error_reporting(E_ALL);
ini_set('display_errors',1);


Try adding in this call before you try to get the images back

$objCpm2->cpm_listMediaCount();

just to see if it is finding the database.

I dont expect this to fix anything, but maybe will give us and idea as to what is screwy
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

vuud

Quote from: CPG Guru on December 29, 2005, 06:38:04 PM
Ive paste this

<?php include "./cpmfetch/cpmfetch.php"; $objCpm2 = new cpm('/humor-photo-gallery'); $objCpm2->cpm_viewRandomMediaFrom(2,2,"cat=3"); $objCpm2->cpm_viewRandomMediaFrom(2,2,"cat=3"); $objCpm2->cpm_close(); ?>


humor Gallery is not shown up on bottom its empty

Is that second gallery bridged with anything?

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

CPG Guru

Quote from: vuud on December 29, 2005, 06:49:02 PM
Bizarre.

Add this in before the include

error_reporting(E_ALL);
ini_set('display_errors',1);


Try adding in this call before you try to get the images back

$objCpm2->cpm_listMediaCount();

just to see if it is finding the database.

I dont expect this to fix anything, but maybe will give us and idea as to what is screwy


this  ive paste :

<?php error_reporting(E_ALL);
ini_set('display_errors',1); include "./cpmfetch/cpmfetch.php"; $objCpm2 = new cpm('/humor-photo-gallery'); $objCpm2->cpm_viewRandomMediaFrom(2,2,"cat=3"); $objCpm2->cpm_viewRandomMediaFrom(2,2,"cat=3"); $objCpm2->cpm_listMediaCount(); $objCpm2->cpm_close(); ?>

Results : -
 


260   


 

vuud

Quote from: CPG Guru on December 29, 2005, 06:54:25 PM
this  ive paste :

<?php error_reporting(E_ALL);
ini_set('display_errors',1); include "./cpmfetch/cpmfetch.php"; $objCpm2 = new cpm('/humor-photo-gallery'); $objCpm2->cpm_viewRandomMediaFrom(2,2,"cat=3"); $objCpm2->cpm_viewRandomMediaFrom(2,2,"cat=3"); $objCpm2->cpm_listMediaCount(); $objCpm2->cpm_close(); ?>

Results : -
260   


I am going to bet that the second one is bridged with something.  But I've not heard back from you on what / if it is.  All the symptoms point to that.



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

CPG Guru

Quote from: vuud on December 29, 2005, 08:25:51 PM
I am going to bet that the second one is bridged with something.  But I've not heard back from you on what / if it is.  All the symptoms point to that.


Sorry to say it is bridged with Joomla/mambo, you didnt ask me earlier

Now what to do ??

vuud

Quote from: CPG Guru on December 29, 2005, 08:38:30 PM
Sorry to say it is bridged with Joomla/mambo, you didnt ask me earlier

Yes, I did.
http://forum.coppermine-gallery.net/index.php?topic=19564.msg118356#msg118356

Quote
Now what to do ??

How many Joomba users do you have that add photos?

If its a few, just start adding some fake users into coppermine.

If its many, wait about 1-2 weeks for the new version which will handle bridged cases better




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

CPG Guru

Quote from: vuud on December 29, 2005, 08:43:35 PM
Yes, I did.
http://forum.coppermine-gallery.net/index.php?topic=19564.msg118356#msg118356

How many Joomba users do you have that add photos?

If its a few, just start adding some fake users into coppermine.

If its many, wait about 1-2 weeks for the new version which will handle bridged cases better


Currently im only adding all pics through 2 different logins & in future it'll be open for general public to add pics


vuud

Quote from: CPG Guru on December 29, 2005, 08:47:09 PM
Currently im only adding all pics through 2 different logins & in future it'll be open for general public to add pics

Go into the coppermine admin page for that gallery and create two or three new users.  If the users you are using have low user id's this will work fine.  it will allow cpmfetch to match up against some dummy data and show images.
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

benseth


vuud

Quote from: benseth on December 30, 2005, 06:08:38 AM
How do you show latest album?

Latest added album, last album added to?  No sure what you are asking here
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


vuud

Quote from: benseth on December 30, 2005, 08:47:29 AM
Latest added album

I do not think CPG tracks the date that albums were added.  If they do, I am not sure where it was.  I suppose one could guess at the highest album number, but some of that gets wierd

like cat = 1 is really user galleries, one of them started at 10000+ for something -

so I'd be less tempted to code to that sort of guess


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

benseth

I updated my CPG and Cpmfethch comes up with this

Unknown column 'u.user_website' in 'field list'
Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /home/virtual/site12/fst/var/www/html/cpmfetch/cpmfetch_dao.php on line 710