[ABD] "Like" Mod

Any abandoned MODs will be moved to this forum.

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

WARNING: MODs in this forum are not currently being supported nor updated by the original MOD author. Proceed at your own risk.
User avatar
ASD2010
Registered User
Posts: 134
Joined: Wed Oct 20, 2010 4:49 pm
Location: Guatemala, City
Name: Wil Elias

Re: [DEV] "Like" Mod

Post by ASD2010 » Tue Dec 28, 2010 7:28 pm

Hi friends...

i have error...

click in button:

Fatal error: Call to undefined function submit_like() in /home/conectat/public_html/posting.php on line 163

help!!!!please....:(

sorry my bad english...
the best style: Absolution... :D

help in spanish
sorry my bad english..... :D

User avatar
digioz
Registered User
Posts: 297
Joined: Thu Feb 05, 2004 9:20 pm
Location: Chicago, IL
Name: DigiOz Multimedia
Contact:

Re: [DEV] "Like" Mod

Post by digioz » Tue Dec 28, 2010 7:42 pm

ASD2010 wrote:Hi friends...

i have error...

click in button:

Fatal error: Call to undefined function submit_like() in /home/conectat/public_html/posting.php on line 163

help!!!!please....:(

sorry my bad english...
You are missing part of the mod in "./includes/functions_posting.php". Open that file and add the two functions in my first post to it. That will fix the issue.
DigiOz Multimedia
http://www.digioz.com

User avatar
ASD2010
Registered User
Posts: 134
Joined: Wed Oct 20, 2010 4:49 pm
Location: Guatemala, City
Name: Wil Elias

Re: [DEV] "Like" Mod

Post by ASD2010 » Tue Dec 28, 2010 7:49 pm

sorry-- :oops:

:D :D :D :D :D

digioz: thanks friend!!!!! work fine!!!!!!!
the best style: Absolution... :D

help in spanish
sorry my bad english..... :D

User avatar
digioz
Registered User
Posts: 297
Joined: Thu Feb 05, 2004 9:20 pm
Location: Chicago, IL
Name: DigiOz Multimedia
Contact:

Re: [DEV] "Like" Mod

Post by digioz » Tue Dec 28, 2010 8:15 pm

You are welcome. Enjoy! :)
DigiOz Multimedia
http://www.digioz.com

User avatar
EFiNSTORM
Registered User
Posts: 160
Joined: Fri Dec 26, 2008 4:09 am
Location: localhost

Re: [DEV] "Like" Mod

Post by EFiNSTORM » Wed Dec 29, 2010 9:58 am

Awesome mod... do you think you would be able to display which post they liked in profile?

Thanks keep up the great work :D

Ps here is a link to a free icon which might look nice.

since a png image to look better for darker forum ;)
http://findicons.com/icon/219153/thumbs_up?id=219153

User avatar
digioz
Registered User
Posts: 297
Joined: Thu Feb 05, 2004 9:20 pm
Location: Chicago, IL
Name: DigiOz Multimedia
Contact:

Re: [DEV] "Like" Mod

Post by digioz » Wed Dec 29, 2010 11:05 am

EFiNSTORM wrote:Awesome mod... do you think you would be able to display which post they liked in profile?

Thanks keep up the great work :D

Ps here is a link to a free icon which might look nice.

since a png image to look better for darker forum ;)
http://findicons.com/icon/219153/thumbs_up?id=219153
Yep, I am working on showing liked threads in profile right now.

Thanks for the icons! I may use one of them in the final release.
DigiOz Multimedia
http://www.digioz.com

User avatar
keith10456
Registered User
Posts: 2315
Joined: Thu Feb 24, 2005 6:55 pm
Contact:

Re: [DEV] "Like" Mod

Post by keith10456 » Wed Dec 29, 2010 9:19 pm

I look forward to the final... :D

User avatar
EFiNSTORM
Registered User
Posts: 160
Joined: Fri Dec 26, 2008 4:09 am
Location: localhost

Re: [DEV] "Like" Mod

Post by EFiNSTORM » Wed Dec 29, 2010 9:37 pm

digioz wrote:
EFiNSTORM wrote:Awesome mod... do you think you would be able to display which post they liked in profile?

Thanks keep up the great work :D

Ps here is a link to a free icon which might look nice.

since a png image to look better for darker forum ;)
http://findicons.com/icon/219153/thumbs_up?id=219153
Yep, I am working on showing liked threads in profile right now.

