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]   Go Down

Author Topic: Problems getting it to work...  (Read 6084 times)

0 Members and 1 Guest are viewing this topic.

debragrant

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 127
Problems getting it to work...
« on: November 14, 2006, 08:51:54 pm »

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

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

I get the following errors

Code: [Select]
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?
Logged

vuud

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1803
  • [cpmfetch.fistfullofcode.com]
    • Fist Full Of Code
Re: Problems getting it to work...
« Reply #1 on: November 15, 2006, 12:52:36 am »

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

Code: [Select]
<?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";


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

debragrant

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 127
Re: Problems getting it to work...
« Reply #2 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?
Logged

debragrant

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 127
Re: Problems getting it to work...
« Reply #3 on: November 21, 2006, 10:22:47 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  ???

Logged

debragrant

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 127
Re: Problems getting it to work...
« Reply #4 on: November 21, 2006, 10:59:59 am »

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

Code: [Select]
<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
Logged

vuud

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1803
  • [cpmfetch.fistfullofcode.com]
    • Fist Full Of Code
Re: Problems getting it to work...
« Reply #5 on: November 21, 2006, 07:03:56 pm »

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
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: Problems getting it to work...
« Reply #6 on: November 21, 2006, 07:18:16 pm »

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

Code: [Select]
<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. 

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]   Go Up
 

Page created in 0.026 seconds with 21 queries.