MyBB Community Forums
[1.4.x/1.6.x] Thank You/Like System v1.5 (Updated: 10/26/2011) - Printable Version

+- MyBB Community Forums (https://community.mybb.com)
+-- Forum: Extensions (https://community.mybb.com/forum-201.html)
+--- Forum: Plugins (https://community.mybb.com/forum-73.html)
+---- Forum: Plugin Releases (https://community.mybb.com/forum-102.html)
+---- Thread: [1.4.x/1.6.x] Thank You/Like System v1.5 (Updated: 10/26/2011) (/thread-59652.html)



RE: [1.4.x/1.6.x] Thank You/Like System v1.5 (Updated: 10/26/2011) - SvePu - 2014-12-15

Maybe the server need some time to refresh cache. I've tested it on a local xampp installation and it works like it should.


RE: [1.4.x/1.6.x] Thank You/Like System v1.5 (Updated: 10/26/2011) - Eldenroot - 2014-12-15

I dont use any CDN or cache... I tested it in anonymous tab

I have succesfully changed - collapse icon (middle align) + icons in button - it is working fine

BUT for <br><br><hr>xxx</hr> I cannot make it working Sad it is not styled until I hit f5


RE: [1.4.x/1.6.x] Thank You/Like System v1.5 (Updated: 10/26/2011) - Typhome - 2014-12-30

(2014-12-11, 05:20 PM)Typhome Wrote: Anyone know how configure that users can also like/thank those closed threads? Only administrators/moderators can like/thank.

I've tried this one solution (at ..60 page) - it shows thank/like button but it wont work.



if(($tyled && $mybb->settings[$prefix.'removing'] != "1") || (!is_moderator($post['fid'], "caneditposts") && $mybb->user['uid'] == 0) || $post['uid'] == $mybb->user['uid'])

Need still help


RE: [1.4.x/1.6.x] Thank You/Like System v1.5 (Updated: 10/26/2011) - Eldenroot - 2014-12-30

Is there any way how to show date and time when I hover on a user name who gave thanks/like to a post? Now time and date is shown next to the nickname... thanks


RE: [1.4.x/1.6.x] Thank You/Like System v1.5 (Updated: 10/26/2011) - SvePu - 2014-12-30

(2014-12-30, 08:42 PM)Eldenroot Wrote: Is there any way how to show date and time when I hover on a user name who gave thanks/like to a post? Now time and date is shown next to the nickname... thanks

Replace content in global template "thankyoulike_users" with:
<span class="smalltext">{$comma}</span><a href="{$profile_link}" class="smalltext" title="{$dt}">{$username}</a>



RE: [1.4.x/1.6.x] Thank You/Like System v1.5 (Updated: 10/26/2011) - Eldenroot - 2014-12-30

Amazing! I tried it with title tag but your code is shorter Smile thanks

P.S. Any idea why my thank list under post is not styled when I hit thank/like button? It is styled after I refresh my page... I can provide you url


RE: [1.4.x/1.6.x] Thank You/Like System v1.5 (Updated: 10/26/2011) - SvePu - 2014-12-31

How did you styled the thanks list? - With inline style or did you added a css class/id?


RE: [1.4.x/1.6.x] Thank You/Like System v1.5 (Updated: 10/26/2011) - Typhome - 2014-12-31

(2014-12-30, 02:57 PM)Typhome Wrote:
(2014-12-11, 05:20 PM)Typhome Wrote: Anyone know how configure that users can also like/thank those closed threads? Only administrators/moderators can like/thank.

I've tried this one solution (at ..60 page) - it shows thank/like button but it wont work.






if(($tyled && $mybb->settings[$prefix.'removing'] != "1") || (!is_moderator($post['fid'], "caneditposts") && $mybb->user['uid'] == 0) || $post['uid'] == $mybb->user['uid'])

Need still help
Really? Anyone don't know how to solve this problem? Huh Users can't like/thank posts when thread is closed, only when thread is open. But I want that users can still like/thank posts - whatever thread is open or closed.

When I use that solution, then it will show thank/like button (on closed or open thread), but button doesn't work (it won't thank/like), only works when thread is open.


RE: [1.4.x/1.6.x] Thank You/Like System v1.5 (Updated: 10/26/2011) - Eldenroot - 2014-12-31

(2014-12-31, 12:59 AM)SvePu Wrote: How did you styled the thanks list? - With inline style or did you added a css class/id?

I am using your code which was mentioned here so it is styled in template - simple tags (<br><hr>) no css

http://community.mybb.com/thread-59652-post-1125250.html#pid1125250


RE: [1.4.x/1.6.x] Thank You/Like System v1.5 (Updated: 10/26/2011) - SvePu - 2014-12-31

OK...then try this...

Replace content in global template "thankyoulike_classic" with....
<div class="post_buttons {$unapproved_shade} tyllist_classic">
{$tyl_expcol} 
<span id="tyl_title_{$post['pid']}" style="{$tyl_title_display}">{$lang->tyl_title}</span><span id="tyl_title_collapsed_{$post['pid']}" style="{$tyl_title_display_collapsed}">{$lang->tyl_title_collapsed}</span><br />
<span id="tyl_data_{$post['pid']}" style="{$tyl_data_display}">{$post['thankyoulike']}</span>
</div>

and add in theme showthread.css
.tyllist_classic {
    margin-top: 30px;
    padding: 5px 0;
    border-top: 1px solid #aaa;
    border-bottom: 1px solid #aaa;
}