[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!
Ideas Centre
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
Galixte de EzCom
Registered User
Posts: 1031
Joined: Mon Oct 04, 2004 11:14 pm
Location: France
Name: Raphaël M.
Contact:

Re: [DEV] Thanks for posts

Post by Galixte de EzCom » Wed Oct 07, 2015 3:34 pm

eterror wrote:you read my post?I wrote - there is no all options i have only 2.
Yes and you don't specify on which permission pages you don’t find the appropriate permissions !
eterror wrote:I have little problem. There is no options for set priveleges for Thanks for Post in ACP/Priveleges

I can only set two:
ACL_U_VIEWTHANKS
ACL_U_VIEWTOPLIST
Those are in ACP :
  1. click on « PERMISSIONS » tab,
  2. click on « Group permissions » section,
  3. choose a group like « Registered users »,
  4. click on « Advanced Permissions » link,
  5. click on « Misc » tab, there are two appropriate permissions :
    • Can view list of all thanks
    • Can view toplist
eterror wrote:there is no:
'ACL_F_THANKS' => 'Can thank for posts',
'ACL_M_THANKS' => 'Can clear the thanks list',

I have latets extension version (phpbb 3.1.6)

btw. admins and mods can thanks for posts.6…
Those are differents :
  • the first is for normal users, in ACP :
    1. click on « PERMISSIONS » tab,
    2. click on « Group forum permissions » section,
    3. choose a group like « Registered users »,
    4. select a forum,
    5. click on « Advanced Permissions » link,
    6. click on « Misc » tab, there is one appropriate permission : Can thank for posts
  • the second is for moderator users, in ACP :
    1. click on « PERMISSIONS » tab,
    2. click on « Global moderators » section,
    3. choose a group like « Global moderators »,
    4. click on « Advanced Permissions » link,
    5. click on « Misc » tab, there is one appropriate permission : Can clear the thanks list
Of course, i suggest you to modify the : « PERMISSION ROLES », it’s better to manage permissions for user groups.
Communau EzCom
📖 « Traductions d’extensions & styles pour phpBB 3.1.x & 3.2.x ».
📋 Lists of all extensions identified for phpBB 3.1.x & 3.2.x.
📋 Lists of all styles identified for phpBB 3.1.x & 3.2.x.
Image Tu as un forum et tu veux aussi un site web ? Regarde par ici.

User avatar
nhseacoast
Registered User
Posts: 518
Joined: Sun Sep 22, 2002 10:31 pm
Location: NH, USA
Contact:

Re: [DEV] Thanks for posts

Post by nhseacoast » Wed Oct 07, 2015 4:57 pm

Awesome extension and it took me all of about 5 minutes to turn it into a "Like" extension simply by changing the language file.

Thank you.

User avatar
yasser33311
Registered User
Posts: 266
Joined: Sat Jul 27, 2013 1:27 pm
Location: algeria
Name: yasser ghe
Contact:

Re: [DEV] Thanks for posts

Post by yasser33311 » Wed Oct 07, 2015 6:28 pm

waiting for stable version :roll:
PhpBB Services - install, update, upgrade, customize: PM

User avatar
nhseacoast
Registered User
Posts: 518
Joined: Sun Sep 22, 2002 10:31 pm
Location: NH, USA
Contact:

Re: [DEV] Thanks for posts

Post by nhseacoast » Wed Oct 07, 2015 7:00 pm

yasser33311 wrote:waiting for stable version :roll:
Yeah...I'm impatient. So far so good with no issues, but it's early. I'll report any problems if they happen.

Cin-
Registered User
Posts: 55
Joined: Fri Feb 06, 2015 2:06 pm

Re: [DEV] Thanks for posts

Post by Cin- » Mon Oct 12, 2015 8:29 am

rxu wrote:Incompatible with 3.2 currently.
Is 3.2 compatibility a 'quick fix' or does it requires substantial changes?

koreldan
Registered User
Posts: 3
Joined: Thu Oct 08, 2015 4:10 pm

Re: [DEV] Thanks for posts

Post by koreldan » Tue Oct 13, 2015 12:42 am

It works also with Tapatalk ?

I mean if i click the button "like" on tapatalk this mod shows those "likes" ?

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

Re: [DEV] Thanks for posts

Post by Holger » Thu Oct 15, 2015 7:05 am

rxu, thank you for this great ext!
I have a request: I feel the thanks-list is a little bit "lost" under the message in viewtopic.

Image

Would it maybe be possible to move the "Delete thanks"-icon to the far right side and put the thanks-icon in that place (left of the list) instead?


Edit: hmmm, I changed viewtopic_body_postrow_post_notices_after.html to

Code: Select all

<div id='list_thanks{postrow.POST_ID}'>
<!-- IF postrow.THANKS and postrow.THANKS_POSTLIST_VIEW and not postrow.S_POST_ANONYMOUS and not S_IS_BOT -->
	<div class="notice">
		<dl>
			<!-- IF postrow.S_MOD_THANKS -->
			<ul class="post-buttons" style="float: right; position: static;">
				<li>
					<a id='clear_list_thanks{postrow.POST_ID}' href="{postrow.U_CLEAR_LIST_THANKS_POST}" title="{L_CLEAR_LIST_THANKS}" class="button icon-button delete-icon" style="float:left"><span>{L_CLEAR_LIST_THANKS}</span></a>
				</li>
			</ul>
			<!-- ENDIF -->
			<ul class="post-buttons" style="float: left; position: static;">
				<li>
					<a id='lnk_thanks_post{postrow.POST_ID}' href="{postrow.THANKS_LINK}" title="{postrow.THANK_ALT}{postrow.POST_AUTHOR}" class="button icon-button {postrow.THANKS_IMG}"><span>{postrow.THANK_ALT_SHORT}</span></a>
				</li>
			</ul>
			<dt>{postrow.THANK_TEXT}{postrow.POST_AUTHOR_FULL}{postrow.THANK_TEXT_2}</dt>
			<dd>{postrow.THANKS}</dd>
		</dl>
	</div>
<!-- ENDIF -->
</div>
<div id='div_post_reput{postrow.POST_ID}'>
<!-- IF postrow.S_THANKS_POST_REPUT_VIEW and postrow.POST_REPUT and not postrow.S_POST_ANONYMOUS and not S_IS_BOT -->
	<div class="notice">
		<dl>
			<dt class="small"><strong>{L_REPUT}{L_COLON}</strong>&nbsp;{postrow.POST_REPUT}</dt>
			<dd>
			<!-- IF postrow.S_THANKS_REPUT_GRAPHIC -->
			<div style="width: {postrow.THANKS_REPUT_GRAPHIC_WIDTH}; height: {postrow.THANKS_REPUT_HEIGHT};" class="thanks_reput_image_back"><div style="height: {postrow.THANKS_REPUT_HEIGHT}; width: {postrow.POST_REPUT};" class="thanks_reput_image"></div></div>&nbsp;
			<!-- ENDIF -->
			</dd>
		</dl>
	</div>
<!-- ENDIF -->
</div>
It does what I want. Is there any (security-) concern with this change?


Edit2: now I see that when thanked I have a thumb-down-icon. That does not look good (looks like the thanks are "negative"). Is there a way to show only the thumbsup? BTW I do not have the thumbs-down at the other place (post_buttons_before)!

John45
Registered User
Posts: 199
Joined: Sat Jun 08, 2013 2:54 am

Re: [DEV] Thanks for posts

Post by John45 » Sat Oct 17, 2015 8:59 pm

How do i fix this:

Image

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

Re: [DEV] Thanks for posts

Post by rxu » Sun Oct 18, 2015 4:22 am

John45 wrote:How do i fix this:
Elaborate?

User avatar
Leinad4Mind
Translator
Posts: 852
Joined: Sun Jun 01, 2008 11:08 pm
Contact:

Re: [DEV] Thanks for posts

Post by Leinad4Mind » Sun Oct 18, 2015 4:54 pm

I've installed phpbbseo, and now installed this, and it doesn't work.
I've try to install the ajax addon, but still doesn't work.

Any idea where to start to fix this?

There was a solution for 3.0 here: http://www.phpbb-seo.com/en/advanced-se ... 08-15.html

Maybe the author could read and understand how to fix on this 3.1 version.


EDIT: I get it working, wow! :mrgreen: The fault is nos from phpbbseo "usu", but from phpbbseo "No Duplication" :twisted:
Want to access all my portuguese MOD and Extension translations?
Become my Patreon!
phpBB Portugal Translator and Moderator

John45
Registered User
Posts: 199
Joined: Sat Jun 08, 2013 2:54 am

Re: [DEV] Thanks for posts

Post by John45 » Mon Oct 19, 2015 6:08 pm

rxu wrote:
John45 wrote:How do i fix this:
Elaborate?
I want it so it change to thumb up and thumb down position and change color during hover, I want one image not 4.

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

Re: [DEV] Thanks for posts

Post by rxu » Mon Oct 19, 2015 6:11 pm

John45 wrote:I want one image not 4.
What style are you using?

John45
Registered User
Posts: 199
Joined: Sat Jun 08, 2013 2:54 am

Re: [DEV] Thanks for posts

Post by John45 » Mon Oct 19, 2015 6:27 pm

rxu wrote:
John45 wrote:I want one image not 4.
What style are you using?
Metro

User avatar
null2
Registered User
Posts: 475
Joined: Wed Jan 20, 2010 11:03 am

Re: [DEV] Thanks for posts

Post by null2 » Mon Oct 19, 2015 10:22 pm

PLEASE, DELETE THIS POST
Last edited by null2 on Tue Oct 20, 2015 1:39 am, edited 1 time in total.
Sorry for my bad english. I'm from USA.

User avatar
Leinad4Mind
Translator
Posts: 852
Joined: Sun Jun 01, 2008 11:08 pm
Contact:

Re: [DEV] Thanks for posts

Post by Leinad4Mind » Mon Oct 19, 2015 11:02 pm

John45 wrote:
rxu wrote:
John45 wrote:I want one image not 4.
What style are you using?
Metro
Read the documentation of that style. There is a code where you can on .css put the correspondent for the like button. it's a 4 char code.

Best regards
Want to access all my portuguese MOD and Extension translations?
Become my Patreon!
phpBB Portugal Translator and Moderator

Locked

Return to “Extensions in Development”