[CDB] Thanks for posts

A place for Extension Authors to post and receive feedback on Extensions still in development. No Extensions within this forum should be used within a live environment!
Scam Warning
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

IMPORTANT: Extensions Development rules

IMPORTANT FOR NEEDED EVENTS!!!
If you need an event for your extension please read this for the steps to follow to request the event(s)
Locked
User avatar
Hippie459MN
Registered User
Posts: 945
Joined: Mon Oct 15, 2007 10:13 pm
Location: Minnesota, USA
Contact:

Re: [DEV] Thanks for posts

Post by Hippie459MN »

Anuj Dhawan wrote:PS.: It's working for me on a 3.1.9 board.
Working good for me on 3.1.9 also. :)

User avatar
Mammouth
Registered User
Posts: 74
Joined: Wed Apr 27, 2016 11:06 am

Re: [DEV] Thanks for posts

Post by Mammouth »

Hello I have a problem that people do not make the team the forum can not thank the messages is this normal ?

rxu
Extensions Development Team
Posts: 3074
Joined: Wed Oct 25, 2006 12:46 pm
Location: Siberia, Russian Federation
Name: Ruslan
Contact:

Re: [DEV] Thanks for posts

Post by rxu »

Check groups/users permissions as described in this post: viewtopic.php?f=456&t=2259046&p=14223716#p14223716

KING-FORUM
Registered User
Posts: 12
Joined: Fri Jun 17, 2016 5:01 am

Re: [DEV] Thanks for posts

Post by KING-FORUM »

I want to show my thanks mod like this


how can i edit my thanks_mod.php file to show like this


thanks counter view like this
Image

and remove thanks button under the top

Image

KING-FORUM
Registered User
Posts: 12
Joined: Fri Jun 17, 2016 5:01 am

Re: [DEV] Thanks for posts

Post by KING-FORUM »

KING-FORUM wrote:I want to show my thanks mod like this


how can i edit my thanks_mod.php file to show like this


thanks counter view like this
Image

and remove thanks button under the top

Image
Is someone here who will help me

User avatar
bonelifer
Community Team Member
Community Team Member
Posts: 3496
Joined: Wed Oct 27, 2004 11:35 pm
Name: William
Contact:

Re: [DEV] Thanks for posts

Post by bonelifer »

KING-FORUM wrote:
KING-FORUM wrote:I want to show my thanks mod like this


how can i edit my thanks_mod.php file to show like this


thanks counter view like this
Image

and remove thanks button under the top

Image
Is someone here who will help me
Ahem, Patience...
Knowledge Base | phpBB Board Rules | Search Customisation Database
Image
Please don't contact me via PM or email for phpBB support .

Raster02
Registered User
Posts: 14
Joined: Tue Mar 24, 2015 2:58 pm

Re: [DEV] Thanks for posts

Post by Raster02 »

After I enable this, absolutely nothing that relates to the extension appears on my board (phpbb 3.1.9)
Board works fine, but I see no asset of the extension on my pages, no toplist, no thanks button, no thanks list in profiles.

Any ideas ?

Shows up fine in ACP, can modify settings, even permissions appear under the misc tab.
I use a theme called Black from artodia, is that relevant at all ?

Installed the same extension on a fresh install of phpbb 3.1.9 and everything works fine. Does it have conflicts with other extensions ?

MDuss
Registered User
Posts: 48
Joined: Sat May 03, 2008 2:50 pm

Re: [DEV] Thanks for posts

Post by MDuss »

In this Extension there are only the files for the phpbb style "prosilver".

If you use an other style than you need to make the mod komatible to your style.

In the Folder ext\gfksx\ThanksForPosts\styles you can see the styles from the Extension and your Forum style.
Here you Need a new Folder for your own style and than you Need the modification for the stylefiles for this Extension.

MfG
MDuss

P.S. : Sorry for my bad english.

blood_wolf89
Registered User
Posts: 18
Joined: Thu May 24, 2012 2:43 am

[UPDATE] PHPBB 3.1 ULTIMATE POINTS & THANKS FOR POST INTIGRATION

Post by blood_wolf89 »

Mods, Sorry if this is in the wrong area.

Hello, I use the 3.1 version of Ultimate points and Thanks for Post. I wanted the poster to gain 10 points for a like and lose 10 points if a user removes their like.

I have done it and I want to share it here so others can do the same.

