2014-10-05, 06:09 PM
Understand it is only a hobby. I am looking for your next release Keep good work!
[MyBB 1.8 Czech translation] [MyBB 1.8 plugins]: Prune old PMs + optimize DB plugin --- Thank you/like system
[For 1.8] MyLikes v1.0.1
|
2014-10-05, 06:09 PM
Understand it is only a hobby. I am looking for your next release Keep good work!
[MyBB 1.8 Czech translation] [MyBB 1.8 plugins]: Prune old PMs + optimize DB plugin --- Thank you/like system
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
2014-10-13, 05:27 PM
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.
Support PMs will be ignored!
2014-10-13, 06:21 PM
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>
2014-10-13, 06:50 PM
Are you sure you've only deleted the brackets?
Support PMs will be ignored!
2014-10-13, 07:12 PM
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.
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:
Support PMs will be ignored!
2014-10-14, 02:17 PM
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
2014-10-14, 07:35 PM
Open jscripts/mylikes.js and remove the brackets in line 35.
Support PMs will be ignored!
2014-10-15, 11:34 AM
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.. |
« Next Oldest | Next Newest »
|