Icy Phoenix

     
 


Tags And Keywordsbbcode, code, codeblock, customization, spoiler

Post new topic  Reply to topic 
Page 1 of 1
 
 
Reply with quote Download Post
Post BBCODE - How To Set The CODE And CODEBLOCK Closed By Default 
 
Code: [Download] [Hide] [Select]
#
#-----[ OPEN ]------------------------------------------
#

includes/bbcode.php

#
#-----[ FIND ]------------------------------------------
#

                $str = BBCODE_NOSMILIES_START . '<div class="code">';
                $str .= '<div class="code-header" id="codehdr2_' . $code_id . '" style="position: relative;">' . $lang['Code'] . ':' . (empty($item['params']['file']) ? '' : ' (' . htmlspecialchars($item['params']['file']) . ')') . $download_text . ' [<a href="javascript:void(0)" onclick="ShowHide('code_' . $code_id . '', 'code2_' . $code_id . '', ''); ShowHide('codehdr_' . $code_id . '', 'codehdr2_' . $code_id . '', '')">' . $lang['Hide'] . '</a>]</div>';
                $str .= '<div class="code-header" id="codehdr_' . $code_id . '" style="position: relative; display: none;">' . $lang['Code'] . ':' . (empty($item['params']['file']) ? '' : ' (' . htmlspecialchars($item['params']['file']) . ')') . $download_text . ' [<a href="javascript:void(0)" onclick="ShowHide('code_' . $code_id . '', 'code2_' . $code_id . '', ''); ShowHide('codehdr_' . $code_id . '', 'codehdr2_' . $code_id . '', '')">' . $lang['Show'] . '</a>]</div>';
                $html = $str . '<div class="code-content" id="code_' . $code_id . '" style="position: relative;"><ol class="code-list" start="' . $start . '">' . $html . '</ol></div></div>' . BBCODE_NOSMILIES_END;

#
#-----[ REPLACE WITH ]------------------------------------------
#
                $str = BBCODE_NOSMILIES_START . '<div class="code">';
/*
                $str .= '<div class="code-header" id="codehdr2_' . $code_id . '" style="position: relative;">' . $lang['Code'] . ':' . (empty($item['params']['file']) ? '' : ' (' . htmlspecialchars($item['params']['file']) . ')') . $download_text . ' [<a href="javascript:void(0)" onclick="ShowHide('code_' . $code_id . '', 'code2_' . $code_id . '', ''); ShowHide('codehdr_' . $code_id . '', 'codehdr2_' . $code_id . '', '')">' . $lang['Hide'] . '</a>]</div>';
                $str .= '<div class="code-header" id="codehdr_' . $code_id . '" style="position: relative; display: none;">' . $lang['Code'] . ':' . (empty($item['params']['file']) ? '' : ' (' . htmlspecialchars($item['params']['file']) . ')') . $download_text . ' [<a href="javascript:void(0)" onclick="ShowHide('code_' . $code_id . '', 'code2_' . $code_id . '', ''); ShowHide('codehdr_' . $code_id . '', 'codehdr2_' . $code_id . '', '')">' . $lang['Show'] . '</a>]</div>';
                $html = $str . '<div class="code-content" id="code_' . $code_id . '" style="position: relative;"><ol class="code-list" start="' . $start . '">' . $html . '</ol></div></div>' . BBCODE_NOSMILIES_END;
*/
                $str .= '<div class="code-header" id="codehdr2_' . $code_id . '" style="position: relative;">' . $lang['Code'] . ':' . (empty($item['params']['file']) ? '' : ' (' . htmlspecialchars($item['params']['file']) . ')') . $download_text . ' [<a href="javascript:void(0)" onclick="ShowHide('code_' . $code_id . '', 'code2_' . $code_id . '', ''); ShowHide('codehdr_' . $code_id . '', 'codehdr2_' . $code_id . '', '')">' . $lang['Show'] . '</a>]</div>';
                $str .= '<div class="code-header" id="codehdr_' . $code_id . '" style="position: relative; display: none;">' . $lang['Code'] . ':' . (empty($item['params']['file']) ? '' : ' (' . htmlspecialchars($item['params']['file']) . ')') . $download_text . ' [<a href="javascript:void(0)" onclick="ShowHide('code_' . $code_id . '', 'code2_' . $code_id . '', ''); ShowHide('codehdr_' . $code_id . '', 'codehdr2_' . $code_id . '', '')">' . $lang['Hide'] . '</a>]</div>';
                $html = $str . '<div class="code-content" id="code_' . $code_id . '" style="position: relative; display: none;"><ol class="code-list" start="' . $start . '">' . $html . '</ol></div></div>' . BBCODE_NOSMILIES_END;

