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: random images in .html file not php  (Read 3619 times)

0 Members and 1 Guest are viewing this topic.

mikedown

  • Coppermine newbie
  • Offline Offline
  • Posts: 10
random images in .html file not php
« on: July 07, 2005, 11:03:47 am »

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

Abbas Ali

  • Administrator
  • Coppermine addict
  • *****
  • Country: in
  • Offline Offline
  • Gender: Male
  • Posts: 2165
  • Spread the PHP Web
    • Ranium Systems
Logged
Chief Geek at Ranium Systems

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: random images in .html file not php
« Reply #2 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.
Logged

mikedown

  • Coppermine newbie
  • Offline Offline
  • Posts: 10
Re: random images in .html file not php
« Reply #3 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..?
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: random images in .html file not php
« Reply #4 on: July 07, 2005, 09:35:58 pm »

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

mikedown

  • Coppermine newbie
  • Offline Offline
  • Posts: 10
Re: random images in .html file not php
« Reply #5 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
Logged

Tranz

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Female
  • Posts: 6149
Re: random images in .html file not php
« Reply #6 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.
Logged

steverobbins

  • Contributor
  • Coppermine novice
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 35
  • photographer
    • Steve Robbins' Personal Website
Re: random images in .html file not php
« Reply #7 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:

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

  • Coppermine newbie
  • Offline Offline
  • Posts: 10
Re: random images in .html file not php
« Reply #8 on: July 09, 2005, 02:41:15 am »

thanks steverobbins! big help :)
the only thing i did was to insert
Code: [Select]
<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
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: random images in .html file not php
« Reply #9 on: July 11, 2005, 06:28:44 am »

yes: use cpmFetch as suggested above within random.php
Logged
Pages: [1]   Go Up
 

Page created in 0.044 seconds with 15 queries.