HTML Logo by World Wide Web Consortium (www.w3.org). Click to learn more about our commitment to accessibility and standards.

Moving forward with Composr

ocPortal has been relaunched as Composr CMS, which is now in beta. ocPortal 9 will be superseded by Composr 10.

Head over to compo.sr for our new site, and to our migration roadmap. Existing ocPortal member accounts have been mirrored.


Test poll

Login / Search

 [ Join | More ]
 Add topic 
Rate it!!
never (worst)
1
2
3
4
5
6
7
8
9
10 (best)
You do not have permission to vote

Posted
Rating:
#37736 (In Topic #8491)
Avatar

Community saint

 I want to know why the poll isn't in numerical order!!

Okay, it is in numerical order here…  But on two of my sites the order seems to come up randomly.



124 views (5 Kb)


 





Back to the top
 
Posted
Rating:
#37738
Avatar

Please try changing line 100 of sources/ocf_polls.php from:

Code

   $_answers=$GLOBALS['FORUM_DB']->query_select('f_poll_answers',array('*'),array('pa_poll_id'=>$poll_id));
to:

Code

   $_answers=$GLOBALS['FORUM_DB']->query_select('f_poll_answers',array('*'),array('pa_poll_id'=>$poll_id),'ORDER BY id');


Usually the database would take things out in the same order as they went in, but this isn't always the case, and it's a bug that we didn't handle that. It's happening automatically on this forum, not yours.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#37787
Avatar

Community saint


Don't know if that works or not yet - uploaded a new version of OCP and it seems to be okay. Am guessing you fixed it. However, will check it out on one of my other sites and let you know…

QUESTION:

If you decide to keep a poll private during the voting period, how do you then make the answer public when the voting is over?O_o
 

 





Back to the top
 
Posted
Rating:
#37789
Avatar

Edit the poll to make it non-private.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#37790
Avatar

Community saint

 Aaaaah, yes. Actually a lot trickier than one thinks. I spent ages trying to edit the post when it is in the 'Topic Actions' dropdown menu at the bottom!! That is why I coulnd't find it!!

Thanks, chris!

 





Back to the top
 
There are too many online users to list.
Control functions:

Quick reply   Contract

Your name:
Your message: