https://www.icyphoenix.com/viewtopic.php?f=30&t=179 ----------------------------------- KugeLSichA Sat 26 Aug, 2006 10:36 How To Set The CODE And CODEBLOCK Closed By Default ----------------------------------- [code linenumbers=false] # #-----[ OPEN ]------------------------------------------ # includes/bbcode.php # #-----[ FIND ]------------------------------------------ # # arround line 1964 or similar # $str = BBCODE_NOSMILIES_START . '
'; $str .= '
' . $lang['Code'] . ':' . (empty($item['params']['file']) ? '' : ' (' . htmlspecialchars($item['params']['file']) . ')') . $download_text . ' [' . $lang['Hide'] . ']
'; $str .= ''; $html = $str . '
    ' . $html . '
' . BBCODE_NOSMILIES_END; # #-----[ REPLACE WITH ]------------------------------------------ # $str = BBCODE_NOSMILIES_START . '
'; /* $str .= '
' . $lang['Code'] . ':' . (empty($item['params']['file']) ? '' : ' (' . htmlspecialchars($item['params']['file']) . ')') . $download_text . ' [' . $lang['Hide'] . ']
'; $str .= ''; $html = $str . '
    ' . $html . '
' . BBCODE_NOSMILIES_END; */ $str .= '
' . $lang['Code'] . ':' . (empty($item['params']['file']) ? '' : ' (' . htmlspecialchars($item['params']['file']) . ')') . $download_text . ' [' . $lang['Show'] . ']
'; $str .= ''; $html = $str . '' . BBCODE_NOSMILIES_END; # #-----[ FIND ]------------------------------------------ # # arround line 2081 # $str = BBCODE_NOSMILIES_START . '
'; $str .= '
' . $lang['Code'] . ':' . (empty($item['params']['file']) ? '' : ' (' . htmlspecialchars($item['params']['file']) . ')') . $download_text . ' [' . $lang['Hide'] . '] [' . $lang['Select'] . ']
'; $str .= ''; $html = $str . '
' . $html . '
' . BBCODE_NOSMILIES_END; # #-----[ REPLACE WITH ]------------------------------------------ # $str = BBCODE_NOSMILIES_START . '
'; /* $str .= '
' . $lang['Code'] . ':' . (empty($item['params']['file']) ? '' : ' (' . htmlspecialchars($item['params']['file']) . ')') . $download_text . ' [' . $lang['Hide'] . '] [' . $lang['Select'] . ']
'; $str .= ''; $html = $str . '
' . $html . '
' . BBCODE_NOSMILIES_END; */ $str .= '
' . $lang['Code'] . ':' . (empty($item['params']['file']) ? '' : ' (' . htmlspecialchars($item['params']['file']) . ')') . $download_text . ' [' . $lang['Show'] . ']
'; $str .= ''; $html = $str . '' . BBCODE_NOSMILIES_END; # #-----[ FIND ]------------------------------------------ # # arround line 2178 # $str = BBCODE_NOSMILIES_START . '
'; $str .= '
' . $lang['Code'] . ':' . (empty($item['params']['file']) ? '' : ' (' . htmlspecialchars($item['params']['file']) . ')') . $download_text . ' [' . $lang['Hide'] . '] [' . $lang['Select'] . ']
'; $str .= ''; /* $str .= '
' . $lang['Code'] . ':' . (empty($item['params']['file']) ? '' : ' (' . htmlspecialchars($item['params']['file']) . ')') . $download_text . ' [' . $lang['Hide'] . ']
'; $str .= ''; */ $html = $str . '
' . $html . '
' . BBCODE_NOSMILIES_END; # #-----[ REPLACE WITH ]------------------------------------------ # $str = BBCODE_NOSMILIES_START . '
'; /* $str .= '
' . $lang['Code'] . ':' . (empty($item['params']['file']) ? '' : ' (' . htmlspecialchars($item['params']['file']) . ')') . $download_text . ' [' . $lang['Hide'] . '] [' . $lang['Select'] . ']
'; $str .= ''; $html = $str . '
' . $html . '
' . BBCODE_NOSMILIES_END; */ $str .= '
' . $lang['Code'] . ':' . (empty($item['params']['file']) ? '' : ' (' . htmlspecialchars($item['params']['file']) . ')') . $download_text . ' [' . $lang['Show'] . ']
'; $str .= ''; $html = $str . '' . BBCODE_NOSMILIES_END; # #-----[ SAVE/CLOSE ALL FILES ]------------------------------------------ # # EoM [/code] ----------------------------------- KugeLSichA Sat 26 Aug, 2006 14:59 Re: How To set the CODE and CODEBLOCK to close ----------------------------------- first post updated