Home
Download
Add-ons
Help
Forum
Organisation
Project
Welcome,
Guest
. Please
login
or
register
.
March 20, 2010, 01:39:17 AM
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Search:
Advanced search
Wollen Sie dem Website Baker Team beitreten?
Nähere Informationen finden Sie unter
hier
und auf unserer
neuen Webseite
.
110502
Posts in
15959
Topics by
9305
Members
Latest Member:
gomatox
WebsiteBaker Community Forum
English
Modules
(Moderators:
Argos
,
BerndJM
)
POLL Module
Pages:
1
2
[
3
]
4
Author
Topic: POLL Module (Read 26453 times)
ruebenwurzel
Leaders Team
Offline
Posts: 7211
Keep on Rockin
Re: POLL Module
«
Reply #50 on:
June 04, 2008, 05:58:25 PM »
Hello,
can you attach the index.php of your template?
Matthias
Logged
You search for help, please look here:
Help-Page
You search for Modules, Templates or Languages, please look here:
Addons-Page
marathoner
Offline
Posts: 491
Re: POLL Module
«
Reply #51 on:
June 05, 2008, 01:10:08 AM »
I'm just curious...are you really using XML namespace? If not, why declare it?
Logged
maxxis
Offline
Posts: 30
Re: POLL Module
«
Reply #52 on:
June 05, 2008, 12:38:58 PM »
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
Posts: 5
Re: POLL Module
«
Reply #53 on:
June 09, 2008, 12:27:41 PM »
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
Posts: 30
Re: POLL Module
«
Reply #54 on:
June 10, 2008, 10: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
Logged
maxxis
Offline
Posts: 30
Re: POLL Module
«
Reply #55 on:
June 10, 2008, 02:29:12 PM »
Problem sorted
Wasnt the poll at all causing it. Had the Ajax poll installed. Sorry about the confusion.
Logged
Dreams
Offline
Posts: 16
Re: POLL Module
«
Reply #56 on:
July 12, 2008, 12:20:00 AM »
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
Posts: 53
Re: POLL Module
«
Reply #57 on:
September 21, 2008, 01: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
Posts: 23
Re: POLL Module
«
Reply #58 on:
September 21, 2008, 12:07:37 PM »
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, 12:10:13 PM by Tomno399
»
Logged
aldus
Addons Team
Offline
Posts: 1018
Re: POLL Module
«
Reply #59 on:
September 21, 2008, 12:52:17 PM »
Quote from: Tomno399 on September 21, 2008, 12:07:37 PM
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
57 65 62 73 69 74 65 20 42 61 6B 65 72 20 72 6F 63 6B 73 21
Tomno399
Offline
Posts: 23
Re: POLL Module
«
Reply #60 on:
September 24, 2008, 01: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
Posts: 53
Re: POLL Module
«
Reply #61 on:
September 24, 2008, 05:21:11 PM »
hi
for to integrate the poll in my template I must paste
in index.php???
thanks
sorry for my english
Logged
Tomno399
Offline
Posts: 23
Re: POLL Module
«
Reply #62 on:
September 24, 2008, 08: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
Posts: 53
Re: POLL Module
«
Reply #63 on:
September 24, 2008, 09:27:47 PM »
Quote from: Tomno399 on September 24, 2008, 08: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
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
Logged
Tomno399
Offline
Posts: 23
Re: POLL Module
«
Reply #64 on:
September 25, 2008, 03: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
Posts: 53
Re: POLL Module
«
Reply #65 on:
September 25, 2008, 05:39:24 PM »
Quote from: Tomno399 on September 25, 2008, 03: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
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
Logged
bupaje
Offline
Posts: 473
Re: POLL Module
«
Reply #66 on:
September 27, 2008, 01: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, 09:14:50 AM by bupaje
»
Logged
My Blog
,
My Site
ghost06
Offline
Posts: 53
Re: POLL Module
«
Reply #67 on:
September 27, 2008, 02:54:03 PM »
Quote from: bupaje on September 27, 2008, 01: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.
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'
);
}
?>
Logged
bupaje
Offline
Posts: 473
Re: POLL Module
«
Reply #68 on:
September 27, 2008, 03: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.
Logged
My Blog
,
My Site
babsy
Offline
Posts: 299
Re: POLL Module
«
Reply #69 on:
October 07, 2008, 08:11:39 AM »
i can´t find the download of this poll?.... properbly right in front of me, but where is it
??
Logged
erpe
Offline
Posts: 1738
Re: POLL Module
«
Reply #70 on:
October 07, 2008, 11: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
Search on
All Modules And Snippets Project (AMASP)
Be part of the
Tutorials-Project
babsy
Offline
Posts: 299
Re: POLL Module
«
Reply #71 on:
October 07, 2008, 11:22:49 AM »
found it, works like a charm
Logged
cookmaster
Offline
Posts: 6
Re: POLL Module
«
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
Posts: 102
Re: POLL Module
«
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
Leaders Team
Offline
Posts: 7211
Keep on Rockin
Re: POLL Module
«
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
You search for help, please look here:
Help-Page
You search for Modules, Templates or Languages, please look here:
Addons-Page
Pages:
1
2
[
3
]
4
Jump to:
Please select a destination:
-----------------------------
General
-----------------------------
=> General Announcements
=> Security Announcements
=> Documentation
=> Guest Area & Off-Topic
-----------------------------
English
-----------------------------
=> Help & Support
=> Modules
=> Droplets (PHP code for use with Droplet module) & Snippets (raw PHP code)
=> jQuery
=> Templates, Menus & Design
=> WebsiteBaker Language Files
=> WebsiteBaker 2.x discussion
=> WebsiteBaker 3
=> Archive (posts up to 2007)
-----------------------------
Deutsch (German)
-----------------------------
=> Ankündigungen
=> Hilfe/Support
=> Module & Snippets
=> Templates & Design
=> Tutorials
=> jQuery
=> Diskussion über WB
=> Off-Topic
=> Archiv für Themen bis 2007
-----------------------------
Nederlands (Dutch)
-----------------------------
=> Aankondigingen
=> Hulp & Ondersteuning
=> Niet-Terzake (Off Topic)
-----------------------------
Francais (French)
-----------------------------
=> Help/Support
-----------------------------
Italiano (Italian)
-----------------------------
=> Help/Support
Loading...