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

Author Topic: CpmFetch 1.4 On... Displaying data and images from CPG on your website  (Read 802474 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

Thanks very much VUUD  :) perfect except on the forum. I have used that function in the my customer site header and the function works on the hime page /index.php and on the photoalbum /photoalbum, but when I go to the forum /forum, I get the following error, which I am sure it has to do with the way I am referencing the code, but my php is not that good. I have included the error below and also the code I use for including the images:

Error:
====
Warning: main(./cpmfetch/cpmfetch.php): failed to open stream: No such file or directory in /home/mystaffi/public_html/_header.php on line 28

Warning: main(./cpmfetch/cpmfetch.php): failed to open stream: No such file or directory in /home/mystaffi/public_html/_header.php on line 28

Warning: main(./cpmfetch/cpmfetch.php): failed to open stream: No such file or directory in /home/mystaffi/public_html/_header.php on line 28

Warning: main(): Failed opening './cpmfetch/cpmfetch.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/mystaffi/public_html/_header.php on line 28

Fatal error: Cannot instantiate non-existent class: cpm in /home/mystaffi/public_html/_header.php on line 29

Code:
===

      <?
         include "./cpmfetch/cpmfetch.php";
         $objCpm = new cpm("/photoalbum");
         #$objCpm->cpm_viewRandomMedia(5,1);
         #$objCpm->cpm_viewMostVotedMedia(1,1);
         $objCpm->cpm_viewRandomMostViewedMediaFrom("",5,1);
         $objCpm->cpm_close();
      ?>    


I suspect your problem is in this statement:

include "./cpmfetch/cpmfetch.php";

The program that is running has to be able to find it.  The line above has . / cpmfetch, which means look in a directory inside this directory named cpmfetch.  So unless you installed cpmfetch inside your /forum directory, it would not work.

You need to change it to look for where you installed it.

include "../cpmfetch/cpmfetch.php";

The two dots tell it to go up one directory, then into cpmfetch... 

Thats probably your problem


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

sinbinner

  • Coppermine newbie
  • Offline Offline
  • Posts: 3


The best you can do using cfimageget is the 5 photos at a time.  Yes, it can be done.  See this in the docs for how to do it.

http://www.fistfullofcode.com/projects/copperminefetch/manual/ch09s03.html

You can end up with double images though - since each call is completely different from the others.

Otherwise your next best hope is to work the normal PHP into the forum template.  I did that with my SMF forums.  Once you do that you can get five images. 

There are a few examples in the docs for the php you would need to do... not sure of your forum layout though.  If you want me to just do it for you, see the list of organizations you can donate to in the docs... prove you made a donation and I will go ahead and do it all. 

Otherwise try the php route (getting that into the template - its all cut and paste almost, so php is not really required, just reading of the docs and trying it) and let me know where you get stuck

Vuud

If I wasn't so dang broke I'd be more than happy to make a donation to you Vuud lol. As for doing it for me thanks, but I want to learn how to do this kind of stuff and that won't help me. I'll read thru the docs again and try to see if I can make sense of what I need to do. Where would be the best place to post any questions I have about this for you? Here in this forum or somewhere else? I saw how to do the five images using cfimageget, but like you said you'll get double images. If there were a large amount of pic's in the album that wouldn't be too much of a problem. But with probably no more than 5 pic's of the car each week that won't work too well.

Thanks for your help,
sinbinner
Logged

vuud

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1803
  • [cpmfetch.fistfullofcode.com]
    • Fist Full Of Code


The best you can do using cfimageget is the 5 photos at a time.  Yes, it can be done.  See this in the docs for how to do it.

http://www.fistfullofcode.com/projects/copperminefetch/manual/ch09s03.html

You can end up with double images though - since each call is completely different from the others.

Otherwise your next best hope is to work the normal PHP into the forum template.  I did that with my SMF forums.  Once you do that you can get five images. 






There are a few examples in the docs for the php you would need to do... not sure of your forum layout though.  If you want me to just do it for you, see the list of organizations you can donate to in the docs... prove you made a donation and I will go ahead and do it all. 

Otherwise try the php route (getting that into the template - its all cut and paste almost, so php is not really required, just reading of the docs and trying it) and let me know where you get stuck

Vuud

If I wasn't so dang broke I'd be more than happy to make a donation to you Vuud lol. As for doing it for me thanks, but I want to learn how to do this kind of stuff and that won't help me. I'll read thru the docs again and try to see if I can make sense of what I need to do. Where would be the best place to post any questions I have about this for you? Here in this forum or somewhere else? I saw how to do the five images using cfimageget, but like you said you'll get double images. If there were a large amount of pic's in the album that wouldn't be too much of a problem. But with probably no more than 5 pic's of the car each week that won't work too well.

