CpmFetch - Embedding in templates (SMF, Wordpress, PHPBB, etc, ...) - Page 6 CpmFetch - Embedding in templates (SMF, Wordpress, PHPBB, etc, ...) - Page 6
 

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

Main Menu

CpmFetch - Embedding in templates (SMF, Wordpress, PHPBB, etc, ...)

Started by vuud, May 07, 2005, 07:27:38 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

trvlnman

Quote from: trvlnman on May 25, 2006, 09:01:22 PM
I have been trying to get CPMFetch installed with no luck (I think)  Here is the page I get from cftest.php.

I am using:

SMF 1.1 RC2 w/ Helios Multicolor
TinyPortal 0.86
Coppermine 1.4.5
CPMFetch 1.6.2

I have a user gallery created with the ID that I used to login with using TinyPortal.

Tests:
5 You set your partial URL to /coppermine PASS
10 No dots in partial url PASS
15 coppermine.php not present PASS
20 coppermine_dao.php not present PASS
25 cpmfetch.php found PASS
30 cpmfetch_dao.php found PASS
35 Server OS = Linux situ.dh2.net 2.4.21-27.ELsmp #1 SMP Wed Dec 1 21:59:02 EST 2004 i686 INFO
40 WebServer = Apache/1.3.34 (Unix) mod_auth_passthrough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.4 PHP/4.3.11 FrontPage/5.0.2.2635 mod_ssl/2.8.25 OpenSSL/0.9.7a INFO
45 PHP Version = 4.3.11 INFO
55 DOCUMENT_ROOT: /home/tristen/public_html INFO
60 C_DOCUMENT_ROOT: Not found INFO
65 doc_root: /home/tristen/public_html/ INFO
70 SCRIPT_FILENAME: /home/tristen/public_html/cpmfetch/cftest.php INFO
75 DOCUMENT_ROOT is a good match PASS
80 Found CPG config file PASS

Trying to display some images:

Your installation seems correct so far, you should see a small grid of thumbnails from your gallery
Unknown column 'u.user_website' in 'field list'
Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /home/tristen/public_html/cpmfetch/cpmfetch_dao.php on line 710


I can access the gallery fine through the portal on the site.  I only have a few pics in some user galleries at this point.  I do not have any graphics in the main gallery.  I took a look and I am usig the standard naming conventions.

Any ideas??

Thanks in advance for your help.

Sorry, I didnt see the previous posts...sorry to waste your time...i found and got the problem fixed...this might be something that needs to go into the release notes.

noworyz

Has anyone tried integrating this mod into the coppermine theme?

I woulld like to have a php coded section in my actual coppermine theme to display a picture.  I have it working in phpbb and on my website, but I can't quite figure out how to get it to work in the coppermine theme.

Any suggestions?

nickfzx

I can't get cpmfetch to pass the test.

So here are the results from the cftest.php page.

5   You set your partial URL to /copper   PASS
10   No dots in partial url   PASS
15   coppermine.php not present   PASS
20   coppermine_dao.php not present   PASS
25   cpmfetch.php found   PASS
30   cpmfetch_dao.php found   PASS
35   Server OS = Linux vhost1-2.iomart.com 2.4.21-40.ELsmp #1 SMP Fri Mar 24 12:43:41 EST 2006 i686   INFO
40   WebServer = Apache/2.0.46 (CentOS)   INFO
45   PHP Version = 4.3.2   INFO
55   DOCUMENT_ROOT: /etc/httpd/htdocs   INFO
60   C_DOCUMENT_ROOT: Not found   INFO
65   doc_root: Not found (IIS Servers only)   INFO
70   SCRIPT_FILENAME: /vhost/vhost1/t/h/e/mysite.co.uk/www/cpmfetch/cftest.php   INFO
75   DOCUMENT_ROOT is not a good match   BAD
80   CPG Config file not found: /etc/httpd/htdocs/copper/include/config.inc.php


So I think the issue is that that the variable DOCUMENT_ROOT is returning /etc/httpd/htdocs instead of something like mysite.co.uk/www/

This is probably an issue with my provider Easyspace returning the wrong value. But I think others have this problem as this must be a common occurrence.

Any help would be great.

Cheers

Nick

n3n

noworyz,

Ive also been trying this, but without a good result, keep getting errors in theme.php.

When i ifind out ill let you know, could you do the same ?

Tnx !

guyadam

Hi I appreciate all your  hard (free) work with cpmFetch, it's a great product.  ;D

I need some help and I would also like to offer some help, if I may?

