Poll Module
Posted by arlo
January 17, 2005 12:27PM |
Registered: 20 years ago Posts: 868 |
I dont get this. Halve of the latests posts are not related to poll mod or am I missing something?!
Sergej
------------------------------------------
^AU^ Assassins United
[www.assassinsunited.com]
------------------------------------------
Sergej
------------------------------------------
^AU^ Assassins United
[www.assassinsunited.com]
------------------------------------------
January 19, 2005 11:05PM |
Registered: 19 years ago Posts: 666 |
Backbone Wrote:
-------------------------------------------------------
> - Your link to the .zip file seems to be broken.
> Does anyone else have it? And would you be so kind
> to share it with me? - I really want this thing to
> get up and run. (I can see the screenshots and
> download the poll.php of Portal's last message in
> this thread, but I cannot download it from his
> webspace
I believe at this time the servers of my web host were all down. Any zip's from the domain should work now.
-------------------------------------------
"Everything we see or seem, is but a dream within a dream." -Edgar Allan Poe
-------------------------------------------------------
> - Your link to the .zip file seems to be broken.
> Does anyone else have it? And would you be so kind
> to share it with me? - I really want this thing to
> get up and run. (I can see the screenshots and
> download the poll.php of Portal's last message in
> this thread, but I cannot download it from his
> webspace
I believe at this time the servers of my web host were all down. Any zip's from the domain should work now.
-------------------------------------------
"Everything we see or seem, is but a dream within a dream." -Edgar Allan Poe
Re: Undefined index and vars in poll module January 22, 2005 12:02AM |
Registered: 18 years ago Posts: 7 |
As a PHP newb, I leave full error reporting on, and running poll mod 0.2, I get a lot of "undefined index" warnings. So:
1) Is it common practice to ignore these warnings?
2) I got rid of many of them by replacing stuff like if( $_POST['blah'] ) with if( isset($_POST['blah']))... is that correct, or is there a different way to do that?
3) The only ones I couldn't get rid of were when creating a new poll - got undefined index for 'subject', 'body', 'thread', and 'parent_id' in post.php, from lines 218-221. I didn't feel comfortable modifying a main chunk of Phorum code, and didn't know how to fix this from within poll.php. Any suggestions?
Thanks very much!
1) Is it common practice to ignore these warnings?
2) I got rid of many of them by replacing stuff like if( $_POST['blah'] ) with if( isset($_POST['blah']))... is that correct, or is there a different way to do that?
3) The only ones I couldn't get rid of were when creating a new poll - got undefined index for 'subject', 'body', 'thread', and 'parent_id' in post.php, from lines 218-221. I didn't feel comfortable modifying a main chunk of Phorum code, and didn't know how to fix this from within poll.php. Any suggestions?
Thanks very much!
Re: Undefined index and vars in poll module January 22, 2005 12:08AM |
Registered: 18 years ago Posts: 7 |
Re: Undefined index and vars in poll module January 22, 2005 04:23AM |
Admin Registered: 20 years ago Posts: 9,240 |
> 1) Is it common practice to ignore these warnings?
no but you can easily miss them if you don't have error-reporting on
> 2) I got rid of many of them by replacing stuff like
> if( $_POST['blah'] ) with if(
> isset($_POST['blah']))... is that correct, or is
> there a different way to do that?
nearly correct. replace it with:
if( isset($_POST['blah']) && !empty($_POST['blah']))
(you need to check the content too, not only the existance.
Please post a corrected mod if you are finished with it.
Thomas Seifert
no but you can easily miss them if you don't have error-reporting on
> 2) I got rid of many of them by replacing stuff like
> if( $_POST['blah'] ) with if(
> isset($_POST['blah']))... is that correct, or is
> there a different way to do that?
nearly correct. replace it with:
if( isset($_POST['blah']) && !empty($_POST['blah']))
(you need to check the content too, not only the existance.
Please post a corrected mod if you are finished with it.
Thomas Seifert
Lang problem January 25, 2005 10:09AM |
Registered: 19 years ago Posts: 97 |
Re: Poll Module January 25, 2005 11:28AM |
Registered: 21 years ago Posts: 1,076 |
Re: Poll Module January 26, 2005 07:58AM |
Registered: 19 years ago Posts: 97 |
Re: Poll Module January 26, 2005 09:00AM |
Registered: 21 years ago Posts: 1,076 |
Re: Poll Module January 26, 2005 09:26AM |
Registered: 19 years ago Posts: 97 |
Sorry, only registered users may post in this forum.