[For 1.8] MyLikes v1.0.1 - 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: [For 1.8] MyLikes v1.0.1 (/thread-159830.html) |
RE: MyLikes v1.0 - Eldenroot - 2014-10-05 Understand it is only a hobby. I am looking for your next release Keep good work! RE: MyLikes v1.0 - niere8 - 2014-10-13 In the future there will be an integration with MyAlert, so as to have a notification when someone puts "I like" on your post? thanks Sorry, other question, how can I delete round brackets " ( number of likes ) "? thanks RE: MyLikes v1.0 - Jones H - 2014-10-13 There wasn't any planned integration, however I'll take a look as I agree that it'd be a good addition. The brackets are located in the postbit_mylikes_button template. RE: MyLikes v1.0 - niere8 - 2014-10-13 I tried to delete ( and ) in postbit_mylikes_button but then "I like" and "Unlike" doesn't work more, I think because there is link to javascript: Quote:<span class="ilike"><a href="javascript:MyBB.popupWindow'/misc.php?action=likes&pid={$post['pid']}&uid={$post['uid']}';" id="liked_{$post['pid']}"><span class="mylikes_likes">{$likes}</span></a></span> RE: MyLikes v1.0 - Jones H - 2014-10-13 Are you sure you've only deleted the brackets? RE: MyLikes v1.0 - niere8 - 2014-10-13 Yes, only the brackets, "avascript" there is still but here on mybb community doesn't appear. I have pasted only code that I think has the brackets, in postbit_mylikes_button I have: Quote:<span class="ilike"><a href="j avascript:MyBB.popupWindow'/misc.php?action=likes&pid={$post['pid']}&uid={$post['uid']}';" id="liked_{$post['pid']}"><span class="mylikes_likes">{$likes}</span></a></span> (is here ( number of likes ) )? First code (span ilike etc) is for number of likes (and where there are the brackets) ; Second code (from <a href= etc) is for I like / Unlike text, where I click to add / remove likes on posts. RE: MyLikes v1.0 - Jones H - 2014-10-14 I knew of the javascript bug Use code/php tags next time, then you won't have that. The original template without brackets would be:
RE: MyLikes v1.0 - niere8 - 2014-10-14 Hi, the problem is that when I refresh page, mylikes are ok: But when I click on "I like" or "Unlike", it changes and I have brackets and (it's same post in three different clicks) Thank you in avance RE: MyLikes v1.0 - Jones H - 2014-10-14 Open jscripts/mylikes.js and remove the brackets in line 35. RE: MyLikes v1.0 - niere8 - 2014-10-15 Nothing, it doesn't work I tried from original $(id).text("("+(new_likes)+") "+lang_likes); $(id).text("("+new_likes+") "+lang_likes); (it works but I have always the brackets) $(id).text("+(new_likes)+ "+lang_likes); (when I click on I like / Unlike I see +(new_likes)+ I like) $(id).text("+new_likes+ "+lang_likes); (when I click on I like / Unlike I see +new_likes+ I like) $(id).text("+new_likes+") "+lang_likes; (unlike/I like doesn't work, there isn't toggle effect) $(id).text("+new_likes+" +lang_likes); (when I click on I like / Unlike I see +new_likes+ I like) $(id).text("+new_likes+" "+lang_likes); (unlike/I like doesn't work, there isn't toggle effect) $(id).text("("+new_likes+")" +lang_likes); (it works but I have always the brackets) I don't know, other combinations that I can try? Maybe the brackets are essential to work the plugin.. |