The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

my like button

View previous topic View next topic Go down

In progress my like button

Post by Senzu on February 4th 2012, 11:07 pm

i was reading the thread Like Post Button and i decided to do this for my invision forum. i clicked on this link http://www.diondesigns.org/t1338-example-10-a-professional-looking-like-dislike-bar-phpbb3-invision-punbb and i tried to do the same thing. here's the code i used for invision:

Code:
';
$(function() {
    $('#main-content').prepend('<style type="text/css">ul.post-info li.ddvote{height:20px;line-height:20px;background:#fff;color:#000;border:1px solid #a0b0c0;font-size:12px;font-weight:bold;}</style>');
    var x=$('.vote').get();
    for (i=x.length-1; i>=0; i--) {
        var plus='0';
        var minus='0';

        var vplus='<img style="position:relative;top:-3px;margin-right:3px" title="Like" src="http://illiweb.com/fa/admin/icones/ajouter.png" />';
        var vminus='<img style="margin:0px 3px 0px 10px" title="Dislike" src="http://illiweb.com/fa/admin/icones/supprimer.png" />';

        var y=$(x[i]).find('.vote-button a').get();
        for (j=0; j<y.length; j++) {
            if (y[j].innerHTML=='+') {vplus='<a href="'+y[j].href+'">'+vplus+'</a>';}
            else if (y[j].innerHTML=='-') {vminus='<a href="'+y[j].href+'">'+vminus+'</a>';}
        }
        var y=$(x[i]).find('.vote-bar')[0];
        if (y) {
            var z=y.title.split(' ');
            var pct=parseInt(z[3].replace(/%/,''))/100;
            var num=parseInt(z[4].replace(/\(/,''));
            plus=String(Math.round(num*pct));
            minus=String(num-plus);
        }
        $(x[i].parentNode.previousSibling.childNodes[0]).prepend('<li class="ddvote">' + vplus + plus + vminus + minus + '<li>');
        x[i].parentNode.removeChild(x[i]);
    }
});


i wanted to post in that thread but it's Solved, wasn't sure if i could

if needed, here's the link to my forum http://dragonballrevolution.go-board.com

Senzu
Forumember

Female Posts : 128
Reputation : 3
Language : english
Location : Brzeg

http://devilonmyshoulder.forumo.org/

Back to top Go down

In progress Re: my like button

Post by SLGray on February 4th 2012, 11:29 pm

Did you do this?

To install this new feature, make sure you have the Reputation system activated. ACP>Modules>Reputation, set "Activate Reputation System" to Yes, and click Save. Then create a javascript file and select the "In all the pages" option. Paste the board-specific script from this tutorial, and make sure to change the URLs of the images to the images you want to use. Finally, if you do not want the CSS in the script, remove that line from the script and add the CSS rule(s) to your system CSS. The CSS will need modification if you're using images larger than 16 pixels in height, or if your post area uses a dark background.

P.S. Your profile says you have a phpBB3 forum.


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


SLGray
Administrator
Administrator

Male Posts : 35667
Reputation : 2375
Language : English
Location : United States

http://fmthemes.forumotion.com/

Back to top Go down

In progress Re: my like button

Post by LGforum on February 4th 2012, 11:34 pm

You have removed the copyright notice. Not only that oyu have removed it incorrectly and left yourself a syntax error. I suggest you go back and copy the code again WITH the copyright Notice in place.

LGforum
Hyperactive

Male Posts : 2254
Reputation : 254
Language : English
Location : UK

http://www.avacweb.com/

Back to top Go down

In progress Re: my like button

Post by Guest on February 4th 2012, 11:57 pm

And I suggest that you either install the ENTIRE script, or remove it from your board entirely. Because now that I know you are trying to remove the copyright, I will be watching...and I WILL report your board to forumotion Litigation if you don't follow one of these two suggestions.

Guest
Guest


Back to top Go down

In progress Re: my like button

Post by Senzu on February 5th 2012, 12:11 am

i thought it was just an information for me lol. correcting it now

and i have three forums on your platform, two on phpBB3 and one on Invision

edit: worked.

thanks guys lol

and can i do it for phpBB3 with darker background like this? http://devilonmyshoulder.forumo.org

Senzu
Forumember

Female Posts : 128
Reputation : 3
Language : english
Location : Brzeg

http://devilonmyshoulder.forumo.org/

Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum