Would you like to react to this message? Create an account in a few clicks or log in to continue.

Go down
Admin
Admin
Administrator
Posts : 77
Points : 154
Reputation : 10
Join date : 2012-07-31
https://forumactif.board-directory.net

Warning fasfasfsafas

Tue Aug 05, 2014 12:44 am
Message reputation : 100% (1 vote)
test


Last edited by Admin on Sun Nov 02, 2014 4:49 am; edited 3 times in total
Admin
Admin
Administrator
Posts : 77
Points : 154
Reputation : 10
Join date : 2012-07-31
https://forumactif.board-directory.net

Warning Re: fasfasfsafas

Tue Aug 19, 2014 12:25 am
gdsgds
Admin
Admin
Administrator
Posts : 77
Points : 154
Reputation : 10
Join date : 2012-07-31
https://forumactif.board-directory.net

Warning Re: fasfasfsafas

Tue Aug 19, 2014 12:26 am
bdhfdhdf
Admin
Admin
Administrator
Posts : 77
Points : 154
Reputation : 10
Join date : 2012-07-31
https://forumactif.board-directory.net

Warning Re: fasfasfsafas

Wed Oct 22, 2014 6:17 am
Admin
Admin
Administrator
Posts : 77
Points : 154
Reputation : 10
Join date : 2012-07-31
https://forumactif.board-directory.net

Warning Re: fasfasfsafas

Thu Oct 23, 2014 9:04 am
Admin wrote:[sucesso=Solved]This thread is solved[/sucesso]


Last edited by Admin on Sat Oct 25, 2014 2:58 am; edited 1 time in total (Reason for editing : test)
Admin
Admin
Administrator
Posts : 77
Points : 154
Reputation : 10
Join date : 2012-07-31
https://forumactif.board-directory.net

Warning Re: fasfasfsafas

Thu Oct 30, 2014 6:14 am
hjf
Admin
Admin
Administrator
Posts : 77
Points : 154
Reputation : 10
Join date : 2012-07-31
https://forumactif.board-directory.net

Warning Re: fasfasfsafas

Sun Nov 02, 2014 4:48 am
bsfgdsgsd
Admin
Admin
Administrator
Posts : 77
Points : 154
Reputation : 10
Join date : 2012-07-31
https://forumactif.board-directory.net

Warning Re: fasfasfsafas

