Problems getting it to work... Problems getting it to work...
 

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

Problems getting it to work...

Started by debragrant, November 14, 2006, 08:51:54 PM

Previous topic - Next topic

0 Members and 4 Guests are viewing this topic.

debragrant

I have added the ollowing code to a php file named cftest1

<?php 
include "./cpmfetch/cftest1.php";
$objCpm = new cpm("/gallery");
$objCpm->cpm_viewLatestMedia(3,3);
$objCpm->cpm_close();
?>


I get the following errors

Warning: main(./cpmfetch/cpmfetch.php): failed to open stream: No such file or directory in /home/fhlinux182/h/helendallimore.diva-host.com/user/htdocs/cpmfetch/cftest1.php on line 2

Warning: main(./cpmfetch/cpmfetch.php): failed to open stream: No such file or directory in /home/fhlinux182/h/helendallimore.diva-host.com/user/htdocs/cpmfetch/cftest1.php on line 2

Warning: main(): Failed opening './cpmfetch/cpmfetch.php' for inclusion (include_path='.:/usr/share/pear') in /home/fhlinux182/h/helendallimore.diva-host.com/user/htdocs/cpmfetch/cftest1.php on line 2

Fatal error: Cannot instantiate non-existent class: cpm in /home/fhlinux182/h/helendallimore.diva-host.com/user/htdocs/cpmfetch/cftest1.php on line 3


I have coppermine in the gallery subfolder and cftest1.php in the cpmFetch subfolder.

What have I done wrong?

vuud

Quote from: debragrant on November 14, 2006, 08:51:54 PM
I have added the ollowing code to a php file named cftest1

<?php 
include "./cpmfetch/cftest1.php";
$objCpm = new cpm("/gallery");
$objCpm->cpm_viewLatestMedia(3,3);
$objCpm->cpm_close();
?>



If that is in your file named cftest1.php, what purpose does the include statement serve?

If you have this in the cpmfetch folder, you want it to be

include "./cpmfetch.php";


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

debragrant

see that is where I was always wrong I never actually got what should go in there.

Yes the cftest1 is this file and is in the cpmfetch folder.

So changing /cpmfetch/cftest1.php to /cpmfetch/cpmfetch.php will remove these errors?

debragrant

Quote from: debragrant on November 21, 2006, 10:08:01 AM
see that is where I was always wrong I never actually got what should go in there.

Yes the cftest1 is this file and is in the cpmfetch folder.

So changing /cpmfetch/cftest1.php to /cpmfetch/cpmfetch.php will remove these errors?

sorry meant to say:

So changing /cpmfetch/cftest1.php to ./cpmfetch.php will remove these errors?

I can't edit my posts  ???


debragrant

okay when I get this working how do I make this into code for cpmfetch:

