Welcome, Guest. Please login or register.
Did you miss your activation email?
February 12, 2012, 12:48:19 PM

Login with username, password and session length
Search:     Advanced search
Interested in joining the WebsiteBaker team?
For more Information read here or on our new website.
149636 Posts in 21099 Topics by 7562 Members
Latest Member: ionline
* Home Help Search Login Register
Pages: 1 2 [3] 4   Go Down
Print
Author Topic: POLL Module  (Read 32758 times)
ruebenwurzel
WebsiteBaker Org e.V.

Offline Offline

Posts: 7661



WWW
« Reply #50 on: June 04, 2008, 04:58:25 PM »

Hello,

can you attach the index.php of your template?

Matthias
Logged
marathoner

Offline Offline

Posts: 495


« Reply #51 on: June 05, 2008, 12:10:08 AM »

I'm just curious...are you really using XML namespace? If not, why declare it?
Logged
maxxis

Offline Offline

Posts: 30


« Reply #52 on: June 05, 2008, 11:38:58 AM »

index.php attached.

Template was built from scratch and some heavy modification was added to enable some Adobe Spry assets.

As for XML etc in php im really new to this. I normally only use XML with flash projects.
Logged
paxil

Offline Offline

Posts: 5


« Reply #53 on: June 09, 2008, 11:27:41 AM »

can the poll be setup on an account basis?,..for eg. the registered users can only vote once for any poll. Ip based can have one user making multiple votes because the ips by our isp is not static.

cheers
Pax
Logged
maxxis

Offline Offline

Posts: 30


« Reply #54 on: June 10, 2008, 09:31:50 AM »

Vote once and multiple voting is supported.

Could anybody see anything on the template I posted?

Site is launching on Friday and i need this poll working Sad
Logged
maxxis

Offline Offline

Posts: 30


« Reply #55 on: June 10, 2008, 01:29:12 PM »

Problem sorted

Wasnt the poll at all causing it. Had the Ajax poll installed. Sorry about the confusion.
Logged
Dreams

Offline Offline

Posts: 16


« Reply #56 on: July 11, 2008, 11:20:00 PM »

Please tell me which is the latest version of this poll and if the bugs were sorted?
Id like to use it on a pagent where people would vote on their favorite person, but dont want to install the wrong version.
Thanks
Logged
ghost06

Offline Offline

Posts: 53


« Reply #57 on: September 21, 2008, 12:52:45 AM »

hi

for to integrate the poll in my template I must paste

Code:
<?php page_content(id_page);?>

in index.php? thanks
Logged
Tomno399

Offline Offline

Posts: 27


« Reply #58 on: September 21, 2008, 11:07:37 AM »

Hello

I use wb 2.7 and tried the poll module v1.1 from this forum. Sorry but this is the result:

    Notice: Undefined index: show in L:\xampp\htdocs\wb\modules\polls\view.php on line 3

    Notice: Undefined index: poll in L:\xampp\htdocs\wb\modules\polls\view.php on line 5

    Notice: Undefined index: vote in L:\xampp\htdocs\wb\modules\polls\view.php on line 42

    Notice: Undefined variable: poll in L:\xampp\htdocs\wb\modules\polls\view.php on line 45

    Notice: Use of undefined constant PHP_SELF - assumed 'PHP_SELF' in L:\xampp\htdocs\wb\modules\polls\view.php on line 54

What is wrong with that modul and how can I repair it? Sorry for my english my nature language is german.

Thank you Thomas
« Last Edit: September 21, 2008, 11:10:13 AM by Tomno399 » Logged
aldus

Offline Offline

Posts: 1238


« Reply #59 on: September 21, 2008, 11:52:17 AM »

Hello

I use wb 2.7 and tried the poll module v1.1 from this forum. Sorry but this is the result:

    Notice: Undefined index: show in L:\xampp\htdocs\wb\modules\polls\view.php on line 3

    Notice: Undefined index: poll in L:\xampp\htdocs\wb\modules\polls\view.php on line 5

    Notice: Undefined index: vote in L:\xampp\htdocs\wb\modules\polls\view.php on line 42

    Notice: Undefined variable: poll in L:\xampp\htdocs\wb\modules\polls\view.php on line 45

    Notice: Use of undefined constant PHP_SELF - assumed 'PHP_SELF' in L:\xampp\htdocs\wb\modules\polls\view.php on line 54

