[ABD] Facebook like `Like` button

Any abandoned Extensions will be moved to this forum.

WARNING: Extensions in this forum are not currently being supported or maintained by the original Extension author. Proceed at your own risk.
Forum rules
IMPORTANT: Extension Development Forum rules

WARNING: Extensions in this forum are not currently being supported nor updated by the original Extension author. Proceed at your own risk.
Rustsmith
Registered User
Posts: 12
Joined: Tue Aug 26, 2014 10:28 pm

Re: [BETA] Facebook like `Like` button

Post by Rustsmith »

The Like button is something that we have wanted to have on our board for a very long time.

Unfortunately, when I attempt to enable the extension, I get the following error:

( ! ) Parse error: syntax error, unexpected '[' in D:\wamp\www\phpBB-3.1.6\phpBB3\ext\lygav\phpbbPostLike\migrations\r1.php on line 9
Call Stack
# Time Memory Function Location
1 0.0002 414680 {main}( ) ..\index.php:0
2 0.1006 14120072 p_master->load_active( ) ..\index.php:81
3 0.1016 14312128 acp_extensions->main( ) ..\functions_module.php:674
4 0.1167 16143328 phpbb\extension\manager->enable_step( ) ..\acp_extensions.php:179
5 0.1169 16146976 phpbb\extension\base->enable_step( ) ..\manager.php:187
6 0.1169 16147400 phpbb\db\migrator->update( ) ..\base.php:80
7 0.1169 16147432 phpbb\db\migrator->update_do( ) ..\migrator.php:185
8 0.1169 16147600 phpbb\db\migrator->try_apply( ) ..\migrator.php:202
9 0.1169 16147632 class_exists ( ) ..\migrator.php:227
10 0.1170 16148048 phpbb\class_loader->load_class( ) ..\class_loader.php:0

So, what am I doing wrong?
Rustsmith
Registered User
Posts: 12
Joined: Tue Aug 26, 2014 10:28 pm

Re: [BETA] Facebook like `Like` button

Post by Rustsmith »

I am not sure what it was that I did not fix the problem that I was having, but I now have the extension installed. The only issue now that I also am seeing the AJAX error anytime I "Like" a post.

And like Elekid, I am also working with a local clone of my database.

So, I am looking forward to the Ajax fix.
Sippan
Registered User
Posts: 177
Joined: Thu Jan 27, 2011 6:23 am
Contact:

Re: [BETA] Facebook like `Like` button

Post by Sippan »

here is the erro

Code: Select all

GET http://xxxxxxxxxxxx/app.php/likepost/163?sid=23f864cf3d6db59546606d5de84e9c10&like_opt=opt2&_=1452366478955 404 (Not Found)send @ jquery.min.js:4n.extend.ajax @ jquery.min.js:4sendRequest @ core.js?assets_version=1081:389(anonymous function) @ core.js?assets_version=1081:411n.event.dispatch @ jquery.min.js:3r.handle @ jquery.min.js:3
core.js?assets_version=1081:262 AJAX error. status: error, message: Not Found
User avatar
Theriddler1
Registered User
Posts: 451
Joined: Sat Aug 27, 2011 11:00 pm
Location: NL
Name: Theriddler❶
Contact:

Re: [BETA] Facebook like `Like` button

Post by Theriddler1 »

Sippan wrote:here is the erro

Code: Select all

GET http://xxxxxxxxxxxx/app.php/likepost/163?sid=23f864cf3d6db59546606d5de84e9c10&like_opt=opt2&_=1452366478955 404 (Not Found)send @ jquery.min.js:4n.extend.ajax @ jquery.min.js:4sendRequest @ core.js?assets_version=1081:389(anonymous function) @ core.js?assets_version=1081:411n.event.dispatch @ jquery.min.js:3r.handle @ jquery.min.js:3
core.js?assets_version=1081:262 AJAX error. status: error, message: Not Found
As mentioned before by the author..
Can you please check if you have url-rewriting enabled on the server?

Go to: ACP > server settings

Enable URL Rewriting:
When enabled, URLs containing ’app.php’ will be rewritten to remove the filename (i.e. app.php/foo will become /foo). Apache server’s mod_rewrite module is required for this functionality to work; if this option is enabled without mod_rewrite support, URLs on your board may be broken.

Set this to YES.
Theriddler - Former Moderator @ phpBB.nl | phpBBservice.nl Team-member
Image My Extensions | buy me a beer Image
Sippan
Registered User
Posts: 177
Joined: Thu Jan 27, 2011 6:23 am
Contact:

Re: [BETA] Facebook like `Like` button

Post by Sippan »

I have that!
server settings url-rewriting enabled
mod_rewrite is enable

