CpmFetch - (OLD/LOCKED) stats/thumbnails/randoms/etc from outside CPG - Page 19 CpmFetch - (OLD/LOCKED) stats/thumbnails/randoms/etc from outside CPG - Page 19
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

CpmFetch - (OLD/LOCKED) stats/thumbnails/randoms/etc from outside CPG

Started by vuud, December 17, 2004, 10:19:07 AM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

luke

Hey vuud, cpmfetch looks like a great mod/add-on, so thanks for all yer work :)

I just downloaded and installed it yesterday, and tried to test it using the the cftest.php file as per the docs. However I got a php parsing error at line 38, which was corrected by adding " ?> " on line 36, after " printHelpLink(); ". Just thought you might like to know!

cheers :)
-luke

vuud

Quote from: luke on March 31, 2005, 03:19:19 AM
Hey vuud, cpmfetch looks like a great mod/add-on, so thanks for all yer work :)

I just downloaded and installed it yesterday, and tried to test it using the the cftest.php file as per the docs. However I got a php parsing error at line 38, which was corrected by adding " ?> " on line 36, after " printHelpLink(); ". Just thought you might like to know!

cheers :)
-luke

Phooey on me for the error :(

Kudos to you for reporting the problem with a fix :D

Thanks much, hope all else works for you
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

Damonik

#362
Hi Vuud,
I get an error message as follows when I run cftest.php.

Notice: Undefined index: DOCUMENT_ROOT in <path removed>on line 81

Notice: Undefined index: DOCUMENT_ROOT in <path removed> on line 63


Any idea how I can fix this?  I've searched this thread/forum to no avail.

Thanks.

vuud

Quote from: Damonik on March 31, 2005, 08:01:54 AM
Hi Vuud,
I get an error message as follows when I run cftest.php.

Notice: Undefined index: DOCUMENT_ROOT in <path removed>on line 81

Notice: Undefined index: DOCUMENT_ROOT in <path removed> on line 63


Any idea how I can fix this?  I've searched this thread/forum to no avail.

Thanks.


I assume you removed the path (good thinking to remove the path for security reasons) but did it include the file that the line 63 and 81 occurred in?

Also, what server are you on?  It seems like it does not provide the document root parameter.

Strange


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

Damonik


vuud

Quote from: Damonik on March 31, 2005, 08:53:58 AM
Have shot you a pm:)

Its on IIS 5.0.

Thanks!


IIS eh... bummer.  Aparently it does not offer a document_root as an available option.  I'll poke through your phpinfo in the morning.  I think you can get around it, but its still going to look for it. 

Hmmm

Any chance you could run on apache? :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

hansgans

how to add

that this is a link and the text Pictures

$objCpm->cpm_listMediaCountForAlbum (89);


xx Picture with link to the album


Damonik

Quote from: vuud on March 31, 2005, 10:40:38 AM
Quote from: Damonik on March 31, 2005, 08:53:58 AM
Have shot you a pm:)

Its on IIS 5.0.

Thanks!


IIS eh... bummer.  Aparently it does not offer a document_root as an available option.  I'll poke through your phpinfo in the morning.  I think you can get around it, but its still going to look for it. 

Hmmm

Any chance you could run on apache? :D


Unfortunately nope :(  If its a pain its no big deal, just disappointing - it will generate the thumbnails etc, just with an error mesg! :)


vuud

Quote from: Damonik on March 31, 2005, 03:05:21 PM
Quote from: vuud on March 31, 2005, 10:40:38 AM
Quote from: Damonik on March 31, 2005, 08:53:58 AM
Have shot you a pm:)

Its on IIS 5.0.

Thanks!


IIS eh... bummer.  Aparently it does not offer a document_root as an available option.  I'll poke through your phpinfo in the morning.  I think you can get around it, but its still going to look for it. 

Hmmm

Any chance you could run on apache? :D


Unfortunately nope :(  If its a pain its no big deal, just disappointing - it will generate the thumbnails etc, just with an error mesg! :)




I will poke through and see what else can be used... also, its strange that it still works with the errors.  At the least, I can silence the errors.  I'll try to whip something out this afternoon.



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

