Fixing reply on every post button.
Page 1 of 1
Fixing reply on every post button.
I used a tutorial that made it so there would be a reply button for every post and it would open up a quick reply editor when you press it and you could respond to the post like that.
So I have this code from MR.EasyBB And it adds a reply button to each post. is their a way to fix this?
Here is the code
Please help me! I used this and I really liked having it on my forums.
So I have this code from MR.EasyBB And it adds a reply button to each post. is their a way to fix this?
Here is the code
- Code:
$(function() {
document.getElementById('pun-qpost').style.display='none';
var items = document.getElementsByClassName('entry-content'), replyDiv;
for (var i = 0; i < items.length; i++) {
replyDiv = document.createElement('div');
replyDiv.className='replyButton';
replyDiv.innerHTML = 'Reply';
items[i].appendChild(replyDiv);
}
$('.replyButton').click(function() {
var reply = document.getElementById('pun-qpost'),seeIf = $(this).parent('.entry-content').children('#pun-qpost'),seeIfcheck = seeIf.css('display');
if(seeIf.length == 1 && seeIfcheck ==="block") {
document.getElementById("pun-qpost").style.display= 'none';
} else if (seeIfcheck ==="none" && seeIf.length == 1){
document.getElementById("pun-qpost").style.display= 'block';}else{ $(this).parent().append(reply);
document.getElementById("pun-qpost").style.display= 'block';
}
});
});
Please help me! I used this and I really liked having it on my forums.
Similar topics
» How can I add the reply button in every post
» Lock the 'New Topic' button but not the 'Post Reply' button
» Post hidden Reply Button
» Post Reply Button Shows Post New & No background
» No post or reply button
» Lock the 'New Topic' button but not the 'Post Reply' button
» Post hidden Reply Button
» Post Reply Button Shows Post New & No background
» No post or reply button
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum