[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.
lygav
Registered User
Posts: 14
Joined: Fri Dec 04, 2015 6:29 pm

[ABD] Facebook like `Like` button

Post by lygav » Fri Dec 04, 2015 6:35 pm

Hello,

The extension is called: phpbbPostLike

Description:

A Facebook like 'Like' button for PHPBB (>=3.1), complete with text and numerical counter.
Shows a litlle Like hand icon near the post that will look and behave just as the famous Facebook Like.
The goal is to give your users the ability to Like posts.

Features:

Postview:
  • Show small Facebook -esque like hand button under every post
    - Togle like
    - Show a text description and a counter about who liked the post (just like in Facebook)
    - Only logged in users can 'Like'
    - Guests only see the like counter
    - Personalized message according to session state (logged in vs guest)
ACP:
  • Enable/disable PhpBBPostLike extension
Installation:

create $phpbb_root/ext/lygav folder
cd $phpbb_root/ext/lygav
git clone https://github.com/lygav/phpbbPostLike.git
Go to admin panel -> customize -> extensions -> install phpbbPostLike

Added sample print screen to the repository README
Last edited by lygav on Sat Dec 26, 2015 1:41 pm, edited 2 times in total.

User avatar
janus_zonstraal
Registered User
Posts: 3805
Joined: Sat Aug 30, 2014 1:30 pm

Re: [BETA] Facebook like `Like` button

Post by janus_zonstraal » Fri Dec 04, 2015 8:45 pm

Sorry! My English is bat ;) !!!

pantherfan
Registered User
Posts: 44
Joined: Thu Nov 12, 2015 12:15 am
Name: Tangela

Re: [BETA] Facebook like `Like` button

Post by pantherfan » Fri Dec 04, 2015 9:30 pm

Tried to install this, and I get the following error.
General Error
SQL ERROR [ mysqli ]

Table 'phpbb3.phpbb_post_likes' doesn't exist [1146]

SQL

ALTER TABLE `phpbb_post_likes` ADD `occured_on` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP AFTER `user_id`

BACKTRACE

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

FILE: [ROOT]/phpbb/db/driver/driver.php
LINE: 855
CALL: trigger_error()

FILE: [ROOT]/phpbb/db/driver/mysqli.php
LINE: 193
CALL: phpbb\db\driver\driver->sql_error()

FILE: [ROOT]/phpbb/db/driver/factory.php
LINE: 329
CALL: phpbb\db\driver\mysqli->sql_query()

FILE: [ROOT]/ext/lygav/phpbbPostLike/migrations/r1.php
LINE: 37
CALL: phpbb\db\driver\factory->sql_query()

FILE: (not given by php)
LINE: (not given by php)
CALL: lygav\phpbbPostLike\migrations\r1->add_timestamp_to_table()

FILE: [ROOT]/phpbb/db/migrator.php
LINE: 550
CALL: call_user_func_array()

FILE: [ROOT]/phpbb/db/migrator.php
LINE: 496
CALL: phpbb\db\migrator->run_step()

FILE: [ROOT]/phpbb/db/migrator.php
LINE: 322
CALL: phpbb\db\migrator->process_data_step()

FILE: [ROOT]/phpbb/db/migrator.php
LINE: 202
CALL: phpbb\db\migrator->try_apply()

FILE: [ROOT]/phpbb/db/migrator.php
LINE: 185
CALL: phpbb\db\migrator->update_do()

FILE: [ROOT]/phpbb/extension/base.php
LINE: 80
CALL: phpbb\db\migrator->update()

FILE: [ROOT]/phpbb/extension/manager.php
LINE: 187
CALL: phpbb\extension\base->enable_step()

FILE: [ROOT]/includes/acp/acp_extensions.php
LINE: 179
CALL: phpbb\extension\manager->enable_step()

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

FILE: [ROOT]/adm/index.php
LINE: 81
CALL: p_master->load_active()

lygav
Registered User
Posts: 14
Joined: Fri Dec 04, 2015 6:29 pm

Re: [BETA] Facebook like `Like` button

Post by lygav » Sat Dec 05, 2015 8:48 am

Hello Janus,

Though at first glance it can appear similar, but no this extension is different.
The most apparent difference that clearly my extension meant to mimic the actual FB `Like`.

Thank you for your interest

lygav
Registered User
Posts: 14
Joined: Fri Dec 04, 2015 6:29 pm

Re: [BETA] Facebook like `Like` button

Post by lygav » Sat Dec 05, 2015 9:12 am

Hello Pantherfan,

I think that i've configured the migrations file incorrectly, where I added
the 'add timestamp' method in a way that it expects the post likes table to already exist.
Which worked for me during the development for obvious reasons..
I'll fix this quickly.

User avatar
SalazarAG
Registered User
Posts: 673
Joined: Mon Mar 30, 2015 10:48 am

Re: [BETA] Facebook like `Like` button

Post by SalazarAG » Sat Dec 05, 2015 10:41 am

Printscreens?
I'm sorry for my English. Google Translator does a bad job. :D

pantherfan
Registered User
Posts: 44
Joined: Thu Nov 12, 2015 12:15 am
Name: Tangela

Re: [BETA] Facebook like `Like` button

Post by pantherfan » Sat Dec 05, 2015 2:19 pm