cdrake

When I try to use the mod to include anything into my page is really messes up the layout? Do you know why this is happening? I think it might be because of the tables it creates but im not sure. Is there anyway to fix this?

http://drakeshangout.com/gallery/index.php


Thanks.

*EDIT* I fixed it. I had to remove

starttable("100%", $lang_ecard_php['title'], 3);

from the header.

cdrake

I found a bug in the script I think.

If a user uses a custom thumbnail for media and it is a gif then it will display the default thumb instead of the custom thumbnail.

vuud

Quote from: cdrake on April 01, 2005, 04:45:26 AM
I found a bug in the script I think.

If a user uses a custom thumbnail for media and it is a gif then it will display the default thumb instead of the custom thumbnail.

Yeah, that sounds like something it would do.  Did not think gif's were supported in coppermine soooooo the program does not even look for them.

I can fix that though


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

cdrake

Ok. Thats great because I need to know :p

Also. Is there a way to make the title of an image display under it?

vuud

Quote from: cdrake on April 01, 2005, 07:06:40 PM
Ok. Thats great because I need to know :p

Also. Is there a way to make the title of an image display under it?

yes, there is a whole slew of things you can do under the image.  Check the docs under the optionshash and stuff.  Or load up the page and search on subtitles.

They are hidden a bit in the docs, which I just realized now.

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

cdrake

Would you happen to know how to make the title of an image appear under "Last additions" etc?


vuud

Quote from: cdrake on April 01, 2005, 09:40:23 PM
Would you happen to know how to make the title of an image appear under "Last additions" etc?

Of course I know how to... I wrote the damn thing.  I spent a lot of time on the documentation also so that I could focus on adding new stuff.

These are the two sections of the documentation that is relevant. 

http://www.fistfullofcode.com/projects/copperminefetch/docs/readme.html#optionsarray
http://www.fistfullofcode.com/projects/copperminefetch/docs/readme.html#formatoptions

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

cdrake

I was talking about


case 'lastup':
                display_thumbnails('lastup', $cat, 1, $CONFIG['thumbcols'], max(1, $matches[2]), false);
                flush();
                break;


I figured out how to use your script but I was wanting to format it like coppermine does just have the title under the image.

I tried doing this but couldnt get it to work.


<td class="tableb"><?php
$objCpm = new cpm('/gallery');
$objCpm->cpm_viewLastAddedMediaFromCategory ( 1,1,6,
<div class="text bpanel">
</div>
</td>
<td class="tableb">$newcontent); ?>



Sorry for wasting your time.

cdrake

I was wanting it to output html like http://www.drakeshangout.com/gallery/ but i think its beyond the limits of the script?

vuud

Quote from: cdrake on April 01, 2005, 10:44:46 PM
I was wanting it to output html like http://www.drakeshangout.com/gallery/ but i think its beyond the limits of the script?

If you just want the image with the caption under it you can definately do that.  Its called %c in the format codes.

$objCpm = new cpm('/gallery');
$objCpm->cpm_viewLastAddedMediaFromCategory ( 1,1,6,
<div class="text bpanel">
</div>
</td>
<td class="tableb">$newcontent); ?>


I am not sure what that is above... 

You want something like this:


$objCpm = new cpm('/gallery');
$objCpm->cpm_viewLastAddedMediaFromCategory ( 1,1,6,array("subtitle"=>"%c"));


I really want to chastise you for not reading the docs, but now that I have looked at this part I am not even sure I could understand it.  Something I will have to improve.  I hate writing docs.

If anyone feels like submitting improvements to the docs, I will be grateful






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

cdrake

I have looked through the docs quite a few times but am aparently blind. I have everything figured out now... I think.

Two final questions.

Is this correct?
-------
$source = "cat=2,3:album=47";
-------
$objCpm->cpm_viewLastAddedMediaFromCategory (4,1,$source);
-------

I keep getting the error

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/drakesh/public_html/gallery/cpmfetch/coppermine.php on line 988

2. How can I make where %c will link to the page the picture is on and how can I enable gifs to be recognized.

Thanks.