Thanks for your help,
sinbinner

I feel foremost I need to clarify your statement for others... I was not asking for a donation to me, but to one of a few select charitable organizations.  Just want to clarify that for future readers.  I don't want your money.  Well, I want you to give your money away to someone else anyway :)

As for your problem...  Here is what I did with SMF 1.0.3 (which is not that old)

In my index.template.php file in the templates directory area  (whatever template you are using, edit the one in that folder), I added in this code.  You have to change the include to match your installation maybe.  This would work if cpmfetch was right off the root of the web site.

echo '<div align="right">';
include "../cpmfetch/cpmfetch.php";
$objCpm = new cpm("/photos");
$objCpm->cpm_viewRandomMedia(1,5);
$objCpm->cpm_close();
echo '</div>';

Otherwise it was pretty easy.  Hope the broke thing works out for you... I don't personally buy anything for myself really, grow a lot of my own food, but business is slow - so I can feel your pain.  Unless of course you are broke cause you spend on all sort of non-essentials - then you deserve your pain - whahahahahahahah ;)


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

sinbinner

  • Coppermine newbie
  • Offline Offline
  • Posts: 3

LMAO no I'm broke because I'm working on starting my own home business. Sorry for the misunderstanding with the money thing. As for the script you just posted. I went back and went thru the doc's again and had just come up with that same script lol. It was working great only thing I wasn't sure of was where to place it in my files, but again you solved that one for me. I played around with the array options too. After some trial and error I got it to work. Really is very nice software. Here's the site I'm building for a friend. It's just a test site added on to my website until I'm done. Thanks for the help.  Test Website

Sinbinner
« Last Edit: July 22, 2005, 08:50:23 am by sinbinner »
Logged

Hamsterpants

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 34
    • My Staffie.com

Hi Vuud,

Thanks for the help, thats what I suspected, but no matter what I tried I could not get it to include the images when I was in the forum section. I even tried adding the full path i.e. http://www.mystaffie.com/cpmfetch/cpmfetch.php, with no success. What I have done is copy the cpmfetch dir into the forum dir, so now I have a copy in the root and in forum. Do think this is an ok solution or should I continue trying to get it to work with the single copy in the root.

Thanks
Dill
Logged
Dillon Weyer
dill@mystaffie.com

Hamsterpants

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 34
    • My Staffie.com

sorry wanted to also ask. I get the images to be nicluded now in the forum section, but get a waring:

Warning: Missing argument 4 for cpm_viewmostvotedmediafrom() in /home/mystaffi/public_html/forum/cpmfetch/cpmfetch.php on line 840

The code that I am useing to include the pics looks as follows:

      <?php 
      
         include "./cpmfetch/cpmfetch.php";
         $objCpm = new cpm("/photoalbum");
         #$objCpm->cpm_viewRandomMedia(5,1);
         #$objCpm->cpm_viewMostVotedMedia(1,1);
         $objCpm->cpm_viewMostVotedMediaFrom("",5,1);
         $objCpm->cpm_close();
      ?>

Thanks in advance.
Dill
Logged
Dillon Weyer
dill@mystaffie.com

vuud

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1803
  • [cpmfetch.fistfullofcode.com]
    • Fist Full Of Code

sorry wanted to also ask. I get the images to be nicluded now in the forum section, but get a waring:

Warning: Missing argument 4 for cpm_viewmostvotedmediafrom() in /home/mystaffi/public_html/forum/cpmfetch/cpmfetch.php on line 840

The code that I am useing to include the pics looks as follows:

      <?php 
      
         include "./cpmfetch/cpmfetch.php";
         $objCpm = new cpm("/photoalbum");
         #$objCpm->cpm_viewRandomMedia(5,1);
         #$objCpm->cpm_viewMostVotedMedia(1,1);
         $objCpm->cpm_viewMostVotedMediaFrom("",5,1);
         $objCpm->cpm_close();
      ?>

Thanks in advance.
Dill

Whoops.  Thats technically a bug on my part.  I fixed it so the next dev version will have it so that one is not required.

Basically its looking for the options array, which should be optional.  But I forgot to make it that way.

Just change to this (Extra quotes at the end)

$objCpm->cpm_viewMostVotedMediaFrom("",5,1,"");

That should get rid of the error... sorry about 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

chupa2k

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 28

