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.

Like/Dislike button replaced

3 posters

Go down

Like/Dislike button replaced Empty Like/Dislike button replaced

Post by Senzu August 30th 2012, 10:52 pm

what happened to my like/dislike button? it should be here:
Like/Dislike button replaced Bezaty22

and it is here:
Like/Dislike button replaced Bezaty23

i just switched my forum from Invision to phpBB3, the skin is Candy by mex and my forum link is http://dragonballrevolution.go-board.com
Senzu
Senzu
Forumember

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

http://devilonmyshoulder.forumo.org/

Back to top Go down

Like/Dislike button replaced Empty Re: Like/Dislike button replaced

Post by DarkGlow August 31st 2012, 12:57 am

Hi,

CSS was messed up. Once you change a theme, CSS resets, that for sure affected. Re-add the code into your CSS:

Code:

.LGlike {
  background: #105289;
  padding: 3px;
  border-radius: 4px;
  color: #fff;
  font-size: 10px;
  font-weight: bold;
  text-shadow: -1px 0.5px #888;
  box-shadow: 1px 1px 1px #888;
  cursor: pointer;
  margin-right: 4px;
 }
 .LGvote { margin: 0 5px; }
 .LGnovote {
  filter:Alpha(opacity=50);
  opacity: 0.5;
  cursor: default;
  box-shadow: none;
  text-shadow: none;
 }

Good luck.
DarkGlow
DarkGlow
Forumember

Male Posts : 629
Reputation : 92
Language : English | Hebrew | Arabic
Location : Israel

Back to top Go down

Like/Dislike button replaced Empty Re: Like/Dislike button replaced

Post by LGforum August 31st 2012, 1:07 am

Your missing the CSS. Because you changed theme, the CSS was cleared.

And the CSS in the post above won't do anything since your not using that system.
LGforum
LGforum
Hyperactive

Male Posts : 2265
Reputation : 264
Language : English
Location : UK

Back to top Go down

Like/Dislike button replaced Empty Re: Like/Dislike button replaced

Post by DarkGlow August 31st 2012, 1:10 am

LGforum wrote:Your missing the CSS. Because you changed theme, the CSS was cleared.

And the CSS in the post above won't do anything since your not using that system.

It actually does. What are you saying, mate? Wink
DarkGlow
DarkGlow
Forumember

Male Posts : 629
Reputation : 92
Language : English | Hebrew | Arabic
Location : Israel

Back to top Go down

Like/Dislike button replaced Empty Re: Like/Dislike button replaced

Post by LGforum August 31st 2012, 3:00 am

You provided the CSS for the code I wrote. He's not using that code, he's using the modification from Dion Designs. It has different CSS, so what you provided will not fix his issue.
LGforum
LGforum
Hyperactive

Male Posts : 2265
Reputation : 264
Language : English
Location : UK

Back to top Go down

Like/Dislike button replaced Empty Re: Like/Dislike button replaced

Post by DarkGlow August 31st 2012, 1:20 pm

If he used a different code, then he should simply re-add it to the CSS. Wink
DarkGlow
DarkGlow
Forumember

Male Posts : 629
Reputation : 92
Language : English | Hebrew | Arabic
Location : Israel

Back to top Go down

Like/Dislike button replaced Empty Re: Like/Dislike button replaced

Post by Senzu August 31st 2012, 1:28 pm

i used the above code but it brought my buttons to original look like is in here on the side
Senzu
Senzu
Forumember

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

http://devilonmyshoulder.forumo.org/

Back to top Go down

Like/Dislike button replaced Empty Re: Like/Dislike button replaced

Post by LGforum August 31st 2012, 1:32 pm

Yes DarkGlow I know what CSS is for. Rolling Eyes

The CSS for that system from Dion designs actually includes the CSS in the JavaScript, so you might have removed it without realising it was needed. You can just go back to the topic here: http://forum.dion-designs.com/viewtopic.php?f=8&t=1338
LGforum
LGforum
Hyperactive

Male Posts : 2265
Reputation : 264
Language : English
Location : UK

Back to top Go down

Like/Dislike button replaced Empty Re: Like/Dislike button replaced

Post by DarkGlow August 31st 2012, 1:33 pm

Then do as you've done previously to change their positions Wink
DarkGlow
DarkGlow
Forumember

Male Posts : 629
Reputation : 92
Language : English | Hebrew | Arabic
Location : Israel

Back to top Go down

Like/Dislike button replaced Empty Re: Like/Dislike button replaced

Post by Senzu August 31st 2012, 1:47 pm

i edited the javascript code that looks like this.

Code:
var CopyrightNotice = 'Professional like/dislike bar for forumotion phpBB3 boards. Copyright ©️ 2011 by Dion Designs. All Rights Reserved. Use and/or modification of this script is allowed, provided this entire copyright notice remains in the original or modified script. Distribution is not allowed without written consent from Dion Designs.';
$(function() {
    $('#main-content').prepend('<style type="text/css">ul.profile-icons li.ddvote{height:20px;line-height:20px;background:#fff;color:#000;border:1px solid #a0b0c0;font-size:12px;font-weight:bold}ul.profile-icons li.ddvote a{display:inline}.postbody ul.profile-icons li.ddvote img{cursor:default;vertical-align:middle}.postbody ul.profile-icons li.ddvote a img{cursor:pointer}</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);
        }
        if (x[i].parentNode.parentNode.parentNode.className=='module row1

i have it on my other forums and it works fine. it just doesn't work in here now. i don't want to change my skin :/

i don't remember what else i could do. i already replaced the pictures of plus and minus with right pics in pics management. what else? remind me Very Happy
Senzu
Senzu
Forumember

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

http://devilonmyshoulder.forumo.org/

Back to top Go down

Back to top


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