[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!
Scam Warning
Kaycee
Registered User
Posts: 275
Joined: Tue Aug 10, 2010 6:23 am
Location: Nigeria
Contact:

Re: [RC2] phpBB Ajax Like

Post by Kaycee » Sun Sep 14, 2014 4:00 pm

emosbat wrote:@muggins
because then if someone install another MOD from me (or others) that need jquery. then we will have duplicate entry of jquery in code and this will cause jquery conflict error.

@Kaycee
I do not see any error from this MOD.
I have done everything right from beginning but did not make changes in the forum permissions. I was trying to close/restrict some forum with some member when i saw i needed to say yes to like in the permission.

Seeing the like button was just awesome for me today. Kindly pardon me all my trouble.

@emosbat, I SAY THANK YOU.

skarekrow
Registered User
Posts: 2
Joined: Fri Sep 05, 2014 8:33 pm

Re: [RC2] phpBB Ajax Like

Post by skarekrow » Sat Sep 27, 2014 12:16 pm

emosbat wrote:
skarekrow wrote:I did everything and when I click "like" button it gets me to the top of the page and nothing happens. I installed this jquery pack and still nothing. I don't know english very good, I read this FAQ but I don't know what could be wrong. Please help.
you may missed so mod code. check source code manually.
I don't know what so mod code is... can you help me with that?

Holger
Registered User
Posts: 1603
Joined: Tue Mar 12, 2002 3:54 pm
Location: Hannover

Re: [RC2] phpBB Ajax Like

Post by Holger » Mon Sep 29, 2014 8:29 am

"some mod code"
You probably did not follow ALL instructions
Are you looking for a phpBB Expert? Find a phpBB Expert!
Are you a phpBB Expert? Post your resume!
http://www.phpbbexperts.com

User avatar
starshine1000
Registered User
Posts: 209
Joined: Mon Aug 11, 2014 10:05 am

Re: [RC2] phpBB Ajax Like

Post by starshine1000 » Tue Sep 30, 2014 8:19 pm

Hi again Emosbat! I still love Ajax Like and I will post the Swedish translations (just haven't done the ACP. translations yet, because I haven't used them myself.)

Now I have a problem though: If I try to change the theme in the UCP, I get error message:

Code: Select all

General Error
SQL ERROR [ mysqli ]

Column 'show_likes' cannot be null [1048]

SQL

UPDATE phpbb_users SET show_likes = NULL, user_allow_pm = 1, user_allow_viewemail = 1, user_allow_massemail = 1, user_allow_viewonline = 1, user_notify_type = '0', user_notify_pm = 1, user_options = '230271', user_dst = 1, user_dateformat = 'd M Y', user_lang = 'en', user_timezone = 0, user_style = 26, user_allow_thanks_pm = 0, user_allow_thanks_email = 0 WHERE user_id = 2

BACKTRACE

FILE: (not given by php)
LINE: (not given by php)
CALL: msg_handler()

FILE: [ROOT]/includes/db/dbal.php
LINE: 757
CALL: trigger_error()

FILE: [ROOT]/includes/db/mysqli.php
LINE: 189
CALL: dbal->sql_error()

FILE: [ROOT]/includes/ucp/ucp_prefs.php
LINE: 126
CALL: dbal_mysqli->sql_query()

FILE: [ROOT]/includes/functions_module.php
LINE: 507
CALL: ucp_prefs->main()

FILE: [ROOT]/ucp.php
LINE: 330
CALL: p_master->load_active()
I checked the column "show_likes" in table "phpbb_users" Value=1 for all users....

Have you got any idea what's wrong?

My site is bibelkristna.com (if you need an account to check it, and you can't manage the Swedish/Christian anti spam-bot questions, let me know and I'll send an account, it's stuff you'd only know if you were local - to trick the bots and human spammers)

User avatar
Theriddler1
Registered User
Posts: 445
Joined: Sat Aug 27, 2011 11:00 pm
Location: NL
Name: Theriddler❶
Contact:

Re: [RC2] phpBB Ajax Like

Post by Theriddler1 » Tue Sep 30, 2014 11:01 pm

@starshine1000 you need to recheck your edits for includes/ucp/ucp_prefs.php
Theriddler - Moderator @ phpBB.nl | phpBBservice.nl Team-member
ImageSupport Tools | Image My Extensions | buy me a beer Image

User avatar
starshine1000
Registered User
Posts: 209
Joined: Mon Aug 11, 2014 10:05 am

Re: [RC2] phpBB Ajax Like

Post by starshine1000 » Tue Sep 30, 2014 11:33 pm

Thanks, Theriddler! This is a VERY fiddly Mod and it breaks so easily. I've broken it like 5 times as I messed around with other MODs. You are right, it was something with the User board. I think I broke the file somehow. The MOD is worth it though, it is really nice. :D


SWEDISH TRANSLATIONS:

Viewtopic.php

Code: Select all

// ajaxlike //
'AL_YOU_TEXT' => 'Du', // `You` like this post.
'AL_AND_TEXT' => 'och', // userX `and` y like this post.
'AL_OTHER_TEXT' => 'andra', // userX and 1 `other` like this post.
'AL_OTHERS_TEXT' => 'andra', // userX and 5 `others` like this post.
'AL_PEOPLE_TEXT' => 'medlemmar', // 4 `people` like this post.
'AL_LIKE_POST_TEXT' => 'gillar det här inlägget.', // 3 people `like this post`.
'AL_ONE_LIKE_POST_TEXT' => 'gillar det här inlägget.', // userX `likes this post`.
'AL_LIKE_POST_WITH_YOU_TEXT' => 'gillar det här inlägget.', // You and 2 others `like this post`.
'AL_YOU_LIKE_TEXT' => 'gillar det här inlägget.', // You `like this post`.
// alternative mode:
'AL_ALTER_ONE_PEOPLE_TEXT' => 'medlem', // 1 `person` likes this post.
'AL_ALTER_TWO_PEOPLE_TEXT' => 'medlemmar', // 2 `people` like this post.
'AL_ALTER_THREE_PEOPLE_TEXT' => 'medlemmar', // 3 `people` like this post.
'AL_ALTER_MORE_PEOPLE_TEXT' => 'medlemmar', // 12 `people` like this post.
'AL_ALTER_ONE_LIKE_POST_TEXT' => 'gillar det här inlägget.', // 1 person `likes this post`.
'AL_ALTER_TWO_LIKE_POST_TEXT' => 'gillar det här inlägget.', // 2 people `like this post`.
'AL_ALTER_THREE_LIKE_POST_TEXT' => 'gillar det här inlägget.', // 3 people `like this post`.
'AL_ALTER_MORE_LIKE_POST_TEXT' => 'gillar det här inlägget.', // 10 people `like this post`.
//
'AL_LIKE_TEXT' => 'Gilla',
'AL_UNLIKE_TEXT' => 'Sluta gilla',
'AL_PEOPLE_LIKE_THIS_TEXT' => 'medlemmar gillar det här inlägget', // dialog box title
'AL_LIKE_COUNT_TEXT' => 'Gillade', // number of likes
'AL_LIKED_COUNT_TEXT' => 'Gillades för', // number of received likes
'AL_POSTS_TEXT' => 'inlägg',
'AL_POST_TEXT' => 'inlägg',
'AL_LIKE_AT_TEXT' => 'Gillades', // like date
'AL_ERROR_INVALID_REQUEST' => 'Ogiltigt kommando!',
'AL_ERROR_ACCESS_DENIED' => 'Obehörigt kommando blockerat!',
// ajaxlike
info_acp_ajax_like

Code: Select all

$lang = array_merge($lang, array(
'ACP_AJAXLIKE_MOD_TITLE' => 'phpBB Ajax Like',
'ACP_AJAXLIKE_CONFIG_TITLE' => 'Ajax Like inställningar',
'ACP_AJAXLIKE_TITLE' => 'Ajax Like inställningar',
'ACP_AJAXLIKE_LEGEND1' => 'Allmänt',
'ACP_AJAXLIKE_CONFIG_ENABLE' => 'Status',
'ACP_AJAXLIKE_CONFIG_GUEST' => 'Gästläge',
'ACP_AJAXLIKE_CONFIG_GUEST_EXPLAIN' => 'Ska gäster se gillar-markeringar?',
'ACP_AJAXLIKE_CONFIG_LIST_PROFILE' => 'Visa i profilen',
'ACP_AJAXLIKE_CONFIG_LIST_PROFILE_EXPLAIN' => 'Visa gillamarkeringar i användarprofilen?',
'ACP_AJAXLIKE_CONFIG_LIST_MAX' => 'Antal gillanden i profilen',
'ACP_AJAXLIKE_CONFIG_LIST_MAX_EXPLAIN' => '0 = normalläge',
'ACP_AJAXLIKE_CONFIG_ALLOW_UNLIKE' => 'Tillåt användare att sluta gilla',
'ACP_AJAXLIKE_CONFIG_ALLOW_UNLIKE_EXPLAIN' => 'Får användare sluta gilla inlägg?',
'ACP_AJAXLIKE_CONFIG_NOTIFY' => 'Gillar-markering',
'ACP_AJAXLIKE_CONFIG_NOTIFY_EXPLAIN' => 'Sätt på notifiering om gillanden?',
'ACP_AJAXLIKE_CONFIG_INTERVAL' => 'Intervall för notifiering',
'ACP_AJAXLIKE_CONFIG_INTERVAL_EXPLAIN' => 'Sök efter nya gillanden varje n sekund.',
'ACP_AJAXLIKE_CONFIG_ALTER_MODE' => 'Alternativt läge',
'ACP_AJAXLIKE_CONFIG_ALTER_MODE_EXPLAIN' => 'Om läget aktiveras visas endast antalet användare som gillade inlägget (har visat sig användbart på vissa språk)',
));
umil_ajaxlike.php

Code: Select all

$lang = array_merge($lang, array(
'ACP_MOD_TITLE' => 'phpBB Ajax Like',
'INSTALL_AJAXLIKE_MOD' => 'Installera phpBB Ajax Like Mod',
'INSTALL_AJAXLIKE_MOD_CONFIRM' => 'Är du redo att installera phpBB Ajax Like Mod?',

'AJAXLIKE_MOD' => 'phpBB Ajax Like Mod',

'UNINSTALL_AJAXLIKE_MOD' => Avinstallera phpBB Ajax Like Mod',
'UNINSTALL_AJAXLIKE_MOD_CONFIRM' => 'Är du redo att avinstallera phpBB Ajax Like Mod? Alla inställningar och data som sparats av denna Mod kommer att raderas!',
'UPDATE_AJAXLIKE_MOD' => 'Uppdatera phpBB Ajax Like Mod',
'UPDATE_AJAXLIKE_MOD_CONFIRM' => ''Är du redo att uppdatera phpBB Ajax Like Mod?',
));

Canadian Horseman
Registered User
Posts: 7
Joined: Wed Oct 29, 2014 6:50 am

Re: [RC2] phpBB Ajax Like

Post by Canadian Horseman » Wed Oct 29, 2014 6:54 am

Hi
I've just updated to phpbb 3.1 and our favourite MOD (as expected) has stopped working.
Are there any plans to update this MOD's compatibility to work fine with 3.1?
Thank you.

User avatar
thundermonkey
Registered User
Posts: 18
Joined: Thu Sep 11, 2014 4:08 am

Re: [RC2] phpBB Ajax Like

Post by thundermonkey » Wed Nov 12, 2014 2:30 pm

I would also greatly welcome a 3.1 version of this extremely useful mod.

Belated thanks for coding the 3.0.xx version of it.

blogvietkieu
Registered User
Posts: 29
Joined: Wed Jul 16, 2008 10:33 pm

Re: [RC2] phpBB Ajax Like

Post by blogvietkieu » Mon Nov 24, 2014 8:03 pm

My forum went blank after I tried to install this mod.
How can I get the error msg? the forum just went blank after I click on Purge All Caches.

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

Re: [RC2] phpBB Ajax Like

Post by emosbat » Fri Dec 12, 2014 10:55 am

I recently married and you know what I mean: I have no free time anymore :|
Hope someone continue developing this and other MODs I made.

Holger
Registered User
Posts: 1603
Joined: Tue Mar 12, 2002 3:54 pm
Location: Hannover

Re: [RC2] phpBB Ajax Like

Post by Holger » Fri Dec 12, 2014 11:03 am

Congrats! :D
Are you looking for a phpBB Expert? Find a phpBB Expert!
Are you a phpBB Expert? Post your resume!
http://www.phpbbexperts.com

User avatar
potku
Registered User
Posts: 799
Joined: Wed Dec 22, 2004 10:26 pm
Location: Tampere, Finland
Contact:

Re: [RC2] phpBB Ajax Like

Post by potku » Fri Dec 12, 2014 11:39 am

Your good news is our bad news. :D

Happy trails, my friend. :)
Potku.net