Sat Nov 15, 2014 10:34 am
Message reputation : 100% (1 vote)
Code:
/***
* Syntax Highlighter funtionality for Forumotion!
* (c) http://balupton.github.io
* Version: 1.28082013-jq1.9.1
* Made by JScript - 2013/12/16
*/
jQuery(function () {
    var sCSS = '<style>' +
        '/***' +
        '* Syntax Highlighter funtionality for Forumotion!' +
        '* CSS: .codebox dd.cont_code' +
        '* (c) http://balupton.github.io' +
        '* Version: 1.28082013-jq1.9.1' +
        '* Made by JScript - 2013/12/16' +
        '*/' +
        'code.punbb_block, pre.punbb_block {' +
        '  background-color: #FAFAFA !important;' +
        '  border: 1px solid #C9C9C9 !important;' +
        '  color: #000000;' +
        '  font-family: Consolas,"Bitstream Vera Sans Mono","Andale Mono",Monaco,"DejaVu Sans Mono","Lucida Console",monospace !important;' +
        '  font-size: 11px !important;' +
        '  line-height: 110% !important;' +
        '  max-height: 250px !important;' +
        '  overflow: auto !important;' +
        '  padding: 5px !important;' +
        '  white-space: pre-wrap !important;' +
        '  width: auto !important;' +
        '}' +
        '.punbbtop {' +
        '  background-color: #FFDEAD !important;' +
        '  color: #1D3652;' +
        '  font-size: 10px;' +
        '  font-weight: bold;' +
        '  line-height: 100%;' +
        '  margin-top: 5px;' +
        '  padding: 2px 1px 2px 3px;' +
        '}' +
        '.punbbtop button {' +
        '  background: -moz-linear-gradient(center top , #EDEDED 5%, #DFDFDF 100%) repeat scroll 0 0 #EDEDED;' +
        '  border: 1px solid #BBBBBB;' +
        '  border-radius: 3px 3px 3px 3px;' +
        '  color: #1D3652;' +
        '  cursor: pointer;' +
        '  display: inline-block;' +
        '  font-size: 10px;' +
        '  padding: 0 6px;' +
        '  text-decoration: none;' +
        '}' +
        '.punbbtop button:hover {' +
        '  background: -moz-linear-gradient(center top , #DFDFDF 5%, #EDEDED 100%) repeat scroll 0 0 #DFDFDF;' +
        '  border-color: #9A9A9A;' +
        '  color: #3D70A3;' +
        '}' +
        '.punbbtop button:active {' +
        '  position: relative;' +
        '  top: 1px;' +
        '}' +
        'pre.punbb_block.expand, code.punbb_block.expand {' +
        '  max-height: 100% !important;' +
        '}' +
        '.prettyprint ol.linenums {' +
        '  padding-left: 15px !important;' +
        '}' +
        '</style>';
    jQuery(sCSS).insertBefore('#page-body');

    if (jQuery('.cont_code').length) {
        var tagCode = jQuery('.cont_code');
    } else {
        if (jQuery('.cont_code').length) {
            var tagCode = jQuery('.code');
        } else {
            var tagCode = jQuery('code');     
        }
    }
    tagCode.each(function () {
        var sContent = jQuery(this).html();
        var codebox = jQuery(this).parent().parent();
        codebox.before('<div class="punbbtop">Code        <button onclick="punbbExpand(this); return false;">expand</button><button style="display: none" onclick="punbbCollapse(this); return false;">collapse</button>  <button onclick="punbbSelect(this); return false;">select</button>  <button onclick="punbbPopup(this); return false;">popup</button>  <button style="margin-right: 50px; float: right;" onclick="punbbAbout(this); return false;">?</button></div><pre class="highlight punbb_block">' + sContent + '</pre>');
        codebox.remove();
    });
    jQuery.getScript('http://balupton.github.io/jquery-syntaxhighlighter/scripts/jquery.syntaxhighlighter.min.js', function () {
        jQuery.SyntaxHighlighter.init({
            'wrapLines': false
        })
    })
});
function punbbExpand(oThis) {
    jQuery(oThis).css('display', 'none');
    jQuery(oThis).next().css('display', '');
    jQuery(oThis).parent().next('pre.punbb_block').addClass('expand');
}
function punbbCollapse(oThis) {
    jQuery(oThis).css('display', 'none');
    jQuery(oThis).prev().css('display', '');
    jQuery(oThis).parent().next('pre.punbb_block').removeClass('expand');
}
function punbbPopup(oThis) {
    var content = jQuery(oThis).parent().next('pre.punbb_block').html();
    var my_window = window.open("","PunBB_Code","scrollbars=1,toolbar=no,menubar=no,personalbar=no,status=0,left=0,location=0,menubar=0,top=0,width=640,height=480");

    my_window.document.write('<pre>'+content+'</pre>');
}
function punbbAbout(oThis) {
    alert('Simple code to add Syntax Highlighter fuctionality for Forumotion\n\nBy JScript FROM Brazil - 2013/12/16\n');
}
function punbbSelect(oThis) {
    var doc = document;
    var text = jQuery(oThis).parent().next('pre.punbb_block')[0];
    if (doc.body.createTextRange) {
        var range = doc.body.createTextRange();
        range.moveToElementText(text);
        range.select();
    } else if (window.getSelection) {
        var selection = window.getSelection();
        var range = doc.createRange();
        range.selectNodeContents(text);
        selection.removeAllRanges();
        selection.addRange(range);     
    }
}
area51
area51
Moderator
Posts : 6
Points : 21
Reputation : 15
Join date : 2014-03-21

Warning Re: fasfasfsafas

Tue Dec 23, 2014 3:48 am
Message reputation : 100% (1 vote)
ytrytry
Sponsored content

Warning Re: fasfasfsafas

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