random images in .html file not php random images in .html file not php
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

random images in .html file not php

Started by mikedown, July 07, 2005, 11:03:47 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

mikedown

do you have have script mod? that post random images in an ordinary .html file?
thanks

Abbas Ali

Chief Geek at Ranium Systems

Joachim Müller

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.

mikedown

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..?

Joachim Müller

no, there's no JavaScript gimmick available that can do this.

mikedown

so its pure php gaugau?
so whats the CpmFetch all about?
sorry im at noob at this

Tranz

It would depend on your webhost server setup, but it could be possible to set up html files to be parsed as php files.

steverobbins

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.

mikedown

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

Joachim Müller

yes: use cpmFetch as suggested above within random.php