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 ... 48 49 50 51 [52] 53 54   Go Down

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

0 Members and 1 Guest 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 #1020 on: August 13, 2006, 10:29:18 pm »

Woohoo!!!

Now I got something different:

Unknown column 'u.user_website' in 'field list'
Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /home/nordisktfiske.se/www/cpmfetch/cpmfetch_dao.php on line 710

but it looks like it will work :)

Yeah, its also in the release notes that come with it.  Also, the newest version (2 days old) eliminates that problem.

But I will give you credit for finding it in the forums...  95% of the people don't bother searching before they ask.
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 #1021 on: August 13, 2006, 10:32:18 pm »

I found it while searching the forum and I change the big sql statement in cpmfetch_dao.php.

Now I get Error in getImageTouse: Extension (strtolower): .jpg

The server has GD 2 installed.

Can you send me a link to this?

Unfortunately that is a tough error to troubleshoot.

Did you change the default prefix's or anything like 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

Ashari

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
Re: CpmFetch 1.4 On... Displaying data and images from CPG on your website
« Reply #1022 on: August 13, 2006, 11:22:40 pm »

Hi, I'm using Coppermine 1.4.8 and I am trying to use CPFetch to call images from all of my member's albums. they are not private, however when I use
print "<center>";
include "../cpmfetch/cpmfetch.php";
$objCpm = new cpm("/gallery");
$objCpm->cpm_viewLastAddedMedia(5,1,array("imagesize" => "Thumb","windowtarget" => "_new","subtitle" => "Member: %o - %c "));
$objCpm->cpm_close();
print "</center>";

I ONLY get images from the album created by the admin. I have tried using "cat=1" but that creates an error. Do I need to change something in my dao.php file? I've been searching the board but can't find an answer. Can someone help me please?

Can someone answer my question please or direct me to a thread that does?
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 #1023 on: August 14, 2006, 01:47:54 am »

Can someone answer my question please or direct me to a thread that does?

If you are bridged with something, try the new cpmfetch 1.6.3 ... it has a small fix that addresses bridged versions (which could be what is causing your problem).  If that does not help, let me know.

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

tandiono

  • Coppermine novice
  • *
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 44
  • www.Tandiono.com
    • www.Tandiono.com
Re: CpmFetch 1.4 On... Displaying data and images from CPG on your website
« Reply #1024 on: August 14, 2006, 03:22:47 am »

Im using CPG 1.6.3 , the cpmfetch is place in www/gallery/cpmfetch  and im trying to show the pic but there seems to be wrong with the code.. Anyone please kindly help me. Thanks in advance..

Code: [Select]
// The Gallery
echo '
<tr>
<td class="titlebg" colspan="2">FF Gallery</td>
</tr>
<tr>
<td class="windowbg" width="20" valign="middle" align="center">
<a href="../gallery/">
<img src="', $settings['images_url'], '/galleryicon.gif" alt="', $txt['chatAlt'], '" border="0" /></a>
<td class="windowbg2" width="100%">
include "../cpmfetch/cpmfetch.php";
$objCpm = new cpm("./gallery");
$objCpm->cpm_viewRandomMedia (1,7);
$objCpm->cpm_close();
</div>
</td>
</tr>';
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 1.4 On... Displaying data and images from CPG on your website
« Reply #1025 on: August 14, 2006, 03:31:45 am »

Im using CPG 1.6.3 , the cpmfetch is place in www/gallery/cpmfetch  and im trying to show the pic but there seems to be wrong with the code.. Anyone please kindly help me. Thanks in advance..

Code: [Select]
// The Gallery
echo '
<tr>
<td class="titlebg" colspan="2">FF Gallery</td>
</tr>
<tr>
<td class="windowbg" width="20" valign="middle" align="center">
<a href="../gallery/">
<img src="', $settings['images_url'], '/galleryicon.gif" alt="', $txt['chatAlt'], '" border="0" /></a>
<td class="windowbg2" width="100%">
include "../cpmfetch/cpmfetch.php";
$objCpm = new cpm("./gallery");
$objCpm->cpm_viewRandomMedia (1,7);
$objCpm->cpm_close();
</div>
</td>
</tr>';

You don't give us much to work with... You neglected to say what happened... do you get errors?  wrong images?

One thing may need changing is:
$objCpm = new cpm("./gallery");

to

$objCpm = new cpm("/gallery");

Otherwise, post a URL or an actual problem to be solved

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

tandiono

  • Coppermine novice
  • *
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 44
  • www.Tandiono.com
    • www.Tandiono.com
Re: CpmFetch 1.4 On... Displaying data and images from CPG on your website
« Reply #1026 on: August 14, 2006, 03:49:24 am »

You don't give us much to work with... You neglected to say what happened... do you get errors?  wrong images?

One thing may need changing is:
$objCpm = new cpm("./gallery");

