TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,973
  • Latest: NonStop
Stats
  • Total Posts: 196,236
  • Total Topics: 21,353
  • Online today: 577
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 467
  • Total: 467

Poll block

Started by topsecret, April 18, 2006, 12:59:27 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

elpvn

I see it fine in your site
Nice code, Omniverse  :up:

technodragon73

that worked!  i tell you the people here are beyond amazing most of the time!

Crip

I have become comfortably numb!

Cripzone | Crip's Free 2.0.2 Themes



gyurma

hi,

I really like the ssi solution, mainly because of the multiple votes you can cast with smf votes.... Did anyone sort the problem -not to be able to vote in the block :knuppel2:- ? please let me know
Regards G

Sledge

Quote from: Omniverse on April 29, 2006, 06:27:00 AM
Just something like this, I havent really played with it much yet to pretty up the template to match my site yet.. but this would be all ya need for a php file. I named mine poll5.php, after the poll id i was showing.



<?php
// Important! You have to include it before your html code
include_once "/path/to/your/polls/poll_cookie.php";
?>

<html>
<body bgcolor="#000000" link="#E6F101" vlink="#E6F101" alink="#E6F101">
<div align="center">
<?php
include_once "/path/to/your/polls/booth.php";
echo
$php_poll->poll_process(5);

?>
</div>
</body>
</html>



Then, in a php block, something like:



echo '<iframe src="http://www.path/to/your/poll5.php" height="350" width="100%" Scrolling="No" align="texttop"></iframe>';





*edit*Forgot to mention, dont think it would matter so long as the paths are correct, but I dropped the file in the folder where I installed advanced poll.


Excellent job Omniverse! This is exactly what I'm looking for. I have a question though, is it possible to do this without an <iframe>? Take a look at my site, www.politipoll.net, (poll is top right). It doesn't quite look right with the rest of the site because of the iframe. Is there any way around it?

RoarinRow

Anyone know how to make the background transparent?

<?php
// Important! You have to include it before your html code
include_once "/avspoll/poll.php";
?>

<html>
<body bgcolor="CCCCCC" link="#993333" vlink="#993333" alink="#993333">
<div align="center">
<?php
include_once "/avspoll/poll.php";
echo
$php_poll->poll_process(5);

?>
</div>
</body>
</html>


I have multiple themes and I just want the background to match whatever theme the user chooses.

SMF 2.0 RC3
TP 1.0 beta 5-1
Wordpress 3.0

Xarcell

can't you just call the style.css then use teh windowbg class?

RoarinRow

Quote from: Xarcell on July 30, 2006, 02:45:31 AM
can't you just call the style.css then use teh windowbg class?

Will it be a transparent background for all me themes?  Where should I start?

SMF 2.0 RC3
TP 1.0 beta 5-1
Wordpress 3.0

akulion

leave out this info in the body tag

bgcolor="CCCCCC"

and it should pick up the theme css color

try it and see

RoarinRow

Quote from: akulion on July 30, 2006, 04:10:35 AM
leave out this info in the body tag

bgcolor="CCCCCC"

and it should pick up the theme css color

try it and see

Thanks for the suggestion, but it defaulted to a white background.   ;)

SMF 2.0 RC3
TP 1.0 beta 5-1
Wordpress 3.0

This website is proudly hosted on Crocweb Cloud Website Hosting.