[RC2] phpBB Ajax Like

A place for MOD Authors to post and receive feedback on MODs still in development. No MODs within this forum should be used within a live environment!
Anti-Spam Guide
Locked
User avatar
emosbat
Registered User
Posts: 564
Joined: Sat Jan 28, 2012 1:25 pm

[RC2] phpBB Ajax Like

Post by emosbat »

** please read FIX COMMON PROBLEMS at the end of this post before sending your question about problems **

*** if mod not working and you need help from me, you should:
first check all suggestion in FIX COMMON PROBLEMS section. second if problem continue, install firebug addon in firefox, active it and refresh page and let me know if you see any error message in console tab. I have not enough time to visit every board and find every problem sorry :( I also do not support custom themes, you may hire a designer to make this mod working in a custom theme.


Modification Name: phpBB Ajax Like

Authors: eMosbat, ..::¦DJ¦::..

Modification Description:
this MOD add Like button feature to your board.

Modification Version:: 1.1.0

Requirements: phpBB 3.0.x, jQuery Pack for phpBB

you should install jQuery Pack for phpBB to make this MOD workable!

Features:
  • full ajax
  • display number of liked posts in user details (in topics)
  • display number of likes received in user details (in topics)
  • acp option to enable/disable like feature
  • acp option to disallow unlike
  • user permission and forum permission for using MOD
  • show latest likes in user profiles
  • ucp option to show/hide likes in profile
  • notification feature
  • subsilver2 support
Screenshots:

Image

Image

Image

notification feature:
Image

Image


Modification Download:
phpBB Ajax Like MOD

Contributes:
language translation that included in mod package: Themes:
  • phpBB Ajax Like for Absolution Theme
Image Donate:

my bitcoin is 1NEkMQUBCbV73VMZKjTdLREcfgGkWig39M

FIX COMMON PROBLEMS:

popup and dialog not working:
- remove all duplicate jquery and jqueryui entries (jquery.js, jquery-min.js, jquery-1.x.y.z.js, jquery-ui.js, jquery-ui-min.js, etc). ONLY include Jquery Pack for phpBB MOD and enable it. if you have more than one jquery in your code you get conflict error from this mod and other mods that use jquery. make sure jquery pack is installed correctly in your theme and is enable and remove all other jquery entries.

username popup (likes) not show correctly:
- remove all duplicate tipsy.js entries. some theme use this jquery plugins and also we used it in MOD. you could included and use this MOD's tipsy entry in your theme. if you have more than one tipsy.js in your code you get error.

Like button do not aprear:
- make sure that you set Group/User Permissions and Group forum Permissions to allow like posts.
- if you use theme rather than prosilver/subsliver2 you should copy files from prosilver/subsliver2 folder of mod package to your theme folder depend on what your theme base is (prosilver or subsliver2).
- if you use language rather than english, copy all language files to folder of your language (if translate not exist).


jquery conflict with other MODs:
- if you installed MODs that use jquery such as MChat, you should edit code and do not include two jquery entry also you should update to lastest jquery pack mod. here is some suggested fix (not tested):

- MChat jquery conflict fix
- Socialnet jquery conflict fix



I get this error from other mods that use jquery TypeError: $ is not a function

look that source codes and change $ to JQuery for example if your mod use something like:
$(document).ready(function().....
change it to:
jQuery(document).ready(function().....


notification dialog not work when click on link:
- make sure you have just one jquery entry as I said in previous suggestion. remove duplicate entries (jquery.js and jquery-ui.js).
- make sure jquery pack is installed correctly in your theme and is enable.


notification popup does not hide:
- make sure jquery pack is installed correctly in your theme and is enable.

check source code for duplicate entries:
- for some unknow reason, automod may apply modifies twice in some custom themes and if this happen, notification will not works. check theme sources for duplicate entries (specially check header and footer template file).
example:
<!-- ajaxlike -->
<div id="ajaxlike_not-dialog">
</div>
<div id="ajaxlike-not-dialog" title="List of new likes">
</div>

<script type="text/javascript">
// <![CDATA[
ajaxlike_init_notify(15000,'./viewtopic.php');
// ]]>
</script>
<!-- ajaxlike -->
<!-- ajaxlike -->
<div id="ajaxlike_not-dialog">
</div>
<div id="ajaxlike-not-dialog" title="List of new likes">
</div>

<script type="text/javascript">
// <![CDATA[
ajaxlike_init_notify(15000,'./viewtopic.php');
// ]]>
</script>
<!-- ajaxlike -->
in this example red code duplicated.
Last edited by emosbat on Sun Sep 07, 2014 7:34 am, edited 75 times in total.
EnigmaWB
Registered User
Posts: 5
Joined: Sun Sep 16, 2012 1:37 pm

Re: [ALPHA] eMosbat Ajax Like

Post by EnigmaWB »

will this ever be released?
Senky
Former Team Member
Posts: 2300
Joined: Thu Apr 30, 2009 8:49 pm
Name: Jakub
Contact:

Re: [DEV] eMosbat Ajax Like

Post by Senky »

Really nice!
‎‏‏ ‎‏‏‎ ‎‏‏‎ ‎‏‏‎ ‎‏‏‎ ‎‏‏‎ ‎‏‏‎ ‎‏‏‎ ‎‏‏‎ ‎‏‏‎ ‎‏‏‎ ‎‏‏‎ ‎‏‏‎‏‏‎ ‎‏‏‎ ‎‏‏‎ ‎‏‏‎ ‎‏‏‎ ‎‏‏‎ ‎ ‎‏‎‏‏‎ ‎ ‎ ‎‏‏‎ ‎‏‏‎ ‎‏‏‎ ‎‏‏‎ ‎‏‏‎ ‎‏‏‎ ‎‏‏‎ ‎‏‏‎ ‎‏‏‎ ‎‏‏‎ ‎‏‏‎ ‎‏‏‎‏‏‎🔔
Browser & Mobile Notifications Extension
Now with Safari (both macOS and iOS) support!
User avatar
Kamahl19
Registered User
Posts: 1598
Joined: Tue Nov 06, 2007 3:33 pm
Location: Slovakia
Name: Martin
Contact:

Re: [DEV] eMosbat Ajax Like

Post by Kamahl19 »

This looks interesting
Ather
Registered User
Posts: 1032
Joined: Fri May 08, 2009 9:42 am
Location: Kingdom of Bahrain
Name: Ather Akber

Re: [DEV] eMosbat Ajax Like

Post by Ather »

looks really amazing, i hope its released tho...

a question, are the likes stored in the database or just using cookies?
CPL Syed Ather Akbar
Regional Command Southwest
Camp Leatherneck, Afghanistan

My Mods/Snippets
User avatar
Jessica
Former Team Member
Posts: 4342
Joined: Sun Jul 18, 2010 2:53 pm
Location: Pennsylvania, USA
Name: Jessica
Contact:

Re: [DEV] eMosbat Ajax Like

Post by Jessica »

looks cool. gonna keep an eye on this.

Suggestions:
  • Show the posts you liked in your profile
  • # of likes given (for what posts)
  • # of likes received (for what posts)
  • above two listed in profile and mini profile (posts) - you can give options for them, maybe
Pro-choice, Atheist, Pro-LGBT rights
Everybody is a genius. But if you judge a fish by its ability to climb a tree, it will live its whole life believing that it is stupid. - Albert Einstein
User avatar
Meis2M
Translator
Posts: 1009
Joined: Wed Mar 03, 2010 11:32 am
Location: IR.Damghan
Name: میثم نوبری
Contact:

Re: [DEV] eMosbat Ajax Like

Post by Meis2M »

congratulation :D

this mod like vbseo like system and i know your mods is best. im waiting for final release.

oh...dont forget support on subsilver 2 :lol:
Last edited by Meis2M on Mon Sep 17, 2012 7:56 am, edited 1 time in total.
phpBB persian international support
Follow us in Instagram
Free upgrade and install extensions on your forum - drop me PM
Ultimate phpBB SEO Friendly URL extension
User avatar
emosbat
Registered User
Posts: 564
Joined: Sat Jan 28, 2012 1:25 pm

Re: [DEV] eMosbat Ajax Like

Post by emosbat »

Ather wrote: a question, are the likes stored in the database or just using cookies?
use database.
Jessica wrote: Suggestions:
  • Show the posts you liked in your profile
  • # of likes given (for what posts)
  • # of likes received (for what posts)
  • above two listed in profile and mini profile (posts) - you can give options for them, maybe
very nice ideas I will add them to feature list.
Meis2M wrote: oh...dont forget support on subsilver 2 :lol:
yes will support subsilver2 :mrgreen:
artikkk
Registered User
Posts: 379
Joined: Sun Jan 04, 2009 1:37 pm
Location: Roma

Re: [DEV] eMosbat Ajax Like

Post by artikkk »

Kamahl19 wrote:This looks interesting
You can use this for your SN mod :)
sorry for my bad english :S
User avatar
Kamahl19
Registered User
Posts: 1598
Joined: Tue Nov 06, 2007 3:33 pm
Location: Slovakia
Name: Martin
Contact:

Re: [DEV] eMosbat Ajax Like

Post by Kamahl19 »

I dont know how emosbat will make it, but we definitely wont use it for SN.

I am really glad for this, because phpBB missed this feature so much. Moreover, this looks very fancy and professional
User avatar
keith10456
Registered User
Posts: 2315
Joined: Thu Feb 24, 2005 6:55 pm
Contact:

Re: [DEV] eMosbat Ajax Like

Post by keith10456 »

In reference to the screen shot below, what if there are 100 likes? I'm assuming there's going to be some sort of limit on the amount of usernames it will show. Either that or you will have to add a scroll bar.

Looking good though ;) I'm sure the phpbb community will love it once it's released :D

Image
Last edited by keith10456 on Mon Sep 17, 2012 9:29 pm, edited 1 time in total.
User avatar
Jessica
Former Team Member
Posts: 4342
Joined: Sun Jul 18, 2010 2:53 pm
Location: Pennsylvania, USA
Name: Jessica
Contact:

Re: [DEV] eMosbat Ajax Like

Post by Jessica »

keith10456 wrote:In reference to the screen shot below, what if there are 100 likes? I'm assuming there's going to be some sort of limit on the amount of usernames it will show. Either that or you will have to add a scroll bar.

Image
or maybe pages?
Pro-choice, Atheist, Pro-LGBT rights
Everybody is a genius. But if you judge a fish by its ability to climb a tree, it will live its whole life believing that it is stupid. - Albert Einstein
User avatar
keith10456
Registered User
Posts: 2315
Joined: Thu Feb 24, 2005 6:55 pm
Contact:

Re: [DEV] eMosbat Ajax Like

Post by keith10456 »

Pages is a good idea as well ;)
Peter77sx
Registered User
Posts: 3260
Joined: Wed Nov 09, 2005 2:51 pm

Re: [DEV] eMosbat Ajax Like

Post by Peter77sx »

Or something like height:400px; overflow:auto; in a div will add a scroll bar only if the list gets too long
User avatar
emosbat
Registered User
Posts: 564
Joined: Sat Jan 28, 2012 1:25 pm

Re: [DEV] eMosbat Ajax Like

Post by emosbat »

I use jqueryui dialogbox that automatically scroll content (easy way) :mrgreen:

most of UI design finished and I will show a demo soon :ugeek:
Locked

Return to “[3.0.x] MODs in Development”