bb_ksd_stats_script

The BuddyPress bb ksd stats script function.

Description

bb_ksd_stats_script(); 

Usage

  1. if ( !function_exists( 'bb_ksd_stats_script' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'buddypress/bp-forums/bbpress/bb-plugins/akismet.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = bb_ksd_stats_script(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/bp-forums/bbpress/bb-plugins/akismet.php  
  1. function bb_ksd_stats_script() 
  2. ?> 
  3. <style> 
  4. #bb-ksd-stats-frame { 
  5. -moz-box-shadow: 0 0 15px rgb(255, 255, 255); 
  6. -webkit-box-shadow: 0 0 15px rgb(255, 255, 255); 
  7. box-shadow: 0 0 15px rgb(255, 255, 255); 
  8. margin-top: 16px; 
  9. width: 100%; 
  10. height: 700px; 
  11. border-width: 0; 
  12. </style> 
  13. <script type="text/javascript"> 
  14. function resizeIframe() { 
  15. var height = document.documentElement.clientHeight; 
  16. height -= document.getElementById('bb-ksd-stats-frame').offsetTop; 
  17. height -= 60; 
  18. document.getElementById('bb-ksd-stats-frame').style.height = height +"px"; 
  19. }; 
  20. function resizeIframeInit() { 
  21. document.getElementById('bb-ksd-stats-frame').onload = resizeIframe; 
  22. window.onresize = resizeIframe; 
  23. addLoadEvent(resizeIframeInit); 
  24. </script> 
  25. <?php