Created [Req] Minecraft Votifier Plugin

Discussion in 'Plugin Requests' started by cajkan, Jan 12, 2013.

  1. daannet

    daannet Member

    Because it doesn't work as a form i can't make a required field. Or has somebody a javascript suggestion?
  2. cajkan
    • Licensed

    cajkan Active Member

    I think its posible to make required field with php.
    BUT - When users register they must input votifyer settings too.
    And you have to require thouse in join fields too, i dont think this is good idea overall.
  3. daannet

    daannet Member

    PHP:
    <input type="text" id="votifier_m_user" class="'.$username.'" style="width:100%;" class="input-text" placeholder="MineCraft Spelersnaam" value=""/>
                                        <
    script type="text/javascript">
                                            $(function() {
                                                $(
    "#votifier_m_user").blur(function() {
                                                    var 
    votifier_m_user = $(this).val();
                                                    var 
    user = $(this).attr("class");
     
                                                    $.
    ajax({
                                                        
    type"POST",
                                                        
    url"http://creeperservers.nl/plugins/MineCraftVotifier/minecraft_user.php",
                                                        
    data: {"votifier_m_user"votifier_m_user"u"user},
                                                        
    success: function(data) {
                                                            
    // Do nothing on success
                                                        
    }
                                                    });
                                                });
                                            });
                                        
    </script>

    With this code is the player name submitted.... (with a little style change)
    But i gonna check JS :) it is maybe better too. And i can otherwise disable the submit button before the player name is filled in.
  4. Basti
    • Staff

    Basti Administrator Staff Member

    Daanet, wait before you use this. Ive invited you to my conversation with xfhost. He not replied back yet, so feel free to test out the new version. All instructions are inside
  5. Basti
    • Staff

    Basti Administrator Staff Member

    Since the input only shows up for members who have filled out votifier on join, its no problem to make this required :)

    On a new line above this
    Code:
                                            });
                                        </script>
    add there
    Code:
    $('.vote_click').click(function() {
        return true;
        if($("#minecraft_user").val().length == 0) {
            alert('Enter your minecraft username');
            return false;
        }
    });
    Then to your vote link
    Code:
    <a href="{$list_url}/index.php?a=in&amp;u={$username}&amp;sid={$sid}" class="visio_button large_button green" target=""><span>{$lng->gateway_vote}</span></a>
    Add iin a new class called vote_click, like so
    Code:
    <a href="{$list_url}/index.php?a=in&amp;u={$username}&amp;sid={$sid}" class="visio_button large_button green vote_click" target=""><span>{$lng->gateway_vote}</span></a>
    That should do the trick
    cajkan and daannet like this.
  6. twiice

    twiice New Member

    I'm in need of the same plugin!
    I could test it for you :)
  7. Basti
    • Staff

    Basti Administrator Staff Member

    Hi, i still not heard back of the people i gave it to, so ill pm you the plugin later as well. Still nt sure if there are issues or not
  8. kalle801

    kalle801 Member

    {$gateway_votifier} does not work for me.
  9. kalle801

    kalle801 Member

    please help me with this votifier, the input field does not appear.
  10. gamespro

    gamespro New Member

  11. cajkan
    • Licensed

    cajkan Active Member

    @gamespro @kalle801 try to use {$gateway_votifier} into the gateway.html

    Input ONLY appears IF user submitted VOTIFIER DETAILS.

    If you need more help let me know :)
  12. gamespro

    gamespro New Member

  13. legendz
    • Licensed

    legendz Titan

    Does this plugin work for 1.6?
    cajkan likes this.
  14. cajkan
    • Licensed

    cajkan Active Member

    I think plugin might be out-dated but if you contact @Basti Im sure he got up-to date version :)
  15. legendz
    • Licensed

    legendz Titan

    ok cool.

    "Off topic" Hi, cajkan long time no see
    cajkan likes this.
  16. cajkan
    • Licensed

    cajkan Active Member

    Yeah very long time no see :), I hope you doing well if anything just PM me :)
    legendz likes this.
  17. Basti
    • Staff

    Basti Administrator Staff Member

    Plugin is updated for vl 1.6 and will be released in a bit after some more testing
    cajkan and legendz like this.

Share This Page