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

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]

Main Menu

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

Started by vuud, July 08, 2005, 06:43:10 AM

Previous topic - Next topic

0 Members and 8 Guests are viewing this topic.

Niels

Thanks a million!!! I seriously love your dedication..  :D you made my day :)

stez

ltns...

I second reyn's request re: a collection of sites... I'm not that creative myself and would like to steal, er, borrow, ahem, other people's ideas.

How are you getting on with the docs?  Still need any help?

vuud

Quote from: stez on August 16, 2005, 04:35:11 PM
ltns...

I second reyn's request re: a collection of sites... I'm not that creative myself and would like to steal, er, borrow, ahem, other people's ideas.

How are you getting on with the docs?  Still need any help?

See my answer to this request...
http://forum.coppermine-gallery.net/index.php?topic=19564.msg94817#msg94817

Then see my other answer to this request...
http://forum.coppermine-gallery.net/index.php?topic=20751.0


Doc's?  Absolutely I need help.  I will PM you my email address and we can talk about what parts you want to help with... (The nice thing about volunteering is that you get to pick what you work on :D )



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

Quote from: stefan2k1 on August 12, 2005, 03:24:14 PM
Hi,
i also cant get this script working. Calling cftest.php i get:

I've been working with Stefan offboard to resolve this problem since a lot of it included passwords and stuff.  In the end he had to send me a mysql dump to solve the problem.  I am posting this here because if someone can tell me how this could happen, it would be cool.

In the end, cpmfetch was not returning pictures because when it ran its sql to do that it could not build a set that matched.  Basically all of Stefans photos have an entry showing the owner of the photo is id #2, but the users table only has a user #1. 

I am comparing
cpg133_pictures:owner_id
with
cpg133_users:user_id

This has worked in the past.  The only thing I can think of is that he had a user #2 and deleted them.  So now the photos are orphaned.

If any one knows for sure, let me know.  Help assures your next feature request gets bumped :)

Anyway, my recommendations to solve this are:

1) Update the picture table to refer to user_id #1
2) Create a user with id 2

That should fix the problem.

Thanks to stefan for his patience in waiting for me to resolve this... its been a busy week.
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

Phono Paul

I have exactly the same problem as Stefan, and I wondered if it was somehow due to the fact I'm bridging to phpbb..?

Anyway, when you say "Update the picture table to refer to user_id #1", I guess you mean changing the cpg133_pictures table, but won't any new images added to Coppermine still have the wrong value in owner_id ..?

(sorry for sticking my oar in, just trying to get this to work myself, and just grateful someone else has the same problem!)

vuud

Quote from: Phono Paul on August 18, 2005, 12:35:45 PM
I have exactly the same problem as Stefan, and I wondered if it was somehow due to the fact I'm bridging to phpbb..?

Anyway, when you say "Update the picture table to refer to user_id #1", I guess you mean changing the cpg133_pictures table, but won't any new images added to Coppermine still have the wrong value in owner_id ..?

(sorry for sticking my oar in, just trying to get this to work myself, and just grateful someone else has the same problem!)

I had Stefan add a second user with user_id of 2 and it all was better... he was also on phpbb brigde thingee

So that should fix you too!

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

Phono Paul


noworyz

hey, if you look at my cpmfetch usage there is a blue outline on my image!  How do I get rid of this outline.

I use the code in two different spots and one has the outline, the other doesn't!

page with outline http://www.egriz.com/GrizBoard/
page without outline http://www.egriz.com

I am using the exact same code on both pages.  Any ideas on how to get rid of the blue outline?

Thanks

vuud

Quote from: noworyz on August 20, 2005, 05:37:10 AM
hey, if you look at my cpmfetch usage there is a blue outline on my image!  How do I get rid of this outline.

I use the code in two different spots and one has the outline, the other doesn't!

page with outline http://www.egriz.com/GrizBoard/
page without outline http://www.egriz.com

I am using the exact same code on both pages.  Any ideas on how to get rid of the blue outline?

Thanks

You can't be using the same code.

One page has class="grizpics" in the generated HTML, the other does not.   Something in your CSS is setting the border.

At least thats my guess


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

noworyz

ok, I created a test forum http://www.egriz.com/gbtest/

It is the exact same code as my main page linked here http://www.egriz.com/

The blue border color is created by my internet explorer browser (I can change the color of the border by going to TOOL > INTERNET OPTIONS > COLORS)

Do you have any idea why this may be happening?


vuud

