TinyPortal

Development => Block Codes => Topic started by: Crip on August 17, 2006, 11:49:33 PM

Title: wp-polls
Post by: Crip on August 17, 2006, 11:49:33 PM
This is a Wordpress Poll pug-in,
if someone good with code can get this working it would be a
real nice [phpbox poll snippet]..I looked at it but noway for me..
I wouldn't know where to start..lol..
heres a demo of it working: Poll (http://www.lesterchan.net/blogs/) it's on the rightside panel..

I will attach the zip and the readme.html which is also in the zip .. if we get this working on TP and our poll issues will be over. :) .. give it a try..I double dog dare ya.  >:D

crip

Title: Re: wp-polls
Post by: IchBin on August 18, 2006, 03:02:54 AM
After taking a short look at it, I think it may be pretty difficult. Well, it would for me anyway. It stores all the data in the wordpress tables in the database. So you have to convert it to work on TP/SMF adding the necessary tables. It could be done, but nothing I have time to explore right now.
Title: Re: wp-polls
Post by: SOcRatEs on August 18, 2006, 10:11:27 AM
You might like this one.
Demo (http://www.my-yardsale.com/poll/quiz.html)



Right click this link (http://www.my-yardsale.com/poll/quiz.html) and save for modded version


Original files Zip files (http://www.my-yardsale.com/files/quiz.zip)
Title: Re: wp-polls
Post by: Crip on August 18, 2006, 10:20:55 AM
Is it a Poll or a questionnaire?
Title: Re: wp-polls
Post by: SOcRatEs on August 18, 2006, 10:47:39 AM
It has the potential as quiz, survey or a questionaire, very flexible,
no data base stuff yet, I'll have that in a day or two.
Title: Re: wp-polls
Post by: Crip on August 18, 2006, 12:04:12 PM
Ok.. cool 8)
Title: Re: wp-polls
Post by: akulion on August 18, 2006, 01:14:48 PM
hey u know the guys down at mkportal got SMF polls to work perfectly with mkp

u can select which poll from a drop down list in the mkportal admin panel

maybe someone should ask them down there and they could help out?

just a suggestion

Title: Re: wp-polls
Post by: SOcRatEs on August 19, 2006, 01:53:26 AM
OK!! not my script just my creative use of it.. :P
Got some thing that works just like your link crip.
Demo (http://www.my-yardsale.com/) on right side
I just discovered, this script only allows for one polling question. :(

User install level= intermediate
During install, you should be able to intergrate poll into existing SMF database by using the db info.
It uses PHP & mySql and will create the need tables. I uploaded files to server, created a database, and browsed to install.php.
Then followed instructions to create the poll. I created a php block, SMF/TP admin panel, on right side and pasted only part of the code
generated by poll script.
example:
<div class="" style="position:relative; float:left; border:px solid #;
background:#; padding:4px; font-family:'css'; color:#;" align="left" valign="top">
<?php
if (!isset($_COOKIE['voted1'])){
include(
'poll_entry1.inc.php'); }
else {
include(
'poll_results1.inc.php'); }
?>
</div>


What I copy/pasted into PHP right side block:
if (!isset($_COOKIE['voted1'])){
include('poll_entry1.inc.php'); }
else {
include('poll_results1.inc.php'); }

One thing missing from instruction was how to create new polls, browsing to create.php re-starts it.
Title: Re: wp-polls
Post by: softcore on October 21, 2007, 11:42:41 AM
Hi, would be possible to someone re-upload this script for us?

I found this thread searching at "Block Code Snippets Index" topic.