FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum » How To » Remove number of votes from poll results and only show percentages
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
Remove number of votes from poll results and only show percentages [message #35389] Sat, 06 January 2007 04:45 Go to next message
foooobarr is currently offline  foooobarr   United States
Messages: 2
Registered: December 2006
Karma: 0
Junior Member
Pretty straight forward question I think.

I am interested in having a poll not show how many votes have been cast for each item and only show the percentage. Ideally it would be only for one particular poll, but if a change has to be made globally that effects all polls, that is fine.

Is this possible?

Thanks!

-foo
Re: Remove number of votes from poll results and only show percentages [message #35399 is a reply to message #35389] Sun, 07 January 2007 18:40 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
You need to modify the poll displaying code inside drawmsg.tmpl and change it to show the item vote / total votes vs just the item vote.

FUDforum Core Developer
Re: Remove number of votes from poll results and only show percentages [message #35405 is a reply to message #35399] Sun, 07 January 2007 22:30 Go to previous messageGo to next message
foooobarr is currently offline  foooobarr   United States
Messages: 2
Registered: December 2006
Karma: 0
Junior Member
Could you please be a little more descriptive in your recommendation. When I open drawmsg.tmpl I get a list of many smaller templates. Which of those do I need to edit?

Also - when opening these templates, the code that is listed there is not immediately obvious as to what you would want to change to achieve my desired results.

Any further assistance you would be able to provide would be greatly appreciated.

Thanks!

-foo
Re: Remove number of votes from poll results and only show percentages [message #35410 is a reply to message #35405] Mon, 08 January 2007 16:26 Go to previous message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
dmsg_poll_result is the section of the template you need to edit.

FUDforum Core Developer
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: blocked_logins
Next Topic: Hard code admin
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sat Nov 30 17:15:48 GMT 2024

Total time taken to generate the page: 0.01781 seconds