Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: 1 ... 24 25 26 27 [28] 29 30 31 32 ... 54   Go Down

Author Topic: CpmFetch 1.4 On... Displaying data and images from CPG on your website  (Read 965953 times)

0 Members and 4 Guests are viewing this topic.

vuud

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1803
  • [cpmfetch.fistfullofcode.com]
    • Fist Full Of Code
Re: CpmFetch 1.4 On... Displaying data and images from CPG on your website
« Reply #540 on: December 29, 2005, 05:56:42 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.


Logged
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

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1803
  • [cpmfetch.fistfullofcode.com]
    • Fist Full Of Code
Re: CpmFetch 1.4 On... Displaying data and images from CPG on your website
« Reply #541 on: December 29, 2005, 06:00:14 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...
Logged
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

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Female
  • Posts: 40
  • Cool Buddy
Re: CpmFetch 1.4 On... Displaying data and images from CPG on your website
« Reply #542 on: December 29, 2005, 06:12:29 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

Code: [Select]
<?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

« Last Edit: December 29, 2005, 07:26:16 pm by CPG Guru »
Logged

n3n

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 173
Re: CpmFetch 1.4 On... Displaying data and images from CPG on your website
« Reply #543 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.
Logged

vuud

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1803
  • [cpmfetch.fistfullofcode.com]
    • Fist Full Of Code
Re: CpmFetch 1.4 On... Displaying data and images from CPG on your website
« Reply #544 on: December 29, 2005, 06:24:10 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.

Logged
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

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1803
  • [cpmfetch.fistfullofcode.com]
    • Fist Full Of Code
Re: CpmFetch 1.4 On... Displaying data and images from CPG on your website
« Reply #545 on: December 29, 2005, 06:34:21 pm »


Dear ive used

Code: [Select]
<?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
Logged
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

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Female
  • Posts: 40
  • Cool Buddy
Re: CpmFetch 1.4 On... Displaying data and images from CPG on your website
« Reply #546 on: December 29, 2005, 06:38:04 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
Logged

vuud

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1803
  • [cpmfetch.fistfullofcode.com]
    • Fist Full Of Code
Re: CpmFetch 1.4 On... Displaying data and images from CPG on your website
« Reply #547 on: December 29, 2005, 06:49:02 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
Logged
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

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1803
  • [cpmfetch.fistfullofcode.com]
    • Fist Full Of Code
Re: CpmFetch 1.4 On... Displaying data and images from CPG on your website
« Reply #548 on: December 29, 2005, 06:51:40 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?

Logged
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

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Female
  • Posts: 40
  • Cool Buddy
Re: CpmFetch 1.4 On... Displaying data and images from CPG on your website
« Reply #549 on: December 29, 2005, 06:54:25 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   


 
Logged

vuud

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1803
  • [cpmfetch.fistfullofcode.com]
    • Fist Full Of Code
Re: CpmFetch 1.4 On... Displaying data and images from CPG on your website
« Reply #550 on: December 29, 2005, 08:25:51 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.



Logged
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

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Female
  • Posts: 40
  • Cool Buddy
Re: CpmFetch 1.4 On... Displaying data and images from CPG on your website
« Reply #551 on: December 29, 2005, 08:38:30 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 ??
Logged

vuud

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1803
  • [cpmfetch.fistfullofcode.com]
    • Fist Full Of Code
Re: CpmFetch 1.4 On... Displaying data and images from CPG on your website
« Reply #552 on: December 29, 2005, 08:43:35 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




Logged
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

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Female
  • Posts: 40
  • Cool Buddy
Re: CpmFetch 1.4 On... Displaying data and images from CPG on your website
« Reply #553 on: December 29, 2005, 08:47:09 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

Logged

vuud

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1803
  • [cpmfetch.fistfullofcode.com]
    • Fist Full Of Code
Re: CpmFetch 1.4 On... Displaying data and images from CPG on your website
« Reply #554 on: December 29, 2005, 08:50:24 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.
Logged
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

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 50
Re: CpmFetch 1.4 On... Displaying data and images from CPG on your website
« Reply #555 on: December 30, 2005, 06:08:38 am »

How do you show latest album?
Logged

vuud

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1803
  • [cpmfetch.fistfullofcode.com]
    • Fist Full Of Code
Re: CpmFetch 1.4 On... Displaying data and images from CPG on your website
« Reply #556 on: December 30, 2005, 06:47:02 am »

How do you show latest album?

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

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 50
Re: CpmFetch 1.4 On... Displaying data and images from CPG on your website
« Reply #557 on: December 30, 2005, 08:47:29 am »

Latest added album
Logged

vuud

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1803
  • [cpmfetch.fistfullofcode.com]
    • Fist Full Of Code
Re: CpmFetch 1.4 On... Displaying data and images from CPG on your website
« Reply #558 on: December 30, 2005, 08:59:47 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


Logged
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

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 50
Re: CpmFetch 1.4 On... Displaying data and images from CPG on your website
« Reply #559 on: December 31, 2005, 02:06:22 am »

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
Logged
Pages: 1 ... 24 25 26 27 [28] 29 30 31 32 ... 54   Go Up
 

Page created in 0.029 seconds with 20 queries.