#
#-----[ FIND ]------------------------------------------
#

                $str = BBCODE_NOSMILIES_START . '<div class="code">';
                $str .= '<div class="code-header" id="codehdr2_' . $code_id . '" style="position: relative;">' . $lang['Code'] . ':' . (empty($item['params']['file']) ? '' : ' (' . htmlspecialchars($item['params']['file']) . ')') . $download_text . ' [<a href="javascript:void(0)" onclick="ShowHide('code_' . $code_id . '', 'code2_' . $code_id . '', ''); ShowHide('codehdr_' . $code_id . '', 'codehdr2_' . $code_id . '', '')">' . $lang['Hide'] . '</a>] [<a href="javascript:void(0)" onclick="select_text('code_' . $code_id . '')">' . $lang['Select'] . '</a>]</div>';
                $str .= '<div class="code-header" id="codehdr_' . $code_id . '" style="position: relative; display: none;">' . $lang['Code'] . ':' . (empty($item['params']['file']) ? '' : ' (' . htmlspecialchars($item['params']['file']) . ')') . $download_text . ' [<a href="javascript:void(0)" onclick="ShowHide('code_' . $code_id . '', 'code2_' . $code_id . '', ''); ShowHide('codehdr_' . $code_id . '', 'codehdr2_' . $code_id . '', '')">' . $lang['Show'] . '</a>]</div>';
                $html = $str . '<div class="code-content" id="code_' . $code_id . '" style="position: relative;"><span class="code-row-text">' . $html . '</span></div></div>' . BBCODE_NOSMILIES_END;

#
#-----[ REPLACE WITH ]------------------------------------------
#

                $str = BBCODE_NOSMILIES_START . '<div class="code">';