Hey All ,
Listen at http://www.toaster.co.il/main/mytoaster.php?id=3 for example i got the cpmfetch workin displayin 3 random images in a row on the left side
all is great BUT....
that link is also accesseble at http://aloni.toaster.co.il and it cannot find the path http://aloni.toaster.co.il/community/gallery for displaying the images .
What im saying is , How can i specify hardcoded the url for the coppermine in the cpmfetch as in http://www.toaster.co.il/community/gallery format and not from the http_header ?
Logged

vuud

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1803
  • [cpmfetch.fistfullofcode.com]
    • Fist Full Of Code

Hey All ,
Listen at http://www.toaster.co.il/main/mytoaster.php?id=3 for example i got the cpmfetch workin displayin 3 random images in a row on the left side
all is great BUT....
that link is also accesseble at http://aloni.toaster.co.il and it cannot find the path http://aloni.toaster.co.il/community/gallery for displaying the images .
What im saying is , How can i specify hardcoded the url for the coppermine in the cpmfetch as in http://www.toaster.co.il/community/gallery format and not from the http_header ?

I peeked at the site and it seems to be working fine... is this still an issue?  If so, I did not understand the question :)
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

chupa2k

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 28

Well what i ment is that according to the cpmfetch code if i surf to http://aloni.toaster.co.il/community/gallery i will reach the gallery , But thats not the case .. aloni.toaster.co.il is a htaccess virtual subdomain that directs to http://www.toaster.co.il/main/mytoaster.php file directly dues not having the correct path to the coppermine and bringing broken images coz it cannot find http://aloni.toaster.co.il/community/gallery....
Can i specify a URL for the cpmfetch to display the images from there ? hardcoded ???
Logged

vuud

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1803
  • [cpmfetch.fistfullofcode.com]
    • Fist Full Of Code

Well what i ment is that according to the cpmfetch code if i surf to http://aloni.toaster.co.il/community/gallery i will reach the gallery , But thats not the case .. aloni.toaster.co.il is a htaccess virtual subdomain that directs to http://www.toaster.co.il/main/mytoaster.php file directly dues not having the correct path to the coppermine and bringing broken images coz it cannot find http://aloni.toaster.co.il/community/gallery....
Can i specify a URL for the cpmfetch to display the images from there ? hardcoded ???

You can try playing with cpm_OverrideUrlToCoppermine($newpath_)... not sure if it does the domain name, but you can try it.

Simply call it

$objCpm->cpm_OverrideUrlToCoppermine($newpath_);.

After you create the objCpm and before you make your call to it.

You milage may vary... its not documented cause I keep forgetting what that function does
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

Rodinou

  • Contributor
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 346
  • Tournicoti, Tournicota
    • http://www.sortons.net

Understand nothing ... too many variables, doc very hard to understand when you don't speak english ... and

Trying to display some images:

Your installation seems correct so far, you should see a small grid of thumbnails from your gallery

Code: [Select]
Error in getImageTouse: Extension (strtolower): .jpg File:/home/rbn/www/photos//albums/discotheques/euroclub/17-07-05_LetsDance/thumb_20050717-euroclub_25.jpg

Notice: Undefined index: dirname in /home/rbn/www/cpmfetch/cpmfetch_dao.php on line 841
Error in getImageTouse: Extension (strtolower): .jpg File:/home/rbn/www/photos//albums/discotheques/templiers/14-02-04_Lovenight/thumb_081.jpg

Notice: Undefined index: dirname in /home/rbn/www/cpmfetch/cpmfetch_dao.php on line 841
Error in getImageTouse: Extension (strtolower): .jpg File:/home/rbn/www/photos//albums/soirees_bars/reservoir/23-03-05_Ganesh-ATF-Belladonne/thumb_20050323-rezervoirkaffe_53.jpg

Notice: Undefined index: dirname in /home/rbn/www/cpmfetch/cpmfetch_dao.php on line 841
Error in getImageTouse: Extension (strtolower): .jpg File:/home/rbn/www/photos//albums/salles_concerts/zenith/16-11-04_IsabelleBoulay/thumb_20041116_Zenith-34.jpg

Notice: Undefined index: dirname in /home/rbn/www/cpmfetch/cpmfetch_dao.php on line 841
Error in getImageTouse: Extension (strtolower): .jpg File:/home/rbn/www/photos//albums/soirees_bars/bidule/22-07-05_DePassage/thumb_20050722-bidule_07.jpg

Notice: Undefined index: dirname in /home/rbn/www/cpmfetch/cpmfetch_dao.php on line 841
Error in getImageTouse: Extension (strtolower): .jpg File:/home/rbn/www/photos//albums/soirees_bars/chesters/08-10-04_DJ_LFK/thumb_20041008_Chesters-04.jpg

