[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!
Get Involved
Locked
User avatar
MadMagoo
Registered User
Posts: 61
Joined: Tue Jan 31, 2012 9:17 am
Location: Centre of my own unreality
Name: Jo

Re: [RC] phpBB Ajax Like

Post by MadMagoo »

I have uninstalled and reinstalled the download from the first page, purged my caches, checked all file edits and yet I am still not seeing the like button. The likes appear in the profile info to the left of the post and the 0 new likes appears in the header but the link is empty. There is no like button on profiles either. What have I missed?
User avatar
emosbat
Registered User
Posts: 564
Joined: Sat Jan 28, 2012 1:25 pm

Re: [RC] phpBB Ajax Like

Post by emosbat »

MadMagoo wrote:I have uninstalled and reinstalled the download from the first page, purged my caches, checked all file edits and yet I am still not seeing the like button. The likes appear in the profile info to the left of the post and the 0 new likes appears in the header but the link is empty. There is no like button on profiles either. What have I missed?
Hi,
make sure you set premissions:
FIX COMMON PROBLEMS:

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).
User avatar
bbthailand
Translator
Posts: 64
Joined: Wed Jun 18, 2008 6:00 am
Contact:

Re: [RC] phpBB Ajax Like

Post by bbthailand »

Very good emosbat,
User avatar
MadMagoo
Registered User
Posts: 61
Joined: Tue Jan 31, 2012 9:17 am
Location: Centre of my own unreality
Name: Jo

Re: [RC] phpBB Ajax Like

Post by MadMagoo »

OK, I have had no luck even after setting permissions which were already set. I have decided to delete it after combing through the code to see what I could do to get it to work but failed to find anything.

The problem I have now is that I have uninstalled using automod which went smoothly but when I view the forum it shows me the following underneath peoples names and avatars next to each post:

Joined: Sun Feb 10, 2008 10:44 am
Posts: 1829
{ AL_LIKE_COUNT_TEXT }: { AL_POST_TEXT }
{ AL_LIKED_COUNT_TEXT }: { AL_POST_TEXT }

Now I am guessing this is a SQL error but with the table now gone, I am not sure what else could be the problem??? I am finding also that I am having to manually go through and delete the files from my directories as automod hasn't gotten rid of all of them. Any suggestions???

Never mind, I found the last few dregs of code hiding in the directories and removed them and a purge of the cache and all is good - sorry to bother you :)
User avatar
emosbat
Registered User
Posts: 564
Joined: Sat Jan 28, 2012 1:25 pm

Re: [RC] phpBB Ajax Like

Post by emosbat »

it is not a db error. you can manually remove it from viewtopic_body.html.
search for:

Code: Select all

		<!-- ajaxlike -->
		<dd><strong>{L_AL_LIKE_COUNT_TEXT}:</strong> {postrow.LIKES} <!-- IF postrow.LIKES > 1 -->{L_AL_POSTS_TEXT}<!-- ELSE -->{L_AL_POST_TEXT}<!-- ENDIF --></dd>
		<dd><strong>{L_AL_LIKED_COUNT_TEXT}:</strong> {postrow.LIKED} <!-- IF postrow.LIKED > 1 -->{L_AL_POSTS_TEXT}<!-- ELSE -->{L_AL_POST_TEXT}<!-- ENDIF --></dd>
		<!-- ajaxlike -->
I can not tell you what was problem. you may didn't manually modified template correctly (if you didn't used automod).

try checking and removing all changes from template and php files (follow install_mod.xml), make a backup of files and then try installing mod again. hope this work.
ZeNaNLi
Registered User
Posts: 27
Joined: Wed May 13, 2009 7:34 pm
Contact:

Re: [RC] phpBB Ajax Like

Post by ZeNaNLi »

See here for Turkish translation v1.0.0.

Thank you for the MOD.
_Al
Registered User
Posts: 203
Joined: Mon Oct 20, 2008 9:24 pm
Location: Sweetas - All your friends online
Contact:

