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

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 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 5 Guests are viewing this topic.

willstein

Hmm. tried it but it looks the same. Can't tell anything is different.

.CSS for Random Media

.lastaddedmedia {
font-family: Arial, Helvetica, sans-serif;
font-size: 5px;
font-style: italic;
color: #CCCCCC;
vertical-align: top;
}


P.S. I'm not entirely sure if it is reading this CSS.

vuud

Quote from: lavashark.com on October 06, 2005, 06:39:27 PM
Hmm. tried it but it looks the same. Can't tell anything is different.

.CSS for Random Media

.lastaddedmedia {
font-family: Arial, Helvetica, sans-serif;
font-size: 5px;
font-style: italic;
color: #CCCCCC;
vertical-align: top;
}


P.S. I'm not entirely sure if it is reading this CSS.

Can you post the html generated from when you had the cellattributes added in?


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

willstein

<table width="100" border="0" cellspacing="0" cellpadding="0">

                                  <tr>
                                    <td valign="top"><div align="center">
                                        <table  >
<tr>
<td valign="'top" ><a href="/gallery/displayimage.php?pos=-23"  ><img  src="/gallery//albums/userpics/10001/thumb_DSC03265.jpg" alt="DSC03265.jpg" title="DSC03265.jpg"  /></a><br /><br />19 views<br></td><td valign="'top" ><a href="/gallery/displayimage.php?pos=-307"  ><img  src="/gallery//albums/userpics/10001/thumb_RSCN1855.JPG" alt="RSCN1855.JPG" title="RSCN1855.JPG"  /></a><br /><br />22 views<br>True Mother with True Grandson</td>
</tr>

</table>


                                    </div></td>

                                  </tr>
                                </table>

vuud

Quote from: lavashark.com on October 06, 2005, 07:17:32 PM
<table width="100" border="0" cellspacing="0" cellpadding="0">

                                  <tr>
                                    <td valign="top"><div align="center">
                                        <table  >
<tr>
<td valign="'top" ><a href="/gallery/displayimage.php?pos=-23"  ><img  src="/gallery//albums/userpics/10001/thumb_DSC03265.jpg" alt="DSC03265.jpg" title="DSC03265.jpg"  /></a><br /><br />19 views<br></td><td valign="'top" ><a href="/gallery/displayimage.php?pos=-307"  ><img  src="/gallery//albums/userpics/10001/thumb_RSCN1855.JPG" alt="RSCN1855.JPG" title="RSCN1855.JPG"  /></a><br /><br />22 views<br>True Mother with True Grandson</td>
</tr>

</table>


                                    </div></td>

                                  </tr>
                                </table>




One of us has some bad code

<td valign="'top" >

Should be

<td valign="top" >

Do you have an extra something in the cellattributes array?  I could have typed it wrong, so please don't go by how I did it.

should be

cellattributes => array ("valign" => "top");


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

willstein

Quote from: vuud on October 06, 2005, 07:27:57 PM
One of us has some bad code

<td valign="'top" >

Should be

<td valign="top" >



I'll pretend I know what that means...





After trying:
cellattributes => array ("valign" => "top");


and my whole site crashing, i was like 'ahh hell'.

but then...
cellattributes => array ("valign" => "top"));
... amazing.

you. are. amazing.

vuud

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

toontastic

This seems to be the only place I can post, guess people can't post on the sub board ? Anyway I've just set this up on my site and everything has passed but I'm not getting the grid of images. I've checked the prefixes in Coppermine and they match what are in cpmfetch. Any ideas why this isn't work ? The ssi.php one works (sort of get a few errors) and I assume this must go sort of down the same route so I'm not sure why it won't work. The gallery is at www.newcastle-online.com/gallery and fetch is placed at the root has suggested www.newcastle-online.com/cpmfetch you can see I get no images at www.newcastle-online.com/cpmfetch/cftest.php

All help will be gratefully recieved. I did do a search for this query but couldn't find anything.

Thanks,
Phil

vuud

Are you bridged with anything?  Phpbb? Smf?  Anything?