Quote from: noworyz on August 20, 2005, 10:41:31 PM
ok, I created a test forum http://www.egriz.com/gbtest/

It is the exact same code as my main page linked here http://www.egriz.com/

The blue border color is created by my internet explorer browser (I can change the color of the border by going to TOOL > INTERNET OPTIONS > COLORS)

Do you have any idea why this may be happening?



Okay, now the code could be the same... no extra tags in the cpmfetch generated code.

My guess is that something in the CSS is turning off the border... the page without the border has a lot of css definitions coming in from the board software and whatever else.

I guess the best thing for you to do now is to define your own CSS class at the top of the file, and force the cpmfetch code to use that for the image and stuff...

Check this page...
http://www.fistfullofcode.com/projects/copperminefetch/tips.php#cssmouseoverboxes

There are examples there for creating borders... basically you want the img.test1 entry, but border-width:0px

There must be a better way to do it, but I am not a guru with css at any rate








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

noworyz

that worked,

That is what I was originally trying but I didn't realize that I needed to define it for image, iw as defining it for links. 

Thanks a bunch!

vuud

Quote from: noworyz on August 20, 2005, 11:24:10 PM
that worked,

That is what I was originally trying but I didn't realize that I needed to define it for image, iw as defining it for links. 

Thanks a bunch!

Like I said, I barely get by on CSS issues...

Glad to hear it works
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

mylogon

It would be nice if two things were done to this:

1.  All the command typos that make it not work - so that you have to figure out what is wrong

2.  Actually make it so a person can use it without having to be a php programmer.  Not real handy for most.  If people were programmers - they probably would not be using Coppermine.

Coppermine is made for the average user - this is far from it.

The instructions leave much to be desired.  I cannot find anyone who has tried it that actually got it to work without spending hours figuring out all the errors.  (Check webhosting forums.) Even the startup command do not work.  An error right there.

QuoteCannot instantiate non-existent class: cpmfetch
- after the require one is run.  Know require is run - as no error on object not found.

Nice to have something - but it should really be able to work for most, not a select group of programmers.  Sample setup, running install, maybe even installation instructions on how to make work. 

I appreciate the effort it took to write this, just a shame few can figure out how to actualy make it work because of the way it was written.


vuud

Thanks for the feedback,  I love hearing it...

Can you clarify #1?  I did not understand what you were saying there...

As for #2 - while I can agree that its not as easy as understanding how to use Internet Explorer.  If they can do HTML, then hopefully they can do the quickstart and take it from there... 

As for programmers not running Coppermine, I disagree with that statement since I know a lot of professional programmers that use it (why waste your own time reinventing the wheel?).  What are you basing that statement on?   I have been a programmer for a long time now and don't see how that would be true?  Do you have any idea how long it must have taken to write CPG?  I don't either, but it must have been a long time - nothing I would undertake myself lightly.

I am sorry if people are having problems, and I have helped almost everyone that has posted here...the official support forum.   I tried finding "web hosting" forums that you mentioned, can you give me a link?  I am amazed that people would not post in a forum dedicated to it - I mean we don't charge here do we?  At least I hope not, cause otherwise I want a cut!

As for doc's they are improved as I get a hankering to work on documentation (rarely),  except for user contributions which will be gladly excepted!  One person has volunteered to rehash some of them so we will see.  I don't have much interest in writing documentation, in fact I don't like it much at all.   I try to spend a few minutes each week, fleshing out something or what not.

Last I checked, I have a 100+ people subscribed to the mailer for updates and plenty of downloads happening when I release something new - So people are getting it working. 

I may do something with the error on startup... I had it differently before, but had to change it for some reason (I forget why).  There are also a few things coming up in my release to support CPG 1.4 that will make things easier - but not terribly easier.  A point and click install is NOT in the future.

Anyway, feel free to tell anyone that has a problem to drop by here and let me (us) know and I am sure we can get them working.

And I am always open to suggestions - good ones I take and do something with in my free time, others I put on a list or convince the person why it would be a bad idea.  If you can give me some ideas on #2 I'd be willing to listen.  To be honest, it was written for people who can do PHP...  But since there is a lot of support that has to happen I am willing to consider ways to make it easier to take.  Oh of course, there is also the outside chance that it may be a good idea, but I just don't have the time or willingness to implement it.

Take care, and feel free to post comments and suggestions anytime!

Vuud

EDIT: I just remembered why that "Can't instantiate class" error is like that... to make it more user friendly would mean you would have to add a bunch more code into everypage you wanted to use it on... making it harder for people to add in.... I just remembered, when I went in to check it.




