Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
How to create a poll like this?
Old 12-13-2010, 08:35 PM How to create a poll like this?
Junior Talker

Posts: 1
Trades: 0
I am currently using Wordpress on my website and I'm trying to create a poll on my website that is just like the poll here.

It's a very simple randomized poll. Basically it takes any 2 choices from a large pool of choices and puts them up against each other in a poll. After an answer is selected it goes straight to the next 2 random choices. While this is happening it is keeping track of which answer choice gets selected most often. Is there anything you guys can suggest to help me out with this? I'm pretty new to this.

Another slightly more complex example is Famousr which includes pictures. (I would prefer this but any information would be great).
musichunch is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 12-15-2010, 12:04 AM Re: How to create a poll like this?
Banned

Posts: 143
Name: maheshadodis
Location: USA
Trades: 0
Hi,
Just simple install poll module and customize as you wish
maheshadodis is offline
Reply With Quote
View Public Profile
 
Old 12-20-2010, 12:44 AM Re: How to create a poll like this?
Html Web Design's Avatar
Experienced Talker

Posts: 31
Name: WP Themes
Location: Nagpur
Trades: 0
Execute these queries on your database:
Code:
<?php 
# Table structure for table `poll_check` 

CREATE TABLE `poll_check` ( 
  `pollid` int(11) NOT NULL default '0', 
  `ip` varchar(20) NOT NULL default '', 
  `time` varchar(14) NOT NULL default '' 
) TYPE=MyISAM COMMENT=''; 

# ----------------------------------------- 

# Table structure for table `poll_data` 

CREATE TABLE `poll_data` ( 
  `pollid` int(11) NOT NULL default '0', 
  `polltext` varchar(50) NOT NULL default '', 
  `votecount` int(11) NOT NULL default '0', 
  `voteid` int(11) NOT NULL default '0', 
  `status` varchar(6) default NULL 
) TYPE=MyISAM COMMENT=''; 

# ----------------------------------------- 

# Table structure for table `poll_desc` 

CREATE TABLE `poll_desc` ( 
  `pollid` int(11) NOT NULL default '0', 
  `polltitle` varchar(100) NOT NULL default '', 
  `timestamp` datetime NOT NULL default '0000-00-00 00:00:00', 
  `votecount` mediumint(9) NOT NULL default '0', 
  `STATUS` varchar(6) default NULL, 
  PRIMARY KEY (`pollid`) 
) TYPE=MyISAM COMMENT=''; 

# ----------------------------------------- 
?>
Paste this code on page where you wish poll to appear:
Code:
<?php 

include_once ("includes/miniPoll.class.php"); 

$test = new miniPoll; 

$test->pollForm(); 

?>

Paste this code on page where you wish poll results to appear:
Code:
<?php 

include_once ("includes/miniPoll.class.php"); 

$test = new miniPoll; 

if (isset($_GET['poll']) && is_numeric($_GET['pollid'])) { 
    $pollid = $_GET['pollid']; 

    if (isset($_GET['voteid']) && is_numeric($_GET['voteid'])) { 
        $voteid = $_GET['voteid']; 
        $test->processPoll($pollid, $voteid); 
    } 

} 
if (isset($_GET['pollid'])) { 
    $pollid = $_GET['pollid']; 
    $test->pollResults($pollid); 
} 

?>
Paste this code on poll admin page:
Code:
<?php 

include_once ("includes/miniPollAdmin.class.php"); 

$test = new miniPollAdmin; 

$test->newPollForm(); 

if (isset($_GET['opt'])) { 
    $opt = $_GET['opt']; 
    $pollid = $_GET['pollid']; 
    if ($opt == 'activate') { 
        $test->activatePoll($pollid); 
    } 
    if ($opt == 'delete') { 
        $test->deletePoll($pollid); 
    } 

} 

echo "<br />"; 
if (isset($_GET['q'])) { 
    $pollname = $_GET['pollname']; 
    $q = $_GET['q']; 
    $test->createPoll($pollname, $q); 
} 
$test->listPolls(); 

?>
Set up these parameters in miniPoll.class.php:
Code:
<?php $this->results_page = "test_poll_results.php"; ?>
__________________

Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE
Html Web Design is offline
Reply With Quote
View Public Profile Visit Html Web Design's homepage!
 
Old 12-20-2010, 06:03 AM Re: How to create a poll like this?
Banned

Posts: 3
Name: smithcruise23
Trades: 0
Google page is choosing the White background and at the time of starting of the search that is right because the Google logo is transparent and links have shadows. I anticipate Google will add a no-image option. It is because the company trends to allow for choice rather than lock-in when it comes to user interface and features.
smithcruise23 is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to How to create a poll like this?
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.68369 seconds with 12 queries