TinyPortal

Development => Support => Topic started by: gfxindia on June 19, 2006, 08:03:55 AM

Title: how to include this
Post by: gfxindia on June 19, 2006, 08:03:55 AM
i am working on  a poll block.
this is the code you need to add if you want to display the poll

<?php include 'poll/poll.php' ?>
how to add it and in which block.

Title: Re: how to include this
Post by: gerrymo on June 19, 2006, 08:54:40 AM
Drop the php tags, and put it in a php block.


include('poll/poll.php');


Or you could use an iFrame in an html/javascript block


<iframe src="poll/poll.php" height="200" width="100%" scrolling="no" frameborder="0"></iframe>

Just alter the height attibute to suit.
Title: Re: how to include this
Post by: gfxindia on June 19, 2006, 08:55:54 AM
the iframe tag sucks
i'll try the former
Title: Re: how to include this
Post by: gfxindia on June 19, 2006, 09:10:25 AM
can we use this in html block.
Title: Re: how to include this
Post by: gerrymo on June 19, 2006, 09:20:25 AM
No. The first option is for a php block.