[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
Schtorsch
Registered User
Posts: 49
Joined: Tue Aug 12, 2008 8:49 am

Re: [DEV] Thanks for posts

Post by Schtorsch » Wed Jul 01, 2015 12:05 pm

I changed that (seen here in the thread) as a workaround:

/ext/gfksx/ThanksForPosts/styles/prosilver/template/event/viewtopic_body_post_buttons_list_after.html

Code: Select all

<!-- IF  not postrow.S_FIRST_POST_ONLY or postrow.S_ONLY_TOPICSTART -->
   <!-- IF not postrow.S_GLOBAL_POST_THANKS and not postrow.S_POST_ANONYMOUS and S_FORUM_THANKS and S_USER_LOGGED_IN and not postrow.S_IS_OWN_POST and (not postrow.S_ALREADY_THANKED or postrow.S_REMOVE_THANKS) -->
   <a id="lnk_thanks_post{postrow.POST_ID}" href="{postrow.THANKS_LINK}" class="button icon-button {postrow.THANKS_IMG}" title="{postrow.THANK_ALT}{postrow.POST_AUTHOR}"><span>{postrow.THANK_ALT_SHORT}</span></a>
   <!-- ENDIF -->
<!-- ENDIF -->
So the Thanks-Button is at the left side and don´t have trouble with the latest one at the right side. Not beautiful but now we can see all the functions there... :oops:

Karsten1975
Registered User
Posts: 7
Joined: Fri Jun 26, 2015 1:09 pm

Re: [DEV] Thanks for posts

Post by Karsten1975 » Wed Jul 01, 2015 12:20 pm

Schtorsch wrote:I changed that (seen here in the thread) as a workaround:

/ext/gfksx/ThanksForPosts/styles/prosilver/template/event/viewtopic_body_post_buttons_list_after.html

Code: Select all

<!-- IF  not postrow.S_FIRST_POST_ONLY or postrow.S_ONLY_TOPICSTART -->
   <!-- IF not postrow.S_GLOBAL_POST_THANKS and not postrow.S_POST_ANONYMOUS and S_FORUM_THANKS and S_USER_LOGGED_IN and not postrow.S_IS_OWN_POST and (not postrow.S_ALREADY_THANKED or postrow.S_REMOVE_THANKS) -->
   <a id="lnk_thanks_post{postrow.POST_ID}" href="{postrow.THANKS_LINK}" class="button icon-button {postrow.THANKS_IMG}" title="{postrow.THANK_ALT}{postrow.POST_AUTHOR}"><span>{postrow.THANK_ALT_SHORT}</span></a>
   <!-- ENDIF -->
<!-- ENDIF -->
So the Thanks-Button is at the left side and don´t have trouble with the latest one at the right side. Not beautiful but now we can see all the functions there... :oops:
Doesn`t work in Black Style for me. Button is still on the right side and quote Botton is not visible
Image

Schtorsch
Registered User
Posts: 49
Joined: Tue Aug 12, 2008 8:49 am

Re: [DEV] Thanks for posts

Post by Schtorsch » Wed Jul 01, 2015 12:30 pm

For me it looks like that:

Image

Maiden2k
Registered User
Posts: 10
Joined: Wed Mar 10, 2010 5:08 pm

Re: [DEV] Thanks for posts

Post by Maiden2k » Thu Jul 02, 2015 3:53 am

Schtorsch wrote:For me it looks like that:

Image
same thing over here with Subway style

sopi
Registered User
Posts: 91
Joined: Mon Nov 24, 2008 11:35 am

Re: [DEV] Thanks for posts

Post by sopi » Thu Jul 02, 2015 6:04 am

I have the "latte" style enabled. Now I'm wondering how I can hide the "unthank" button when the option is disabled by admin anyways.

I'm not quite sure if this is an extension question or a plugin question :oops:

Maiden2k
Registered User
Posts: 10
Joined: Wed Mar 10, 2010 5:08 pm

Re: [DEV] Thanks for posts

Post by Maiden2k » Fri Jul 03, 2015 4:28 am

Ok i've got a way to do it for Subway style, here's what it looks like and what to do

Image

you have to go edit the Subway style file "styles/Subway/template/viewtopic_body.html"
look out for this:

Code: Select all

					
<!-- IF postrow.U_QUOTE -->
	<li>
		<a href="{postrow.U_QUOTE}" title="{L_REPLY_WITH_QUOTE}" class="button icon-button quote-icon"><span>{L_QUOTE}</span></a>
	</li>
<!-- ENDIF -->
and add after:

Code: Select all

					
<!-- IF  not postrow.S_FIRST_POST_ONLY or postrow.S_ONLY_TOPICSTART -->
	<!-- IF not postrow.S_GLOBAL_POST_THANKS and not postrow.S_POST_ANONYMOUS and S_FORUM_THANKS and S_USER_LOGGED_IN and not postrow.S_IS_OWN_POST and (not postrow.S_ALREADY_THANKED or postrow.S_REMOVE_THANKS) -->
		<li>
			<a id='lnk_thanks_post{postrow.POST_ID}' href="{postrow.THANKS_LINK}" title="{postrow.THANK_ALT}{postrow.POST_AUTHOR}" class="button icon-button icon-thumbs-up"><span>{postrow.THANK_ALT_SHORT}</span></a>
		</li>
	<!-- ENDIF -->
<!-- ENDIF -->
<!-- EVENT viewtopic_body_post_buttons_after -->
which is the same code as the viewtopic_body_post_buttons_list_after.html except i modified the icon for the Subway thumps up icon.

you can now clear the viewtopic_body_post_buttons_list_after.html content and everything should looks ok.

hope it helps

Karsten1975
Registered User
Posts: 7
Joined: Fri Jun 26, 2015 1:09 pm

Re: [DEV] Thanks for posts

Post by Karsten1975 » Fri Jul 03, 2015 1:20 pm

Maiden2k wrote:Ok i've got a way to do it for Subway style, here's what it looks like and what to do

Image

you have to go edit the Subway style file "styles/Subway/template/viewtopic_body.html"
look out for this:

Code: Select all

					
<!-- IF postrow.U_QUOTE -->
	<li>
		<a href="{postrow.U_QUOTE}" title="{L_REPLY_WITH_QUOTE}" class="button icon-button quote-icon"><span>{L_QUOTE}</span></a>
	</li>
<!-- ENDIF -->
and add after:

Code: Select all

					
<!-- IF  not postrow.S_FIRST_POST_ONLY or postrow.S_ONLY_TOPICSTART -->
	<!-- IF not postrow.S_GLOBAL_POST_THANKS and not postrow.S_POST_ANONYMOUS and S_FORUM_THANKS and S_USER_LOGGED_IN and not postrow.S_IS_OWN_POST and (not postrow.S_ALREADY_THANKED or postrow.S_REMOVE_THANKS) -->
		<li>
			<a id='lnk_thanks_post{postrow.POST_ID}' href="{postrow.THANKS_LINK}" title="{postrow.THANK_ALT}{postrow.POST_AUTHOR}" class="button icon-button icon-thumbs-up"><span>{postrow.THANK_ALT_SHORT}</span></a>
		</li>
	<!-- ENDIF -->
<!-- ENDIF -->
<!-- EVENT viewtopic_body_post_buttons_after -->
which is the same code as the viewtopic_body_post_buttons_list_after.html except i modified the icon for the Subway thumps up icon.

you can now clear the viewtopic_body_post_buttons_list_after.html content and everything should looks ok.

hope it helps

It also works for black Style. Thank you very much.

Now I only have one Problem.
In the Post bottom an in the short Profile the Thanks are Displayed twice:

Image

Any Ideas?

wrkalot
Registered User
Posts: 108
Joined: Tue Oct 02, 2012 10:07 pm

Re: [DEV] Thanks for posts

Post by wrkalot » Sun Jul 05, 2015 2:39 pm

rxu wrote:Also forgot to mention that current development code is compatible with phpBB 3.1.5+. For phpBB 3.1.4 and earlier, then thanks button won't be displayed.
Would be helpful if you put this in the first post! I've just spent an hour trying to figure out why it wasn't showing in 3.1.4 :(
Tutorial: How to add ads to your forum viewtopic.php?f=64&t=2417316

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

Re: [DEV] Thanks for posts

Post by rxu » Sun Jul 05, 2015 4:12 pm

wrkalot wrote:Would be helpful if you put this in the first post!
You're right, sorry. Edited the 1st post info.

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

Re: [DEV] Thanks for posts

Post by SalazarAG » Wed Jul 08, 2015 8:05 pm

Hello! How do I change to enjoy the Elegance button, shown in the image below:

Image

By similar to the prosilver?

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

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

Re: [DEV] Thanks for posts

Post by rxu » Thu Jul 09, 2015 2:44 pm

SalazarAG wrote:How do I change to enjoy the Elegance button
viewtopic.php?f=456&t=2259046&p=14028726

User avatar
RMcGirr83
Recognised Extension Developer
Posts: 21034
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr
Contact:

Re: [DEV] Thanks for posts

Post by RMcGirr83 » Thu Jul 09, 2015 2:50 pm

SalazarAG wrote:Hello! How do I change to enjoy the Elegance button, shown in the image below:
viewtopic.php?p=14028726#p14028726
In times of change, learners inherit the earth, while the learned find themselves beautifully equipped to deal with a world that no longer exists - Eric Hoffer
Former Modifications/Extensions Team Member | My extensions
Appreciate the extensions/mods/support then buy me a beer
All requests for support via PM will be ignored

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

Re: [DEV] Thanks for posts

Post by SalazarAG » Sat Jul 11, 2015 10:00 am

Perfect! Thank you both
I'm sorry for my English. Google Translator does a bad job. :D

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

Re: [DEV] Thanks for posts

Post by John45 » Sun Jul 12, 2015 7:43 am

For some odd reason when you enable it for posts it tends to replace the quote button.

bmc1776
Registered User
Posts: 2
Joined: Sun Jul 19, 2015 1:27 am

Re: [DEV] Thanks for posts

Post by bmc1776 » Sun Jul 19, 2015 1:31 am

John45 wrote:For some odd reason when you enable it for posts it tends to replace the quote button.
Have you figured out this issue by chance? I am stuck with this.

I am using prosilver v3.1.5 and the thanks button overlays the quotes button, I have gone through 29 pages and either missed where someone addressed how to resolve the issue or it is just not there, I have tried some of the code changes recommended for the thanks.css and they don't work.

Anyone?

Locked

Return to “Extensions in Development”