Firefox PHP

Topic Poll Module

Posted by Maurice Makaay 
Re: Topic Poll Module (only for Phorum 5.1.16 and higher)
October 26, 2006 06:19AM
Did you put it in mods/topic_poll/lang/french.php?

If yes, then your main language file might be called different. I remember seeing the main language file as "francais.php" instead of "french.php". If you have include/lang/francais.php in your Phorum install, then rename the french.php accordingly.


Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
Re: Topic Poll Module (only for Phorum 5.1.16 and higher)
October 26, 2006 10:03AM
Thanks!

When I downloaded the "french.php" file, I renamed it "french_poll.php" so no to mistake it with the original. And I forgot to correct it afterward...

Regards,

Yves
Re: Topic Poll Module (only for Phorum 5.1.16 and higher)
November 06, 2006 10:12AM
Here is a quick one and something that will help me tweak other modules and such. How do I change the text color of the "Add a poll to this topic" and other buttons? Black goes poorly with my setup. I found the way to change the normal buttons, but "Add a poll to this topic", "Add extra answer", "Delete poll", and some others still have black text inside the buttons.

I know this must be a simple fix, but I am being stupid this morning.
Re: Topic Poll Module (only for Phorum 5.1.16 and higher)
November 06, 2006 10:30AM
There's a templates/default directory in the topic_poll module, where you can change the way in which the poll elements are displayed. I think you'll have to change the addpoll_button.tpl and the before_textarea_pollinfo.tpl templates to change the buttons.


Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
Re: Topic Poll Module (only for Phorum 5.1.16 and higher)
November 08, 2006 03:29AM
I installed the Topic Poll Module without registration required and it worked fine. Someone then cheated and therefore I introduced registration required, however someone has just come back and said "I'm registered already but get prompted to register again and don't see voting options". I know their unique IP address so it is possible to go in and 'reset' the poll for this person so that they vote?

thanks
Re: Topic Poll Module (only for Phorum 5.1.16 and higher)
November 08, 2006 05:55AM
I did not build any resetting options in the module.

I'm not sure though what exactly going on here BTW. Especially "I'm registered already but get prompted to register again" is a bit unclear to me. What is prompting to register? Is the user talking about the "only registered users can vote" message in the poll?


Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
Re: Topic Poll Module (only for Phorum 5.1.16 and higher)
November 08, 2006 11:11AM
OK, so the user has come back to me and said that he's found out his wife voted whilst logged in (shame there's no wife hurdle module!). He has apologised for the wild goose chase which I pass on to you.
Re: Topic Poll Module (only for Phorum 5.1.16 and higher)
December 06, 2006 12:10PM
s there a way of telling which registered users have voted in a particular poll (that only open to registered users)? I'm able to offer a prize with a poll I'm currently running and I would like to offer it to a randomly picked registered user who has actually voted.

I use PHPMyAdmin so if it involves looking at a particular table to randomly pick one then that's possible. Is it if a user_id is associated in to a message_id in phorum_user_newflags?

thanks

Mark
Re: Topic Poll Module (only for Phorum 5.1.16 and higher)
December 06, 2006 06:20PM
The tracking of votes is done in the custom profile field "mod_topic_poll" for each user, so the data can be found in the "phorum_user_custom_fields" table. But beware that this is a PHP datastructure that was stored in a serialized way. So to really use the data, you'll have to load it in a PHP script and run unserialize() on the data to get back the original data structure. There's no way you can do an SQL select for things like all people who posted on poll nr. 1234.

I don't know why you mention the newflags. They are irrelevant to the topic poll module.


Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
Re: Topic Poll Module (only for Phorum 5.1.16 and higher)
December 06, 2006 06:54PM
Thanks (I was just having a peruse around the db and just had a guess at newflags. I was wrong)
Sorry, only registered users may post in this forum.

Click here to login