/*
                $str .= '<div class="code-header" id="codehdr2_' . $code_id . '" style="position: relative;">' . $lang['Code'] . ':' . (empty($item['params']['file']) ? '' : ' (' . htmlspecialchars($item['params']['file']) . ')') . $download_text . ' [<a href="javascript:void(0)" onclick="ShowHide('code_' . $code_id . '', 'code2_' . $code_id . '', ''); ShowHide('codehdr_' . $code_id . '', 'codehdr2_' . $code_id . '', '')">' . $lang['Hide'] . '</a>] [<a href="javascript:void(0)" onclick="select_text('code_' . $code_id . '')">' . $lang['Select'] . '</a>]</div>';
                $str .= '<div class="code-header" id="codehdr_' . $code_id . '" style="position: relative; display: none;">' . $lang['Code'] . ':' . (empty($item['params']['file']) ? '' : ' (' . htmlspecialchars($item['params']['file']) . ')') . $download_text . ' [<a href="javascript:void(0)" onclick="ShowHide('code_' . $code_id . '', 'code2_' . $code_id . '', ''); ShowHide('codehdr_' . $code_id . '', 'codehdr2_' . $code_id . '', '')">' . $lang['Show'] . '</a>]</div>';
                $html = $str . '<div class="code-content" id="code_' . $code_id . '" style="position: relative;"><span class="code-row-text">' . $html . '</span></div></div>' . BBCODE_NOSMILIES_END;
*/
                $str .= '<div class="code-header" id="codehdr2_' . $code_id . '" style="position: relative;">' . $lang['Code'] . ':' . (empty($item['params']['file']) ? '' : ' (' . htmlspecialchars($item['params']['file']) . ')') . $download_text . ' [<a href="javascript:void(0)" onclick="ShowHide('code_' . $code_id . '', 'code2_' . $code_id . '', ''); ShowHide('codehdr_' . $code_id . '', 'codehdr2_' . $code_id . '', '')">' . $lang['Show'] . '</a>]</div>';
                $str .= '<div class="code-header" id="codehdr_' . $code_id . '" style="position: relative; display: none;">' . $lang['Code'] . ':' . (empty($item['params']['file']) ? '' : ' (' . htmlspecialchars($item['params']['file']) . ')') . $download_text . ' [<a href="javascript:void(0)" onclick="ShowHide('code_' . $code_id . '', 'code2_' . $code_id . '', ''); ShowHide('codehdr_' . $code_id . '', 'codehdr2_' . $code_id . '', '')">' . $lang['Hide'] . '</a>]</div>';
                $html = $str . '<div class="code-content" id="code_' . $code_id . '" style="position: relative; display: none;"><ol class="code-list" start="' . $start . '">' . $html . '</ol></div></div>' . BBCODE_NOSMILIES_END;

#
#-----[ FIND ]------------------------------------------
#
            $str = BBCODE_NOSMILIES_START . '<div class="code">';
            $str .= '<div class="code-header" id="codehdr2_' . $code_id . '" style="position: relative;">' . $lang['Code'] . ':' . (empty($item['params']['file']) ? '' : ' (' . htmlspecialchars($item['params']['file']) . ')') . $download_text . ' [<a href="javascript:void(0)" onclick="ShowHide('code_' . $code_id . '', 'code2_' . $code_id . '', ''); ShowHide('codehdr_' . $code_id . '', 'codehdr2_' . $code_id . '', '')">' . $lang['Hide'] . '</a>] [<a href="javascript:void(0)" onclick="select_text('code_' . $code_id . '')">' . $lang['Select'] . '</a>]</div>';
            $str .= '<div class="code-header" id="codehdr_' . $code_id . '" style="position: relative; display: none;">' . $lang['Code'] . ':' . (empty($item['params']['file']) ? '' : ' (' . htmlspecialchars($item['params']['file']) . ')') . $download_text . ' [<a href="javascript:void(0)" onclick="ShowHide('code_' . $code_id . '', 'code2_' . $code_id . '', ''); ShowHide('codehdr_' . $code_id . '', 'codehdr2_' . $code_id . '', '')">' . $lang['Show'] . '</a>]</div>';
            /*
            $str .= '<div class="code-header" id="codehdr2_' . $code_id . '" style="position: relative;">' . $lang['Code'] . ':' . (empty($item['params']['file']) ? '' : ' (' . htmlspecialchars($item['params']['file']) . ')') . $download_text . ' [<a href="javascript:void(0)" onclick="ShowHide('code_' . $code_id . '', 'code2_' . $code_id . '', ''); ShowHide('codehdr_' . $code_id . '', 'codehdr2_' . $code_id . '', '')">' . $lang['Hide'] . '</a>]</div>';
            $str .= '<div class="code-header" id="codehdr_' . $code_id . '" style="position: relative; display: none;">' . $lang['Code'] . ':' . (empty($item['params']['file']) ? '' : ' (' . htmlspecialchars($item['params']['file']) . ')') . $download_text . ' [<a href="javascript:void(0)" onclick="ShowHide('code_' . $code_id . '', 'code2_' . $code_id . '', ''); ShowHide('codehdr_' . $code_id . '', 'codehdr2_' . $code_id . '', '')">' . $lang['Show'] . '</a>]</div>';
            */
            $html = $str . '<div class="code-content" id="code_' . $code_id . '" style="position: relative;"><span class="code-row-text">' . $html . '</span></div></div>' . BBCODE_NOSMILIES_END;