Re: [RC] phpBB Ajax Like

Post by _Al »

Great mod! works great
But i am having issuies seting permissions and only see the Like in one forum, even thu i thank o have set it for all my forums.

Thankz
junxien
Registered User
Posts: 3
Joined: Tue Feb 14, 2012 6:18 am

Re: [RC] phpBB Ajax Like

Post by junxien »

hi i've copied all the files..
it seems like working until
user like the post, refreshed the topic page, and there is a command like again(doesnt show unlike)..and when clicked it return Invalid Request
note : only first post of thread is working fine


may i know how to fix this?
thanks before for this useful mod
HomlessScientist
Registered User
Posts: 47
Joined: Sat Aug 11, 2012 4:18 pm

Re: [RC] phpBB Ajax Like

Post by HomlessScientist »

is there any way we could import "Thank For Post" mod data to this mod ? I have thank for post mod and already thousands of thanks been on posts
User avatar
balboag
Registered User
Posts: 76
Joined: Wed Jul 13, 2011 3:52 pm
Location: Galicia, Spain
Name: Gerardo

Re: [RC] phpBB Ajax Like

Post by balboag »

HomlessScientist wrote:is there any way we could import "Thank For Post" mod data to this mod ? I have thank for post mod and already thousands of thanks been on posts

Code: Select all

insert into phpbb_likes (post_id, topic_id, poster_id, user_id, like_date, like_state, like_read) select post_id, topic_id, poster_id, user_id, thanks_time, 0, 0 from phpbb_thanks;
Artack
Registered User
Posts: 312
Joined: Thu Feb 07, 2008 11:26 pm

Re: [RC] phpBB Ajax Like

Post by Artack »

Very nice mod.
How many sql queries add this mod add to viewtopic?
User avatar
Pico88
Registered User
Posts: 878
Joined: Sat Mar 07, 2009 10:24 pm
Location: Poland
Name: Lukasz

Re: [RC] phpBB Ajax Like

Post by Pico88 »

Artack wrote:Very nice mod.
How many sql queries add this mod add to viewtopic?
I counted at least 2 additional sql queries for each post and some other queries on viewtopic.
Fresh board after instalation and set up 10 posts per page:
-without likes - 11 sql queries,
-with likes - 36 sql queries.

It is is far from the optimization.
Please do not PM me for support.
User avatar
emosbat
Registered User
Posts: 564
Joined: Sat Jan 28, 2012 1:25 pm

Re: [RC] phpBB Ajax Like

Post by emosbat »

I tried to group some of queries but sure it can be more optimized. i have no time for this now, try to do it in next version.
may i know how to fix this?
thanks before for this useful mod
what problem?
Great mod! works great
But i am having issuies seting permissions and only see the Like in one forum, even thu i thank o have set it for all my forums.

Thankz
double check permissions
User avatar
Pico88
Registered User
Posts: 878
Joined: Sat Mar 07, 2009 10:24 pm
Location: Poland
Name: Lukasz

Re: [RC] phpBB Ajax Like

Post by Pico88 »

You can try to make sql query similar to get post attachments. One additional sql query which gets all neccessary data. :)
Please do not PM me for support.
junxien
Registered User
Posts: 3
Joined: Tue Feb 14, 2012 6:18 am

Re: [RC] phpBB Ajax Like

Post by junxien »

emosbat wrote:I tried to group some of queries but sure it can be more optimized. i have no time for this now, try to do it in next version.
may i know how to fix this?
thanks before for this useful mod
what problem?
Great mod! works great
But i am having issuies seting permissions and only see the Like in one forum, even thu i thank o have set it for all my forums.

Thankz
double check permissions
i've copied all the files..
it seems like working until
user like the post, refreshed the topic page, and there is a command like again(doesnt show unlike)..and when clicked it return Invalid Request
note : only first post of thread is working fine
Locked

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