to

$objCpm = new cpm("/gallery");

Otherwise, post a URL or an actual problem to be solved



Hello, i dont get any error for the cpmfetch test :

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


as for the testing link is :

http://www.friendsterforum.com/forum/1.php

here's my current code :

<?php


Code: [Select]
// The Gallery
echo '
<tr>
<td class="titlebg" colspan="2">FF Gallery</td>
</tr>
<tr>
<td class="windowbg" width="20" valign="middle" align="center">
<a href="../gallery/">
<img src="', $settings['images_url'], '/galleryicon.gif" alt="', $txt['chatAlt'], '" border="0" /></a>
<td class="windowbg2" width="100%">
echo '
include "../gallery/cpmfetch/cpmfetch.php";
$objCpm = new cpm("/gallery");
$objCpm->cpm_viewRandomMedia (1,7);
$objCpm->cpm_close();
</div>
</td>
</tr>';


?>
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 1.4 On... Displaying data and images from CPG on your website
« Reply #1027 on: August 14, 2006, 03:56:23 am »

Hello, sorry for the double posting as i can't modify the previous post..

anyway i try it straight on my forum :

http://www.friendsterforum.com/forum/


and here's the code :

Code: [Select]
// The Gallery
echo '
<tr>
<td class="titlebg" colspan="2">FF Gallery</td>
</tr>
<tr>
<td class="windowbg" width="20" valign="middle" align="center">
<a href="../gallery/">
<img src="', $settings['images_url'], '/galleryicon.gif" alt="', $txt['chatAlt'], '" border="0" /></a>
<td class="windowbg2" width="100%">
include "../gallery/cpmfetch/cpmfetch.php";
$objCpm = new cpm("/gallery");
$objCpm->cpm_viewRandomMedia (1,7);
$objCpm->cpm_close();
</div>
</td>
</tr>';
Logged
Tandiono.com | Mikess.com | WebsiteForum.net | AudioForum.net | ToysForum.net | GadgetForum.net | ClickBankForum.net | ForumBoards.net | VerySoon.net | ClickBanks.net

scifirocket21

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 58
Re: CpmFetch 1.4 On... Displaying data and images from CPG on your website
« Reply #1028 on: August 14, 2006, 04:42:21 am »

For an HTML (non-php) page you cannot do that as it is... I've got a few work arounds in here that you can use depending on what you want to do.

1.  You can use cfimageget - but that limits you to one image

2.  You can use Server Side Includes to include a php file that executes the cpmfetch commands

3.  Make your .HTML pages .PHP pages

Probably #2 you want


How do I do number two?
Logged

scifirocket21

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 58
Re: CpmFetch 1.4 On... Displaying data and images from CPG on your website
« Reply #1029 on: August 14, 2006, 05:12:45 am »

I found the documentation to this at http://www.fistfullofcode.com/projects/copperminefetch/manual/ch11.html.  I was doing fine until I got to the 5th bullet.  I went to the SSI documentation too, and that only confused me more.  I'm sure its a simple fix, for someone how knows what they are doing (not me).
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 #1030 on: August 14, 2006, 06:13:07 am »

Hello, i dont get any error for the cpmfetch test :

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


as for the testing link is :

http://www.friendsterforum.com/forum/1.php

here's my current code :

<?php


Code: [Select]
// The Gallery
echo '
<tr>
<td class="titlebg" colspan="2">FF Gallery</td>
</tr>
<tr>
<td class="windowbg" width="20" valign="middle" align="center">
<a href="../gallery/">
<img src="', $settings['images_url'], '/galleryicon.gif" alt="', $txt['chatAlt'], '" border="0" /></a>
<td class="windowbg2" width="100%">
echo '
include "../gallery/cpmfetch/cpmfetch.php";
$objCpm = new cpm("/gallery");
$objCpm->cpm_viewRandomMedia (1,7);
$objCpm->cpm_close();
</div>
</td>
</tr>';


?>

That's a PHP error.    Try moving the <?php and ?> right around the code like so:

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

That will eliminate many potential problems.  If that does not work, brush up on PHP - that is not a cpmfetch error.



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 #1031 on: August 14, 2006, 06:16:36 am »

I found the documentation to this at http://www.fistfullofcode.com/projects/copperminefetch/manual/ch11.html.  I was doing fine until I got to the 5th bullet.  I went to the SSI documentation too, and that only confused me more.  I'm sure its a simple fix, for someone how knows what they are doing (not me).

Whoa, I must have wrote that during my crack smoking days...  just kidding, I still smoke crack... hah, just kidding again.  Anyway...

If you created the file named "randomimages.php" like it says, then you need to add this statement to your html file

Code: [Select]
<!--#include virtual="/cpmfetch/randomimages.php" -->
the /cpmfetch/randomimages.php is the path to the file you created above.

