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 2 3 4 5 [6]   Go Down

Author Topic: CpmFetch - Embedding in templates (SMF, Wordpress, PHPBB, etc, ...)  (Read 139195 times)

0 Members and 1 Guest are viewing this topic.

trvlnman

  • Coppermine newbie
  • Offline Offline
  • Posts: 9
Re: CpmFetch - Embedding in templates (SMF, Wordpress, PHPBB, etc, ...)
« Reply #100 on: May 27, 2006, 08:27:15 am »

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.

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

noworyz

  • Contributor
  • Coppermine regular visitor
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 76
    • eGriz.com
Re: CpmFetch - Embedding in templates (SMF, Wordpress, PHPBB, etc, ...)
« Reply #101 on: May 30, 2006, 01:02:55 am »

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?
Logged

nickfzx

  • Contributor
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 285
Re: CpmFetch - Embedding in templates (SMF, Wordpress, PHPBB, etc, ...)
« Reply #102 on: May 30, 2006, 03:23:22 am »

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
Logged

n3n

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 173
Re: CpmFetch - Embedding in templates (SMF, Wordpress, PHPBB, etc, ...)
« Reply #103 on: May 31, 2006, 12:34:29 am »

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 !
Logged

guyadam

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
Re: CpmFetch - Embedding in templates (SMF, Wordpress, PHPBB, etc, ...)
« Reply #104 on: June 03, 2006, 07:00:53 pm »

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.

Quote
Warning: 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
Logged

grv

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 3
Setup error?
« Reply #105 on: June 15, 2006, 11:19:18 am »

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.
Logged
I'm Not a genius, why should I suffer?            - Homer Simpson

jasa

  • Coppermine newbie
  • Offline Offline
  • Posts: 10
Re: CpmFetch - Embedding in templates (SMF, Wordpress, PHPBB, etc, ...)
« Reply #106 on: June 25, 2006, 07:09:53 pm »

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:

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

tandiono

  • Coppermine novice
  • *
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 44
  • www.Tandiono.com
    • www.Tandiono.com
Re: CpmFetch - Embedding in templates (SMF, Wordpress, PHPBB, etc, ...)
« Reply #107 on: July 09, 2006, 03:36:34 pm »

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
Logged
Tandiono.com | Mikess.com | WebsiteForum.net | AudioForum.net | ToysForum.net | GadgetForum.net | ClickBankForum.net | ForumBoards.net | VerySoon.net | ClickBanks.net

tandiono

  • Coppermine novice
  • *
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 44
  • www.Tandiono.com
    • www.Tandiono.com
Re: CpmFetch - Embedding in templates (SMF, Wordpress, PHPBB, etc, ...)
« Reply #108 on: July 09, 2006, 10:34:03 pm »

when i do a test, i got 1 error :

http://www.friendsterforum.com/gallery/cpmfetch/cftest.php

is this allrite?
Logged
Tandiono.com | Mikess.com | WebsiteForum.net | AudioForum.net | ToysForum.net | GadgetForum.net | ClickBankForum.net | ForumBoards.net | VerySoon.net | ClickBanks.net

Angelotus

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
    • Klifix Media & Entertainment
Re: CpmFetch - Embedding in templates (SMF, Wordpress, PHPBB, etc, ...)
« Reply #109 on: July 11, 2006, 06:15:32 pm »

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/:

Code: [Select]
<?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?
Logged
If I only had more time...

Nibbler

  • Guest
Re: CpmFetch - Embedding in templates (SMF, Wordpress, PHPBB, etc, ...)
« Reply #110 on: July 11, 2006, 09:10:24 pm »

Use a path for your include, not an url.
Logged

Angelotus

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
    • Klifix Media & Entertainment
Re: CpmFetch - Embedding in templates (SMF, Wordpress, PHPBB, etc, ...)
« Reply #111 on: July 12, 2006, 08:15:25 am »

What should be the path in this case?
Logged
If I only had more time...

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: CpmFetch - Embedding in templates (SMF, Wordpress, PHPBB, etc, ...)
« Reply #112 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.
Logged

Angelotus

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
    • Klifix Media & Entertainment
Re: CpmFetch - Embedding in templates (SMF, Wordpress, PHPBB, etc, ...)
« Reply #113 on: July 12, 2006, 09:36:54 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.
Logged
If I only had more time...

tandiono

  • Coppermine novice
  • *
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 44
  • www.Tandiono.com
    • www.Tandiono.com
Re: CpmFetch - Embedding in templates (SMF, Wordpress, PHPBB, etc, ...)
« Reply #114 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
Logged
Tandiono.com | Mikess.com | WebsiteForum.net | AudioForum.net | ToysForum.net | GadgetForum.net | ClickBankForum.net | ForumBoards.net | VerySoon.net | ClickBanks.net

vuud

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1803
  • [cpmfetch.fistfullofcode.com]
    • Fist Full Of Code
Re: CpmFetch - Embedding in templates (SMF, Wordpress, PHPBB, etc, ...)
« Reply #115 on: August 14, 2006, 01:46:25 am »

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.
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
Pages: 1 2 3 4 5 [6]   Go Up
 

Page created in 0.028 seconds with 20 queries.