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

Recent

Welcome to TinyPortal. Please login or sign up.

Members
Stats
  • Total Posts: 196,004
  • Total Topics: 21,330
  • Online today: 326
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 121
  • Total: 121

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.

technodragon73

try changing it to bgcolor="none"

that should make it transparent

RoarinRow

Quote from: TechnoDragon on July 30, 2006, 03:25:09 PM
try changing it to bgcolor="none"

that should make it transparent


Thanks, but that made the background black.

Here's the code again:

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


<html>
<body bgcolor="#D3D3D3" 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 also add the default_stylesheet.css that came with the 'Advanced Poll'.  Maybe there's some conflict?

A:link      {text-decoration: none; color: #11116E;}
A:visited    {text-decoration: none; color: #11116E;}
A:hover      {font-style: normal; color: #000000; text-decoration: underline;}
BODY {font-family: Verdana; font-size: 10pt; SCROLLBAR-BASE-COLOR: #11116E; SCROLLBAR-ARROW-COLOR: #FFFFFF;}
TD {font-family: Verdana; color: #000000; font-size: 10pt;}
hr {color: #11116E; background-color: #11116E; height: 1px;}


I had fiddled with the HTML color codes in the style sheet as it is, and it didn't do anything either.   :o

Thanks!

SMF 2.0 RC3
TP 1.0 beta 5-1
Wordpress 3.0

akulion

For people interested in making SMF polls working with TP --> our top notch crack PHP coder Thurnok has devised a method to make it work...please read instructions here


DawnsWebDesigns

Since there's quite a few topics posted about this same feature...I'm a bit lost.  I wanted a recent poll block just like the recent topic block.  I did add some php code to a php block like I was told to do somewhere around here & it's worked but it leads to a specific post versus recent.  I would prefer it automatically updated with recent.  It's also showing the voting bars therefore knocking the table out of whack with the rest of the theme. :(

Thurnok

Go here to fix your bar lengths.  The block shows how to put a specific poll in the block, but the other two parts (2 seperate SSI hacks) allow you to fix the bar size, and make it possible to vote from the block itself.

You'll have to do quite a bit more to get a "recent poll" in a block.  But at least the above will take care of your extended bar issue...
Thurnok
The one, the only!

This website is proudly hosted on Crocweb Cloud Website Hosting.