Advertisement
Guest User

add this in admin cp-board template-below the board

a guest
Nov 24th, 2014
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. <script type="text/javascript">
  2. (function($) {
  3. var regex = [/\[css\s*=([^"']+?)\]([\s\S]+?)\[\/css\]/gi, /position\s*:(?:[^;:]+?;|[^;:]+$)?/i];
  4. $('td.c_post').each(function() {
  5. var $t = $(this),
  6. html = $t.html(),
  7. change = false;
  8.  
  9. while (regex[0].test(html)) {
  10. change = true;
  11. html = html.replace(regex[0], function(f, o, t, p) {
  12. return '<div style="' + o.replace(regex[1], '') + '">' + t + '</div>';
  13. });
  14. }
  15. if (change)
  16. $t.html(html);
  17. });
  18. })(jQuery);
  19. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement