Topic Poll Module
Posted by Maurice Makaay
October 26, 2006 06:19AM |
Admin Registered: 20 years ago Posts: 8,532 |
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
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



Re: Topic Poll Module (only for Phorum 5.1.16 and higher) October 26, 2006 10:03AM |
Registered: 18 years ago Posts: 99 |
Re: Topic Poll Module (only for Phorum 5.1.16 and higher) November 06, 2006 10:12AM |
Registered: 19 years ago Posts: 4 |
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.
I know this must be a simple fix, but I am being stupid this morning.
November 06, 2006 10:30AM |
Admin Registered: 20 years ago Posts: 8,532 |
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
Maurice Makaay
Phorum Development Team



Re: Topic Poll Module (only for Phorum 5.1.16 and higher) November 08, 2006 03:29AM |
Registered: 18 years ago Posts: 85 |
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
thanks
November 08, 2006 05:55AM |
Admin Registered: 20 years ago Posts: 8,532 |
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
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



Re: Topic Poll Module (only for Phorum 5.1.16 and higher) November 08, 2006 11:11AM |
Registered: 18 years ago Posts: 85 |
Re: Topic Poll Module (only for Phorum 5.1.16 and higher) December 06, 2006 12:10PM |
Registered: 18 years ago Posts: 85 |
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
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
December 06, 2006 06:20PM |
Admin Registered: 20 years ago Posts: 8,532 |
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
I don't know why you mention the newflags. They are irrelevant to the topic poll module.
Maurice Makaay
Phorum Development Team



Re: Topic Poll Module (only for Phorum 5.1.16 and higher) December 06, 2006 06:54PM |
Registered: 18 years ago Posts: 85 |
Sorry, only registered users may post in this forum.