If i addressed the wrong bullet, let me know.  I'll fix up the documentation sometime soon also.

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

scifirocket21

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 58
Re: CpmFetch 1.4 On... Displaying data and images from CPG on your website
« Reply #1032 on: August 14, 2006, 06:46:48 am »

I'm still doing something wrong! grrr. 

I show you the steps I took, and you can spot the mistake.

1) Made randomimages.php file.  Here is the code in randomimages.php file:
Code: [Select]
<?php 
include "./cpmfetch.php";
$objCpm = new cpm("/photos");
$options = array( 'subtitle' => '%t by %o' );
$objCpm->cpm_viewLastAddedMediaFrom (1,1"",$options);
$objCpm->cpm_close();
?>

2) I uploaded randomimages.php in folder directory http://www.mydpnet.com/cpmfetch.

3) After I uploaded randomimages.php, I put this code in my HTML page:
Code: [Select]
<!--#include virtual="/cpmfetch/randomimages.php" -->
That's what I did, and it wont work.

You can see that the randomimage.php file works.  You can see it here: http://www.mydpnet.com/cpmfetch/randomimages.php
But it wont work on the HTML page: http://www.mydpnet.com/  (it should come into view under the "Newest Photo" header, but it wont)

What do I do now?
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 #1033 on: August 14, 2006, 07:16:34 am »

I'm still doing something wrong! grrr. 

You can see that the randomimage.php file works.  You can see it here: http://www.mydpnet.com/cpmfetch/randomimages.php
But it wont work on the HTML page: http://www.mydpnet.com/  (it should come into view under the "Newest Photo" header, but it wont)

What do I do now?

Well, you did everything right, almost.

The biggest problem now is that your server is not checking to see if it needs to execute an SSI in the file.

Its the second to the last bullet on this page:
http://www.fistfullofcode.com/projects/copperminefetch/manual/ch11.html

Hopefully your hosting provider allows for it.

A quick question... that home page there has a lot going on, why aren't you doing all php pages?  Seems it would make it easier to integrate everything (including cpmfetch)


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

scifirocket21

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 58
Re: CpmFetch 1.4 On... Displaying data and images from CPG on your website
« Reply #1034 on: August 14, 2006, 10:25:00 pm »

I guess I could play around with converting the homepage to PHP.  Ill let you know how it turns out.
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 #1035 on: August 14, 2006, 11:09:46 pm »

I guess I could play around with converting the homepage to PHP.  Ill let you know how it turns out.

Converting won't be that bad, but you can also make sure you got the Server Side includes set right, and that your host supports them.

Converting a page to php means renaming it to .php and then putting <?php   ?> around any php code you have in there.
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

scifirocket21

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 58
Re: CpmFetch 1.4 On... Displaying data and images from CPG on your website
« Reply #1036 on: August 15, 2006, 01:08:36 am »

I did it!  And look how it turned out! www.mydpnet.com

What do you think?
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 #1037 on: August 15, 2006, 02:01:10 am »

I did it!  And look how it turned out! www.mydpnet.com

What do you think?

Looks good.   Glad it works.
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

niks_007

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 73
display list of albums
« Reply #1038 on: August 15, 2006, 04:10:10 pm »

Dear Friends,
         i wish to display the list of last updates albums with there links it should look like this

  KRRISH
  FANNA
  Kabul Express
  Tom Dick and Harry
 
        so what ever albums are newly added of updated can be seen on home page so i dont have to add them manually again and again.

www.lakesparadise.com


-----------------------
one more thing when i fetch the gallery using cpm fetch it fetches pictures from same album i want unique pictures from last updated five albums each no metter whether they are random of last updated instead of all five pics from last added album.

please help me...
Logged

vuud

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1803
  • [cpmfetch.fistfullofcode.com]
    • Fist Full Of Code
Re: display list of albums
« Reply #1039 on: August 15, 2006, 04:28:04 pm »

Dear Friends,
         i wish to display the list of last updates albums with there links it should look like this

  KRRISH
  FANNA
  Kabul Express
  Tom Dick and Harry
 
        so what ever albums are newly added of updated can be seen on home page so i dont have to add them manually again and again.

www.lakesparadise.com


-----------------------
one more thing when i fetch the gallery using cpm fetch it fetches pictures from same album i want unique pictures from last updated five albums each no metter whether they are random of last updated instead of all five pics from last added album.

please help me...


Your going to have to do some PHP coding to get that sort of functionality.   Its not hard to do, but you will need to learn some PHP to do it. 

Ah, I thought we covered this before... see the second example down on this page - basically shows you exactly what to do, in a programming kind of way - modify to suit your needs

http://www.fistfullofcode.com/projects/copperminefetch/tests/test6.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 ... 48 49 50 51 [52] 53 54   Go Up
 

Page created in 0.027 seconds with 20 queries.