my like button
3 posters
Page 1 of 1
my like button
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:
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
- 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://2img.net/i/fa/admin/icones/ajouter.png" />';
var vminus='<img style="margin:0px 3px 0px 10px" title="Dislike" src="http://2img.net/i/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
Re: my like button
Did you do this?
P.S. Your profile says you have a phpBB3 forum.
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.
Lost Founder's Password |Forum's Utilities |Report a Forum |General Rules |FAQ |Tricks & Tips
You need one post to send a PM.
You need one post to send a PM.
When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
Re: my like button
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
- Posts : 2265
Reputation : 264
Language : English
Location : UK
Re: my like button
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
Re: my like button
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
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
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum