i need the POLL block for my site
if anybody have it...
please tell me where is for download it
Thanks O0
Are you running SMF? or TP? Where would you like it? There have been quite a few posts on how to put up a poll in a TP block. I've also put up some code to call the poll from an external page using the SSI.php. Take a search and you'll find all the info you need.
im running SMF with the Tiny Portal
ok thanks...!!!!
i will like to put it on the TP
8)
could somebody can post the instruccions for put a POLL
in the BLOCKS of my site...
please...
im using TP V.0.86 and SMF 1.1 RC2
Regards
Try it: http://www.tinyportal.net/smf/index.php?topic=3752.0;all
Hope it's OK to help you :)
i dont understand too much, about ssi.php
i only put
ssi_showPoll($topic);
on the block, and thats it???
I like the way that works, but is there a possibility of maybe creating a "poll" block for tp?
The problem with a poll block is that it only shows the poll if you haven't voted. If you vote, the poll does not appear if I remember correctly.
Here is a nice little php Dynamic Poll script, no database required - has Admin Panel - to create and Achieve polls..and you can turn off IP's so it shows and shows, until you achieve it..pretty neat I use it some.. you could add it to a php block, Article also possibly. get it here (http://www.cj-design.com/products/free_downloads/php_scripts/cjdynamicpoll)
Quote from: crip on April 19, 2006, 08:13:44 PM
Here is a nice little php Dynamic Poll script, no database required - has Admin Panel - to create and Achieve polls..and you can turn off IP's so it shows and shows, until you achieve it..pretty neat I use it some.. you could add it to a php block, Article also possibly. get it here (http://www.cj-design.com/products/free_downloads/php_scripts/cjdynamicpoll)
I have this working (kinda) at my site...however, is there a way to make it open within the block (either php or article (though i don't use articles...rather use the php block)). you can check it at my site...it is the right hand side third block down...Just so you know I am trying to use this poll from another web url so Ican cetralize it for other sites.
I downloaded DynamicPoll and had no problem setting it up, but I'm having problems when trying to get it to show, either on the right side or frontpage. I tried to use a php block and inserted:
<?
include("dynamicpoll/poll.php");
?>
as it was suggested, but I keep getting a parsing include error. I'm sure that this is a simple issue of me inserting the wrong code...
Can anyone shed some light on this?
(I've already gone ahead and created a number of polls that are waiting in the queue)
Deacon
you cant put the "<?" and ">"...
just include("dynamicpoll/poll.php");
Thanks. Using this I can get it to display as a Frontpage block. BUt now when I navigate to the next poll, the poll show up in it's own browser page. THe include works for the first poll but then successive polls aren't contained in the block. THey go off on their own.
Deacon
i had the same issue...I wanted the polls to only show the results and stay in the block...but when someone votes it takes them off-site
I went ahead and emailed James about it to see if we can't get it resolved....
Deacon
for that my friends, only if you use an IFRAME i guess...
Quote from: WeBrain on April 27, 2006, 06:55:13 PM
for that my friends, only if you use an IFRAME i guess...
i thought about doing that...but i would really like to keep from doing that.
Quote from: Deacon on April 27, 2006, 05:05:16 PM
I went ahead and emailed James about it to see if we can't get it resolved....
Deacon
please let us know the results of that email.
Will do. Actually, I have a similar type of function running in a Xoops site where I insert an iframe reference to an php page:
<?
include("../../mainfile.php");
include($xoopsConfig['root_path']."header.php");
// url opened
$urladdress=rawurldecode($urladdress);
include($xoopsConfig['root_path']."header.php");
OpenTable();
echo "<iframe SRC=\"http://www.mysite.com/acars/pilot_roster.php\" WIDTH=\"100%\" HEIGHT=\"500\" FRAMESPACING=0 FRAMEBORDER=no BORDER=0 SCROLLING=auto></iframe>";
CloseTable();
include($xoopsConfig['root_path']."footer.php");
die;
?>
Now there are also links in the pilot_roster.php which open up in the block (iframe, I guess). SUppose there's a little snippet that would work here that's similar to this one? Obviously I'm not a php guru, but I do understand enough to be dangerous!! :2funny:
the funny part is the include for the poll system works perfectly in a right or left block...it's just if someone votes...if it could only do like a lot of polls on other sites and just show the results after pressing vote it would be perfect!
Now this site also has a decent php poll, which may work like ya'll want it to:
Advanced Poll 2.0.4
Advanced Poll is a polling system with powerful administration tool. It features: multiple polls, templates, unlimited options, multi-language support, IP-Logging, IP-Locking, cookie support, comment feature, vote expire feature, random poll support and more. Supports textfile and mySQL database.
Demo (http://proxy2.de/poll/index.php)
Quote from: crip on April 27, 2006, 10:10:50 PM
Now this site also has a decent php poll, which may work like ya'll want it to:
Advanced Poll 2.0.4
Advanced Poll is a polling system with powerful administration tool. It features: multiple polls, templates, unlimited options, multi-language support, IP-Logging, IP-Locking, cookie support, comment feature, vote expire feature, random poll support and more. Supports textfile and mySQL database.
Demo (http://proxy2.de/poll/index.php)
so where do i get it?
Follow the links on the DEMO site ;)
http://proxy2.de/poll/index.php
Look to the left
Quote from: G6 on April 27, 2006, 10:48:46 PM
Follow the links on the DEMO site ;)
http://proxy2.de/poll/index.php
Look to the left
LOL...i found it while i was waiting for your reply...i'll give this a shot later today and let you know how it worked!
i figured ya'll go to the home page..Lmao.. ;D
Ok...I give up...the first poll wouldn't stay in the forum...the new one just outright refuses to cooperate with smf/tp
Forget it...i'm done! >:(
Found another Poll script if you don't mind .CGI / perl ..?
see it here:
http://www.fuzzymonkey.net/software/poll/
I have a zip with everything in it )
Give it a try. ;)
I downloaded it, but is the zip file you have further refined from the zip I got from them?
Deacon
The advance poll one will work fine in a block.
You just need to create php file with the poll you want shown (using the code snippet it gives you), then in a php block, call that file in an iframe.
Works fine for me :)
Quote from: Omniverse on April 29, 2006, 01:51:54 AM
The advance poll one will work fine in a block.
You just need to create php file with the poll you want shown (using the code snippet it gives you), then in a php block, call that file in an iframe.
Works fine for me :)
Could you show me an example of the php file?
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.
I see it fine in your site
Nice code, Omniverse :up:
that worked! i tell you the people here are beyond amazing most of the time!
This is also a kind of nice mini poll : http://www.bravenet.com/webtools/minipoll/index.php
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
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?
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.
can't you just call the style.css then use teh windowbg class?
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?
leave out this info in the body tag
bgcolor="CCCCCC"
and it should pick up the theme css color
try it and see
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. ;)
try changing it to bgcolor="none"
that should make it transparent
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!
For people interested in making SMF polls working with TP --> our top notch crack PHP coder Thurnok (http://www.tinyportal.net/smf/index.php?action=profile;u=7091) has devised a method to make it work...please read instructions here (http://www.tinyportal.net/smf/index.php?topic=5679.msg65481#msg65481)
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. :(
Go here to fix your bar lengths (http://www.tinyportal.net/smf/index.php?topic=9869.0). 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...