WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: Emo Vote] How I can prevent empty data in my DB? (7 posts)

  1. Dario Ferrer
    Member
    Posted 5 years ago #

    Hi,

    I see my wp_emo table full of fields with "0" values (no votes). How I can to allow insert only fields with effective votes?. Thanks in advance.

    This plugins is perfect, but it have this little issue.

    http://wordpress.org/extend/plugins/emo-vote/

  2. mptre
    Member
    Posted 5 years ago #

    Hi there!
    I'm the developer behind Emo Vote. The first you visit your site after Emo Vote has been installed it creates a row for each post. So that's why you end up with alot of empty rows (i.e no votes). Might change this in the upcoming version.

    First when a user "emotes" it checks if a row for that specific post exists, if not it create one. That's a better solution. Thanks!

  3. Dario Ferrer
    Member
    Posted 5 years ago #

    Thanks mptre,

    It´s a good news! Then I'll tune up for the next version to apply it. This baby worth the wait ;).

    If you allow another suggest, would be better if the html structure (of buttons) is more able to customize. For example, in the last days I tried (without success) to replace the input-radio image with a whole 200 x 40px "sprite" button (text included in image). I want to ask you if is possible to change the form/input way to another more customizable for designers (as list items).

  4. mptre
    Member
    Posted 5 years ago #

    Emo Vote uses jQuery Checkbox plugin to make it possible to style all checkboxes using basic CSS. I choosed to create one image for each checkbox, to make it easier to modify their appearence instead of keeping all images in one (i.e sprite-technic).

    I've got the psd for the buttons if you're interested. Otherwise take a look at the jQuery Checkbox docs. But the CSS for Emo Vote is quite straight-forward.

    http://code.google.com/p/jquery-checkbox/

  5. mptre
    Member
    Posted 5 years ago #

    @metacortex the latest version of Emo Vote (on GitHub) doesn't insert empty rows. Instead it adds a row first when someone actually "emotes". Take it for a spin or wait until the release is being published here on WordPress (later this week).

    http://github.com/mptre/emo-vote/tree/master

  6. Dario Ferrer
    Member
    Posted 5 years ago #

    Oh thank you @mptre, this is the better news of this weekend!.

    Downloading... =P

    Kind regards my friend.

    PS: Also I readed the doc of JQuery Checkbox (also thanks for that info). Certainly you're right, it's a very flexible and customizable resource.

  7. mptre
    Member
    Posted 5 years ago #

    Glad you'll like it!

Topic Closed

This topic has been closed to new replies.

About this Topic