ruebenwurzel
WebsiteBaker Org e.V.
Offline
Posts: 7660
|
 |
« Reply #50 on: June 04, 2008, 04:58:25 PM » |
|
Hello,
can you attach the index.php of your template?
Matthias
|
|
|
|
|
Logged
|
|
|
|
marathoner
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
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
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
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 
|
|
|
|
|
Logged
|
|
|
|
maxxis
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
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
Posts: 53
|
 |
« Reply #57 on: September 21, 2008, 12:52:45 AM » |
|
hi for to integrate the poll in my template I must paste <?php page_content(id_page);?> in index.php? thanks
|
|
|
|
|
Logged
|
|
|
|
Tomno399
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
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$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:$show_poll= array_key_exists ('show', $_REQUEST) ? $_REQUEST['show'] : "";
Bei Zeile 5 Line 5 ...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] $poll = "<center>".$poll_data['poll_stelling']."</center><br />" ;
Bleibt noch Zeile 42 - at least line 42 ..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
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
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 
|
|
|
|
|
Logged
|
|
|
|
|
|
ghost06
Offline
Posts: 53
|
 |
« Reply #63 on: September 24, 2008, 08:27:47 PM » |
|
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
|
|
|
|
|
|
ghost06
Offline
Posts: 53
|
 |
« Reply #65 on: September 25, 2008, 04:39:24 PM » |
|
 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: 519
|
 |
« 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 <?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
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 <?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 <?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: 519
|
 |
« 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 ... //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: 311
|
 |
« Reply #69 on: October 07, 2008, 07: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: 2077
|
 |
« Reply #70 on: October 07, 2008, 10:04:22 AM » |
|
Hi you can downlaod it from this pagergds erpe
|
|
|
|
« Last Edit: November 06, 2008, 05:21:55 PM by erpe »
|
Logged
|
|
|
|
babsy
Offline
Posts: 311
|
 |
« Reply #71 on: October 07, 2008, 10:22:49 AM » |
|
found it, works like a charm 
|
|
|
|
|
Logged
|
|
|
|
cookmaster
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
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
Posts: 7660
|
 |
« 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
|
|
|
|
|