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 ... 5 6 7 8 [9] 10 11 12 13 ... 34   Go Down

Author Topic: CpmFetch - (OLD/LOCKED) stats/thumbnails/randoms/etc from outside CPG  (Read 336819 times)

0 Members and 1 Guest are viewing this topic.

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
Re: CoppermineFetch - stats / thumbnails / randoms / last added outside cpm
« Reply #160 on: January 08, 2005, 12:51:26 pm »

I just had the gif problem again, so while there, I checked the pic properties of the missing pic. and realised the img src is wrong, it is not showing the actual position of the pic on the server, but just 'gallery2/images'.

It only happens for the gif, which is actually in the same folder in the albums folder as the jpg files. I also used IE for this one, which shows the missing pic more clearly than firefox (used in the first pic)
Logged
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

vuud

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1803
  • [cpmfetch.fistfullofcode.com]
    • Fist Full Of Code
Re: CoppermineFetch - stats / thumbnails / randoms / last added outside cpm
« Reply #161 on: January 08, 2005, 06:34:20 pm »

I just had the gif problem again, so while there, I checked the pic properties of the missing pic. and realised the img src is wrong, it is not showing the actual position of the pic on the server, but just 'gallery2/images'.

It only happens for the gif, which is actually in the same folder in the albums folder as the jpg files. I also used IE for this one, which shows the missing pic more clearly than firefox (used in the first pic)

Strange.  The pid problem is probably 1.4 related, but the gif thing worries me with 1.3.2 releases.  The code that makes the path is the exact same lines that make the path for the jpg files.  When you checked the source path for the gif, did you actually look at the html code?  There is a default alt tag that gets set that is album/photo

Yeah, the gif thing worries me a bit



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

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
Re: CoppermineFetch - stats / thumbnails / randoms / last added outside cpm
« Reply #162 on: January 08, 2005, 07:07:33 pm »

No I didn't check the code, so I just refreshed untillit came back, and here is the output html code for you to see.  The gif is the bottom image;

Code: [Select]
<table  border="0" width="100">
<tr>
<td align="center"><a href="/gallery2/displayimage.php?pos=-&amp;PHPSESSID=2b57d8eec23a8ae029f80d40ff79ecf9"><img src="/gallery2/albums/userpics/10003/thumb_pic1.jpg" alt="userpics/10003/pic1.jpg"  title="userpics/10003/pic1.jpg"  border="0"/></a></td>
</tr>
<tr>
<td align="center"><a href="/gallery2/displayimage.php?pos=-&amp;PHPSESSID=2b57d8eec23a8ae029f80d40ff79ecf9"><img src="/gallery2/albums/userpics/10002/thumb_charmian dancer.JPG" alt="userpics/10002/charmian dancer.JPG"  title="userpics/10002/charmian dancer.JPG"  border="0"/></a></td>
</tr>
<tr>
<td align="center"><a href="/gallery2/displayimage.php?pos=-&amp;PHPSESSID=2b57d8eec23a8ae029f80d40ff79ecf9"><img src="/gallery2/albums/userpics/10002/thumb_charmian and amber.JPG" alt="userpics/10002/charmian and amber.JPG"  title="userpics/10002/charmian and amber.JPG"  border="0"/></a></td>

</tr>
<tr>
<td align="center"><a href="/gallery2/displayimage.php?pos=-&amp;PHPSESSID=2b57d8eec23a8ae029f80d40ff79ecf9"><img src="/gallery2/images/" alt="casper/cup.gif"  title="casper/cup.gif"  border="0"/></a></td>
</tr>
</table>
Logged
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

vuud

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1803
  • [cpmfetch.fistfullofcode.com]
    • Fist Full Of Code
Re: CoppermineFetch - stats / thumbnails / randoms / last added outside cpm
« Reply #163 on: January 08, 2005, 08:16:57 pm »


Oh that is really wierd!

I took a quick look at the code and don't see any reason why this would be happening...

I have to look more later...  Man, that is wierd... it obviously has the information, but its the same line that does the concatination that is doing it for the jpgs

Freaky...

Can you do me a favor and tell me what size the original gif is?  Like did it get a thumb_ or normal_ made for it?  Could be were I am failing
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: CoppermineFetch - stats / thumbnails / randoms / last added outside cpm
« Reply #164 on: January 09, 2005, 06:59:57 am »


Oh that is really wierd!

I took a quick look at the code and don't see any reason why this would be happening...

I have to look more later...  Man, that is wierd... it obviously has the information, but its the same line that does the concatination that is doing it for the jpgs

Freaky...

