Poll Module
Posted by arlo
Re: Poll Module February 07, 2006 05:46AM |
Registered: 20 years ago Posts: 43 |
Re: Poll Module February 07, 2006 01:39PM |
Registered: 20 years ago Posts: 666 |
Quote
M@AATW
Anyone...? :-(
Sorry... I'm not a programmer. I know very little about php, I'm still struggling with it.
Is it true, the poll isn't going to work for 5.1.x?
-------------------------------------------
"Everything we see or seem, is but a dream within a dream." -Edgar Allan Poe
Re: Poll Module February 07, 2006 05:41PM |
Registered: 20 years ago Posts: 43 |
Yes that is unfortunatelly true- temlates from version < 5.1 are uncompatible with tha current 5.1.7. For details you can see my trouble in this topic.
[www.phorum.org]
[www.phorum.org]
Re: Poll Module February 10, 2006 04:46AM |
Registered: 19 years ago Posts: 278 |
Got it!!!
It's actually really simple to fix.
Look at poll.php, there are two example of PHORUM_POST_URL as the page type in there. This page type isn't handled any more because of the new template system (posting_messageform). Just chage those two examples to PHORUM_POSTING_URL and it will work!
It's actually really simple to fix.
Look at poll.php, there are two example of PHORUM_POST_URL as the page type in there. This page type isn't handled any more because of the new template system (posting_messageform). Just chage those two examples to PHORUM_POSTING_URL and it will work!
Re: Poll Module February 10, 2006 07:00AM |
Registered: 20 years ago Posts: 126 |
Yeap
replacing all occurencies of PHORUM_POST_URL with PHORUM_POSTING_URL in the poll.php file
and adding
{IF POLLFORM}{POLLFORM}{/IF}
to the posting_message.tpl file instead of to the post_form.tpl file, fixes the problem (makes this module Phorum 5.1.8 compatible).
Thanks
--
Amilcar Lucas
www.kdevelop.org webmaster
Edited 1 time(s). Last edit at 02/14/2006 12:41PM by amilcarpt.
replacing all occurencies of PHORUM_POST_URL with PHORUM_POSTING_URL in the poll.php file
and adding
{IF POLLFORM}{POLLFORM}{/IF}
to the posting_message.tpl file instead of to the post_form.tpl file, fixes the problem (makes this module Phorum 5.1.8 compatible).
Thanks
--
Amilcar Lucas
www.kdevelop.org webmaster
Edited 1 time(s). Last edit at 02/14/2006 12:41PM by amilcarpt.
Re: Poll Module February 20, 2006 02:44PM |
Registered: 19 years ago Posts: 21 |
Re: Poll Module March 03, 2006 04:17PM |
Registered: 18 years ago Posts: 8 |
1. There are Problems using this mod under php5 whith phorum 5.1.8 I got the followed errors.
Fatal error: Cannot use string offset as an array in C:\www\phorum5\mods\poll\poll.php on line 166 when viewing the result, or
Fatal error: Cannot use string offset as an array in C:\www\phorum5\mods\poll\poll.php on line 253 when vote a second time.
The mod works fine whis php 4.x and phorum 5.1.8 after fixing the URL to POSTING
2. I can not unzip the newest attachment poll.zip [www.phorum.org]
I try ist whis windows onw unzip, winzip and winace :-(
Is there anyone who can post this file again?
THX
Stefan
Edited 2 time(s). Last edit at 03/03/2006 04:23PM by wunschkinder.net.
Fatal error: Cannot use string offset as an array in C:\www\phorum5\mods\poll\poll.php on line 166 when viewing the result, or
Fatal error: Cannot use string offset as an array in C:\www\phorum5\mods\poll\poll.php on line 253 when vote a second time.
The mod works fine whis php 4.x and phorum 5.1.8 after fixing the URL to POSTING
2. I can not unzip the newest attachment poll.zip [www.phorum.org]
I try ist whis windows onw unzip, winzip and winace :-(
Is there anyone who can post this file again?
THX
Stefan
Edited 2 time(s). Last edit at 03/03/2006 04:23PM by wunschkinder.net.
Re: Poll Module March 04, 2006 08:54AM |
Registered: 20 years ago Posts: 126 |
Re: Poll Module March 04, 2006 09:47AM |
Registered: 18 years ago Posts: 8 |
Re: Poll Module March 04, 2006 11:33AM |
Registered: 20 years ago Posts: 126 |
Sorry, only registered users may post in this forum.