so it must be something else
Sippan
Registered User
Posts: 177
Joined: Thu Jan 27, 2011 6:23 am
Contact:

Re: [BETA] Facebook like `Like` button

Post by Sippan »

No support for this EXT?
User avatar
janus_zonstraal
Registered User
Posts: 6418
Joined: Sat Aug 30, 2014 1:30 pm

Re: [BETA] Facebook like `Like` button

Post by janus_zonstraal »

Ski holiday?
Sorry! My English is bat ;) !!!
User avatar
Theriddler1
Registered User
Posts: 451
Joined: Sat Aug 27, 2011 11:00 pm
Location: NL
Name: Theriddler❶
Contact:

Re: [BETA] Facebook like `Like` button

Post by Theriddler1 »

Sippan wrote:I have that!
server settings url-rewriting enabled
mod_rewrite is enable

so it must be something else
seems that [BETA] Post Love also has the same problem

viewtopic.php?f=456&p=14263991
Theriddler - Former Moderator @ phpBB.nl | phpBBservice.nl Team-member
Image My Extensions | buy me a beer Image
Consul
Registered User
Posts: 6
Joined: Fri Jul 17, 2015 9:15 pm

Re: [BETA] Facebook like `Like` button

Post by Consul »

Hi. I get this error, when I try to install the latest version from git in ACP.

Code: Select all

Parse error: syntax error, unexpected '[' in /home/....../ext/lygav/phpbbPostLike/migrations/r1.php on line 9
Although I cannot find that there is any [ tag missing or too many.
razkaziro
Registered User
Posts: 12
Joined: Sat Nov 07, 2015 3:35 pm

Re: [BETA] Facebook like `Like` button

Post by razkaziro »

Consul wrote:Hi. I get this error, when I try to install the latest version from git in ACP.

Code: Select all

Parse error: syntax error, unexpected '[' in /home/....../ext/lygav/phpbbPostLike/migrations/r1.php on line 9
Although I cannot find that there is any [ tag missing or too many.
Same probleme here:
unexpected '[' in /......./ext/lygav/phpbbPostLike/migrations/r1.php on line 9
User avatar
Rhino.Freak
Registered User
Posts: 275
Joined: Wed Apr 29, 2015 8:32 am
Contact:

Re: [BETA] Facebook like `Like` button

Post by Rhino.Freak »

Facebook like system is now different :p
It has 5 more options now like Love, Haha, Sad, Wow etc.

Do you think you'll update this in future to incorporated those?
elawrenc
Registered User
Posts: 140
Joined: Thu Jul 21, 2011 2:41 pm

Re: [BETA] Facebook like `Like` button

Post by elawrenc »

No response since Dec 28...uh oh... :roll:
User avatar
Stonewall
Registered User
Posts: 35
Joined: Tue Oct 30, 2007 4:55 pm

Re: [BETA] Facebook like `Like` button

Post by Stonewall »

I would really like to implement a "Like" button on my phpbb installation, but find the description here unusable. I've done a number of other mods, but this description is quite unclear.

For example, I do not have a clue what "git" means.

Does anybody have a clear and solid description of how to implement a modification of phpbb 3.1.9 that provids a "Like Button" similar to Facebook's? Does anybody have a live site or demo that shows it actually working?
User avatar
Rhino.Freak
Registered User
Posts: 275
Joined: Wed Apr 29, 2015 8:32 am
Contact:

Re: [BETA] Facebook like `Like` button

Post by Rhino.Freak »

Stonewall wrote:I would really like to implement a "Like" button on my phpbb installation, but find the description here unusable. I've done a number of other mods, but this description is quite unclear.

For example, I do not have a clue what "git" means.

Does anybody have a clear and solid description of how to implement a modification of phpbb 3.1.9 that provids a "Like Button" similar to Facebook's? Does anybody have a live site or demo that shows it actually working?
Git can be imagined as a big shared online folder of the extension where anyone can edit the files and then the author will get a notification and he decides to allow the change or not.
It's basically helpful for development of programs that is made by the combined efforts of people.
Just go to the Git link and download the zip, there's an option on the upper right corner.
And then you install it normally like an extension.

Good luck!
User avatar
Stonewall
Registered User
Posts: 35
Joined: Tue Oct 30, 2007 4:55 pm

Re: [BETA] Facebook like `Like` button

Post by Stonewall »

Rhino.Freak, thanks for the reply regarding "git" but I'm still lost. I see no "git link" so am pretty well dead in the water.

Where is it?

And is there any way of making it REALLY simple to implement a "Like" button? This seems to be a frequently requested feature and I wonder if it can be baked into the standard version?
Locked

Return to “Abandoned Extensions”