Notice: Undefined index: dirname in /home/rbn/www/cpmfetch/cpmfetch_dao.php on line 841

HTML tables > I'm working on a site I want to validate XHTML 1.0 strict ... dead for me.

What a pity, I feel a powerful stuff, but for newbies like me, it's hell.

vuud

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1803
  • [cpmfetch.fistfullofcode.com]
    • Fist Full Of Code

Understand nothing ... too many variables, doc very hard to understand when you don't speak english ... and

Trying to display some images:

Your installation seems correct so far, you should see a small grid of thumbnails from your gallery

Code: [Select]
Error in getImageTouse: Extension (strtolower): .jpg File:/home/rbn/www/photos//albums/discotheques/euroclub/17-07-05_LetsDance/thumb_20050717-euroclub_25.jpg

Notice: Undefined index: dirname in /home/rbn/www/cpmfetch/cpmfetch_dao.php on line 841
Error in getImageTouse: Extension (strtolower): .jpg File:/home/rbn/www/photos//albums/discotheques/templiers/14-02-04_Lovenight/thumb_081.jpg

Notice: Undefined index: dirname in /home/rbn/www/cpmfetch/cpmfetch_dao.php on line 841
Error in getImageTouse: Extension (strtolower): .jpg File:/home/rbn/www/photos//albums/soirees_bars/reservoir/23-03-05_Ganesh-ATF-Belladonne/thumb_20050323-rezervoirkaffe_53.jpg

Notice: Undefined index: dirname in /home/rbn/www/cpmfetch/cpmfetch_dao.php on line 841
Error in getImageTouse: Extension (strtolower): .jpg File:/home/rbn/www/photos//albums/salles_concerts/zenith/16-11-04_IsabelleBoulay/thumb_20041116_Zenith-34.jpg

Notice: Undefined index: dirname in /home/rbn/www/cpmfetch/cpmfetch_dao.php on line 841
Error in getImageTouse: Extension (strtolower): .jpg File:/home/rbn/www/photos//albums/soirees_bars/bidule/22-07-05_DePassage/thumb_20050722-bidule_07.jpg

Notice: Undefined index: dirname in /home/rbn/www/cpmfetch/cpmfetch_dao.php on line 841
Error in getImageTouse: Extension (strtolower): .jpg File:/home/rbn/www/photos//albums/soirees_bars/chesters/08-10-04_DJ_LFK/thumb_20041008_Chesters-04.jpg

Notice: Undefined index: dirname in /home/rbn/www/cpmfetch/cpmfetch_dao.php on line 841

HTML tables > I'm working on a site I want to validate XHTML 1.0 strict ... dead for me.

What a pity, I feel a powerful stuff, but for newbies like me, it's hell.


I apologize for not translating the docs, I only know english. 

Can you point me at the url for the cftest page?  Possibly what version of cpmfetch you are using?  What web server?  What version of 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

chupa2k

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 28

Ok so what i need todo is put

$objCpm->cpm_OverrideUrlToCoppermine(http://www.toaster.co.il/community/gallery/);.

 ?
Logged

chupa2k

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 28

Well with a bit of Machine Head and some help from you vuud everything works great .
Logged

Rodinou

  • Contributor
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 346
  • Tournicoti, Tournicota
    • http://www.sortons.net

Understand nothing ... too many variables, doc very hard to understand when you don't speak english ... and

Trying to display some images:

Your installation seems correct so far, you should see a small grid of thumbnails from your gallery

Code: [Select]
Error in getImageTouse: Extension (strtolower): .jpg File:/home/rbn/www/photos//albums/discotheques/euroclub/17-07-05_LetsDance/thumb_20050717-euroclub_25.jpg

Notice: Undefined index: dirname in /home/rbn/www/cpmfetch/cpmfetch_dao.php on line 841
Error in getImageTouse: Extension (strtolower): .jpg File:/home/rbn/www/photos//albums/discotheques/templiers/14-02-04_Lovenight/thumb_081.jpg

Notice: Undefined index: dirname in /home/rbn/www/cpmfetch/cpmfetch_dao.php on line 841
Error in getImageTouse: Extension (strtolower): .jpg File:/home/rbn/www/photos//albums/soirees_bars/reservoir/23-03-05_Ganesh-ATF-Belladonne/thumb_20050323-rezervoirkaffe_53.jpg

Notice: Undefined index: dirname in /home/rbn/www/cpmfetch/cpmfetch_dao.php on line 841
Error in getImageTouse: Extension (strtolower): .jpg File:/home/rbn/www/photos//albums/salles_concerts/zenith/16-11-04_IsabelleBoulay/thumb_20041116_Zenith-34.jpg

Notice: Undefined index: dirname in /home/rbn/www/cpmfetch/cpmfetch_dao.php on line 841
Error in getImageTouse: Extension (strtolower): .jpg File:/home/rbn/www/photos//albums/soirees_bars/bidule/22-07-05_DePassage/thumb_20050722-bidule_07.jpg

Notice: Undefined index: dirname in /home/rbn/www/cpmfetch/cpmfetch_dao.php on line 841
Error in getImageTouse: Extension (strtolower): .jpg File:/home/rbn/www/photos//albums/soirees_bars/chesters/08-10-04_DJ_LFK/thumb_20041008_Chesters-04.jpg

Notice: Undefined index: dirname in /home/rbn/www/cpmfetch/cpmfetch_dao.php on line 841

HTML tables > I'm working on a site I want to validate XHTML 1.0 strict ... dead for me.

What a pity, I feel a powerful stuff, but for newbies like me, it's hell.


I apologize for not translating the docs, I only know english.  

Can you point me at the url for the cftest page?  Possibly what version of cpmfetch you are using?  What web server?  What version of PHP?







Actually CPG server is very very slow (92 sec for 16 queries ...) hoping you can read.

url is http://www.sortons.net/cpmfetch/cftest.php

I'm using CPM FETCH 1.4, I have read step by step your guide line.

Linux Server, PHP/4.3.10

vuud

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1803
  • [cpmfetch.fistfullofcode.com]
    • Fist Full Of Code

Well with a bit of Machine Head and some help from you vuud everything works great .

So the previous post you did worked?  If so, I will document what that function does... :)
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

