[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
rxu
Extensions Development Team
Posts: 3002
Joined: Wed Oct 25, 2006 12:46 pm
Location: Siberia, Russian Federation
Name: Ruslan
Contact:

Re: [DEV] Thanks for posts

Post by rxu » Tue Jun 23, 2015 4:15 pm

Booster1304 wrote:I´m on 3.1.5.
Is your Subway style updated to phpBB 3.1.5? phpBB 3.1.4 misses some template events required.
As I probably said before (iirc), Subway is a paid style, so I don't have it to play with, sorry.

Booster1304
Registered User
Posts: 18
Joined: Sun Jun 21, 2015 7:42 am

Re: [DEV] Thanks for posts

Post by Booster1304 » Tue Jun 23, 2015 7:07 pm

Yes, it´s up to 3.1.5.

Sorry for spaming you but i´ve found something here in topic to get a bit forward.
rxu wrote:For the Elegance style, you can try to create a folder named elegance in \ext\gfksx\ThanksForPosts\styles\ folder, and copy the content of \ext\gfksx\ThanksForPosts\styles\prosilver folder into it.
Then open \ext\gfksx\ThanksForPosts\styles\elegance\theme\thanks.css, find the code

Code: Select all

.thanks-icon:before
{
    background-position: -3px -1px;
    background-image: url("./images/icons_button_likes.png");
}
.thanks-icon:hover:before{ background-position: -3px -19px; }

.removethanks-icon:before
{
	background-position: -18px -2px;
    background-image: url("./images/icons_button_likes.png");

}
.removethanks-icon:hover:before	{background-position: -18px -20px; }
and replace it with the code

Code: Select all

.thanks-icon:before
{
  content: '\f087';
  font-size: 12px;
}

.removethanks-icon:before
{
  content: '\f088';
  font-size: 12px;
}
So now i got 2 issues remaining:

1. The "Thumb Up" Thanks button looks like on picture.

2. The Quote Button is still behind the wrong showen Thanks Button.

Image

Thanks for spending your Time rxu :)

biblexcursion
Registered User
Posts: 168
Joined: Fri Sep 13, 2013 12:11 am
Contact:

Re: [DEV] Thanks for posts

Post by biblexcursion » Tue Jun 23, 2015 8:56 pm

Any news on when this will be released?

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

Re: [DEV] Thanks for posts

Post by Holger » Wed Jun 24, 2015 6:30 am

Booster1304 wrote: Image
That circled looks more like "image is missing".

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

Re: [DEV] Thanks for posts

Post by Schtorsch » Wed Jun 24, 2015 9:17 am

rxu wrote:
Schtorsch wrote:There is only a permission to see the toplists
Not really. There's forum based permission Can thank for posts. Try checking permission masks for groups forum permissions.
That´s it!!! Thank you for that hint! :)
But how can I change this option to yes overall?! There are many groups and forums here... :oops:

EDIT: I made it. I changed the rights for all the groups in one forum and then I copied this rights to all the other. Hope it works...

Booster1304
Registered User
Posts: 18
Joined: Sun Jun 21, 2015 7:42 am

Re: [DEV] Thanks for posts

Post by Booster1304 » Wed Jun 24, 2015 11:30 am

Image

The Square shows "F087" or "F088" like in exchanged code i´ve quoted a few posts earlier.

rxu any idea?

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

Re: [DEV] Thanks for posts

Post by SalazarAG » Wed Jun 24, 2015 1:18 pm

No one has a solution to the button to thank that does not appear in Bootlike style?

It would be the position of buttons, size? I got in touch with the author's style, but got no answer yet! :(
I'm sorry for my English. Google Translator does a bad job. :D

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

Re: [DEV] Thanks for posts

Post by rxu » Wed Jun 24, 2015 1:27 pm

SalazarAG wrote:No one has a solution to the button to thank that does not appear in Bootlike style?
If you switch to prosilver, does it work for you?

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

Re: [DEV] Thanks for posts

Post by SalazarAG » Wed Jun 24, 2015 1:30 pm

rxu wrote:
SalazarAG wrote:No one has a solution to the button to thank that does not appear in Bootlike style?
If you switch to prosilver, does it work for you?
In prosilver and elegance works very well. Only Bootlike the button is not visible.
I'm sorry for my English. Google Translator does a bad job. :D

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

Re: [DEV] Thanks for posts

Post by rxu » Wed Jun 24, 2015 2:10 pm

SalazarAG wrote: Only Bootlike the button is not visible.
Ok, let's try the following.
1st, for the ext/gfksx/ThanksForPosts/bootlike/theme/thanks.css please apply the trick from here viewtopic.php?p=14121016#p14121016
2nd, for the ext\gfksx\ThanksForPosts\styles\bootlike\template\event\viewtopic_body_post_buttons_after.html replace the whole code with the following:

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="btn btn-default" title="{postrow.THANK_ALT}{postrow.POST_AUTHOR}"><i class="fa {postrow.THANKS_IMG} fa-fw"></i><span>{postrow.THANK_ALT_SHORT}</span></a>
	<!-- ENDIF -->
<!-- ENDIF -->
Purge the cache and check result.

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

Re: [DEV] Thanks for posts

Post by rxu » Wed Jun 24, 2015 2:26 pm

Booster1304 wrote:The Square shows "F087" or "F088" like in exchanged code i´ve quoted a few posts earlier.

rxu any idea?
styles/Subway/template/viewtopic_body.html looks pretty much just like prosilver one, so with the css edits above should work fine. Although, if you could PM me the style (I'll keep it private), I could try to dig into it deeper.
Last edited by rxu on Wed Jun 24, 2015 2:32 pm, edited 1 time in total.

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

Re: [DEV] Thanks for posts

Post by SalazarAG » Wed Jun 24, 2015 2:28 pm

rxu wrote:
SalazarAG wrote: Only Bootlike the button is not visible.
Ok, let's try the following.
1st, for the ext/gfksx/ThanksForPosts/bootlike/theme/thanks.css please apply the trick from here viewtopic.php?p=14121016#p14121016
2nd, for the ext\gfksx\ThanksForPosts\styles\bootlike\template\event\viewtopic_body_post_buttons_after.html replace the whole code with the following:

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="btn btn-default" title="{postrow.THANK_ALT}{postrow.POST_AUTHOR}"><i class="fa {postrow.THANKS_IMG} fa-fw"></i><span>{postrow.THANK_ALT_SHORT}</span></a>
	<!-- ENDIF -->
<!-- ENDIF -->
Purge the cache and check result.
Perfect! Appeared!

Thank you and once again congratulations on ThanksForPost extension.
I'm sorry for my English. Google Translator does a bad job. :D

Booster1304
Registered User
Posts: 18
Joined: Sun Jun 21, 2015 7:42 am

Re: [DEV] Thanks for posts

Post by Booster1304 » Wed Jun 24, 2015 3:44 pm

EDIT: Got it to PN you :D

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

Re: [DEV] Thanks for posts

Post by rxu » Wed Jun 24, 2015 4:56 pm

Booster1304 wrote:Got it to PN you
Try the following code in thanks.css:

Code: Select all

.thanks-icon:before
{
  content: '\e0aa';
  font-size: 12px;
}

.removethanks-icon:before
{
  content: '\e0af';
  font-size: 12px;
}

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

Re: [DEV] Thanks for posts

Post by rxu » Wed Jun 24, 2015 5:18 pm

PM was for sending files only, not for private support. Please use the topic.
Now the problem is that above solution works for the regular Subway, not for the "dark" one like you have. I'm unable to get your exact style locally.

Locked

Return to “Extensions in Development”