Quote from: mylogon on August 21, 2005, 12:56:19 AM
It would be nice if two things were done to this:

1.  All the command typos that make it not work - so that you have to figurre out what is wrong

2.  Actually make it so a person can use it without having to be a php programmer.  Not real handy for most.  If people were programmers - they probably would not be using Coppermine.

Coppermine is made for the average user - this is far from it.

The instructions leave much to be desired.  I cannot find anyone who has tried it that actually got it to work without spending hours figuring out all the errors.  (Check webhosting forums.) Even the startup command do not work.  An error right there.

QuoteCannot instantiate non-existent class: cpmfetch
- after the require one is run.  Know require is run - as no error on object not found.

Nice to have something - but it should really be able to work for most, not a select group of programmers.  Sample setup, running install, maybe even installation instructions on how to make work. 

I appreciate the effort it took to write this, just a shame few can figure out how to actualy make it work because of the way it was written.

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

Mambocube

hi, i have got the cpmfetch working fine, but was hoping if anyone knew how to get it so that it shows who the photo was submitted by underneath the pic e.g

     \\\\\\\\image/////////

posted by mambocube

thanks :)

Mambocube

<?php   

include "cpmfetch/cpmfetch.php";
$objCpm = new cpm('/gallery');
$objCpm->cpm_viewLastAddedMedia (1,6,4);
$objCpm->cpm_close();

?>

this is the code i am using

Rodinou

(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fwww.sortons.net%2Fgfx%2Fscreenshots%2Faccueil.jpg&hash=322602257bbd3bf0e1ac4027a774004d7270e114)

I would like to have this (right bottom) ... but
1. it's a tableless system
2. I would like infos appears by dhtml popup.

I have seen your "core" code ... it's a hell for me. I have suggested you (without answer) to help you to transform your excellent plugin in tableless system ...

vuud

Quote from: Mambocube on August 22, 2005, 01:26:54 PM
hi, i have got the cpmfetch working fine, but was hoping if anyone knew how to get it so that it shows who the photo was submitted by underneath the pic e.g

     \\\\\\\\image/////////

posted by mambocube

thanks :)

Sure, you need to set the subtitle...

$options = array( 'subtitle' => 'Image %t is %S KB');
$objCpm->viewRandomMedia(1,1,$options);

This shows the full list of what you can display underneath...
http://www.fistfullofcode.com/projects/copperminefetch/manual/ch06s03.html

I think you want %o - which is the owner's name...  replace the stuff in the example above with what you want...

Like :  "Image provided by %o"    or whatever

Hope that helps

Vuud



Please post for help to the forum... PM me only if you are sending security related items (passwords, security problems, etc).

cpmFetch - Images, RSS feeds from CPG from outside CPG
New release notification signup also. 
See http://cpmfetch.fistfullofco

vuud

Quote from: Rodinou on August 22, 2005, 02:24:44 PM
I would like to have this (right bottom) ... but
1. it's a tableless system
2. I would like infos appears by dhtml popup.

I have seen your "core" code ... it's a hell for me. I have suggested you (without answer) to help you to transform your excellent plugin in tableless system ...

Sorry the code is a hell for you... Programming can be a bit daunting for newcomers when they first look at it.  Its probably the whole thing on how it generates the code, its so elegant...  I just love that part.

Anyway, I am pretty sure I did respond.  But in brief:

* I am NOT going to transform to tableless...  Few people care about it at this point in HTML/CSS's evolution.  I will make an option to generate tableless, but that has to wait until I have time and can abstract out the generation code so I can provide a generic interface for me to code to.

* Please be more specific as for what help you are offering...  If you are writing code to do this, just want to make feature requests, etc, etc.

I do think it would be a nice to have, but not particularly needed at this point.  I understand that because you need it for something that you do feel its much more urgent - but not all that much is moving to DHTML IMO.  I run a web development company and we have 0 requests for this sort of thing - and we also tend to not suggest it as HTML is very well supported across browsers, but CSS layouts are not as proven.

So I have a list, somewhere on that list is abstracting the output code... that will make Tableless more attractive.

Regardless, I would suggest if you really need it now to simply extend CPMFetch and write your own code.  You will not have to deal with my code "Hell" since you only use the ones you need.

Here are some short examples
http://www.fistfullofcode.com/projects/copperminefetch/tests/test6.php

Hopefully that can get you where you want to be

Keep me posted, and I think there is a forum here for extending cpmfetch - if you decided to go that route, post there to keep this all organized
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