Firefox PHP

Poll Module

Posted by arlo 
Re: Poll Module
January 17, 2005 12:27PM
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]
------------------------------------------
Re: Poll Module
January 19, 2005 11:05PM
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
Re: Undefined index and vars in poll module
January 22, 2005 12:02AM
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!
Re: Undefined index and vars in poll module
January 22, 2005 12:08AM
Oops - never mind on #3 - that was my own error, caused when I was trying to get rid of some of the other undefined vars. Still wondering about #1 and #2, though...
Re: Undefined index and vars in poll module
January 22, 2005 04:23AM
> 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
Lang problem
January 25, 2005 10:09AM
Don't work localization.

in poll.php

print_r($PHORUM['DATA']['LANG']['mod_poll'])

is empty!!!

where could be a problem. the mod is on, addintional field "mod_poll" i've created

please help
Re: Poll Module
January 25, 2005 11:28AM
Have you created the lang-file and re-enabled the module in admin?

---
-=[ Panu ]=-
Re: Poll Module
January 26, 2005 07:58AM
Of course - but i you russian language, so I created file russian.php and restart the module - module is work but lang file doesn't work (i so it because if i write not languages variables but words by myself everythung is work)
Re: Poll Module
January 26, 2005 09:00AM
if the name of your lang-file is the same as your phorums lang-file it should work.

Check web server error log if there's a problem with the lang-file bein broken or something?

---
-=[ Panu ]=-
Re: Poll Module
January 26, 2005 09:26AM
[forum.media-objektiv.com]

in log file there no errors
Sorry, only registered users may post in this forum.

Click here to login