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.

Like button not displaying

View previous topic View next topic Go down

Like button not displaying

Post by Derri on May 13th 2012, 4:12 am

http://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.

Derri
Administrator
Administrator

Male Posts : 8385
Reputation : 576
Language : English & Basic French
Location : Scotland, United Kingdom

Back to top Go down

Re: Like button not displaying

Post by +Fusion- on May 13th 2012, 8:30 am

Are you on PHPBB3 or Invision, because it only works for those forum versions.

+Fusion-
Forumember

Male Posts : 252
Reputation : 4
Language : English
Location : Flying

http://www.xcodezz.com

Back to top Go down

Re: Like button not displaying

Post by Derri on May 13th 2012, 1:23 pm

@+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
Administrator
Administrator

Male Posts : 8385
Reputation : 576
Language : English & Basic French
Location : Scotland, United Kingdom

Back to top Go down

Re: Like button not displaying

Post by LGforum on May 13th 2012, 3:30 pm

Well you should always start on anew line inCSS, it's just good practise Wink
Can you paste your board URL to check for errors.

LGforum
Hyperactive

Male Posts : 2260
Reputation : 258
Language : English
Location : UK

http://www.avacweb.com/

Back to top Go down

Re: Like button not displaying

Post by Derri on May 13th 2012, 5:31 pm

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.


Forum Rules : : Forumotion Staff : : Appeal A Warning : : FAQ : : Tips & Tricks : : Forgotten Password/Login Issues
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


Derri
Administrator
Administrator

Male Posts : 8385
Reputation : 576
Language : English & Basic French
Location : Scotland, United Kingdom

Back to top Go down

Re: Like button not displaying

Post by LGforum on May 13th 2012, 5:41 pm

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:
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

Male Posts : 2260
Reputation : 258
Language : English
Location : UK

http://www.avacweb.com/

Back to top Go down

Re: Like button not displaying

Post by runawayhorses on May 13th 2012, 6:44 pm

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.

runawayhorses
Hyperactive

Male Posts : 2537
Reputation : 162
Language : English
Location : United States

http://runawayhorses.alldiscussion.net/

Back to top Go down

Re: Like button not displaying

Post by LGforum on May 13th 2012, 6:49 pm

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. Rolling Eyes

LGforum
Hyperactive

Male Posts : 2260
Reputation : 258
Language : English
Location : UK

http://www.avacweb.com/

Back to top Go down

Re: Like button not displaying

Post by +Fusion- on May 13th 2012, 6:56 pm

Just wondering, is there anyway to make this like/dislike for phpbb2?

+Fusion-
Forumember

Male Posts : 252
Reputation : 4
Language : English
Location : Flying

http://www.xcodezz.com

Back to top Go down

Re: Like button not displaying

Post by LGforum on May 13th 2012, 7:16 pm

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.

LGforum
Hyperactive

Male Posts : 2260
Reputation : 258
Language : English
Location : UK

http://www.avacweb.com/

Back to top Go down

Re: Like button not displaying

Post by runawayhorses on May 13th 2012, 7:27 pm

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.

runawayhorses
Hyperactive

Male Posts : 2537
Reputation : 162
Language : English
Location : United States

http://runawayhorses.alldiscussion.net/

Back to top Go down

Re: Like button not displaying

Post by +Fusion- on May 13th 2012, 7:49 pm

Rideem3 wrote:The tutorial has been updated, so everything should be working now. Wink

Nice

+Fusion-
Forumember

Male Posts : 252
Reputation : 4
Language : English
Location : Flying

http://www.xcodezz.com

Back to top Go down

Re: Like button not displaying

Post by LGforum on May 13th 2012, 7:54 pm

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.

LGforum
Hyperactive

Male Posts : 2260
Reputation : 258
Language : English
Location : UK

http://www.avacweb.com/

Back to top Go down

Re: Like button not displaying

Post by runawayhorses on May 13th 2012, 8:15 pm

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.. Smile

runawayhorses
Hyperactive

Male Posts : 2537
Reputation : 162
Language : English
Location : United States

http://runawayhorses.alldiscussion.net/

Back to top Go down

Re: Like button not displaying

Post by Derri on May 13th 2012, 8:31 pm

Yep this is working perfectly for me now.


Forum Rules : : Forumotion Staff : : Appeal A Warning : : FAQ : : Tips & Tricks : : Forgotten Password/Login Issues
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


Derri
Administrator
Administrator

Male Posts : 8385
Reputation : 576
Language : English & Basic French
Location : Scotland, United Kingdom

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