Advanced search  

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]

Pages: 1 ... 13 14 15 16 [17] 18 19 20 21 ... 54   Go Down

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

0 Members and 2 Guests are viewing this topic.

willstein

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

Code: [Select]
.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.
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 #321 on: October 06, 2005, 07:13:48 pm »

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

.CSS for Random Media

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


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

willstein

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 120
    • mansei
Re: CpmFetch 1.4 On... Displaying data and images from CPG on your website
« Reply #322 on: October 06, 2005, 07:17:32 pm »

Code: [Select]
<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>
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 #323 on: October 06, 2005, 07:27:57 pm »

Code: [Select]
<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");


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

willstein

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 120
    • mansei
Re: CpmFetch 1.4 On... Displaying data and images from CPG on your website
« Reply #324 on: October 06, 2005, 08:47:28 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:
Code: [Select]
cellattributes => array ("valign" => "top");

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

but then...
Code: [Select]
cellattributes => array ("valign" => "top"));... amazing.

you. are. amazing.
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 #325 on: October 06, 2005, 09:35:53 pm »


Good, I am happy
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

toontastic

  • Coppermine newbie
  • Offline Offline
  • Posts: 16
Re: CpmFetch 1.4 On... Displaying data and images from CPG on your website
« Reply #326 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
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 #327 on: October 09, 2005, 10:01:12 am »

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

What version of Coppermine Photo Gallery?




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

ohfishing

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 29
Re: CpmFetch 1.4 On... Displaying data and images from CPG on your website
« Reply #328 on: October 09, 2005, 10:43:35 am »

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

toontastic

  • Coppermine newbie
  • Offline Offline
  • Posts: 16
Re: CpmFetch 1.4 On... Displaying data and images from CPG on your website
« Reply #329 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
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 #330 on: October 09, 2005, 05:05:03 pm »

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.


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

ohfishing

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 29
Re: CpmFetch 1.4 On... Displaying data and images from CPG on your website
« Reply #331 on: October 09, 2005, 09:31:44 pm »

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

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 #332 on: October 10, 2005, 07:29:44 am »

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

ohfishing

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 29
Re: CpmFetch 1.4 On... Displaying data and images from CPG on your website
« Reply #333 on: October 11, 2005, 01:26:33 am »

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? 
« Last Edit: October 11, 2005, 01:58:39 am by ohfishing »
Logged
OHfishing

ohfishing

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 29
Re: CpmFetch 1.4 On... Displaying data and images from CPG on your website
« Reply #334 on: October 11, 2005, 01:28:20 am »

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

ohfishing

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 29
Re: CpmFetch 1.4 On... Displaying data and images from CPG on your website
« Reply #335 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 :-(
Logged
OHfishing

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 #336 on: October 13, 2005, 02:12:25 pm »

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.

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

pyimaung

  • Coppermine newbie
  • Offline Offline
  • Posts: 13
Help.
« Reply #337 on: October 14, 2005, 03:04:56 am »

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.

Logged

Sy

  • Coppermine newbie
  • Offline Offline
  • Posts: 18
Re: CpmFetch 1.4 On... Displaying data and images from CPG on your website
« Reply #338 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?

Code: [Select]
<?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
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 #339 on: October 15, 2005, 08:26:21 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?

Code: [Select]
<?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
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 ... 13 14 15 16 [17] 18 19 20 21 ... 54   Go Up
 

Page created in 0.041 seconds with 20 queries.