The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.

Create a free forum like this one.

Fixing reply on every post button.

View previous topic View next topic Go down

Fixing reply on every post button.

Post by puppycheese on June 23rd 2013, 10:53 pm

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
$(function() {
var items = document.getElementsByClassName('entry-content'), replyDiv;
for (var i = 0; i < items.length; i++) {
   replyDiv = document.createElement('div');
   replyDiv.innerHTML = 'Reply';
$('.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.

Posts : 141
Reputation : 2
Language : english

Back to top Go down

View previous topic View next topic Back to top

Permissions in this forum:
You cannot reply to topics in this forum