#
#-----[ REPLACE WITH ]------------------------------------------
#

            $str = BBCODE_NOSMILIES_START . '<div class="code">';
/*
            $str .= '<div class="code-header" id="codehdr2_' . $code_id . '" style="position: relative;">' . $lang['Code'] . ':' . (empty($item['params']['file']) ? '' : ' (' . htmlspecialchars($item['params']['file']) . ')') . $download_text . ' [<a href="javascript:void(0)" onclick="ShowHide('code_' . $code_id . '', 'code2_' . $code_id . '', ''); ShowHide('codehdr_' . $code_id . '', 'codehdr2_' . $code_id . '', '')">' . $lang['Hide'] . '</a>] [<a href="javascript:void(0)" onclick="select_text('code_' . $code_id . '')">' . $lang['Select'] . '</a>]</div>';
            $str .= '<div class="code-header" id="codehdr_' . $code_id . '" style="position: relative; display: none;">' . $lang['Code'] . ':' . (empty($item['params']['file']) ? '' : ' (' . htmlspecialchars($item['params']['file']) . ')') . $download_text . ' [<a href="javascript:void(0)" onclick="ShowHide('code_' . $code_id . '', 'code2_' . $code_id . '', ''); ShowHide('codehdr_' . $code_id . '', 'codehdr2_' . $code_id . '', '')">' . $lang['Show'] . '</a>]</div>';
            $html = $str . '<div class="code-content" id="code_' . $code_id . '" style="position: relative;"><span class="code-row-text">' . $html . '</span></div></div>' . BBCODE_NOSMILIES_END;
*/
            $str .= '<div class="code-header" id="codehdr2_' . $code_id . '" style="position: relative;">' . $lang['Code'] . ':' . (empty($item['params']['file']) ? '' : ' (' . htmlspecialchars($item['params']['file']) . ')') . $download_text . ' [<a href="javascript:void(0)" onclick="ShowHide('code_' . $code_id . '', 'code2_' . $code_id . '', ''); ShowHide('codehdr_' . $code_id . '', 'codehdr2_' . $code_id . '', '')">' . $lang['Show'] . '</a>]</div>';
            $str .= '<div class="code-header" id="codehdr_' . $code_id . '" style="position: relative; display: none;">' . $lang['Code'] . ':' . (empty($item['params']['file']) ? '' : ' (' . htmlspecialchars($item['params']['file']) . ')') . $download_text . ' [<a href="javascript:void(0)" onclick="ShowHide('code_' . $code_id . '', 'code2_' . $code_id . '', ''); ShowHide('codehdr_' . $code_id . '', 'codehdr2_' . $code_id . '', '')">' . $lang['Hide'] . '</a>] [<a href="javascript:void(0)" onclick="select_text('code_' . $code_id . '')">' . $lang['Select'] . '</a>]</div>';
            $html = $str . '<div class="code-content" id="code_' . $code_id . '" style="position: relative; display: none;"><span class="code-row-text">' . $html . '</span></div></div>' . BBCODE_NOSMILIES_END;
                                        
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#

# EoM

 




____________
? Zuker - EDDB - LPM - Sharefields
 
ZukerSend private messageVisit poster's website  
Back to topPage bottom
Icy Phoenix is an open source project, you can show your appreciation and support future development by donating to the project.

Support us
 
Post new topic  Reply to topic  Page 1 of 1
 


Display posts from previous:    

HideWas this topic useful?

Link this topic
URL
BBCode
HTML




 
Permissions List
You cannot post new topics
You cannot reply to topics
You cannot edit your posts
You cannot delete your posts
You cannot vote in polls
You cannot attach files
You can download files
You cannot post calendar events


  

 

  cron