Can you do me a favor and tell me what size the original gif is?  Like did it get a thumb_ or normal_ made for it?  Could be were I am failing

I give.  I updated my GD library, did the gif mod, added in three gifs at three different sizes and have had no problems so far with it.  I think my next step is to install CPM 1.4 and see what is going on with all those issues.

Wish I could be of faster help, but I just cant replicate the 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

vuud

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1803
  • [cpmfetch.fistfullofcode.com]
    • Fist Full Of Code
Re: CoppermineFetch - stats / thumbnails / randoms / last added outside cpm
« Reply #165 on: January 09, 2005, 07:47:02 am »

I just had the gif problem again, so while there, I checked the pic properties of the missing pic. and realised the img src is wrong, it is not showing the actual position of the pic on the server, but just 'gallery2/images'.

It only happens for the gif, which is actually in the same folder in the albums folder as the jpg files. I also used IE for this one, which shows the missing pic more clearly than firefox (used in the first pic)


Well, I just installed a CVS version of 1.4 and got it running.  I've had no problems with the pid not being included.  I did not do the GIF mod, as I just don't have the time tonight.  The ones that are being not included with pid's are they user galleries only?

(did not test that)

Sleep time... sleepy sleepy sleepy
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
Stable 1.0 is done
« Reply #166 on: January 09, 2005, 08:23:32 am »


The stable release is on the web site or attached to the original post here. 

Note:  If you were on 0.9 really nothing has changed, but the directory it comes in (formally known as CoppermineFetch) has been renamed to cpmfetch

1) Its shorter to type into pages
2) Its all lowercase which will avoid casesensitivity issues at some point I am sure

It wont be moving again

Okay, onto the neat features for the next little bit

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

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
Re: CoppermineFetch - stats / thumbnails / randoms / last added outside cpm
« Reply #167 on: January 09, 2005, 11:59:46 am »

Can you do me a favor and tell me what size the original gif is?  Like did it get a thumb_ or normal_ made for it?  Could be were I am failing

There is the original and a 'thumb_' version, no 'normal_' version.   Both thumb and original are 100 x 100, and because it was uploaded by ftp. the actual path is 'albums/casper/cup.gif' / 'albums/casper/thumb_cup.gif'

This is not in the userpics galleries, but in a public album.  All the other pics so far are in the user galleries.

And this is not using the gif mod as such, version 1.4 has gif support built in where the server supports it.
Logged
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

vuud

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1803
  • [cpmfetch.fistfullofcode.com]
    • Fist Full Of Code
Re: CoppermineFetch - stats / thumbnails / randoms / last added outside cpm
« Reply #168 on: January 09, 2005, 04:39:28 pm »

Can you do me a favor and tell me what size the original gif is?  Like did it get a thumb_ or normal_ made for it?  Could be were I am failing

There is the original and a 'thumb_' version, no 'normal_' version.   Both thumb and original are 100 x 100, and because it was uploaded by ftp. the actual path is 'albums/casper/cup.gif' / 'albums/casper/thumb_cup.gif'

This is not in the userpics galleries, but in a public album.  All the other pics so far are in the user galleries.

And this is not using the gif mod as such, version 1.4 has gif support built in where the server supports it.

Ah okay...  In the 1.4 docs (somewhere) it says only imagemagik for gif still.  i came across that last night night sometime - if I remembered where it was I would tell you :)

I will upload a gif to my 1.4 (CVS version) and see what happens


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
CoppermineFetch dev version 1.1.0 is out
« Reply #169 on: January 11, 2005, 08:10:27 pm »

Its available on the website in the downloads section
http://cpmfetch.fistfullofcode.com
If there is a dev version higher than 1.1.0 then I suggest that instead (that will have fixes in it)


Okay, I don't have all the features done, but I have gone a reworked all of the html generation routines and a few other internals.  So I figured I would get it out as early as possible if anyone wants to play with it.  There are some neat new things though:

USER GALLERIES ARE CATEGORY 1
Thats right, unlike before any request for a category #1 will be translated internally to represent any publicly viewable user galleries.

IMPROVED STYLES AND OPTIONS SUPPORT
Part of the aforementioned improvements make it much easier for the code to handle all of the options.  So more of the same style tags and alt tags, etc are handled by all the functions the same.  Before some of them behaved differently

NEW FUNCTIONS (3 of them)
cpm_viewLastAddedMediaFrom( $rows, $cols,$source, $optionHash)
cpm_viewRandomMediaFrom( $rows, $cols,$source, $optionHash)