First I would like to offer some help to users of Joomla. I noticed a couple of people on the board where haveing trouble executing php in the content of Joomla (actuall posts where a while ago). Which is because Joomla won't let you do this, alas there is a couple differn't solutions for this. kl_php for the execution of php in content and mod_kl_evalphp for the execution of php in a module. Here is a link to the mod_kl_evalphp thread where you can get the zip file. http://forum.mamboserver.com/showthread.php?t=39045 For the kl_php you are going to have to search for this, it's out there somewhere, all I found was a bunch of broken links. I don't need the kl_php for now, so I did not search that hard. There are also a couple of bots out there that might work {mosphp} and {mosaddphp} again you are going to have to search for these. I can't do all the work for you, it just would not be fair on you, make you feel like you earned it. ;) Anyhow, hope this helps you Joomla folks.

Now to my problem. I am using CpmFetch in a module. It actually half works. It is showing up my thumbnails from my gallery in my module o.k but with that I am also getting an error message down the left column of my template.

QuoteWarning: mysql_select_db(): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) in /home/content/g/u/y/guyrobo/html/modules/mod_smf_login.php on line 55

As you can see I am using SMF.

Here is my set up

Joomla 1.0.8 satable ver
Coppermine 1.4.5
SMF 1.1RC2
CpmFetch

Everything is briged and I am using Joomla SMF login mod

Any help would be appreciated Thanx in advance.

Guy

grv

Hello..... I am having a similar problem to the one posted earlier. I have used bridging on Coppermine Photo Gallery and phpBB, and tried using CPMFetch for displaying random images. The test script from CPMFetch works perfectly.

My problem is that the code for displaying the random image is not working. I have copied the exact script snippet as was provided in the documentations, but all it shows is a blank page, no errors, nothing! i am afraid I might have missed some tweaking and setting up along the way.

If anyone has any solutions/hints, I would be more than happy to get a (quick) reply.


Thank you.
I'm Not a genius, why should I suffer?            - Homer Simpson

jasa

Recently I installed CFGfetch and everything works fine, but it shows only pictures from user galleries and if I choose public categories it shows no pictures!? why?

My CPGfetch code on the main page is:

Code:

<?php
include "scripts/cpgfetch/cpmfetch.php";
$objCpm = new cpm('/galerija');
$options = array( 'imagestyle' => 'slika');
$source "";

$objCpm->cpm_viewLastAddedMediaFrom(31,$source,$options); 
$objCpm->cpm_viewRandomMediaFrom(1,1,$source,$options);

$objCpm->cpm_close(); ?>



Thanks for help...

Greetz
Jasa

PS. Does anybody know how to make CPGfetch to show random pictures from last added album?

tandiono

Hello,

How can i display photo from "cpg1.4.8" to "smf 1.0.7" ,

which something look like this site : http://www.snork13.net/forum/


anyone please advice me. Thanks


Angelotus

I have installed the script at:

http://www.klifix.nl/cpmfetch

My Coppermine gallery script is at:

http://www.klifix.nl/gallery

I have included this code into http://frontpage.klifix.nl/:

<?php
include "http://www.klifix.nl/cpmfetch/cpmfetch.php";
$objCpm = new cpm('/photos');
$objCpm->cpm_viewRandomMedia (1,4);
$objCpm->cpm_viewLastAddedMedia (2,4);
$objCpm->cpm_close();
?>



The result must be shown at http://frontpage.klifix.nl/, but instead of that this is the result:

Fatal error: Class 'cpm' not found in /home/klifixnl/frontpage.klifix.nl/HTML/wp-content/themes/Dark site/rightbar.php on line 39.

What seems to be the problem?
If I only had more time...

Nibbler


Angelotus

If I only had more time...

Joachim Müller

Probably /home/klifixnl/frontpage.klifix.nl/HTML/cpmfetch/cpmfetch.php
Read up "path" vs. "URL" (google for it) - this is basic webmaster stuff.

Angelotus

Quote from: GauGau on July 12, 2006, 08:28:58 AM
Probably /home/klifixnl/frontpage.klifix.nl/HTML/cpmfetch/cpmfetch.php
Read up "path" vs. "URL" (google for it) - this is basic webmaster stuff.

Thanks! But when I use the correct path to cpmfetch.php I receive continues errors.
If I only had more time...

tandiono

Im having problem after with cpmfetch bridge with smf 1.1 RC2,

I replace the cpmfetch_dao.php with Goosemoose code(http://www.simplemachines.org/community/index.php?topic=73366.0)

and the test result is :
http://www.friendsterforum.com/gallery/cpmfetch/cftest.php


Anyone please kindly help me. Thanks

vuud

Quote from: tandiono on August 13, 2006, 10:29:11 PM
Im having problem after with cpmfetch bridge with smf 1.1 RC2,

I replace the cpmfetch_dao.php with Goosemoose code(http://www.simplemachines.org/community/index.php?topic=73366.0)

and the test result is :
http://www.friendsterforum.com/gallery/cpmfetch/cftest.php


Anyone please kindly help me. Thanks

Try the new cpmfetch 1.6.3 code...  It handles the bridging better. 

I have no idea on 3rd party code.
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