coppermine-gallery.com/forum

Support => Older/other versions => cpg1.3.x Support => Topic started by: mikedown on July 07, 2005, 11:03:47 AM

Title: random images in .html file not php
Post by: mikedown on July 07, 2005, 11:03:47 AM
do you have have script mod? that post random images in an ordinary .html file?
thanks
Title: Re: random images in .html file not php
Post by: Abbas Ali on July 07, 2005, 11:10:03 AM
http://forum.coppermine-gallery.net/index.php?board=57.0
Title: Re: random images in .html file not php
Post by: Joachim Müller on July 07, 2005, 11:12:17 AM
not for ordinary html files though, this is not possible. HTML files are static, there can be no dynamci content in it. The thread Abbas Ali has mentioned is for non-coppermine pages that need to be php-powered though.
Title: Re: random images in .html file not php
Post by: mikedown on July 07, 2005, 04:02:44 PM
abbas ali your talking about the
CpmFetch - Using CpmFetch on HTML pages via SSI 
yeah?

i dont quite get it is there any addon installion converting it to a java script?
like in phpbb topic anywhere..?
Title: Re: random images in .html file not php
Post by: Joachim Müller on July 07, 2005, 09:35:58 PM
no, there's no JavaScript gimmick available that can do this.
Title: Re: random images in .html file not php
Post by: mikedown on July 08, 2005, 11:40:23 AM
so its pure php gaugau?
so whats the CpmFetch all about?
sorry im at noob at this
Title: Re: random images in .html file not php
Post by: Tranz on July 08, 2005, 04:14:43 PM
It would depend on your webhost server setup, but it could be possible to set up html files to be parsed as php files.
Title: Re: random images in .html file not php
Post by: steverobbins on July 08, 2005, 04:58:59 PM
Hi there,

There is a solution, but not so pretty.  You could create an iframe in your html file pointing to a php file that does all the hard work:

<iframe src="myphpfile.php" height="100" width="100"></iframe>

Then myphpfile.php containts the code to display whatever you prefer.

Hope this helps,
Steve.
Title: Re: random images in .html file not php
Post by: mikedown on July 09, 2005, 02:41:15 AM
thanks steverobbins! big help :)
the only thing i did was to insert<iframe src="http://www.site.com/gallery/random.php" framespacing="0" frameborder="no" border="0" bordercolor="#FFFFFF"" height="200" width="600" scrolling="no"></iframe>
so it would be clean...

now the only  little problem i have is...

i need to create a new .php for the random images..
can any direct me where i can find the codes for this? mod i mean
Title: Re: random images in .html file not php
Post by: Joachim Müller on July 11, 2005, 06:28:44 AM
yes: use cpmFetch as suggested above within random.php