What version of Coppermine Photo Gallery?




Quote from: toontastic on October 08, 2005, 12:54:14 PM
This seems to be the only place I can post, guess people can't post on the sub board ? Anyway I've just set this up on my site and everything has passed but I'm not getting the grid of images. I've checked the prefixes in Coppermine and they match what are in cpmfetch. Any ideas why this isn't work ? The ssi.php one works (sort of get a few errors) and I assume this must go sort of down the same route so I'm not sure why it won't work. The gallery is at www.newcastle-online.com/gallery and fetch is placed at the root has suggested www.newcastle-online.com/cpmfetch you can see I get no images at www.newcastle-online.com/cpmfetch/cftest.php

All help will be gratefully recieved. I did do a search for this query but couldn't find anything.

Thanks,
Phil
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

ohfishing

Hello, Im no good at this stuff ..this thread is WAY  over my head, I have been reading for hours and I now have to ask.. Im stuck on step 2 installation  :-[  You set your partial URL to stl-web/bulletin/phpBB5/cpg135/ 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 = FreeBSD st06.startlogic.com 4.9-RELEASE-p11 FreeBSD 4.9-RELEASE-p11 #0: Sat i386 INFO
40 WebServer = Apache/1.3.31 (Unix) mod_log_bytes/0.3 FrontPage/5.0.2.2635 PHP/4.3.10 mod_ssl/2.8.19 OpenSSL/0.9.7c INFO
45 PHP Version = 4.3.10 INFO
55 DOCUMENT_ROOT: /home/ohfishin/public_html INFO
60 C_DOCUMENT_ROOT: Not found INFO
65 doc_root: Not found (IIS Servers only) INFO
70 SCRIPT_FILENAME: /home/ohfishin/.panel/web/bulletin/phpBB5/cpmfetch/cftest.php INFO
75 DOCUMENT_ROOT is not a good match BAD
80 CPG Config file not found: /home/ohfishin/public_htmlstl-web/bulletin/phpBB5/cpg135//include/config.inc.php FAIL
I have a 75 and an 80 and I dont know why. Could one of you veterans please fix me up?  After reading 17 pages of this thread I have a feeling  this may not be my last question...but its a start. thank you
OHfishing

toontastic

I am yes, I'm bridged with SMF will it not work with this bridge ? I think we're using version 1.3.3 of the gallery. Looks like I need to perform an upgrade as well once I've done this :)

Cheers,
Phil

vuud

Quote from: toontastic on October 09, 2005, 11:29:12 AM
I am yes, I'm bridged with SMF will it not work with this bridge ? I think we're using version 1.3.3 of the gallery. Looks like I need to perform an upgrade as well once I've done this :)

Cheers,
Phil


See the other thread about using cpmfetch with other boards and such

http://forum.coppermine-gallery.net/index.php?topic=19528.20

Its a known problem with a few solutions depending on how many users you have.   Post over there if none of the existing threads help you.


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

ohfishing

ARRGGGG!!  this stuff is incredible ! I cant find the path to congif.init.php
OHfishing

vuud

Quote from: ohfishing on October 09, 2005, 09:31:44 PM
ARRGGGG!!  this stuff is incredible ! I cant find the path to congif.init.php

There is no congif.init.php

its config.

More information would help... like link to cftest page, what versions of everything etc...  That would be fantastic

Are you sub domained?  anything like that?  What are you trying. 

The ARRGGGGG says alot, but nothing useful
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

ohfishing

Thank you ! OK ... My test page status has changed since I typed the prior post. My document root is now OK  However I still have error 80. here is my test page http://ohfishing.com/cpmfetch/cftest.php  my version is cpg135 , my cpmfetch is version 1.6.2 , I dont know what you mean by subdomain? 
OHfishing

ohfishing

ALSO ... I am bridged to PHP as you asked in another thread..... what kind of problem?
OHfishing

ohfishing

Well I did an experiment , I made an empty folder, I put a COPY of the config in there and ran the test...it PASSED . However the thumbnails dont show up. I dont suppose it will work this way being that the cpg folder is at another path. I just wanted to try to find the config in an easy place. Moving the folders is not an option (I tried) as I have to many things depending on those paths like wordpress,phpbb,albums,galleys etc. I know this experiment probably seems pretty lame to you guys... but I feel like a rocket scientist ...only if the thumbs showed up :-(
OHfishing

vuud

Quote from: ohfishing on October 11, 2005, 04:17:38 AM
Well I did an experiment , I made an empty folder, I put a COPY of the config in there and ran the test...it PASSED . However the thumbnails dont show up. I dont suppose it will work this way being that the cpg folder is at another path. I just wanted to try to find the config in an easy place. Moving the folders is not an option (I tried) as I have to many things depending on those paths like wordpress,phpbb,albums,galleys etc. I know this experiment probably seems pretty lame to you guys... but I feel like a rocket scientist ...only if the thumbs showed up :-(

The problem with the bridged stuff has been talked about over and over again in the parallel thread on embedding and stuff I think.  Its that it does not use the coppermine users table - so if you only have a few PhpBB or SMF users then you can just recreate them.  Otherwise you need to be more creative.

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

pyimaung

I don't know where to post so here it goes..Sorry if it's in the wrong place..

I'm using CPG 1.3.2 (integrated with phpBB2) and CPM Fetch 1.6.2

I've uploaded everything and tested my test page and everything was ok except I couldn't see the thumbnails of the photos where it said it was supposed to be..

It said if it didn't appear, it might be because I've changed the default table prefixes...but I haven't even touched any of the prefixes.. Where do I check my prefixes and what do i change them to?

Please help.. Thank you.


Sy

pyimaung: -

I've just installed and had this problem myself.  After trawling through this thread I found the answer.  Simply go into your phpMyAdmin and then the cpg132_users table.  The into the user_id field.  Insert a new row and create a user with a user_id of 2.  Reload your cftest.php file and the images will appear.  :)

Now that's sorted on to my own problems.

I've just setup a quick test page with the following code.  It all works great but my images are coming up with blue borders due to them being links.  I've searched the forum and found one other person with this problem but didn't really understand how it was resolved.  As far as I can figure it's something to do with cascading style sheets...but I'm not really that up on them.  Think it maybe down to a:link but can't get it to work or even figure out how to turn borders off using a:link.  Any ideas or help for a css/php n00b?


<?php 
include "cpmfetch.php";
$objCpm = new cpm("/members/gallery");
$objCpm->cpm_viewRandomMedia(2,3);
$objCpm->cpm_close();
?>

<html>
<head>
</head>
<body>
</body>
</html>


Thanks for any help or ideas.

Sy

vuud

Quote from: Sy on October 15, 2005, 12:36:27 AM
pyimaung: -

I've just installed and had this problem myself.  After trawling through this thread I found the answer.  Simply go into your phpMyAdmin and then the cpg132_users table.  The into the user_id field.  Insert a new row and create a user with a user_id of 2.  Reload your cftest.php file and the images will appear.  :)

Now that's sorted on to my own problems.

I've just setup a quick test page with the following code.  It all works great but my images are coming up with blue borders due to them being links.  I've searched the forum and found one other person with this problem but didn't really understand how it was resolved.  As far as I can figure it's something to do with cascading style sheets...but I'm not really that up on them.  Think it maybe down to a:link but can't get it to work or even figure out how to turn borders off using a:link.  Any ideas or help for a css/php n00b?


<?php 
include "cpmfetch.php";
$objCpm = new cpm("/members/gallery");
$objCpm->cpm_viewRandomMedia(2,3);
$objCpm->cpm_close();
?>

<html>
<head>
</head>
<body>
</body>
</html>


Thanks for any help or ideas.

Sy


The solution for the missing users is fine... just be aware some subtitle information wont work... the stuff related to usernames and such.  So your good 99% of the way with that.

As for your problem... check this page.  There are two examples of doing nifty things with images and stuff in there.  Maybe something helpful.

http://www.fistfullofcode.com/projects/copperminefetch/tips.php
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