How to display random images on .shtml page through cpmFetch? How to display random images on .shtml page through cpmFetch?
 

News:

CPG Release 1.6.27
change DB IP storage fields to accommodate IPv6 addresses
remove use of E_STRICT (PHP 8.4 deprecated)
update README to reflect new website
align code with new .com CPG website
correct deprecation in captcha

Main Menu

How to display random images on .shtml page through cpmFetch?

Started by samurai-lupin, May 17, 2008, 02:58:26 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

samurai-lupin

Hello,

I would like to use cpmFetch to display 4 random images on my .shtml Mainapge.

I have used cpmFetch succesfully before on my php pages but can't get it to work with my shtml page?!

Could someone please kindly let me know what code I would need to insert in my shtml file?

My mainpage is located at root/index.shtml
SMF at root/thunting/smf
Coppermine at root/thunting/smf/coppermine
cpmFetch at root/thunting/smf/coppermine/cpmFetcg

Thank you for any advice you may have!

Christian

natalina

Maybe someone else needs the solution  :) U only have to open your htaccess file add one line:
code:
AddHandler application/x-httpd-php .php .html .htm .shtml