The forum of the forums

Would you like to react to this message? Create an account in a few clicks or log in to continue.
The forum of the forums
4 posters

    Like Button for posts only

    Maggie67
    Maggie67
    Forumember


    Female Posts : 57
    Reputation : 3
    Language : English

    Solved Like Button for posts only

    Post by Maggie67 December 1st 2015, 7:20 pm

    Hi
    http://cushiefriendsuk.forumotion.co.uk/
    Admin Maggie
    I was wondering if it was possible to have a like button on members posts. The button I would like, would only be linked to that post and not linked to Facebook or any other social networks.

    Thanks Maggie



    Last edited by Maggie67 on December 2nd 2015, 2:23 am; edited 1 time in total
    Sir. Mayo
    Sir. Mayo
    Forumember


    Male Posts : 978
    Reputation : 90
    Language : English, Some french.
    Location : you can also reach me on snoonet's irc server. I idle in #Techsupport Username is Vault108

    Solved Re: Like Button for posts only

    Post by Sir. Mayo December 1st 2015, 7:43 pm

    Maggie67
    Maggie67
    Forumember


    Female Posts : 57
    Reputation : 3
    Language : English

    Solved Re: Like Button for posts only

    Post by Maggie67 December 1st 2015, 7:59 pm

    Hi sir Mayo
    I have tried it but probably did it wrong. Unfortunately didnt work.
    Thanks Maggie

    Sir. Mayo
    Sir. Mayo
    Forumember


    Male Posts : 978
    Reputation : 90
    Language : English, Some french.
    Location : you can also reach me on snoonet's irc server. I idle in #Techsupport Username is Vault108

    Solved Re: Like Button for posts only

    Post by Sir. Mayo December 1st 2015, 8:01 pm

    Did you activate the reputation system?
    ACP > Modules > Reputation > Activate reputation system.
    Maggie67
    Maggie67
    Forumember


    Female Posts : 57
    Reputation : 3
    Language : English

    Solved Re: Like Button for posts only

    Post by Maggie67 December 1st 2015, 8:05 pm

    Hi
    Sorry I didnt do that. I will try adding the codes again and get back to you
    Thanks for your help.
    Maggie67
    Maggie67
    Forumember


    Female Posts : 57
    Reputation : 3
    Language : English

    Solved Re: Like Button for posts only

    Post by Maggie67 December 1st 2015, 8:12 pm

    Hi
    I have put the codes into the CSS stylesheet and the java script but stuck on the rest, not sure where I have to put them
    Thanks Maggie
    Maggie67
    Maggie67
    Forumember


    Female Posts : 57
    Reputation : 3
    Language : English

    Solved Re: Like Button for posts only

    Post by Maggie67 December 1st 2015, 8:15 pm

    Yeah! I think I have done it. I would appreciate if you could come on forum to check it out for me please.
    Thank you.
    SLGray
    SLGray
    Administrator
    Administrator


    Male Posts : 51499
    Reputation : 3523
    Language : English
    Location : United States

    Solved Re: Like Button for posts only

    Post by SLGray December 2nd 2015, 1:39 am

    Do you see the see the thumbs up and down buttons?



    Like Button for posts only Slgray10

    When your topic has been solved, ensure you mark the topic solved.
    Never post your email in public.
    Maggie67
    Maggie67
    Forumember


    Female Posts : 57
    Reputation : 3
    Language : English

    Solved Re: Like Button for posts only

    Post by Maggie67 December 2nd 2015, 1:46 am

    Yes I see them and they work. I think I have to change css or change something else or change the word true to false to get rid of the red thumbs down. Just not sure how or where to find the text to change it
    Thanks
    brandon_g
    brandon_g
    Manager
    Manager


    Male Posts : 10113
    Reputation : 923
    Language : English
    Location : USA

    Solved Re: Like Button for posts only

    Post by brandon_g December 2nd 2015, 1:49 am

    May you post your css here?

    I will adjust it for you Very Happy.

    -Brandon



    Like Button for posts only Brando10
    Remember to mark your topic Like Button for posts only Solved15 when a solution is found.
    General Rules | Tips & Tricks | FAQ | Forgot Founder Password?

    Like Button for posts only Scre1476
    Team Leader
    Review Section Rules | Request A Review | Sticker Points
    SLGray
    SLGray
    Administrator
    Administrator


    Male Posts : 51499
    Reputation : 3523
    Language : English
    Location : United States

    Solved Re: Like Button for posts only

    Post by SLGray December 2nd 2015, 1:52 am

    Remove the red line:
    JavaScript:
    Code:
     vote_bar : false



    Like Button for posts only Slgray10

    When your topic has been solved, ensure you mark the topic solved.
    Never post your email in public.
    Maggie67
    Maggie67
    Forumember


    Female Posts : 57
    Reputation : 3
    Language : English

    Solved Re: Like Button for posts only

    Post by Maggie67 December 2nd 2015, 1:53 am

    Code:
    td.cat, td.catBottom, td.catHead, td.catLeft, td.catRight, td.catSides{
           background-image: none !important;
           }

                .fa_vote, .fa_voted, .fa_count {
             font-size:12px;
             font-family:Verdana, Arial, Helvetica, Sans-serif;
             display:inline-block !important;
             width:auto !important;
             transition:300ms;
           }
           
           .fa_voted, .fa_vote:hover { opacity:0.4 }
           .fa_voted { cursor:default }
           
           .fa_count {
             font-weight:bold;
             margin:0 3px;
             cursor:default;
           }
           
           .fa_positive { color:#4A0 }
           .fa_negative { color:#A44 }
           
           .fa_votebar, .fa_votebar_inner {
             background:#C44;
             height:3px;
           }
           
           .fa_votebar_inner {
             background:#4A0;
             transition:300ms;
           }
    SLGray
    SLGray
    Administrator
    Administrator


    Male Posts : 51499
    Reputation : 3523
    Language : English
    Location : United States

    Solved Re: Like Button for posts only

    Post by SLGray December 2nd 2015, 1:54 am

    SLGray wrote:Remove the red/green line:
    JavaScript:
    Code:
     vote_bar : false



    Like Button for posts only Slgray10

    When your topic has been solved, ensure you mark the topic solved.
    Never post your email in public.
    Maggie67
    Maggie67
    Forumember


    Female Posts : 57
    Reputation : 3
    Language : English

    Solved Re: Like Button for posts only

    Post by Maggie67 December 2nd 2015, 1:56 am

    Sorry, I cant see the red line in the java script
    Maggie67
    Maggie67
    Forumember


    Female Posts : 57
    Reputation : 3
    Language : English

    Solved Re: Like Button for posts only

    Post by Maggie67 December 2nd 2015, 1:59 am

    Code:
    My Java Script


    $(function() {


     Â         // General Configuration of the plugin


     Â         var config = {


     Â           position_left : true, // true for left || false for right


     Â           negative_vote : true, // true for negative votes || false for positive only


     Â           vote_bar : true, // display a small bar under the vote buttons


     Â         


     Â           // button config


     Â           icon_plus : '<img src="http://i18.servimg.com/u/f18/18/21/41/30/plus10.png" alt="+"/>',


     Â           icon_minus : '<img src="http://i18.servimg.com/u/f18/18/21/41/30/minus10.png" alt="-"/>',


     Â         


     Â           // language config


     Â           title_plus : 'Like %{USERNAME}\'s post',


     Â           title_minus : 'Dislike %{USERNAME}\'s post',


     Â         


     Â           title_like_singular : '%{VOTES} person likes %{USERNAME}\'s post',


     Â           title_like_plural : '%{VOTES} people like %{USERNAME}\'s post',


     Â         


     Â           title_dislike_singular : '%{VOTES} person dislikes %{USERNAME}\'s post',


     Â           title_dislike_plural : '%{VOTES} people dislike %{USERNAME}\'s post',


     Â         


     Â           title_vote_bar : '%{VOTES} people liked %{USERNAME}\'s post %{PERCENT}'


     Â         },


     Â           


     Â           


     Â         // function bound to the onclick handler of the vote buttons


     Â         submit_vote = function() {


     Â           var next = this.nextSibling, // the counter next to the vote button that was clicked


     Â               box = this.parentNode,


     Â               bar = box.getElementsByTagName('DIV'),


     Â               vote = box.getElementsByTagName('A'),


     Â               mode = /eval=plus/.test(this.href) ? 1 : 0,


     Â               i = 0, j = vote.length, pos, neg, percent;


     Â         


     Â           // submit the vote asynchronously


     Â           $.get(this.href, function() {


     Â             next.innerHTML = +next.innerHTML + 1; // add to the vote count


     Â             next.title = next.title.replace(/(\d+)/, function(M, $1) { return +$1 + 1 });


     Â           


     Â             pos = +vote[0].nextSibling.innerHTML;


     Â             neg = vote[1] ? +vote[1].nextSibling.innerHTML : 0;


     Â             percent = pos == 0 ? '0%' : pos == neg ? '50%' : Math.round(pos / (pos + neg) * 100) + '%';


     Â           


     Â             if (bar[0]) {


     Â               bar[0].style.display = '';


     Â               bar[0].firstChild.style.width = percent;


     Â               box.title = box.title.replace(/\d+\/\d+/, pos + '/' + ( pos + neg )).replace(/\(\d+%\)/, '(' + percent + ')');


     Â             }


     Â           });


     Â         


     Â           // revoke voting capabilities on the post once the vote is cast


     Â           for (; i < j; i++) {


     Â             vote[i].href = '#';


     Â             vote[i].className = vote[i].className.replace(/fa_vote/, 'fa_voted');


     Â             vote[i].onclick = function() { return false };


     Â           }


     Â         


     Â           return false;


     Â         },


     Â           


     Â         vote = $('.vote'), i = 0, j = vote.length,


     Â         version = $('.bodylinewidth')[0] ? 0 : document.getElementById('wrap') ? 1 : $('.pun')[0] ? 2 : document.getElementById('ipbwrapper') ? 3 : 'badapple', // version check


     Â       


     Â         // version data so we don't have to redefine these arrays during the loop


     Â         vdata = {


     Â           tag : ['SPAN', 'LI', 'SPAN', 'LI'][version],


     Â           name : ['.name', '.postprofile dt > strong', '.username', '.popmenubutton'][version],


     Â           actions : ['.post-options', '.profile-icons', '.post-options', '.posting-icons'][version],


     Â         },


     Â       


     Â         post, plus, minus, n_pos, n_neg, title_pos, title_neg, li, ul, bar, button, total, percent, span, pseudo, vote_bar; // startup variables for later use in the loop


     Â       


     Â         // prevent execution if the version cannot be determined


     Â         if (version == 'badapple') {


     Â           if (window.console) console.warn('This plugin is not optimized for your forum version. Please contact the support for further assistance.');


     Â           return;


     Â         }


     Â       


     Â         for (; i < j; i++) {


     Â           post = $(vote[i]).parentsUntil('.post').parent()[0];


     Â           bar = $('.vote-bar', vote[i])[0]; // vote bar


     Â           button = $('.vote-button', vote[i]); // plus and minus buttons


     Â           pseudo = $(vdata.name, post).text() || 'MISSING_STRING'; // username of the poster


     Â           ul = $(vdata.actions, post)[0]; // post actions


     Â           li = document.createElement(vdata.tag); // vote system container


     Â           li.className = 'fa_reputation';


     Â         


     Â           if (li.tagName == 'SPAN') li.style.display = 'inline-block';


     Â         


     Â           // calculate votes


     Â           if (bar) {


     Â             total = +bar.title.replace(/.*?\((\d+).*/, '$1');


     Â             percent = +bar.title.replace(/.*?(\d+)%.*/, '$1');


     Â           


     Â             n_pos = Math.round(total * (percent / 100));


     Â             n_neg = total - n_pos;


     Â           } else {


     Â             n_pos = 0;


     Â             n_neg = 0;


     Â           }


     Â         


     Â           // set up negative and positive titles with the correct grammar, votes, and usernames


     Â           title_pos = (n_pos == 1 ? config.title_like_singular : config.title_like_plural).replace(/%\{USERNAME\}/g, pseudo).replace(/%\{VOTES\}/g, n_pos);


     Â           title_neg = (n_neg == 1 ? config.title_dislike_singular : config.title_dislike_plural).replace(/%\{USERNAME\}/g, pseudo).replace(/%\{VOTES\}/g, n_neg);


     Â         


     Â           // define the vote counts


     Â           li.innerHTML = '<span class="fa_count fa_positive" title="' + title_pos + '">' + n_pos + '</span>' + (config.negative_vote ? '&nbsp;<span class="fa_count fa_negative" title="' + title_neg + '">' + n_neg + '</span>' : '');


     Â           span = li.getElementsByTagName('SPAN'); // get the vote count containers for use as insertion points


     Â         


     Â           // create positive vote button


     Â           plus = document.createElement('A');


     Â           plus.href = button[0] ? button[0].firstChild.href : '#';


     Â           plus.onclick = button[0] ? submit_vote : function() { return false };


     Â           plus.className = 'fa_vote' + (button[0] ? '' : 'd') + ' fa_plus';


     Â           plus.innerHTML = config.icon_plus;


     Â           plus.title = (button[0] ? config.title_plus : title_pos).replace(/%\{USERNAME\}/g, pseudo);


     Â         


     Â           span[0] && li.insertBefore(plus, span[0]);


     Â         


     Â           // create negative vote button


     Â           if (config.negative_vote) {


     Â             minus = document.createElement('A');


     Â             minus.href = button[1] ? button[1].firstChild.href : '#';


     Â             minus.onclick = button[1] ? submit_vote : function() { return false };


     Â             minus.className = 'fa_vote' + (button[1] ? '' : 'd') + ' fa_minus';


     Â             minus.innerHTML = config.icon_minus;


     Â             minus.title = (button[1] ? config.title_minus : title_neg).replace(/%\{USERNAME\}/g, pseudo);


     Â           


     Â             span[1] && li.insertBefore(minus, span[1]);


     Â           }


     Â         


     Â           // create vote bar


     Â           if (config.vote_bar) {


     Â             vote_bar = document.createElement('DIV');


     Â             vote_bar.className = 'fa_votebar';


     Â             vote_bar.innerHTML = '<div class="fa_votebar_inner" style="width:' + percent + '%;"></div>';


     Â             vote_bar.style.display = bar ? '' : 'none';


     Â             li.title = config.title_vote_bar.replace(/%\{USERNAME\}/, pseudo).replace(/%\{VOTES\}/, n_pos + '/' + (n_pos + n_neg)).replace(/%\{PERCENT\}/, '(' + percent + '%)');


     Â             li.appendChild(vote_bar);


     Â           }


     Â         


     Â           // finally insert the vote system and remove the default one


     Â           config.position_left ? ul.insertBefore(li, ul.firstChild) : ul.appendChild(li);


     Â           vote[i].parentNode.removeChild(vote[i]);


     Â         }


     Â       });

    SLGray
    SLGray
    Administrator
    Administrator


    Male Posts : 51499
    Reputation : 3523
    Language : English
    Location : United States

    Solved Re: Like Button for posts only

    Post by SLGray December 2nd 2015, 2:00 am

    It does not say red line.

    If you want ti remove it from post, you have to mark vote_bar false in the JavaScript.



    Like Button for posts only Slgray10

    When your topic has been solved, ensure you mark the topic solved.
    Never post your email in public.
    Maggie67
    Maggie67
    Forumember


    Female Posts : 57
    Reputation : 3
    Language : English

    Solved Re: Like Button for posts only

    Post by Maggie67 December 2nd 2015, 2:13 am

    Hi
    I have removed from here and added false. I still see the thumbs down but no vote bar underneath
    vote_bar : false, // display a small bar under the vote buttons

    Do I have to change the css aswell?
    Thanks
    brandon_g
    brandon_g
    Manager
    Manager


    Male Posts : 10113
    Reputation : 923
    Language : English
    Location : USA

    Solved Re: Like Button for posts only

    Post by brandon_g December 2nd 2015, 2:15 am

    Here, replace you current javascript with this:

    Code:
    $(function() {
     
     
              // General Configuration of the plugin
     
     
              var config = {
     
     
                position_left : true, // true for left || false for right
     
     
                negative_vote : false, // true for negative votes || false for positive only
     
     
                vote_bar : true, // display a small bar under the vote buttons
     
     
             
     
     
                // button config
     
     
                icon_plus : '<img src="http://i18.servimg.com/u/f18/18/21/41/30/plus10.png" alt="+"/>',
     
     
                icon_minus : '<img src="http://i18.servimg.com/u/f18/18/21/41/30/minus10.png" alt="-"/>',
     
     
             
     
     
                // language config
     
     
                title_plus : 'Like %{USERNAME}\'s post',
     
     
                title_minus : 'Dislike %{USERNAME}\'s post',
     
     
             
     
     
                title_like_singular : '%{VOTES} person likes %{USERNAME}\'s post',
     
     
                title_like_plural : '%{VOTES} people like %{USERNAME}\'s post',
     
     
             
     
     
                title_dislike_singular : '%{VOTES} person dislikes %{USERNAME}\'s post',
     
     
                title_dislike_plural : '%{VOTES} people dislike %{USERNAME}\'s post',
     
     
             
     
     
                title_vote_bar : '%{VOTES} people liked %{USERNAME}\'s post %{PERCENT}'
     
     
              },
     
     
               
     
     
               
     
     
              // function bound to the onclick handler of the vote buttons
     
     
              submit_vote = function() {
     
     
                var next = this.nextSibling, // the counter next to the vote button that was clicked
     
     
                    box = this.parentNode,
     
     
                    bar = box.getElementsByTagName('DIV'),
     
     
                    vote = box.getElementsByTagName('A'),
     
     
                    mode = /eval=plus/.test(this.href) ? 1 : 0,
     
     
                    i = 0, j = vote.length, pos, neg, percent;
     
     
             
     
     
                // submit the vote asynchronously
     
     
                $.get(this.href, function() {
     
     
                  next.innerHTML = +next.innerHTML + 1; // add to the vote count
     
     
                  next.title = next.title.replace(/(\d+)/, function(M, $1) { return +$1 + 1 });
     
     
               
     
     
                  pos = +vote[0].nextSibling.innerHTML;
     
     
                  neg = vote[1] ? +vote[1].nextSibling.innerHTML : 0;
     
     
                  percent = pos == 0 ? '0%' : pos == neg ? '50%' : Math.round(pos / (pos + neg) * 100) + '%';
     
     
               
     
     
                  if (bar[0]) {
     
     
                    bar[0].style.display = '';
     
     
                    bar[0].firstChild.style.width = percent;
     
     
                    box.title = box.title.replace(/\d+\/\d+/, pos + '/' + ( pos + neg )).replace(/\(\d+%\)/, '(' + percent + ')');
     
     
                  }
     
     
                });
     
     
             
     
     
                // revoke voting capabilities on the post once the vote is cast
     
     
                for (; i < j; i++) {
     
     
                  vote[i].href = '#';
     
     
                  vote[i].className = vote[i].className.replace(/fa_vote/, 'fa_voted');
     
     
                  vote[i].onclick = function() { return false };
     
     
                }
     
     
             
     
     
                return false;
     
     
              },
     
     
               
     
     
              vote = $('.vote'), i = 0, j = vote.length,
     
     
              version = $('.bodylinewidth')[0] ? 0 : document.getElementById('wrap') ? 1 : $('.pun')[0] ? 2 : document.getElementById('ipbwrapper') ? 3 : 'badapple', // version check
     
     
           
     
     
              // version data so we don't have to redefine these arrays during the loop
     
     
              vdata = {
     
     
                tag : ['SPAN', 'LI', 'SPAN', 'LI'][version],
     
     
                name : ['.name', '.postprofile dt > strong', '.username', '.popmenubutton'][version],
     
     
                actions : ['.post-options', '.profile-icons', '.post-options', '.posting-icons'][version],
     
     
              },
     
     
           
     
     
              post, plus, minus, n_pos, n_neg, title_pos, title_neg, li, ul, bar, button, total, percent, span, pseudo, vote_bar; // startup variables for later use in the loop
     
     
           
     
     
              // prevent execution if the version cannot be determined
     
     
              if (version == 'badapple') {
     
     
                if (window.console) console.warn('This plugin is not optimized for your forum version. Please contact the support for further assistance.');
     
     
                return;
     
     
              }
     
     
           
     
     
              for (; i < j; i++) {
     
     
                post = $(vote[i]).parentsUntil('.post').parent()[0];
     
     
                bar = $('.vote-bar', vote[i])[0]; // vote bar
     
     
                button = $('.vote-button', vote[i]); // plus and minus buttons
     
     
                pseudo = $(vdata.name, post).text() || 'MISSING_STRING'; // username of the poster
     
     
                ul = $(vdata.actions, post)[0]; // post actions
     
     
                li = document.createElement(vdata.tag); // vote system container
     
     
                li.className = 'fa_reputation';
     
     
             
     
     
                if (li.tagName == 'SPAN') li.style.display = 'inline-block';
     
     
             
     
     
                // calculate votes
     
     
                if (bar) {
     
     
                  total = +bar.title.replace(/.*?\((\d+).*/, '$1');
     
     
                  percent = +bar.title.replace(/.*?(\d+)%.*/, '$1');
     
     
               
     
     
                  n_pos = Math.round(total * (percent / 100));
     
     
                  n_neg = total - n_pos;
     
     
                } else {
     
     
                  n_pos = 0;
     
     
                  n_neg = 0;
     
     
                }
     
     
             
     
     
                // set up negative and positive titles with the correct grammar, votes, and usernames
     
     
                title_pos = (n_pos == 1 ? config.title_like_singular : config.title_like_plural).replace(/%\{USERNAME\}/g, pseudo).replace(/%\{VOTES\}/g, n_pos);
     
     
                title_neg = (n_neg == 1 ? config.title_dislike_singular : config.title_dislike_plural).replace(/%\{USERNAME\}/g, pseudo).replace(/%\{VOTES\}/g, n_neg);
     
     
             
     
     
                // define the vote counts
     
     
                li.innerHTML = '<span class="fa_count fa_positive" title="' + title_pos + '">' + n_pos + '</span>' + (config.negative_vote ? '&nbsp;<span class="fa_count fa_negative" title="' + title_neg + '">' + n_neg + '</span>' : '');
     
     
                span = li.getElementsByTagName('SPAN'); // get the vote count containers for use as insertion points
     
     
             
     
     
                // create positive vote button
     
     
                plus = document.createElement('A');
     
     
                plus.href = button[0] ? button[0].firstChild.href : '#';
     
     
                plus.onclick = button[0] ? submit_vote : function() { return false };
     
     
                plus.className = 'fa_vote' + (button[0] ? '' : 'd') + ' fa_plus';
     
     
                plus.innerHTML = config.icon_plus;
     
     
                plus.title = (button[0] ? config.title_plus : title_pos).replace(/%\{USERNAME\}/g, pseudo);
     
     
             
     
     
                span[0] && li.insertBefore(plus, span[0]);
     
     
             
     
     
                // create negative vote button
     
     
                if (config.negative_vote) {
     
     
                  minus = document.createElement('A');
     
     
                  minus.href = button[1] ? button[1].firstChild.href : '#';
     
     
                  minus.onclick = button[1] ? submit_vote : function() { return false };
     
     
                  minus.className = 'fa_vote' + (button[1] ? '' : 'd') + ' fa_minus';
     
     
                  minus.innerHTML = config.icon_minus;
     
     
                  minus.title = (button[1] ? config.title_minus : title_neg).replace(/%\{USERNAME\}/g, pseudo);
     
     
               
     
     
                  span[1] && li.insertBefore(minus, span[1]);
     
     
                }
     
     
             
     
     
                // create vote bar
     
     
                if (config.vote_bar) {
     
     
                  vote_bar = document.createElement('DIV');
     
     
                  vote_bar.className = 'fa_votebar';
     
     
                  vote_bar.innerHTML = '<div class="fa_votebar_inner" style="width:' + percent + '%;"></div>';
     
     
                  vote_bar.style.display = bar ? '' : 'none';
     
     
                  li.title = config.title_vote_bar.replace(/%\{USERNAME\}/, pseudo).replace(/%\{VOTES\}/, n_pos + '/' + (n_pos + n_neg)).replace(/%\{PERCENT\}/, '(' + percent + '%)');
     
     
                  li.appendChild(vote_bar);
     
     
                }
     
     
             
     
     
                // finally insert the vote system and remove the default one
     
     
                config.position_left ? ul.insertBefore(li, ul.firstChild) : ul.appendChild(li);
     
     
                vote[i].parentNode.removeChild(vote[i]);
     
     
              }
     
     
            });
     

    That should make your reputations system postive only Very Happy.

    Hope this helps,
    -Brandon


    Last edited by brandon_g on December 2nd 2015, 2:16 am; edited 1 time in total



    Like Button for posts only Brando10
    Remember to mark your topic Like Button for posts only Solved15 when a solution is found.
    General Rules | Tips & Tricks | FAQ | Forgot Founder Password?

    Like Button for posts only Scre1476
    Team Leader
    Review Section Rules | Request A Review | Sticker Points
    Maggie67
    Maggie67
    Forumember


    Female Posts : 57
    Reputation : 3
    Language : English

    Solved Re: Like Button for posts only

    Post by Maggie67 December 2nd 2015, 2:15 am

    Moved it from here now and its gone.

    negative_vote : true, // true for negative votes || false for positive
    brandon_g
    brandon_g
    Manager
    Manager


    Male Posts : 10113
    Reputation : 923
    Language : English
    Location : USA

    Solved Re: Like Button for posts only

    Post by brandon_g December 2nd 2015, 2:17 am

    Sorry, I just made an edit to my code, copy and paste my code in your javascript and erase your current one and it should work. Smile

    -Brandon



    Like Button for posts only Brando10
    Remember to mark your topic Like Button for posts only Solved15 when a solution is found.
    General Rules | Tips & Tricks | FAQ | Forgot Founder Password?

    Like Button for posts only Scre1476
    Team Leader
    Review Section Rules | Request A Review | Sticker Points
    Maggie67
    Maggie67
    Forumember


    Female Posts : 57
    Reputation : 3
    Language : English

    Solved Re: Like Button for posts only

    Post by Maggie67 December 2nd 2015, 2:23 am

    Perfect worked well and thank you.
    SLGray
    SLGray
    Administrator
    Administrator


    Male Posts : 51499
    Reputation : 3523
    Language : English
    Location : United States

    Solved Re: Like Button for posts only

    Post by SLGray December 2nd 2015, 2:28 am

    Topic solved and archived



    Like Button for posts only Slgray10

    When your topic has been solved, ensure you mark the topic solved.
    Never post your email in public.

      Current date/time is September 23rd 2024, 7:28 am