Firefox PHP

Poll Module

Posted by arlo 
Re: Poll Module - tx T.S.
December 22, 2004 05:32PM
hi T.S.

never made it to the general support

well, i created an admin first, then an user with admin privs
second: this user created a forum

for some reason i took the users admin privs away
the user created board remained stubborn

reprivileging the user solved this problem

scusi for taking your time and tx for quick feedback

sláinte
Norbert




Re: Poll Module
January 04, 2005 12:53AM
cool module :)

is it possible to have "poll list" just like "message list" so that all the polls in the selected forum are listed ?

Re: Poll Module
January 06, 2005 07:05PM
I've got this error when voting:
Fatal error: Cannot use string offset as an array in /home/smeier/public_html/www/phorum5/mods/poll/poll.php on line 252

And when watching the results:
Fatal error: Cannot use string offset as an array in /home/smeier/public_html/www/phorum5/mods/poll/poll.php on line 180

I've the latest poll mod on the latest phorum

--
Amilcar Lucas
www.kdevelop.org webmaster
Re: Poll Module
January 13, 2005 08:47AM
I going to try and use this mod as a rating system (say, out of 10) for each message...

I can sort of see how its going to work, but i can see it needing a hefty overhaul...

anyone any thoughts? solutions/problems...

Re: Poll Module
January 13, 2005 09:31AM
Well, be ready to deal with the problem that I mentioned above.

It worked fine with the old poll version, but as soon as I updated, boom, I get that error.

And it is not a Phorum issue, I use phorum HEAD.

To take a look at the problem visit:
[www.kdevelop.org]

and click "show results".


--
Amilcar Lucas
www.kdevelop.org webmaster
Re: Poll Module
January 13, 2005 09:47AM
sorry - i didnt make myself clear - I'm try to make a phorum with a single thread and so its just the messages in this one thread that make up the forum - and on these messages i want to put a rating system, so viewers can rate each individual message, within the message itself

Here is a kind of example - although its not in a forum - i would like to implement the same basic functionality - check the star rating system @
[www.macromedia.com]
Re: Poll Module (icon message)
January 13, 2005 10:38AM
I need a little bit of help I am trying to put a pull icon, but I can't figure out the specific coding, and the hint ["meta"]["mod_poll"] didn't make any since to me. Here is what I have for my others but I don't see parallels to match.


settings.tpl
{define marker-poll <img src="templates/default/images/poll.gif" border="0" alt="" style="vertical-align: middle;" />&nbsp;}

list.tpl
{IF ROWS->sort PHORUM_SORT_STICKY}<?php echo $PHORUM['TMP']['marker-sticky'] ?>
<span class="PhorumListSubjPrefix">{LANG->Sticky}:</span>
{ELSEIF ROWS->sort PHORUM_SORT_ANNOUNCEMENT}<?php echo $PHORUM['TMP']['marker-announcement'] ?>
<span class="PhorumListSubjPrefix">{LANG->Announcement}:</span>
{ELSE}<?php echo $PHORUM['TMP']['marker'] ?>
{/IF}

http://www.krang.org
Re: Poll Module
January 15, 2005 11:56PM
Fix the download process! It is ridiculous!
Re: Poll Module
January 17, 2005 12:24PM
Posted in Wrong thread.

Sorry.

http://www.krang.org



Edited 1 time(s). Last edit at 01/18/2005 11:31AM by Krang.
Re: Poll Module (icon message)
January 17, 2005 12:25PM
I got it working by

{IF ROWS->meta->mod_poll}
<?php echo $PHORUM['TMP']['marker-poll']; ?>
<span class="PhorumListSubjPrefix">{LANG->Poll}:&nbsp;</span>
{ELSEIF ROWS->sort PHORUM_SORT_STICKY}
<?php echo $PHORUM['TMP']['marker-sticky']; ?>
<span class="PhorumListSubjPrefix">{LANG->Sticky}:&nbsp;</span>
{ELSEIF ROWS->sort PHORUM_SORT_ANNOUNCEMENT}
<?php echo $PHORUM['TMP']['marker-announcement']; ?>
<span class="PhorumListSubjPrefix">{LANG->Announcement}:&nbsp;</span>
{ELSEIF ROWS->new}
<?php echo $PHORUM['TMP']['marker-new']; ?>
{ELSE}
<?php echo $PHORUM['TMP']['marker-read']; ?>
{/IF}


http://www.krang.org
Sorry, only registered users may post in this forum.

Click here to login