No problem, glad to help. Let me know when you've fixed it and I'll try again.

Sippan
Registered User
Posts: 173
Joined: Thu Jan 27, 2011 6:23 am
Contact:

Re: [BETA] Facebook like `Like` button

Post by Sippan » Sat Dec 05, 2015 5:39 pm

When click on hand i get

Ajax Error
Not Found

Beau76
Registered User
Posts: 80
Joined: Thu Oct 13, 2011 7:42 am

Re: [BETA] Facebook like `Like` button

Post by Beau76 » Sat Dec 12, 2015 4:37 am

Looking forward to seeing this extension developed. Been looking for something simple like this for a while now. Good luck Iygav ;)

mwh65
Registered User
Posts: 190
Joined: Sat Jul 12, 2003 11:10 pm

Re: [BETA] Facebook like `Like` button

Post by mwh65 » Tue Dec 22, 2015 11:10 pm

Just what I've been looking for as well.

Installed this but noticed I can like my own posts, which to me doesn't seem right.

elawrenc
Registered User
Posts: 122
Joined: Thu Jul 21, 2011 2:41 pm

Re: [BETA] Facebook like `Like` button

Post by elawrenc » Wed Dec 23, 2015 3:58 am

That actually works the same as Facebook. You are able to "like" your own posts as well. Although you will usually get shamed for it! :)

User avatar
stlvargas
Registered User
Posts: 64
Joined: Fri Jan 30, 2015 7:21 am
Location: Italia
Contact:

Re: [BETA] Facebook like `Like` button

Post by stlvargas » Wed Dec 23, 2015 7:18 am

Still not work, when i try to abilitate from ACP; , this is my screen

Code: Select all

Errore Generale
SQL ERROR [ mysqli ]

Table 'my_aspettoalghiozzo.phpbb_post_likes' doesn't exist [1146]

SQL

ALTER TABLE `phpbb_post_likes` ADD `occured_on` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP AFTER `user_id`

BACKTRACE

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

FILE: [ROOT]/phpbb/db/driver/driver.php
LINE: 855
CALL: trigger_error()

FILE: [ROOT]/phpbb/db/driver/mysqli.php
LINE: 193
CALL: phpbb\db\driver\driver->sql_error()

FILE: [ROOT]/phpbb/db/driver/factory.php
LINE: 329
CALL: phpbb\db\driver\mysqli->sql_query()

FILE: [ROOT]/ext/lygav/phpbbPostLike/migrations/r1.php
LINE: 37
CALL: phpbb\db\driver\factory->sql_query()

FILE: (not given by php)
LINE: (not given by php)
CALL: lygav\phpbbPostLike\migrations\r1->add_timestamp_to_table()

FILE: [ROOT]/phpbb/db/migrator.php
LINE: 550
CALL: call_user_func_array()

FILE: [ROOT]/phpbb/db/migrator.php
LINE: 496
CALL: phpbb\db\migrator->run_step()

FILE: [ROOT]/phpbb/db/migrator.php
LINE: 322
CALL: phpbb\db\migrator->process_data_step()

FILE: [ROOT]/phpbb/db/migrator.php
LINE: 202
CALL: phpbb\db\migrator->try_apply()

FILE: [ROOT]/phpbb/db/migrator.php
LINE: 185
CALL: phpbb\db\migrator->update_do()

FILE: [ROOT]/phpbb/extension/base.php
LINE: 80
CALL: phpbb\db\migrator->update()

FILE: [ROOT]/phpbb/extension/manager.php
LINE: 187
CALL: phpbb\extension\base->enable_step()

FILE: [ROOT]/includes/acp/acp_extensions.php
LINE: 179
CALL: phpbb\extension\manager->enable_step()

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

FILE: [ROOT]/adm/index.php
LINE: 81
CALL: p_master->load_active()
Roberto, Italy

User avatar
stlvargas
Registered User
Posts: 64
Joined: Fri Jan 30, 2015 7:21 am
Location: Italia
Contact:

Re: [BETA] Facebook like `Like` button

Post by stlvargas » Wed Dec 23, 2015 7:19 am

I have created the folder "lygav" in my Ext folder, then "phpbbPostLIke", and put inside that i found on this link

viewtopic.php?f=456&t=2347471

Why doesn't go?
Last edited by stlvargas on Sat Dec 26, 2015 8:59 am, edited 2 times in total.
Roberto, Italy

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

Re: [BETA] Facebook like `Like` button

Post by Theriddler1 » Wed Dec 23, 2015 4:26 pm

subscribed! would love to see some screenshots though.
Theriddler - Moderator @ phpBB.nl | phpBBservice.nl Team-member
ImageSupport Tools | Image My Extensions | buy me a beer Image

lygav
Registered User
Posts: 14
Joined: Fri Dec 04, 2015 6:29 pm

Re: [BETA] Facebook like `Like` button

Post by lygav » Sat Dec 26, 2015 1:26 pm

Hi everybody,

I've found the bug, and fixed it.
You now should be able to install the extension without any issues.
The updated version is already on github.



Regarding the "Ajax not found" error, please can you give a little bit more info ? Where do you see the
error message, in browser javascript console, or phpbb alert, or somewhere on server-side?

Locked

Return to “Abandoned Extensions”