Page 27 of 75

Re: [DEV] Thanks for posts

Posted: Tue Jun 23, 2015 4:15 pm
by rxu
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.

Re: [DEV] Thanks for posts

Posted: Tue Jun 23, 2015 7:07 pm
by Booster1304
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 :)

Re: [DEV] Thanks for posts

Posted: Tue Jun 23, 2015 8:56 pm
by biblexcursion
Any news on when this will be released?

Re: [DEV] Thanks for posts

Posted: Wed Jun 24, 2015 6:30 am
by Holger
Booster1304 wrote: Image
That circled looks more like "image is missing".

Re: [DEV] Thanks for posts

Posted: Wed Jun 24, 2015 9:17 am
by Schtorsch
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...

Re: [DEV] Thanks for posts

Posted: Wed Jun 24, 2015 11:30 am
by Booster1304
Image

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

rxu any idea?

Re: [DEV] Thanks for posts

Posted: Wed Jun 24, 2015 1:18 pm
by SalazarAG
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! :(

Re: [DEV] Thanks for posts

Posted: Wed Jun 24, 2015 1:27 pm
by rxu
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?

Re: [DEV] Thanks for posts

Posted: Wed Jun 24, 2015 1:30 pm
by SalazarAG
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.

Re: [DEV] Thanks for posts

Posted: Wed Jun 24, 2015 2:10 pm
by rxu
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.

Re: [DEV] Thanks for posts

Posted: Wed Jun 24, 2015 2:26 pm
by rxu
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.

Re: [DEV] Thanks for posts

Posted: Wed Jun 24, 2015 2:28 pm
by SalazarAG
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.

Re: [DEV] Thanks for posts

Posted: Wed Jun 24, 2015 3:44 pm
by Booster1304
EDIT: Got it to PN you :D

Re: [DEV] Thanks for posts

Posted: Wed Jun 24, 2015 4:56 pm
by rxu
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;
}

Re: [DEV] Thanks for posts

Posted: Wed Jun 24, 2015 5:18 pm
by rxu
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.