<div class="BODYNEWS">
<marquee direction="left" loop="infinite" scrollamount="2" width="100%" height="105" id="headlines" onmouseover="document.all.headlines.stop()" onmouseout="document.all.headlines.start()">
<a href="http://www.penelopecruz.com/gallery/displayimage.php?album=294&amp;pos=6">
<img src="http://www.penelopecruz.com/gallery/albums/penelope/candid/111420061/thumb_2.jpg" alt="Penelope Cruz" class="pix" />
</a>
<a href="http://www.penelopecruz.com/gallery/displayimage.php?album=294&amp;pos=7">
<img src="http://www.penelopecruz.com/gallery/albums/penelope/candid/111420061/thumb_3.jpg" alt="Penelope Cruz" class="pix" />
</a>
<a href="http://www.penelopecruz.com/gallery/displayimage.php?album=294&amp;pos=8">
<img src="http://www.penelopecruz.com/gallery/albums/penelope/candid/111420061/thumb_4.jpg" alt="Penelope Cruz" class="pix" />
</a>
<a href="http://www.penelopecruz.com/gallery/displayimage.php?album=294&amp;pos=9">
<img src="http://www.penelopecruz.com/gallery/albums/penelope/candid/111420061/thumb_5.jpg" alt="Penelope Cruz" class="pix" />
</a>
<a href="http://www.penelopecruz.com/gallery/displayimage.php?album=294&amp;pos=10">
<img src="http://www.penelopecruz.com/gallery/albums/penelope/candid/111420061/thumb_6.jpg" alt="Penelope Cruz" class="pix" />
</a>
<a href="http://www.penelopecruz.com/gallery/displayimage.php?album=293&amp;pos=4">
<img src="http://www.penelopecruz.com/gallery/albums/penelope/candid/11142006/thumb_4.jpg" alt="Penelope Cruz" class="pix" />
</a>
<a href="http://www.penelopecruz.com/gallery/displayimage.php?album=293&amp;pos=8">
<img src="http://www.penelopecruz.com/gallery/albums/penelope/candid/11142006/thumb_8.jpg" alt="Penelope Cruz" class="pix" />
</a>
<a href="http://www.penelopecruz.com/gallery/displayimage.php?album=293&amp;pos=7">
<img src="http://www.penelopecruz.com/gallery/albums/penelope/candid/11142006/thumb_7.jpg" alt="Penelope Cruz" class="pix" />
</a>
<a href="http://www.penelopecruz.com/gallery/displayimage.php?album=293&amp;pos=1">
<img src="http://www.penelopecruz.com/gallery/albums/penelope/candid/11142006/thumb_10.jpg" alt="Penelope Cruz" class="pix" />
</a>
<a href="http://www.penelopecruz.com/gallery/displayimage.php?album=293&amp;pos=5">
<img src="http://www.penelopecruz.com/gallery/albums/penelope/candid/11142006/thumb_5.jpg" alt="Penelope Cruz" class="pix" />
</a>
<a href="http://www.penelopecruz.com/gallery/displayimage.php?album=292&amp;pos=11">
<img src="http://www.penelopecruz.com/gallery/albums/penelope/public/11132006/thumb_6.jpg" alt="Penelope Cruz" class="pix" />
</a>
<a href="http://www.penelopecruz.com/gallery/displayimage.php?album=292&amp;pos=12">
<img src="http://www.penelopecruz.com/gallery/albums/penelope/public/11132006/thumb_7.jpg" alt="Penelope Cruz" class="pix" />
</a>
<a href="http://www.penelopecruz.com/gallery/displayimage.php?album=292&amp;pos=13">
<img src="http://www.penelopecruz.com/gallery/albums/penelope/public/11132006/thumb_8.jpg" alt="Penelope Cruz" class="pix" />
</a>
<a href="http://www.penelopecruz.com/gallery/displayimage.php?album=292&amp;pos=14">
<img src="http://www.penelopecruz.com/gallery/albums/penelope/public/11132006/thumb_9.jpg" alt="Penelope Cruz" class="pix" />
</a>
<a href="http://www.penelopecruz.com/gallery/displayimage.php?album=292&amp;pos=5">
<img src="http://www.penelopecruz.com/gallery/albums/penelope/public/11132006/thumb_14.jpg" alt="Penelope Cruz" class="pix" />
</a>
<a href="http://www.penelopecruz.com/gallery/displayimage.php?album=291&amp;pos=0">
<img src="http://www.penelopecruz.com/gallery/albums/penelope/candid/11132006/thumb_1.JPG" alt="Penelope Cruz" class="pix" />
</a>
<a href="http://www.penelopecruz.com/gallery/displayimage.php?album=291&amp;pos=5">
<img src="http://www.penelopecruz.com/gallery/albums/penelope/candid/11132006/thumb_5.JPG" alt="Penelope Cruz" class="pix" />
</a>
<a href="http://www.penelopecruz.com/gallery/displayimage.php?album=291&amp;pos=7">
<img src="http://www.penelopecruz.com/gallery/albums/penelope/candid/11132006/thumb_7.JPG" alt="Penelope Cruz" class="pix" />
</a>
<a href="http://www.penelopecruz.com/gallery/displayimage.php?album=291&amp;pos=8">
<img src="http://www.penelopecruz.com/gallery/albums/penelope/candid/11132006/thumb_8.JPG" alt="Penelope Cruz" class="pix" />
</a>
<a href="http://www.penelopecruz.com/gallery/displayimage.php?album=291&amp;pos=9">
<img src="http://www.penelopecruz.com/gallery/albums/penelope/candid/11132006/thumb_9.JPG" alt="Penelope Cruz" class="pix" />
</a>
<a href="http://www.penelopecruz.com/gallery/displayimage.php?album=265&amp;pos=25">
<img src="http://www.penelopecruz.com/gallery/albums/penelope/photoshoot/set22/thumb_8.jpg" alt="Penelope Cruz" class="pix" />
</a>
<a href="http://www.penelopecruz.com/gallery/displayimage.php?album=265&amp;pos=3">
<img src="http://www.penelopecruz.com/gallery/albums/penelope/photoshoot/set22/thumb_12.jpg" alt="Penelope Cruz" class="pix" />
</a>
<a href="http://www.penelopecruz.com/gallery/displayimage.php?album=265&amp;pos=16">
<img src="http://www.penelopecruz.com/gallery/albums/penelope/photoshoot/set22/thumb_24.jpg" alt="Penelope Cruz" class="pix" />
</a>
<a href="http://www.penelopecruz.com/gallery/displayimage.php?album=265&amp;pos=23">
<img src="http://www.penelopecruz.com/gallery/albums/penelope/photoshoot/set22/thumb_6.jpg" alt="Penelope Cruz" class="pix" />
</a>
<a href="http://www.penelopecruz.com/gallery/displayimage.php?album=265&amp;pos=24">
<img src="http://www.penelopecruz.com/gallery/albums/penelope/photoshoot/set22/thumb_7.jpg" alt="Penelope Cruz" class="pix" />
</a>
<a href="http://www.penelopecruz.com/gallery/displayimage.php?album=252&amp;pos=11">
<img src="http://www.penelopecruz.com/gallery/albums/penelope/public/1122006/thumb_109.jpg" alt="" class="pix" />
</a>
<a href="http://www.penelopecruz.com/gallery/displayimage.php?album=252&amp;pos=66">
<img src="http://www.penelopecruz.com/gallery/albums/penelope/public/1122006/thumb_51.jpg" alt="" class="pix" />
</a>
<a href="http://www.penelopecruz.com/gallery/displayimage.php?album=252&amp;pos=69">
<img src="http://www.penelopecruz.com/gallery/albums/penelope/public/1122006/thumb_54.jpg" alt="" class="pix" />
</a>
</marquee>
</div>


