MyBB Support

Too Many Quotes

Submitted by Sexual, , Thread ID: 4674

Thread Closed

RE: Too Many Quotes

Akay
We are!
Level:
0
Reputation:
28
Posts:
946
Likes:
109
Credits:
2.05K
10-06-2015, 07:34 AM
#6
Here comes the spoonfeed

Code:
<script type="text/javascript">
var quoteMsg = "View More";
var quotePop = "Too Many Quotes";

jQuery(function() {
   jQuery('blockquote blockquote:not(blockquote > blockquote > blockquote)').each(function(a, b) {
       jQuery(this).children('blockquote').each(function() {
         jQuery(this).html("<div><div class=\"spoilerheader\">" + quoteMsg + " <a href=\"javascript:void(0);\" class=\"spoilerclick\">(" + quotePop + ")</a></div><div class=\"spoilerbody\" style=\"display: none;\">" + jQuery(this).html() + "</div></div>");
       });
      
   });
jQuery(".spoilerclick").click(function() {
  
   var spoiler = jQuery(this).parent().parent();
   jQuery(spoiler).children(".spoilerbody").show();
   jQuery(spoiler).children(".spoilerheader").hide();
})
});
</script>

Users browsing this thread: 1 Guest(s)