1
bassyard
want to include a php-script in theme.html, requires .php extention
  • 2005/4/19 1:46

  • bassyard

  • Not too shy to talk

  • Posts: 157

  • Since: 2003/10/5


Hi there,

I have a problem:

I'm busy making a new theme for our site and I want to include a random image (flyer) php script... but it requires that theme.html has a .php extention... Does anybody know a way how I could use this?

Or if somebody has a similar script, plz let me know...

This is what the script has to do:
I want to have a random partyflyer in my header, which needs to be linked to the party's homepage.
I modified a php banner script, which uses a txt file to pull it's data from. Very easy for me to change the flyers and websites of the parties...
(I'm using the xoopsbanner thingy allready otherwise I would use it instead)

anybody with some idea's?
(ps: I have limited php skills so don't get to technical plz )

thx B.

2
Bassman
Re: want to include a php-script in theme.html, requires .php extention
  • 2005/4/19 1:55

  • Bassman

  • Friend of XOOPS

  • Posts: 1272

  • Since: 2003/5/23


Have a look here,this script does exactly what you want and is easy to use. i've used it myself several times.

3
jdseymour
Re: want to include a php-script in theme.html, requires .php extention

Have you tried enclosing the script in php tags within theme.html?


You beat me that time.

4
bassyard
Re: want to include a php-script in theme.html, requires .php extention
  • 2005/4/19 11:29

  • bassyard

  • Not too shy to talk

  • Posts: 157

  • Since: 2003/10/5


Quote:

Bassman wrote:
Have a look here,this script does exactly what you want and is easy to use. i've used it myself several times.


I've used this script before, it's a really good rotator, but I want to be able to add a link for every image, adn I don't think this script has that feature, right?


Quote:

jdseymour wrote:
Have you tried enclosing the script in php tags within theme.html?


You beat me that time.


Can you plz tell me which tags I should use? because now it uses this:

<?
include(
'http://www.pressurelab.com/flyers/rotator/adrotate.php');
?>


thans for the replies so far :)

5
LazyBadger
Re: want to include a php-script in theme.html, requires .php extention

From my POV, Smarty's include_php will be more mainstreamed

6
bassyard
Re: want to include a php-script in theme.html, requires .php extention
  • 2005/4/19 17:53

  • bassyard

  • Not too shy to talk

  • Posts: 157

  • Since: 2003/10/5


Quote:

LazyBadger wrote:
From my POV, Smarty's include_php will be more mainstreamed


And how should I do this? I'm not very good at this

7
chapi
Re: want to include a php-script in theme.html, requires .php extention
  • 2005/4/19 18:18

  • chapi

  • Theme Designer

  • Posts: 611

  • Since: 2002/1/22


The Smarty Manual is always a good start ..

Login

Who's Online

170 user(s) are online (103 user(s) are browsing Support Forums)


Members: 0


Guests: 170


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits