Like button not displaying
4 posters
Page 1 of 1
Like button not displaying
https://help.forumotion.com/t108561-a-new-like-dislike-system-phpbb3-and-invision
I followed that tutorial to the letter. and it's not displaying the button.
I went into my javascript management section pasted the code into a new file. Set it to display in the topics only section.
I saved went into the CSS style sheet clicked on where the last piece of code I had entered and pressed the enter button to bring up a new line.
I then pasted the code in. Hit save.
Nothing is happening at all. I activated reputation and that's not done anything other than display the +/- button again.
Any advice or help, Also when I go to add more to my CSS style sheet is there anything I should do like start on a new line or something.
I followed that tutorial to the letter. and it's not displaying the button.
I went into my javascript management section pasted the code into a new file. Set it to display in the topics only section.
I saved went into the CSS style sheet clicked on where the last piece of code I had entered and pressed the enter button to bring up a new line.
I then pasted the code in. Hit save.
Nothing is happening at all. I activated reputation and that's not done anything other than display the +/- button again.
Any advice or help, Also when I go to add more to my CSS style sheet is there anything I should do like start on a new line or something.
Derri- Helper
- Posts : 8755
Reputation : 638
Language : English & Basic French
Location : Scotland, United Kingdom
Re: Like button not displaying
Are you on PHPBB3 or Invision, because it only works for those forum versions.
Re: Like button not displaying
+Fusion- wrote:Are you on PHPBB3 or Invision, because it only works for those forum versions.
Yes I am using PHPBB3,
I have entered everything in correctly as far as I am aware and I honestly can say I have no clue on what do to.
Any advice.
Derri- Helper
- Posts : 8755
Reputation : 638
Language : English & Basic French
Location : Scotland, United Kingdom
Re: Like button not displaying
Well you should always start on anew line inCSS, it's just good practise
Can you paste your board URL to check for errors.
Can you paste your board URL to check for errors.
LGforum- Hyperactive
- Posts : 2265
Reputation : 264
Language : English
Location : UK
Re: Like button not displaying
As far as I can tell I have no Errors in my console area.
Nothing is being displayed under the errors section.
Any other advice.
Nothing is being displayed under the errors section.
Any other advice.
Derri- Helper
- Posts : 8755
Reputation : 638
Language : English & Basic French
Location : Scotland, United Kingdom
Re: Like button not displaying
I'll just copy a post I just made on my board:
Okay so I found an issue with this script today regarding Forumotions script compiling. Basically, for optimization, forumotion takes out all unnecessary code from your Javascript when they are being used on page, this means unneeded semi-colons, line breaks etc...
The issue is with this line:
Its taking the semi colon from the end assuming the '/' as the start of a Regular Expression.
If you find this code is not working for you then replace that line with this:
Obviously changing the division by 100, to a multlication of 0.01, which is the same.
Okay so I found an issue with this script today regarding Forumotions script compiling. Basically, for optimization, forumotion takes out all unnecessary code from your Javascript when they are being used on page, this means unneeded semi-colons, line breaks etc...
The issue is with this line:
- Code:
plus = Math.round(parseInt(percent)*parseInt(count))/100;
Its taking the semi colon from the end assuming the '/' as the start of a Regular Expression.
If you find this code is not working for you then replace that line with this:
- Code:
plus = Math.round(parseInt(percent)*parseInt(count));
plus = (plus*0.01);
Obviously changing the division by 100, to a multlication of 0.01, which is the same.
LGforum- Hyperactive
- Posts : 2265
Reputation : 264
Language : English
Location : UK
Re: Like button not displaying
I tried that like button too and it didn't work. I tried changing that java script line also and it didn't do anything.
I have the the other vote buttons that run on javascript and I thought maybe that was interfering with it so I disabled that for a moment to see if I could get the Like button to show, but that did nothing either.
Is the new Like button supposed to work if you have the other vote buttons running? Can they both work at the same time? It would be nice to have the vote buttons on top like they are now and the like button at the bottom, even though they both do the same thing. I use phpbb3.
I have the the other vote buttons that run on javascript and I thought maybe that was interfering with it so I disabled that for a moment to see if I could get the Like button to show, but that did nothing either.
Is the new Like button supposed to work if you have the other vote buttons running? Can they both work at the same time? It would be nice to have the vote buttons on top like they are now and the like button at the bottom, even though they both do the same thing. I use phpbb3.
Re: Like button not displaying
No it wouldn't be possible for them both to work.
I'm going to have to compile this code using a proper Javascript compiler since forumotion compiler seems unable to make any use of it...
I'll be updating the tutorials on other forums, and sending the compiled code to the staff here to update the tutorial here.
Apologies to everyone, I over-estimated Forumotions javascript compressor.
I'm going to have to compile this code using a proper Javascript compiler since forumotion compiler seems unable to make any use of it...
I'll be updating the tutorials on other forums, and sending the compiled code to the staff here to update the tutorial here.
Apologies to everyone, I over-estimated Forumotions javascript compressor.
LGforum- Hyperactive
- Posts : 2265
Reputation : 264
Language : English
Location : UK
Re: Like button not displaying
Just wondering, is there anyway to make this like/dislike for phpbb2?
Re: Like button not displaying
I don't plan on making one for phpbb2 but someone is welcome to modify the code to do so and post it on my forum in the original tutorial for their credits.
The codes in the original tutorial here: http://www.avacweb.com/t195-20-a-new-like-vote-system have been compiled and sorted now. The codes on this forum should be updated very soon.
The codes in the original tutorial here: http://www.avacweb.com/t195-20-a-new-like-vote-system have been compiled and sorted now. The codes on this forum should be updated very soon.
LGforum- Hyperactive
- Posts : 2265
Reputation : 264
Language : English
Location : UK
Re: Like button not displaying
Do you think there is any way sometime the code will be made to work with the vote button code too so you can have both? If I could use both I'd do it, but as it stands now the vote buttons are really nice, so I wouldn't give up the vote buttons for the like button, but if I could use both I would.
Re: Like button not displaying
Rideem3 wrote:The tutorial has been updated, so everything should be working now.
Nice
Re: Like button not displaying
Its not possible, since both are modifications of the default vote system... in order to have both you'd have to have 2 reputation systems.
It may be possible to make it so that the likes run off of the negative votes, and the plus button runs of the postive votes, but it would mean writing pretty much a whole new code.
It may be possible to make it so that the likes run off of the negative votes, and the plus button runs of the postive votes, but it would mean writing pretty much a whole new code.
LGforum- Hyperactive
- Posts : 2265
Reputation : 264
Language : English
Location : UK
Re: Like button not displaying
Ok, well I'll have to pass on the Like button because the vote buttons are equally as nice on my forum if not prettier than what the like button would be. The buttons themselves actually complement the look of the posts.
I wouldn't want to do away with the negative votes because that is used quite often on my forum. If someone doesn't like a post they don't hesitate to give a negative vote.
Thanks LG keep up the good work, what you do is awesome..
I wouldn't want to do away with the negative votes because that is used quite often on my forum. If someone doesn't like a post they don't hesitate to give a negative vote.
Thanks LG keep up the good work, what you do is awesome..
Re: Like button not displaying
Yep this is working perfectly for me now.
Derri- Helper
- Posts : 8755
Reputation : 638
Language : English & Basic French
Location : Scotland, United Kingdom
Similar topics
» Thanks button not displaying
» displaying mod's
» Help with Txt displaying
» Not displaying rank name
» banner not displaying
» displaying mod's
» Help with Txt displaying
» Not displaying rank name
» banner not displaying
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum