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.

2 Javascript Codes on same post

View previous topic View next topic Go down

Solved 2 Javascript Codes on same post

Post by Zork22 on March 30th 2013, 1:58 am

Hi guys Very Happy I just filled in all the required javascript for a "like post" option, checked the 'post only' box and went to a post to see if it worked, it did. I went back, made a new javascript code for dislikes, checked the required boxes, and went to a post to see if it worked, it did, but it replaced my 'like' option? How can I have a like and dislike option both at the same time.

Zork22
New Member

Posts : 13
Reputation : 1
Language : English

Back to top Go down

Solved Re: 2 Javascript Codes on same post

Post by E-Mark on March 30th 2013, 4:04 am

Can you provide your forum URL? And the 2 codes you use.

E-Mark
Active Poster

Male Posts : 1389
Reputation : 164
Language : English, Tagalog
Location : Republic of the Philippines

http://coding-spot.darkbb.com/

Back to top Go down

Solved Re: 2 Javascript Codes on same post

Post by Zork22 on March 30th 2013, 4:24 am

blackgaardscastle.forumotion.com

I used the codes

Code:
var like_version = 'phpbb3';
var DOM_IS_READY = false;
$(function(){DOM_IS_READY=true;});
var vote_singular = 'Like';
var vote_plural = 'Likes';
$.getScript('http://www.avacweb.net/like');


and


Code:
var dislike_version = 'phpbb3';
var DOM_IS_READY = false;
$(function(){DOM_IS_READY=true;});
var vote_singular = 'Dislike';
var vote_plural = 'Dislikes';
$.getScript('http://www.avacweb.net/dislike');


Last edited by Sir Chivas™ on March 30th 2013, 4:39 am; edited 1 time in total (Reason for editing : Added code tags)

Zork22
New Member

Posts : 13
Reputation : 1
Language : English

Back to top Go down

Solved Re: 2 Javascript Codes on same post

Post by Sir Chivas™ on March 30th 2013, 4:41 am

The like should work, but I don't know if the dislike would work because his codes run on a server, I believe. I don't think that will work. Have you tried getting help from avacweb?



Attention!
- Please provide your forum URL at all times.
- When the issue is solved, please mark it as solved.



Sir Chivas™
Support Moderator
Support Moderator

Male Posts : 6783
Reputation : 430
Language : EN, FR, ES
Location : || CSS || HTML || Graphics Designs || Support ||

Back to top Go down

Solved Re: 2 Javascript Codes on same post

Post by E-Mark on March 30th 2013, 4:43 am

Agree with Chivas.
The dislike will most likely not work, because the dislike server of AW: http://www.avacweb.net/dislike is not working. The code written in the dislike show that it gets the script from its server, but as you can see, it's not available. So, it will not work.

E-Mark
Active Poster

Male Posts : 1389
Reputation : 164
Language : English, Tagalog
Location : Republic of the Philippines

http://coding-spot.darkbb.com/

Back to top Go down

Solved Re: 2 Javascript Codes on same post

Post by Zork22 on March 30th 2013, 4:54 am

Oh, ok, thanks Very Happy

Zork22
New Member

Posts : 13
Reputation : 1
Language : English

Back to top Go down

Solved Re: 2 Javascript Codes on same post

Post by Sir Chivas™ on March 30th 2013, 5:09 am

Is this solved?



Attention!
- Please provide your forum URL at all times.
- When the issue is solved, please mark it as solved.



Sir Chivas™
Support Moderator
Support Moderator

Male Posts : 6783
Reputation : 430
Language : EN, FR, ES
Location : || CSS || HTML || Graphics Designs || Support ||

Back to top Go down

Solved Re: 2 Javascript Codes on same post

Post by Zork22 on March 30th 2013, 5:13 am

Yup

Zork22
New Member

Posts : 13
Reputation : 1
Language : English

Back to top Go down

Solved Re: 2 Javascript Codes on same post

Post by Sir Chivas™ on March 30th 2013, 5:48 am

Topic Solved & Locked



Attention!
- Please provide your forum URL at all times.
- When the issue is solved, please mark it as solved.



Sir Chivas™
Support Moderator
Support Moderator

Male Posts : 6783
Reputation : 430
Language : EN, FR, ES
Location : || CSS || HTML || Graphics Designs || Support ||

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