I noticed that as well. If that can't be fixed then it would be best to remove the notification feature out the mod completely, as it pretty useless if not linking directly back to the post.gt1971 wrote:Im having issues, only minor, with it not working correctly with notifications. You get notification someone liked a post but when you click on the link it takes you to the first post in the thread, not the one you were thanked for.
Lucifer4o wrote:It should work as is. It's in beta ... just becouse it is not EPV comaptable.
It gives but I will need to do some testing.Mattix wrote:Hmm, seems the only thing needed is a way to determine what page the post is on (the 'start' parameter). I'm quite surprised phpBB doesn't seem to offer a built-in method to generate a correct url for a given forum, topic and post id.
Digging on.
Code: Select all
{BOARD_URL}viewtopic.php?p={postrow.POST_ID}#p{postrow.POST_ID}
Code: Select all
{postrow.POST_SUBJECT}
<a href="https://twitter.com/share" class="twitter-share-button" data-url="{BOARD_URL}viewtopic.php?p={postrow.POST_ID}#p{postrow.POST_ID}" data-text="{postrow.POST_SUBJECT}">Tweet</a>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');</script>