miniBB Support Forums | 16 years on The Web
miniBB ® 

miniBB

®
  
 | Begin | Register | Reply | Search | Statistics | File Bank | Manual |
Custom Tutorials and Modifications miniBB Support Forums / Custom Tutorials and Modifications /   
 

Like Buttons Anyone?

 
Author Bluesplayer
Partaker
#1 | Posted: 10 Nov 2018 11:28 
I have added like buttons to my posts now. Dead easy using a 3rd party script and a little messing around ...

http://brainwaving.co.uk/coding/index.php?action=vthread&forum=5&topic=23

Not all that functional I know but it adds a bit of fun and frivolity. All helps - I think.

Author Paul
Lead Developer
#2 | Posted: 13 Nov 2018 00:30 
It would be useful you also could provide instructions of what script did you use and how to embed it... the similar to something you have posted on your forum.

Author tom322
Active Member
#3 | Posted: 13 Nov 2018 06:01 
I saw no icons - until I disabled Adblock.. so they are like all those tracking social media buttons that I always fail to see ; )

Author Bluesplayer
Partaker
#4 | Posted: 13 Nov 2018 10:19 
Paul:
It would be useful you also could provide instructions of what script did you use and how to embed it... the similar to something you have posted on your forum.

The website providing the button code is this one ...

https://likebtn.com/en/

These are the steps I took to implement the code ...

Step 1
I added this to the parseMessage function found in bb_plugins.php file ...

/* Likes addon */
$GLOBALS['likes']="{$GLOBALS['cols'][6]}";
/* --Likes addon */

Step 2
Then I added 2 variables into the data-identifier of the supplied javascript ...

{$topicName}{$likes}

And placed the whole code in the appropriate part of main_posts_cell.html file - under the 'postedText' div.

The 2 variables add the topic tile and the message number to keep the identifier unique. This is essential for accurate likes and dislikes recording.

The above is all it took.

The FREE version will probably show multiple buttons on any forum page with the above alteration to the identifier part of the code (fooled into thinking each is a separate page) but I purchased a year's usage for $7.99 which allows for 20 displays (more than enough for my site as it is a very new site and pretty dead at present).

You can adjust their looks from quite a range. They seem to do their job fine, adding a little colour and fun to the forum posts.

Author Bluesplayer
Partaker
#5 | Posted: 13 Nov 2018 10:20 
tom322:
I saw no icons - until I disabled Adblock.. so they are like all those tracking social media buttons that I always fail to see ; )

I have to disable my VPN service to log into this site ;)

Author Paul
Lead Developer
#6 | Posted: 13 Nov 2018 18:26 
Bluesplayer
Thanks for your solution. I personally still don't support like/dislike operations for the forum, because it some way limits visitors to make a useful content, but I may consider to code a premium add-on for miniBB to add this system, I have some earlier requests already, so it's worth considering after all primary jobs on the project are done.

But regarding this:

Bluesplayer:
I have to disable my VPN service to log into this site ;)

What website do you mean? likebtn.com?

Author Bluesplayer
Partaker
#7 | Posted: 13 Nov 2018 18:31 
Paul:
Bluesplayer:
I have to disable my VPN service to log into this site ;)

What website do you mean? likebtn.com?

Earlier I received the minibb warning about some hacking attempt or something (this site - minibb). I disabled my VPN service and I was then able to log in. For some reason it isn't affecting me this time around.

Author Paul
Lead Developer
#8 | Posted: 13 Nov 2018 18:38 | Edited by: Paul 
Bluesplayer:
Earlier I received the minibb warning about some hacking attempt or something (this site - minibb).

I'm confused :) if some next day you receive something similar, please drop me a screenshot of what it says to ghappa at gmail dot com (and I'd actually wonder to know how such different things as VPN services and "hacking attempts" could live together...). May be it is all because this site is still not under https? Who knows...

Author tom322
Active Member
#9 | Posted: 13 Nov 2018 19:35 
Paul:
May be it is all because this site is still not under https?

Must be it (especially that it was during a login operation).

Custom Tutorials and Modifications miniBB Support Forums / Custom Tutorials and Modifications /
 Like Buttons Anyone?
 Share Topic's Link

Your Reply Click this icon to move up to the quoted message


 ?
Post as a Guest, leaving the Password field blank. You could also enter a Guest name, if it's not taken by a member yet. Sign-in and post at once, or just sign-in, bypassing the message's text.


Before posting, make sure your message is compliant with our forum posting rules. If not, it may be locked or deleted with no explanation.

 

 
miniBB Support Forums Powered by Forum Software miniBB ® Home  Features  Requirements  Demo  Download  Showcase  Gallery of Arts
Compiler  Premium Extensions  Premium Support  License  Contact Us
Try the Captcha add-on: protect your miniBB-forums from the automated spam and flood.
 ⇑