Okay tell me if this is right or wrong.
I have a website and I have it set to thestreetgods.com/gallery < my gallery link
Now I have it set up like this
thestreetgods.com/gallery/cpmfetch/plugins/cpmfetchjs/ < the cpmfetch directories.
Here is my code:
Images<br />
<script type="text/javascript">
var cpr_albumid=''; //album id if not used set ''
var cpr_catid='1'; //Category id if not used set ''
var resulttype = 'lastmedia'; //Result type from below array.
/*Result types:
'toprated', //Fetches top rated
'mostviewedrated', //Fetches most viewed rated
'lastmedia', //Fetched last media
'lastmediafromalbum', //Fetched last uploads from suplied album ID
'lastmediafromcat', //Fetched last uploads from suplied category ID
'randomfromalbum', //Fetched random files suplied album ID
'randomfromcategory', //Fetched random files from suplied category ID
'lasthits' //If suplied cpr_albumid fetched last hits form album if category then last hits from category.
*/
var rows=8; //Number of rows
var col=1; //Number of columns
var jscriptFetchFile='http://thestreetgods.com/gallery/cpmfetch/plugins/cpmfetchjs/jsfetch.php';
/*
StylesGenerated with table
'tablestyle' => 'cpr_tablestyle',
'tableheadstyle'=> 'cpr_tableheadstyle',
'rowstyle' => 'cpr_rowstyle',
'cellstyle' => 'cpr_cellstyle',
'imagestyle' => 'cpr_imagestyle',
'linkstyle' => 'cpr_linkstyle'
*/
</script>
<script type="text/javascript">
document.write("<script type=\"text/javascript\" src=\""+jscriptFetchFile+"?albumid="+cpr_albumid+"&catid="+cpr_catid+"&resulttype="+resulttype+"&rows="+rows+"&col="+col+"\"><\/script>");
</script>
Nothing shows up. No images, no nothing.
http://thestreetgods.com/gallery/cpmfetch/plugins/cpmfetchjs/javascripttest.html << URL
How in the hell do I get this to work?
Sorry for double post.
Here's my directory listing info:
/gallery/cpmfetch/plugins/cpmfetchjs Has 5 files:
extendclass (Folder containing cpmfetch_extend.php)
cpmfetch.php
cpmfetch_config.php
javascripttest.html
jsfetch.php
/gallery/cpmfetch Has 16 files (becuase I didn't know if they were needed)
benchmarking.php
cfig_random.php
cfimageget.php
cfrssget.php
cfshow.php
cpmfetch.js
cpmfetch.php
cpmfetch_config.php
cpmfetch_dao.php
fetch.php
install.php
problem.gif
rss_lastadded.php
screen.php
slideshow.php
Hope this helps to debug!
The code you provided is not the right one.
CPMFetch codes are written in php
here is the code to display last added media
<?php
include "./cpmfetch.php";
$objCpm = new cpm("./cpmfetch_config.php");
$objCpm->cpm_viewLastAddedMedia(1,4);
$objCpm->cpm_close();
?>
Read this thread for further instructions
http://forum.coppermine-gallery.net/index.php/topic,35450.0.html
The code I provided was the HTML for my website for the javascripttest.html file.
If you don't see I'm trying to use the javascript cpmfetch