basically I am wanting scrolling images in a module. The images would be the latest to be added to coppermine

vuud

Quote from: debragrant on November 21, 2006, 10:22:47 AM
sorry meant to say:

So changing /cpmfetch/cftest1.php to ./cpmfetch.php will remove these errors?

I can't edit my posts  ???

Yes I think so
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: debragrant on November 21, 2006, 10:59:59 AM
okay when I get this working how do I make this into code for cpmfetch:

<div class="BODYNEWS">
<marquee direction="left" loop="infinite" scrollamount="2" width="100%" height="105" id="headlines" onmouseover="document.all.headlines.stop()" onmouseout="document.all.headlines.start()">
<a href="http://www.penelopecruz.com/gallery/displayimage.php?album=294&amp;pos=6">
<img src="http://www.penelopecruz.com/gallery/albums/penelope/candid/111420061/thumb_2.jpg" alt="Penelope Cruz" class="pix" />
</a>
<a href="http://www.penelopecruz.com/gallery/displayimage.php?album=294&amp;pos=7">
<img src="http://www.penelopecruz.com/gallery/albums/penelope/candid/111420061/thumb_3.jpg" alt="Penelope Cruz" class="pix" />
</a>
<a href="http://www.penelopecruz.com/gallery/displayimage.php?album=294&amp;pos=8">
<img src="http://www.penelopecruz.com/gallery/albums/penelope/candid/111420061/thumb_4.jpg" alt="Penelope Cruz" class="pix" />
</a>
<a href="http://www.penelopecruz.com/gallery/displayimage.php?album=294&amp;pos=9">
<img src="http://www.penelopecruz.com/gallery/albums/penelope/candid/111420061/thumb_5.jpg" alt="Penelope Cruz" class="pix" />
</a>
<a href="http://www.penelopecruz.com/gallery/displayimage.php?album=294&amp;pos=10">
<img src="http://www.penelopecruz.com/gallery/albums/penelope/candid/111420061/thumb_6.jpg" alt="Penelope Cruz" class="pix" />
</a>
<a href="http://www.penelopecruz.com/gallery/displayimage.php?album=293&amp;pos=4">
<img src="http://www.penelopecruz.com/gallery/albums/penelope/candid/11142006/thumb_4.jpg" alt="Penelope Cruz" class="pix" />
</a>
<a href="http://www.penelopecruz.com/gallery/displayimage.php?album=293&amp;pos=8">
<img src="http://www.penelopecruz.com/gallery/albums/penelope/candid/11142006/thumb_8.jpg" alt="Penelope Cruz" class="pix" />
</a>
<a href="http://www.penelopecruz.com/gallery/displayimage.php?album=293&amp;pos=7">
<img src="http://www.penelopecruz.com/gallery/albums/penelope/candid/11142006/thumb_7.jpg" alt="Penelope Cruz" class="pix" />
</a>
<a href="http://www.penelopecruz.com/gallery/displayimage.php?album=293&amp;pos=1">
<img src="http://www.penelopecruz.com/gallery/albums/penelope/candid/11142006/thumb_10.jpg" alt="Penelope Cruz" class="pix" />
</a>
<a href="http://www.penelopecruz.com/gallery/displayimage.php?album=293&amp;pos=5">
<img src="http://www.penelopecruz.com/gallery/albums/penelope/candid/11142006/thumb_5.jpg" alt="Penelope Cruz" class="pix" />
</a>
<a href="http://www.penelopecruz.com/gallery/displayimage.php?album=292&amp;pos=11">
<img src="http://www.penelopecruz.com/gallery/albums/penelope/public/11132006/thumb_6.jpg" alt="Penelope Cruz" class="pix" />
</a>
<a href="http://www.penelopecruz.com/gallery/displayimage.php?album=292&amp;pos=12">
<img src="http://www.penelopecruz.com/gallery/albums/penelope/public/11132006/thumb_7.jpg" alt="Penelope Cruz" class="pix" />
</a>
<a href="http://www.penelopecruz.com/gallery/displayimage.php?album=292&amp;pos=13">
<img src="http://www.penelopecruz.com/gallery/albums/penelope/public/11132006/thumb_8.jpg" alt="Penelope Cruz" class="pix" />
</a>
<a href="http://www.penelopecruz.com/gallery/displayimage.php?album=292&amp;pos=14">
<img src="http://www.penelopecruz.com/gallery/albums/penelope/public/11132006/thumb_9.jpg" alt="Penelope Cruz" class="pix" />
</a>
<a href="http://www.penelopecruz.com/gallery/displayimage.php?album=292&amp;pos=5">
<img src="http://www.penelopecruz.com/gallery/albums/penelope/public/11132006/thumb_14.jpg" alt="Penelope Cruz" class="pix" />
</a>
<a href="http://www.penelopecruz.com/gallery/displayimage.php?album=291&amp;pos=0">
<img src="http://www.penelopecruz.com/gallery/albums/penelope/candid/11132006/thumb_1.JPG" alt="Penelope Cruz" class="pix" />
</a>
<a href="http://www.penelopecruz.com/gallery/displayimage.php?album=291&amp;pos=5">
<img src="http://www.penelopecruz.com/gallery/albums/penelope/candid/11132006/thumb_5.JPG" alt="Penelope Cruz" class="pix" />
</a>
<a href="http://www.penelopecruz.com/gallery/displayimage.php?album=291&amp;pos=7">
<img src="http://www.penelopecruz.com/gallery/albums/penelope/candid/11132006/thumb_7.JPG" alt="Penelope Cruz" class="pix" />
</a>
<a href="http://www.penelopecruz.com/gallery/displayimage.php?album=291&amp;pos=8">
<img src="http://www.penelopecruz.com/gallery/albums/penelope/candid/11132006/thumb_8.JPG" alt="Penelope Cruz" class="pix" />
</a>
<a href="http://www.penelopecruz.com/gallery/displayimage.php?album=291&amp;pos=9">
<img src="http://www.penelopecruz.com/gallery/albums/penelope/candid/11132006/thumb_9.JPG" alt="Penelope Cruz" class="pix" />
</a>
<a href="http://www.penelopecruz.com/gallery/displayimage.php?album=265&amp;pos=25">
<img src="http://www.penelopecruz.com/gallery/albums/penelope/photoshoot/set22/thumb_8.jpg" alt="Penelope Cruz" class="pix" />
</a>
<a href="http://www.penelopecruz.com/gallery/displayimage.php?album=265&amp;pos=3">
<img src="http://www.penelopecruz.com/gallery/albums/penelope/photoshoot/set22/thumb_12.jpg" alt="Penelope Cruz" class="pix" />
</a>
<a href="http://www.penelopecruz.com/gallery/displayimage.php?album=265&amp;pos=16">
<img src="http://www.penelopecruz.com/gallery/albums/penelope/photoshoot/set22/thumb_24.jpg" alt="Penelope Cruz" class="pix" />
</a>
<a href="http://www.penelopecruz.com/gallery/displayimage.php?album=265&amp;pos=23">
<img src="http://www.penelopecruz.com/gallery/albums/penelope/photoshoot/set22/thumb_6.jpg" alt="Penelope Cruz" class="pix" />
</a>
<a href="http://www.penelopecruz.com/gallery/displayimage.php?album=265&amp;pos=24">
<img src="http://www.penelopecruz.com/gallery/albums/penelope/photoshoot/set22/thumb_7.jpg" alt="Penelope Cruz" class="pix" />
</a>
<a href="http://www.penelopecruz.com/gallery/displayimage.php?album=252&amp;pos=11">
<img src="http://www.penelopecruz.com/gallery/albums/penelope/public/1122006/thumb_109.jpg" alt="" class="pix" />
</a>
<a href="http://www.penelopecruz.com/gallery/displayimage.php?album=252&amp;pos=66">
<img src="http://www.penelopecruz.com/gallery/albums/penelope/public/1122006/thumb_51.jpg" alt="" class="pix" />
</a>
<a href="http://www.penelopecruz.com/gallery/displayimage.php?album=252&amp;pos=69">
<img src="http://www.penelopecruz.com/gallery/albums/penelope/public/1122006/thumb_54.jpg" alt="" class="pix" />
</a>
</marquee>
</div>


basically I am wanting scrolling images in a module. The images would be the latest to be added to coppermine

I have no idea off the top of my head.  You can use cpmfetch to return raw data to php and then format that accordingly. 

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