What is wrong with that modul and how can I repair it? Sorry for my english my nature language is german.

Thank you Thomas

Ok - File: view.php, Zeile 54 - Da muss PHP_SELF in Anführungszeichen ...
Missing " before and after PHP_SELF
Code:
$poll .= "<center><a href=\"".$_SERVER['PHP_SELF']."?show=1\">".$txt_results."</a></center>";

Zeile 3 würde ich wir folgt umforumulieren:
Line 3 could be formed like:
Code:
$show_poll= array_key_exists ('show', $_REQUEST) ? $_REQUEST['show'] : "";

Bei Zeile 5
Line 5 ...
Code:
if ( ( array_key_exists('poll', $_POST) ) AND ($_POST['poll']) ) { 

Bei Zeile 45 muss eigentlich nur der Punkt vor dem "=" raus:
[/i]Line 45 - delete the dot before the =[/i]
Code:
$poll = "<center>".$poll_data['poll_stelling']."</center><br />" ;

Bleibt noch Zeile 42 -
at least line 42 ..
Code:
if ( (array_key_exists('vote', $_POST)  && (!$_POST['vote'] ) && (!$datapoll) && (!$show_poll))

Dann sollten die Errors and Warnings verschwunden sein ...
Should work and remove the warnings. You can also set the PHP-Error handling inside the
options to "none" to get rid of the warnings, but that is imho a bad idea.


Regards
Aldus
Logged
Tomno399

Offline Offline

Posts: 27


« Reply #60 on: September 24, 2008, 12:20:08 PM »

Hi Aldus,

first I say thank you for your help (even if it is a little bit silly that we talk in english, but all others would be disrespectfully to the other users here in this thread). I want to answer, that all errors are repaired without the error in line 42. But I can live with it hoping that the votes will be right count.

Regards
Thomas
Logged
ghost06

Offline Offline

Posts: 53


« Reply #61 on: September 24, 2008, 04:21:11 PM »

hi

for to integrate the poll in  my template I must paste
in index.php???

 thanks


sorry for my english angry
Logged
Tomno399

Offline Offline

Posts: 27


« Reply #62 on: September 24, 2008, 07:14:41 PM »

Sorry ghost, but for basically informations (like your question) you should first read the help:

http://help.websitebaker.org/pages/en/basic-docu/working-with-wb/add-ons/modules.php

Regards
Thomas
Logged
ghost06

Offline Offline

Posts: 53


« Reply #63 on: September 24, 2008, 08:27:47 PM »

Sorry ghost, but for basically informations (like your question) you should first read the help:

http://help.websitebaker.org/pages/en/basic-docu/working-with-wb/add-ons/modules.php

Regards
Thomas

tnx Thomas,
I have installed the module and works perfectly in a page.
but I want to make it to appear in my template ones in every page, thus



 wink
Logged
Tomno399

Offline Offline

Posts: 27


« Reply #64 on: September 25, 2008, 02:07:40 PM »

ghost, you can add a new "poll" section to every page: http://help.websitebaker.org/pages/en/basic-docu/working-with-wb/page-administration/manage-sections.php

to do it in the template site is not a wb problem, therefore you should learn html and php or ask in those forums.

bye thomas
Logged
ghost06

Offline Offline

Posts: 53


« Reply #65 on: September 25, 2008, 04:39:24 PM »

ghost, you can add a new "poll" section to every page: http://help.websitebaker.org/pages/en/basic-docu/working-with-wb/page-administration/manage-sections.php

to do it in the template site is not a wb problem, therefore you should learn html and php or ask in those forums.

bye thomas

 grin

had tried this it, but it is not this that serves me…

and in order to make to see the same poll in all the pages, modifying my template ones?

does not exist a way?

tnx wink
Logged
bupaje

Offline Offline

Posts: 519


WWW
« Reply #66 on: September 27, 2008, 12:43:53 AM »

Yes, if you want to it in the index.php it will show on all pages. I think you can create a hidden page for your poll so you don't have to edit the index.php template all the time to change the polls. Use the blank template and put your code into a hidden, then do something like this


Code:
<?php include("../pages/your_poll_page_name.php"); ?>


I have a hidden group of pages in WB I use like this for stuff I insert.
« Last Edit: September 27, 2008, 08:14:50 AM by bupaje » Logged

My Blog, My Site
ghost06

Offline Offline

Posts: 53


« Reply #67 on: September 27, 2008, 01:54:03 PM »

Yes, if you want to it in the index.php it will show on all pages. I think you can create a hidden page for your poll so you don't have to edit the index.php template all the time to change the polls. Use the blank template and put your code into a hidden, then do something like this


Code:
<?php include("../pages/your_poll_page_name.php"); ?>


I have a hidden group of pages in WB I use like this for stuff I insert.

thus it does not work…

I have resolved thus:
I have created a hidden page for my poll and have put this code in the index.php of my template ones having indicated the field id section

Code:
<?php
// Change to the number you need!
$section_id 60;

// Get requested section for requested page
$query_sections $database->query("SELECT section_id,module FROM ".TABLE_PREFIX."sections WHERE section_id = '$section_id' ");

// Make sure there is one
if($query_sections->numRows() > 0) {
    
$section $query_sections->fetchRow();
    
$section_id $section['section_id'];
    
$module $section['module'];
    require(
WB_PATH.'/modules/'.$module.'/view.php');

?>

 grin
Logged
bupaje

Offline Offline

Posts: 519


WWW
« Reply #68 on: September 27, 2008, 02:16:40 PM »

Hmmm... something wrong with the ../pages part I guess. I have some calls on my site now like this ...

Code:
//full path
include("http://www.mysite.com/pages/mypage.php");

and


//this php file is in the same folder as the site template
<?php include("banners.php"); ?>

and also

<?php echo TEMPLATE_DIR?>/myfile.php">


maybe these will help though it seems you have it figured out. Smiley
Logged

My Blog, My Site
babsy

Offline Offline

Posts: 311


« Reply #69 on: October 07, 2008, 07:11:39 AM »

 undecided i can´t find the download of this poll?.... properbly right in front of me, but where is it Smiley??
Logged
erpe

Offline Offline

Posts: 2077


WWW
« Reply #70 on: October 07, 2008, 10:04:22 AM »

Hi

you can downlaod it from this page

rgds

erpe
« Last Edit: November 06, 2008, 05:21:55 PM by erpe » Logged

babsy

Offline Offline

Posts: 311


« Reply #71 on: October 07, 2008, 10:22:49 AM »

found it, works like a charm Smiley
Logged
cookmaster

Offline Offline

Posts: 6


« Reply #72 on: December 05, 2008, 02:36:57 PM »

Hi Guys,

I love this module but I found and unexpected result: If I have more than one poll on a page, then - after voting for the first one, I cannot vote for any others.

Is there a work around?

cheers
Andreas
Logged
abidan

Offline Offline

Posts: 102


« Reply #73 on: February 27, 2009, 11:32:33 AM »

Hi i am using website baker 2.7 and get the following on polls module does anyone have any ideas please?

Notice: Undefined index: show in /home/www/tjbodyrocks.awardspace.co.uk/modules/polls/view.php on line 5

Notice: Undefined index: poll in /home/www/tjbodyrocks.awardspace.co.uk/modules/polls/view.php on line 9

Notice: Undefined index: vote in /home/www/tjbodyrocks.awardspace.co.uk/modules/polls/view.php on line 83

Notice: Undefined variable: results in /home/www/tjbodyrocks.awardspace.co.uk/modules/polls/view.php on line 123

Thanks in advance
Logged
ruebenwurzel
WebsiteBaker Org e.V.

Offline Offline

Posts: 7661



WWW
« Reply #74 on: February 27, 2009, 02:20:45 PM »

Hello,

If you set your ErrorReporting to E_NONE this messages dissapear. This are only notices that the modul developper has forgot to define indexes and variables. To get rid of the messages even with ErrorReporting E_ALL you have to edit the module files and define the indexes and variables.

Matthias
Logged
Pages: 1 2 [3] 4   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!