Actually CPG server is very very slow (92 sec for 16 queries ...) hoping you can read.

I'm using CPM FETCH 1.4, I have read step by step your guide line.
Linux Server, PHP/4.3.10

Radinou,

You win a cookie for stumping me.  The errors you are getting on line 841 do not seem possible.  So please PM me an email address I can mail you a special test version of cpmfetch_dao to get some more information out of.  I did some checking and I can't come up with any reason you would have this happen.

Thanks and sorry for the confusion...

Vuud
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

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47844
  • aka "GauGau"
    • gaugau.de

I had a similar error. The problem probably comes from the fact that the thumbnail and intermediate prefix are hard-coded into cpmFetch (instead of being pulled from the config as I suggested way back in an older thread that deals with cpmFetch) - you probably have one that differs from the default. Use the search and replace "thumb_" in the code with the prefix you have chosen. I'm currently looking into some other issues as well, will post my results as soon as I'm done.
My suggestion for future versions: as you're reluctant to add a query to the core of cpmFetch that looks settings up from coppermine's config table, I suggest adding a routine that caches those settings, or writes them into a setup file that get's included by cpmFetch. There's way too much hard-coded stuff in cpmFetch (e.g. the name of the albums folder as well). Another drawback is the use of tables with a fixed number of columns for the results, I'd rather have block elements with the float attribute set accordingly, will work for all screen resolutions without nasty white space. As I said above: I'll post my suggested code changes once I'm done with the hack.
Logged

vuud

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1803
  • [cpmfetch.fistfullofcode.com]
    • Fist Full Of Code

I had a similar error. The problem probably comes from the fact that the thumbnail and intermediate prefix are hard-coded into cpmFetch (instead of being pulled from the config as I suggested way back in an older thread that deals with cpmFetch) - you probably have one that differs from the default. Use the search and replace "thumb_" in the code with the prefix you have chosen. I'm currently looking into some other issues as well, will post my results as soon as I'm done.
My suggestion for future versions: as you're reluctant to add a query to the core of cpmFetch that looks settings up from coppermine's config table, I suggest adding a routine that caches those settings, or writes them into a setup file that get's included by cpmFetch. There's way too much hard-coded stuff in cpmFetch (e.g. the name of the albums folder as well). Another drawback is the use of tables with a fixed number of columns for the results, I'd rather have block elements with the float attribute set accordingly, will work for all screen resolutions without nasty white space. As I said above: I'll post my suggested code changes once I'm done with the hack.

If you are in fact, not using the default prefixes, check the cpmfetch.php file...  the first lines of actual code in there define what the prefixes are, so please avoid a search and replace!!  Who knows what evil that may wrought.

I'd love to hear the list of suggestions... I am not sure what you mean about the fixed table width... its requested by the user in the row, column entry...

Any ideas why the fileinfo() call does not return a 'dirname' index?

His PHP is like 4.3.x

Vuud




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 7 8 ... 54   Go Up
 

Page created in 0.032 seconds with 20 queries.