Thanks for the icons! I may use one of them in the final release.
sweet thx for the mod :D will be installing on the forum, tonight.

Gino
Registered User
Posts: 124
Joined: Sun Mar 21, 2010 2:39 pm
Contact:

Re: [DEV] "Like" Mod

Post by Gino » Fri Dec 31, 2010 4:27 pm

i like this great idea

User avatar
digioz
Registered User
Posts: 297
Joined: Thu Feb 05, 2004 9:20 pm
Location: Chicago, IL
Name: DigiOz Multimedia
Contact:

Re: [DEV] "Like" Mod

Post by digioz » Fri Dec 31, 2010 4:41 pm

Gino wrote:i like this great idea
Great to hear that. Are there any features not on the list that you wish to include in the mod?

Pete
DigiOz Multimedia
http://www.digioz.com

Gino
Registered User
Posts: 124
Joined: Sun Mar 21, 2010 2:39 pm
Contact:

Re: [DEV] "Like" Mod

Post by Gino » Sat Jan 01, 2011 1:31 pm

i've tried it in a localhost
when i press on the like button, this message appear

Code: Select all

SQL ERROR [ mysql4 ]

Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and (utf8_general_ci,COERCIBLE) for operation '=' [1267]

SQL

SELECT COUNT(like_id) AS like_id_count FROM phpbb_likes WHERE forum_id=16 AND topic_id=11 AND username='جينو';

BACKTRACE

FILE: includes/db/mysql.php
LINE: 175
CALL: dbal->sql_error()

FILE: includes/functions_posting.php
LINE: 2624
CALL: dbal_mysql->sql_query()

FILE: includes/functions_posting.php
LINE: 2637
CALL: get_like_exists()

FILE: posting.php
LINE: 147
CALL: submit_like()

User avatar
digioz
Registered User
Posts: 297
Joined: Thu Feb 05, 2004 9:20 pm
Location: Chicago, IL
Name: DigiOz Multimedia
Contact:

Re: [DEV] "Like" Mod

Post by digioz » Sat Jan 01, 2011 1:52 pm

It looks like your phpbb database tables have default characterset of latin1_swedish_ci, but your username contains UTF8 characters (arabic). The easiest way to fix this is to run the following queries:

Code: Select all

ALTER TABLE phpbb_likes CONVERT TO CHARACTER SET utf8 COLLATE utf8_general_ci;
ALTER TABLE phpbb_users CONVERT TO CHARACTER SET utf8 COLLATE utf8_general_ci;
This will convert the characterset for tables "phpbb_users" and "phpbb_likes" to UTF8, which is the correct characterset for storing arabic usernames.

Thanks
Pete
DigiOz Multimedia
http://www.digioz.com

WorldWide Forum
Registered User
Posts: 7
Joined: Wed Dec 29, 2010 11:08 pm

Re: [DEV] "Like" Mod

Post by WorldWide Forum » Sun Jan 02, 2011 12:58 am

Ok i have a problem :D

Code: Select all

[phpBB Debug] PHP Notice: in file /includes/functions_display.php on line 1306: Undefined variable: like_list
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4556: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3695)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4558: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3695)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4559: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3695)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4560: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3695)

User avatar
digioz
Registered User
Posts: 297
Joined: Thu Feb 05, 2004 9:20 pm
Location: Chicago, IL
Name: DigiOz Multimedia
Contact:

Re: [DEV] "Like" Mod

Post by digioz » Sun Jan 02, 2011 7:48 am

WorldWide Forum wrote:Ok i have a problem :D
Here is how to fix the issue:
  • Open the file "./includes/function_display.php"
  • Find the following line inside the function "get_like_list()"

    Code: Select all

    global $db, $config;
  • Below it add the following:

    Code: Select all

    $like_list = '';
I have updated the code in the first thread to reflect this change. :)

Pete
DigiOz Multimedia
http://www.digioz.com

Gino
Registered User
Posts: 124
Joined: Sun Mar 21, 2010 2:39 pm
Contact:

Re: [DEV] "Like" Mod

Post by Gino » Sun Jan 02, 2011 4:32 pm

wow. it's work.
fantastic..

mmmm
features..
* username color in like list..
* add dislike button appear after pressing like button..
* enable\disable Mod in ACP
;) :oops: :oops:
thanks again .. :oops:

Locked

Return to “[3.0.x] Abandoned MODs”