The above two are essentially the same except one returns the last media added and one returns random selections.  The difference between these calls and the already existing calls is that these accept the $source.  The souce is a string containing either or both "albums= " and "cat= "

Here are some examples:

"album=16,4,6:cat=5,6"
This one will only use albums #16,4,6 and anything from categories 5 and 6.

"cat=6,1"
Uses only category 6 and any user galleries

"album=14"
Uses only album 14

Note, the format has eithe cat or album, a comma seperated list of numbers.  If you do both cat and album they must be seperated by a colon ( : )

cpm_showAlbumsUpdatedOverLastDays( # days )
This shows two columns.  The first column has an image from the album it found a recently added picture in.  The next column shows how many new were added, the title of the album, what category and the description.

Looks like this with some css styling applied:

(http://www.fistfullofcode.com/projects/copperminefetch/showalbumsupdatedoverlastdays_example1.jpg)


Like I said, this is a dev version... Everything looks okay, but of course there is a reason we have dev versions!




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

I would like to understand this mod (a lot of code for me !!!)


This mod can "call" elements of CPG on a page we want ?! or not ?!

Is it possible to "erase" table to put instead float div or nested lists ?!

protox

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 49
  • Digital Photographer
    • x-poz

First of all : thank you Vuud for this so_great_hack for coppermine;
I was searching for this kind of mod for a long time and you did it  :o ;D

I've installed the 1.1-dev version from your CoppermineFetch on my webserver;
I don't have any folder for my coppermine web gallery and the websurfers browse
directly the webgallery when they hit www.x-poz.org.

I've followed your instructions & tested with your stable 1.0 mod too
and I really don't know why I've got nothing else than the titles of my shots & bad href links

Everything is here : http://x-poz.org/cftest.php

BTW I've tested with a small .php webpage & I've got the same strange result :
Code: [Select]
<?php 
include "./coppermine.php";
$objCpm = new cpm("/");
$objCpm->cpm_viewRandomMedia(3,3);
$objCpm->cpm_close();
?>
Logged
Latest shot from " Les disséqueurs de société " :

(http://x-poz.org/cpmfetch/cfimageget.php?cmd=last)

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231

@protox, what version of coppermine are you using.

I had the same result as you with this version of fetch, but as I am using it on a test version(1.4) of cpg, thought it was related.
version 0.9 .2 does work (mostly) with 1.4.
Logged
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

vuud

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

First of all : thank you Vuud for this so_great_hack for coppermine;
I was searching for this kind of mod for a long time and you did it  :o ;D

I've installed the 1.1-dev version from your CoppermineFetch on my webserver;
I don't have any folder for my coppermine web gallery and the websurfers browse
directly the webgallery when they hit www.x-poz.org.

I've followed your instructions & tested with your stable 1.0 mod too
and I really don't know why I've got nothing else than the titles of my shots & bad href links

Everything is here : http://x-poz.org/cftest.php

BTW I've tested with a small .php webpage & I've got the same strange result :
Code: [Select]
<?php 
include "./coppermine.php";
$objCpm = new cpm("/");
$objCpm->cpm_viewRandomMedia(3,3);
$objCpm->cpm_close();
?>


Hey Protox. thanks of course for the kind words... in opensource is like being paid :)

Anyway, the problem you are having is because coppermine is installed in the root of the web site, which I was not anticipating.

This is not a terrible problem, just something else I did not ever think anyone would do with coppermine.  Basically, your URL's are ending up with double slashes which confuses the server and it does not add the domain name on when sending back a page.

I guess I will have to install one somewhere like this and try it.

In the meantime, you can try this:

open coppermine.php (1.1.0) in an editor

Goto line 84

On the line after $this->filepathtocpm = $_SERVER['DOCUMENT_ROOT'] .... blah blah blah

Add in:

Code: [Select]
if ("/" == $urltocpm) $this->$urltocpm = "";

With any luck, magic will happen and it will be all better

Try it again.  I will get a fix in soon for this - something else I did not anticipate :)

« Last Edit: January 12, 2005, 06:34:43 pm by Casper »
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

I would like to understand this mod (a lot of code for me !!!)


This mod can "call" elements of CPG on a page we want ?! or not ?!

Is it possible to "erase" table to put instead float div or nested lists ?!

This mod can call up information out of coppermine... like the last added photos, etc...  See the readme on the web site for more examples.  Also, the first post in this thread.

At this point, only HTML is generated.  I'd like it to do CSS layouts, but am not experienced enough with it at this point.

If I did not answer what you were looking for, 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

vuud

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

@protox, what version of coppermine are you using.

I had the same result as you with this version of fetch, but as I am using it on a test version(1.4) of cpg, thought it was related.
version 0.9 .2 does work (mostly) with 1.4.

One of the dev versions started working for you?

Your problem is just....  wierd...   :-\\     I was unable to replicate it on CVS 1.4 - perhaps somethign in there changed?

Bill

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

I would like to understand this mod (a lot of code for me !!!)


This mod can "call" elements of CPG on a page we want ?! or not ?!

Is it possible to "erase" table to put instead float div or nested lists ?!

This mod can call up information out of coppermine... like the last added photos, etc...  See the readme on the web site for more examples.  Also, the first post in this thread.

At this point, only HTML is generated.  I'd like it to do CSS layouts, but am not experienced enough with it at this point.

If I did not answer what you were looking for, let me know.


Is your mod is able to transform a CPG gallery to a similar system like :
http://www.zenith-de-rouen.com/pages/galerie.php?cbbGalerie=e0OsPdzBay

I have asked this long long time to reduce requests of CPG (with time it feeds SQL requests like a monster !!!) but your system seems to be quite cuztomisable ... but I'm waiting for your answer before installing and changing it ...

vuud

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

I would like to understand this mod (a lot of code for me !!!)


This mod can "call" elements of CPG on a page we want ?! or not ?!

Is it possible to "erase" table to put instead float div or nested lists ?!

This mod can call up information out of coppermine... like the last added photos, etc...  See the readme on the web site for more examples.  Also, the first post in this thread.

At this point, only HTML is generated.  I'd like it to do CSS layouts, but am not experienced enough with it at this point.

If I did not answer what you were looking for, let me know.


Is your mod is able to transform a CPG gallery to a similar system like :
http://www.zenith-de-rouen.com/pages/galerie.php?cbbGalerie=e0OsPdzBay

I have asked this long long time to reduce requests of CPG (with time it feeds SQL requests like a monster !!!) but your system seems to be quite cuztomisable ... but I'm waiting for your answer before installing and changing it ...


Everything in general is listed on the first post here or on the web site cpmfetch.fistfullofcode.com

To be clear, this is not a full system, or intended as a replacement to coppermine.  Nor do I see it heading in that direction at all.  Essentially I let you grab images and data from coppermine to use on other pages on your web site.

I am not sure I understand what you are looking for in relation to the site you posted.  If you want to show the last added photos of chuck berry, or a random chuck berry or every image in your album as a thumbnail it can do it.  Otherwise, there is no browse functionality built in

Hope that helps










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

I would like to understand this mod (a lot of code for me !!!)


This mod can "call" elements of CPG on a page we want ?! or not ?!

Is it possible to "erase" table to put instead float div or nested lists ?!

This mod can call up information out of coppermine... like the last added photos, etc...  See the readme on the web site for more examples.  Also, the first post in this thread.

At this point, only HTML is generated.  I'd like it to do CSS layouts, but am not experienced enough with it at this point.

If I did not answer what you were looking for, let me know.


Is your mod is able to transform a CPG gallery to a similar system like :
http://www.zenith-de-rouen.com/pages/galerie.php?cbbGalerie=e0OsPdzBay

I have asked this long long time to reduce requests of CPG (with time it feeds SQL requests like a monster !!!) but your system seems to be quite cuztomisable ... but I'm waiting for your answer before installing and changing it ...


Everything in general is listed on the first post here or on the web site cpmfetch.fistfullofcode.com

To be clear, this is not a full system, or intended as a replacement to coppermine.  Nor do I see it heading in that direction at all.  Essentially I let you grab images and data from coppermine to use on other pages on your web site.

I am not sure I understand what you are looking for in relation to the site you posted.  If you want to show the last added photos of chuck berry, or a random chuck berry or every image in your album as a thumbnail it can do it.  Otherwise, there is no browse functionality built in

Hope that helps












Not really. Dawn it. I dream of a "very simple and customizable coppermine". Maybe gods of this universe hear my preach :)

Sorry for inconvenience, I'll go again in my planet, to search a solution to surf a different way with coppermine.

n704fn

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 31

Hi Vuud,

thanks to your docs and examples this is the first time I've posted in this thread.  Just wanted to say thanks for all your work on cpmfetch.  Now my friends and family think I'm a genius!  - actually I give you full credit

Thanks much,
N704FN
Logged
(http://www.thechouinards.com/cfetch/cfig_random.php)
Pages: 1 ... 5 6 7 8 [9] 10 11 12 13 ... 34   Go Up
 

Page created in 0.036 seconds with 20 queries.