Forums

Join
bbPress Support ForumsPluginsplugin: bb-Polls

Info

plugin: bb-Polls

  1. Null, so that is v0.21?
    What OS are you on windows/mac
    What version of opera is that?
    Can you do a quick test in IE / Firefox for me and see if it does the same?

    Yes I was thinking the same about the cancel button, will add shortly in future version. Working on the ajax-ish voting right now.

    ps. all the button text, actually ALL the text is completely editable at the top

  2. Poll version 0.21

    Got the same results in:
    Ie7
    FF
    Safari
    Opera

    All latest versions

    OS Windows XP

    Server for website Linux
    Server API Apache
    PHP Version 5.0.4

  3. That's the default bbpress template right?

    I have a very similar setup but not seeing any of that.

    Can anyone else report on this issue?

    0.22 will be out shortly, I have ajax voting done.
    Gotta fix how it calculates totals for multiple answer votes.

  4. Can you use $bbdb->escape() ? In future you could even use $bbdb->prepare() but I'm not sure how that one works.

  5. Wasn't aware of that one. I will look into it.
    I've dropped it to the older escape routine.
    Will just have to see if it works with non-english pages or not.

    Is *anyone* else experiencing what Null is showing?
    I cannot reproduce it.

    v0.22 now adds ajax-ish voting so it's almost entirely ajax except for the poll setup form which will take much more work than I am willing to do right now. (also cancel button added to poll setup)

    http://ckon.wordpress.com/files/2007/08/bb-polls.txt?v022

    It's getting really good, ready for the the members to give it a go.

    Can't believe I didn't have any code at all for this three days ago and its over 15k now with nearly 400 lines.

    Now I need someone to come up with some pretty CSS styles.

  6. Hmm if I press Vote, nothing happens... If I refresh the page, the bar appears.

    New tip:
    If 0 votes still keep a bit of barcolor visible like:

    [=========] 3 votes
    [===] 2 votes
    [] 0 votes

  7. Yeah sorry about that.
    I just checked opera on 0.22 / 0.23 and the ajax vote is broken on that. Works in IE + firefox though.

    Opera still doesn't have any level of javascript debugging does it?

    I just realised there's also a problem in that you can vote without anything selected which is something I somehow overlooked entirely.

  8. Ah I think I see the problem.
    Unlike all the other browsers, Opera has taken it upon itself to cache the javascript request instead of actually fetching it each time (this is one way it cheats for speed).

    Will add some code for a unique URL to force it to work.

    okay, here you go, v0.24
    http://ckon.wordpress.com/files/2007/08/bb-polls.txt?v024
    should fix the issues with opera (and anything else caching)

    I've also now added hidden near the top of the code a "test_mode"

    If you change "test_mode" to "true" it will allow you do keep voting on any poll for testing purposes. You can switch back and forth to view/vote etc. Obviously change it back on a live site with members or people will be able to stuff the ballot box.

    Keep in mind that previous poll data may have been made invalid by the bug in opera so start with a fresh poll. Do not keep re-using the old polls for testing with v0.24. I have not changed data structures but if the data got inserted wrong, it could be invalid for that topic.

    (I'll make a "delete poll" option soon for administrators.
    The space it takes is trivial, so don't worry about that)

  9. Hmm You took away the brake between the option for single or multy votes? Shame :( Ow and yes that caching in Opera is true, I always solve it to give it an unique time thingy to force Opera to reload instead of using cache.

    Also I get this bug in Opera now:
    You haven't selected anything!

    Well I DID select something :) Can't vote at all now, keeps saying that message!

    Also the other issue with the standard template isn't solved yet!

  10. Null, I am testing using opera 9 on windows.
    I am using 0.24 of the plugin on the bbpress trunk.

    I am able to create a new poll & vote with no alerts.
    There is no problem with the css layout.

    Make sure you create a NEW poll for testing with 0.24

    Wait I just thought of something.
    Are you using a personal firewall like Norton?
    They sometimes filter javascript in bad ways.

    I am also starting to think that php 5 is doing something weird with the data escaping since you say you get it in all browsers. Unfortunately I do not have a php 5 server to test on.

    Can anyone else reproduce what Null is reporting or does it work?

    ps. you can turn off ajax if you want to test it normally by changing the "use_ajax" option near the top of the code. Set it to "false".

    pps. Null, is this off the site in your profile?
    Can you create a poll for me to see off one of the pages so I can see the bug in action?

  11. No, I have a special test site for this stuff: http://www.sourceskins.com/bbpress go take a look if you have it there too...

    I also run the latest stable release, no trunk versions

  12. Oh that was immediately more helpful than anything else I've asked or you've answered. There is something really strange going on in that the code is being inserted twice. Some hook is firing twice when it should only be once. I have to investigate.

    Er, What other plugins do you have running?
    I see your bbmenu in there.
    Can you try deactivating everything?

    Also, post your post.php template in code tags here - are you positive it's stock?

    I think I know exactly what is happening but I don't know why.

    My plugin hooks topicmeta
    add_action('topicmeta','bb_polls_pre_poll');

    Topicmeta can only happen once on a topic page.
    Somehow it's firing more than once on your page.
    Deactivate all other plugins for a minute just to make sure something doesn't have a major bug.

    Try this experimental fix which unhooks itself after the first execute to prevent a second run:
    http://ckon.wordpress.com/files/2007/08/bb-polls.txt?v025

  13. No wait I think what is wrong here.

    I am also testing a highly alpha new cool plugin here, that why I have edited post.php. I think it's in conflict with your hook. Brb uploading original post.php

    Edit:
    Lol that fixed it.... darn that fixed all bugs I've had version 0.24 is fine

    Now how to prevent this in the future when I am going to release my plugin hmmmmmmm

    ps. You see the bbmenu tabs? i dont see them :S

  14. My new version 0.25 should still work with your plugin.
    It unhooks after the first run.

    But still, topicmeta should not fire more than once per topic page IMHO.

    Alright, signing out for the day, have fun!

    ps. make me some nice css skins!

  15. Whaha i had some nice skins, 4 years ago, never took the time to cancel the .com

    That plugin of mine is still so buggy (and not working) it proberbly caused the 2 launches of topicmeta. To be honest, if I told you what I wanted to create, you'd fix it in 1 day i guess. I still need to reverse engineer it, learn how stuff works and puzzle it togther. Working on it for 2 weeks now, no working results yet :(:(:(

    But I'll get it right.... ever......

  16. You must log in to post.