ⓦ৹₪deⓡ
Not New Member
Posts: 4
ⓦ৹₪deⓡ said 0 great things
|
Post by ⓦ৹₪deⓡ on Dec 9, 2009 18:57:44 GMT -8
This script will add a Facebook style Like/Dislike System to your board. Members will be able to like or dislike any post. A thumbs up and a thumbs down image is put at the bottom of every post: Click on either icon and every member, not guests, will see that you like or dislike that post. On every post that a member has liked or disliked, members will be able to see who likes and who dislikes: Clicking on the "2 people" link in the above picture would give you a complete list of who likes and who dislikes that post: You have the option to remove your likes and your dislikes by clicking either (Unlike) or (Undislike). Update: You now have the ability to choose a different background for the 2 different post background colors. likebg goes with windowbg and likebg2 goes with windowbg2. Additionally, you can disable liking or disliking. Let's say you don't want people to be able to dislike posts, then set disableDislike to true, and only liking will be available. Edit the red parts if you want to customize the background colors, the thumbs up/down images, or to disable liking/disliking. Place in Global Footers: <style type="text/css"><!-- /* Facebook Style Like/Dislike System v1.1 Copyright 12-08-2009 ~Wonder May not be reposted anywhere Place in Global Footer */ .likebg {background-color: #DADADA;} .likebg2 {background-color: #DADADA;} --></style> <script>
//Enter the URL of the image to the thumbs up icon likeimageurl="img192.imageshack.us/img192/2861/like.gif";
//Enter the URL of the image to the thumbs down icon dislikeimageurl="img192.imageshack.us/img192/3115/dislike.gif";
//If you want to disable people's ability to like posts, set this to true disableLike=false;
//If you want to disable people's ability to dislike posts, set this to true disableDislike=false;
</script> <script src="http://pblike.appspot.com/static/pblike.js"></script> |
|
|
|
Post by Wormopolis on Dec 9, 2009 20:42:26 GMT -8
Impressive as hell! Im actually running this on the site now.
I wish I could see it without obfuscation but I completely understand your secrecy.
|
|
ⓦ৹₪deⓡ
Not New Member
Posts: 4
ⓦ৹₪deⓡ said 0 great things
|
Post by ⓦ৹₪deⓡ on Dec 9, 2009 21:20:30 GMT -8
Impressive as hell! Im actually running this on the site now. Thanks I just modified the images to look better on darker backgrounds if you want to update your site. Well, the obfuscation is more to save on bandwidth than for security. But it also helps keep the novice user from poking around where they shouldn't.
|
|
|
Post by Wormopolis on Dec 9, 2009 21:22:37 GMT -8
Im probably still the novice level you refer to actually. I am starting to play around with PHP so I try to look at published codes as real world example as often as I can.
|
|
ⓦ৹₪deⓡ
Not New Member
Posts: 4
ⓦ৹₪deⓡ said 0 great things
|
Post by ⓦ৹₪deⓡ on Dec 12, 2009 3:56:19 GMT -8
Im probably still the novice level you refer to actually. I am starting to play around with PHP so I try to look at published codes as real world example as often as I can. Hey, we all start somewhere. I used to program on my calculator back in highschool. The backend of this software was actually written in python. So it wouldn't be much help to you learning PHP
|
|
cmjavagirl
Not New Member
Posts: 5
cmjavagirl said 0 great things
|
Post by cmjavagirl on Sept 2, 2010 19:18:56 GMT -8
Mr. Moon, Your site was quite the find -- great codes and easy to use! My site is one that hosts fan fiction that I write. It's a nice site, nothing really fancy -- I'm not a coder -- I'm a marketing consultant who writes fan fic for fun. I've been having difficulty getting some to reply as some are just too shy. So, I placed this code on my site, thenoname.proboards.com/index.cgi, to aid in getting some feedback to the stories that are posted. I replaced the thumbs up icon with one of my own. My question is this -- is there any way to show for each topic how many 'Likes' were received? Is there perhaps a way to show that instead of 'Replies' on the Home page? I would be interested in both these things. Can you help? Thanks for your attention, Lisa
|
|
|
Post by Wormopolis on Sept 3, 2010 10:49:59 GMT -8
I will see if I can get a PM to Wonder. This is a remotely hosted code, so changes like that cant be done locally.
|
|
cmjavagirl
Not New Member
Posts: 5
cmjavagirl said 0 great things
|
Post by cmjavagirl on Sept 3, 2010 17:24:10 GMT -8
Mr. Moon,
I appreciate your help. When you do contact Wonder could you ask if there is a code to track the people "Liking" a particular thread or topic? THAT would so awesome and so helpful.
Thanks, Lisa
|
|
|
Post by Wormopolis on Sept 3, 2010 19:25:27 GMT -8
Why do you keep calling me Mr Moon?
|
|
ⓦ৹₪deⓡ
Not New Member
Posts: 4
ⓦ৹₪deⓡ said 0 great things
|
Post by ⓦ৹₪deⓡ on Sept 4, 2010 10:10:04 GMT -8
I don't keep a running tab on the number of Likes/Dislikes for a thread and calculating it would take too much CPU time, so it's probably not going to happen. And even if you just wanted the number of Likes/Dislikes from the first post of the thread, the post number of the first post in not available on the thread list, so it's not possible. Sorry.
|
|
cmjavagirl
Not New Member
Posts: 5
cmjavagirl said 0 great things
|
Post by cmjavagirl on Sept 4, 2010 20:25:22 GMT -8
Why do you keep calling me Mr Moon? I sincerely beg your pardon. I thought that was your name. I thought I saw someone address you with that name. I'm so sorry. I assure you, no offense was meant. Thank you for access to your great site. Your index and codes made it easy for this non-programmer to add coding to my Proboard site. Thank you for all your help in contacting Wonder. Best, Lisa
|
|
cmjavagirl
Not New Member
Posts: 5
cmjavagirl said 0 great things
|
Post by cmjavagirl on Sept 4, 2010 20:27:55 GMT -8
I don't keep a running tab on the number of Likes/Dislikes for a thread and calculating it would take too much CPU time, so it's probably not going to happen. And even if you just wanted the number of Likes/Dislikes from the first post of the thread, the post number of the first post in not available on the thread list, so it's not possible. Sorry. I understand. Thank you for getting back to me. I'm going to try to work out another system for using the 'Likes' so that they can be counted and I can be notified that someone has 'Liked' a certain chapter of one of the stories. If I can get my membership to cooperate, it will be a very good thing, Thanks again for providing this code. Best, Lisa
|
|
SuperDave!
Not New Member
[Sj1:0]
Posts: 1
SuperDave! said 0 great things
|
Post by SuperDave! on Nov 12, 2010 11:34:55 GMT -8
I love this script and am using it on my forum (The Goalies Crease - http://goaliescrease.proboards.com)
However, lately been having some issues with it not working. Seems every now and then I can like/dislike a post, and then it just seems to stop working ....
any ideas?? it's a really great feature and I love it ... need some help!
|
|
|
Post by Wormopolis on Nov 12, 2010 16:34:48 GMT -8
Its remotely hosted, so I will pass along a PM to Wonder about it.
|
|
|
Post by Wormopolis on Nov 13, 2010 14:05:22 GMT -8
|
|