[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!
Ideas Centre
Locked
User avatar
emosbat
Registered User
Posts: 564
Joined: Sat Jan 28, 2012 1:25 pm

[RC2] phpBB Ajax Like

Post by emosbat » Sun Sep 16, 2012 4:16 pm

** 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 » Sun Sep 16, 2012 4:38 pm

will this ever be released?

Senky
Extension Customisations
Extension Customisations
Posts: 1343
Joined: Thu Apr 30, 2009 8:49 pm
Location: Slovakia
Name: Jakub

Re: [DEV] eMosbat Ajax Like

Post by Senky » Sun Sep 16, 2012 6:47 pm

Really nice!

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 » Sun Sep 16, 2012 7:05 pm

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 » Mon Sep 17, 2012 1:32 am

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: 4341
Joined: Sun Jul 18, 2010 2:53 pm
Location: Pennsylvania, USA
Name: Jessica
Contact:

Re: [DEV] eMosbat Ajax Like

Post by Jessica » Mon Sep 17, 2012 1:42 am

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
Please do not PM me for support unless it is absolutely necessary
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: 755
Joined: Wed Mar 03, 2010 11:32 am
Location: IR.Damghan
Name: میثم نوبری
Contact:

Re: [DEV] eMosbat Ajax Like

Post by Meis2M » Mon Sep 17, 2012 5:16 am

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.

User avatar
emosbat
Registered User
Posts: 564
Joined: Sat Jan 28, 2012 1:25 pm

Re: [DEV] eMosbat Ajax Like

Post by emosbat » Mon Sep 17, 2012 7:40 am

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 » Mon Sep 17, 2012 2:52 pm

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 » Mon Sep 17, 2012 4:04 pm

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 » Mon Sep 17, 2012 9:28 pm

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: 4341
Joined: Sun Jul 18, 2010 2:53 pm
Location: Pennsylvania, USA
Name: Jessica
Contact:

Re: [DEV] eMosbat Ajax Like

Post by Jessica » Mon Sep 17, 2012 9:29 pm

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?
Please do not PM me for support unless it is absolutely necessary
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 » Mon Sep 17, 2012 9:30 pm

Pages is a good idea as well ;)

Peter77sx
Registered User
Posts: 3246
Joined: Wed Nov 09, 2005 2:51 pm

Re: [DEV] eMosbat Ajax Like

Post by Peter77sx » Mon Sep 17, 2012 10:29 pm

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 » Tue Sep 18, 2012 7:46 am

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”

Who is online

Users browsing this forum: No registered users and 11 guests