OPEN: ext/gfksx/ThanksForPost/core/helper.php

FOR ADDING POINTS
FIND: around line 200

Code: Select all

$sql = 'INSERT INTO ' . $this->thanks_table . ' ' . $this->db->sql_build_array('INSERT', $thanks_data);
$this->db->sql_query($sql);
ADD AFTER:

Code: Select all

$tpid =  $thanks_data['poster_id'];
$this->db->sql_query('UPDATE phpbb_users SET user_points = user_points + 10 WHERE user_id = '.$tpid);

FOR REMOVING POINTS
FIND: around line 375

Code: Select all

$lang_act = 'REMOVE';
$thanks_data = array(
	'user_id'	=> (int) $this->user->data['user_id'],
	'post_id'	=> $post_id,
	'poster_id'	=> $to_id,
	'topic_id'	=> (int) $row['topic_id'],
	'forum_id'	=> $forum_id,
	'thanks_time'	=> time(),
	'username'	=> $this->user->data['username'],
	'lang_act'	=> $lang_act,
	'post_subject'	=> $row['post_subject'],
);
ADD AFTER:

Code: Select all

$tpid =  $thanks_data['poster_id'];
$this->db->sql_query('UPDATE phpbb_users SET user_points = user_points - 10 WHERE user_id = '.$tpid);
Save and upload the file.

And that is all there is to it.

*NOTE: Requires both extensions linked above.

Thanks, Blood_Wolf89
Last edited by JimA on Fri Jul 08, 2016 7:14 am, edited 1 time in total.
Reason: Removed link to website

User avatar
JimA
Community Team Leader
Community Team Leader
Posts: 7728
Joined: Thu Jul 31, 2008 5:54 am
Location: The Netherlands
Name: Jim Mossing Holsteyn
Contact:

Re: [DEV] Thanks for posts

Post by JimA »

Hi blood_wolf89,

I've moved your post above into the Thanks for posts extension topic. The Extensions in Development forum is meant exclusively for actual extensions and tutorials such as yours should be made in the support topic for the extension that it is about. I've also removed the link to your website at the bottom of the post, since it didn't add value to the post, and was thus considered as being spam.

Thanks!
Image Jim Mossing Holsteyn - Community Team Leader
Knowledge Base | Documentation | Board rules

If you're having any questions about the rules/customs of this website, feel free to drop me a PM.

blood_wolf89
Registered User
Posts: 18
Joined: Thu May 24, 2012 2:43 am

Re: [DEV] Thanks for posts

Post by blood_wolf89 »

JimA wrote:Hi blood_wolf89,

I've moved your post above into the Thanks for posts extension topic. The Extensions in Development forum is meant exclusively for actual extensions and tutorials such as yours should be made in the support topic for the extension that it is about. I've also removed the link to your website at the bottom of the post, since it didn't add value to the post, and was thus considered as being spam.

Thanks!
Thank you so much. I'm sorry for posting in the wrong location. I was just trying to help others that want the same.

Thanks,
Blood_Wolf89

alsthom
Registered User
Posts: 53
Joined: Fri Oct 05, 2012 5:19 pm

Re: [DEV] Thanks for posts

Post by alsthom »

Hello. I hope my post fits here... :oops:
So I would like to know if it's possible to convert database tables from reputation ext (viewtopic.php?f=501&t=2210021) into thanks for posts.

I remember that in phpbb 3.0 there was a converter inside reputaion mod (converter from thanks mod into reputation mod). How can I do it the opposite way? Is it possible?

I am talking about toplist (both extensions use it) and rate posts (thank posts). What do you think/Advise?

Thank you

User avatar
bbthailand
Translator
Posts: 62
Joined: Wed Jun 18, 2008 6:00 am
Contact:

Re: [DEV] Thanks for posts

Post by bbthailand »

Excellent :o :o

Airshipcenter
Registered User
Posts: 13
Joined: Sat Jul 16, 2016 6:42 pm

Re: [DEV] Thanks for posts

Post by Airshipcenter »

Any idea when this extension will be finished?
Admin of LTA-Forum - http://www.airshipcenter.com/

cichy_ludek
Registered User
Posts: 72
Joined: Fri Jun 17, 2016 12:31 pm

Re: [DEV] Thanks for posts

Post by cichy_ludek »

It's working for me for a while and I don't see any problems, shortages, or something wrong with this. Thank you!

Locked

Return to “Extensions in Development”