"Before I speak, I have something important to say."

- Groucho Marx

spatman
Registered User
Posts: 17
Joined: Fri Mar 27, 2009 10:51 pm

Re: [RC2] phpBB Ajax Like

Post by spatman » Fri Dec 12, 2014 8:28 pm

emosbat wrote:I recently married and you know what I mean: I have no free time anymore :|
Hope someone continue developing this and other MODs I made.
Congratulations! You'll realize how much free time you really have now if you ever have kids.

Bummer that you won't be developing the mod any further. It is a very popular feature on our site.

User avatar
Ali@php
Registered User
Posts: 60
Joined: Fri Sep 09, 2011 11:17 am
Name: Ali Faraji
Contact:

Re: [RC2] phpBB Ajax Like

Post by Ali@php » Wed Dec 24, 2014 5:54 am

emosbat wrote:I recently married and you know what I mean: I have no free time anymore :|
Hope someone continue developing this and other MODs I made.
Congratulations eMosbat ;)


I will try to convert this mod to an extention within the next few weeks

amblabs
Registered User
Posts: 31
Joined: Thu Jan 12, 2012 11:09 am
Location: Sunnyvale, CA, USA

Re: [RC2] phpBB Ajax Like

Post by amblabs » Wed Jan 07, 2015 11:59 am

I just installed v1.2.0 of this mod (and the jQuery Pack 1.0.4) manually on my phpbb 3.0.12 board and ran into some problems. I checked and rechecked my edits and compared against the install.xml instructions and did not see any errors. I ran jquerypack_install.php and ajaxlike_install.php with success (except some warnings about changes to permissions), and cleared the cache.

After that, going to the main board index works, but if I try to read a topic, it just gives me a blank screen. Also, at the top, where it's supposed to show my new like count, it says "0{ AL_LIKE_NEW }". Similarly, when I view a user's profile, it shows several apparently undefined text strings.

I went through the items listed in the first post of this thread and none of them seem to apply to my problems here.

I tried backing out the edit in the top level viewtopic.php file, and it restored the ability to view topics. Obviously there are no ajaxlike features in this mode. I checked my edits in viewtopic.php and still cannot find anything wrong. And the undefined strings are still there...

Any idea what's wrong here?

Locked

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

Who is online

Users browsing this forum: oBot and 29 guests