Uutiset:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu
Advertisement:

Haun tulos hakusanalle: Default smf Button Font

Tuloksien järjestys
#201
Arşiv / index.template.php'de Sorun
heinäkuu 25, 2008, 12:32:57 IP tekijältä Onur
......  menu sub template should display all the relevant buttons the user<br /> wants and or needs.<br /><br />  ............ , $options, $txt;<br /><br /> /* Use images from default theme when using templates from the default theme? ............ <br /> if this is 'always', images from the default theme will be used.<br /> if this is 'defaults',  ............  from the default theme will only be used with default templates.< ............  is 'never' or isn't set at all, images from the default theme will not be used. */<br /> $settings[' ............  What document type definition is being used? (for font size and other issues.)<br /> 'xhtml' for an  ............ .<br /> This should probably be the version of SMF it was created for. */<br /> $settings[' ............ ['use_tabs'] = true;<br /><br /> /* Use plain buttons - as oppossed to text buttons? */<br /> $ ............ ['use_buttons'] = true;<br /><br /> /* Show sticky and lock  ............ ="PHP, MySQL, bulletin, board, free, open, source, smf, simple, machines, forum" /><br /> <script  ............ " type="text/javascript" src="', $settings['default_theme_url'], '/script.js?fin11"></script><br /> < ............ ="text/javascript"><!-- // --><![CDATA[<br /> var smf_theme_url = "', $settings['theme_url'], '";<br />  ............  var smf_images_url = "', $settings['images_url'], '";<br / ............ > var smf_scripturl = "', $scripturl, '";<br /> var  ............ '] ? 'true' : 'false', ';<br /> var smf_charset = "', $context['character_set'], '";<br /> ............ ="stylesheet" type="text/css" href="', $settings['default_theme_url'], '/print.css?fin11" media="print" />'; ............ /* Internet Explorer 4/5 and Opera 6 just don't do font sizes properly. (they are big...)<br /> Thus, in  ............  Explorer 4, 5, and Opera 6 this will show fonts one size smaller than usual.<br /> Note that  ............ ="stylesheet" type="text/css" href="', $settings['default_theme_url'], '/fonts-compat.css" />';<br /><br />  ............ (mode ? 1 : 0);';<br /> else<br /> echo '<br /> smf_setThemeOption("collapse_header", mode ? 1 : 0,  ............ <br /> document.getElementById("upshrink").src = smf_images_url + (mode ? "/upshrink2.gif" : "/ ............  ? 1 : 0);';<br /> else<br /> echo '<br /> smf_setThemeOption("collapse_header_ic", mode ? 1 : 0, ............ /> document.getElementById("upshrink_ic").src = smf_images_url + (mode ? "/expand.gif" : "/collapse. ............ ']))<br /> echo '<br /> <span style="font-family: Verdana, sans-serif; font-size: 200%; ">', ............ > </div>';<br /><br /> // this is the upshrink button for the user info section<br /> echo '<br /> < ............ '])<br /> {<br /> echo '<br /> <span style="font-size: 130%;"> ', $txt['hello_member_ndt'], ' <b>', ............ " type="text/javascript" src="', $settings['default_theme_url'], '/sha1.js"></script><br /><br />  ............ "><br /> <option value="60">', $txt['smf53'], '</option><br /> <option value=" ............ ">', $txt['smf47'], '</option><br /> <option value=" ............ ">', $txt['smf48'], '</option><br /> <option value=" ............ ">', $txt['smf49'], '</option><br /> <option value="-1"  ............ ="selected">', $txt['smf50'], '</option><br /> </select><br />  ............ /><br /> <span class="middletext">', $txt['smf52'], '</span><br /> <input type="hidden"  ............ /javascript"><!-- // --><![CDATA[<br /> function smfFooterHighlight(element, value)<br /> {<br />  ............ .src = smf_images_url + "/" + (value ? "h_" : "") + element. ............ ="http://www.mysql.com/" target="_blank" style="font-size:10px;">MySQL</a>&nbsp;|&nbsp;<a href="http:// ............ .php.net/" target="_blank" style="font-size:10px;">PHP</a>&nbsp;|&nbsp;<a href="http:// ............ .w3.org/check/referer" target="_blank" style="font-size:10px;">XHTML</a>&nbsp;|&nbsp;<a href="http:// ............ -validator/check/referer" target="_blank" style="font-size:10px;">CSS</a><br /> </td><br /> </tr>< ............ /> echo '<br /> <span class="smalltext">', $txt['smf301'], $context['load_time'], $txt['smf302'], $ ............ ['load_queries'], $txt['smf302b'], '</span>';<br /><br /> // This is an  ............ > echo '<br /> window.addEventListener("load", smf_codeFix, false);<br /><br /> function  ............ > echo '<br /> window.addEventListener("load", smf_codeFix, false);<br /> function smf_codeFix()< ............  = window.onload;<br /> window.onload = smf_codeFix;<br /><br /> function smf_codeFix()<br / ............ ;<br /><br /> echo '<div class="nav" style="font-size: smaller; margin-bottom: 2ex; margin-top:  ............ <br /> <ul>';<br /> <br /><br /><br /> // Show the default [home] button.<br /> echo '<li><a href="', $ ............ ></li>';<br /> <br /> <br /> // Show the [help] button.<br /> echo '<li><a href="', $scripturl, '?action= ............ '</a></li>';<br /><br /> // How about the [search] button?<br /> if ($context['allow_search'])<br /> echo ' ............ '] , '</a></li>';<br /><br /> // the [member] list button<br /> if ($context['allow_memberlist'])<br />  ............  /><br /> // If the user is a guest, show [login] button.<br /> if ($context['user']['is_guest'])<br />  ............ /> // If the user is a guest, also show [register] button.<br /> if ($context['user']['is_guest'])<br />  ............  /><br /><br />}<br /><br />// Generate a strip of buttons.<br />function template_button_strip($ ............ , $custom_td = '')<br />{<br /> global $settings, $buttons, $context, $txt, $scripturl;<br /><br /> //  ............  the buttons...<br /> foreach ($button_strip as $key => $ ............ $context[$value['test']]))<br /> {<br /> unset($button_strip[$key]);<br /> continue;<br /> }<br />  ............  (!isset($buttons[$key]) || $force_reset)<br /> $buttons[$key] =  ............ '>' . $txt[$value['text']] . '</a>';<br /><br /> $button_strip[$key] = $buttons[$key];<br /> }<br /><br />  ............  (empty($button_strip))<br /> return '<td>&nbsp;</td>';<br /><br  ............ ', 'tab_back">', implode(' &nbsp;|&nbsp; ', $button_strip) , '</td><br /> <td class="', $direction == ......
#202
......  menu sub template should display all the relevant buttons the user<br /> wants and or needs.<br /><br />  ............ , $options, $txt;<br /><br /> /* Use images from default theme when using templates from the default theme? ............ <br /> if this is 'always', images from the default theme will be used.<br /> if this is 'defaults',  ............  from the default theme will only be used with default templates.< ............  is 'never' or isn't set at all, images from the default theme will not be used. */<br /> $settings[' ............  What document type definition is being used? (for font size and other issues.)<br /> 'xhtml' for an  ............ .<br /> This should probably be the version of SMF it was created for. */<br /> $settings[' ............ ['use_tabs'] = true;<br /><br /> /* Use plain buttons - as oppossed to text buttons? */<br /> $ ............ ['use_buttons'] = true;<br /><br /> /* Show sticky and lock  ............ ="PHP, MySQL, bulletin, board, free, open, source, smf, simple, machines, forum" /><br /> <script  ............ " type="text/javascript" src="', $settings['default_theme_url'], '/script.js?fin11"></script><br /> < ............ ="text/javascript"><!-- // --><![CDATA[<br /> var smf_theme_url = "', $settings['theme_url'], '";<br />  ............  var smf_images_url = "', $settings['images_url'], '";<br / ............ > var smf_scripturl = "', $scripturl, '";<br /> var  ............ '] ? 'true' : 'false', ';<br /> var smf_charset = "', $context['character_set'], '";<br /> ............ ="stylesheet" type="text/css" href="', $settings['default_theme_url'], '/print.css?fin11" media="print" />'; ............ /* Internet Explorer 4/5 and Opera 6 just don't do font sizes properly. (they are big...)<br /> Thus, in  ............  Explorer 4, 5, and Opera 6 this will show fonts one size smaller than usual.<br /> Note that  ............ ="stylesheet" type="text/css" href="', $settings['default_theme_url'], '/fonts-compat.css" />';<br /><br />  ............ (mode ? 1 : 0);';<br /> else<br /> echo '<br /> smf_setThemeOption("collapse_header", mode ? 1 : 0,  ............ <br /> document.getElementById("upshrink").src = smf_images_url + (mode ? "/upshrink2.gif" : "/ ............  ? 1 : 0);';<br /> else<br /> echo '<br /> smf_setThemeOption("collapse_header_ic", mode ? 1 : 0, ............ /> document.getElementById("upshrink_ic").src = smf_images_url + (mode ? "/expand.gif" : "/collapse. ............ ="titlebg2" height="32"><br /> <span style="font-size: 130%;"> ', $txt['hello_member_ndt'], ' <b>', ............ '], '</span>';<br /><br /> // this is the upshrink button for the user info section<br /> echo '<br /> < ............ " type="text/javascript" src="', $settings['default_theme_url'], '/sha1.js"></script><br /><br />  ............ "><br /> <option value="60">', $txt['smf53'], '</option><br /> <option value=" ............ ">', $txt['smf47'], '</option><br /> <option value=" ............ ">', $txt['smf48'], '</option><br /> <option value=" ............ ">', $txt['smf49'], '</option><br /> <option value="-1"  ............ ="selected">', $txt['smf50'], '</option><br /> </select><br />  ............  <input class="button" type="submit" value="', $txt[34], '" /><br /><br  ............ /> <span class="middletext">', $txt['smf52'], '</span><br /> <input type="hidden"  ............ ="width: 190px;" /> <br /> <input class="button" type="submit" name="submit" value="', $txt[182],  ............ /javascript"><!-- // --><![CDATA[<br /> function smfFooterHighlight(element, value)<br /> {<br />  ............ .src = smf_images_url + "/" + (value ? "h_" : "") + element. ............ ://www.sportriders.ca/" target="_blank" style="font-size:18px;"><b>© SportRiders.ca</b></a><br /> < ............ ="http://www.mysql.com/" target="_blank" style="font-size:10px;">MySQL</a> | <a href="http://www.php. ............ /" target="_blank" style="font-size:10px;">PHP</a> | <a href="http://validator. ............ .org/check/referer" target="_blank" style="font-size:10px;">XHTML</a> | <a href="http://jigsaw.w3. ............ -validator/check/referer" target="_blank" style="font-size:10px;">CSS</a><br /> </td><br /> </tr>< ............ /> echo '<br /> <span class="smalltext">', $txt['smf301'], $context['load_time'], $txt['smf302'], $ ............ ['load_queries'], $txt['smf302b'], '</span>';<br /><br /> // This is an  ............ > echo '<br /> window.addEventListener("load", smf_codeFix, false);<br /><br /> function  ............ > echo '<br /> window.addEventListener("load", smf_codeFix, false);<br /> function smf_codeFix()< ............  = window.onload;<br /><br /> window.onload = smf_codeFix;<br /><br /> function smf_codeFix()<br / ............ ;<br /><br /> echo '<div class="nav" style="font-size: smaller; margin-bottom: 2ex; margin-top:  ............ -navigation">';<br /><br /> // Show the [srhome] button.<br /> echo ($current_action=='srhome' || $ ............ ' ? '' : '';<br /><br /><br /> // Show the [home] button.<br /> echo ($current_action=='home' || $context[' ............ = 'home' ? '' : '';<br /><br /> // Show the [help] button.<br /> echo ($current_action == 'help' || $ ............ ' ? '' : '';<br /><br /> // How about the [search] button?<br /> if ($context['allow_search'])<br /> echo ( ............ ? '' : '';<br /><br /><br /> // Show the [gallery] button.<br /> echo ($current_action=='gallery' || $ ............ : '';<br /><br /><br /><br /> // Show the [arcade] button.<br /> echo ($current_action=='arcade' || $ ............ 'arcade' ? '' : '';<br /><br /> // Show the [rule] button.<br /> echo ($current_action=='rules' || $context[ ............ ' ? '' : '';<br /><br /> // the [member] list button<br /> if ($context['allow_memberlist'])<br />  ............  /><br /> // If the user is a guest, show [login] button.<br /> if ($context['user']['is_guest'])<br />  ............ /> // If the user is a guest, also show [register] button.<br /> if ($context['user']['is_guest'])<br />  ............ >';<br /><br />}<br /><br />// Generate a strip of buttons.<br />function template_button_strip($ ............ , $custom_td = '')<br />{<br /> global $settings, $buttons, $context, $txt, $scripturl;<br /><br /> //  ............  the buttons...<br /> foreach ($button_strip as $key => $ ............ $context[$value['test']]))<br /> {<br /> unset($button_strip[$key]);<br /> continue;<br /> }<br />  ............  (!isset($buttons[$key]) || $force_reset)<br /> $buttons[$key] =  ............ '>' . $txt[$value['text']] . '</a>';<br /><br /> $button_strip[$key] = $buttons[$key];<br /> }<br /><br />  ............  (empty($button_strip))<br /> return '<td> </td>';<br /><br />  ............ 'main' : 'mirror', 'tab_back">', implode(' | ', $button_strip) , '</td><br /> <td class="', $direction == ......
#203
Archief / lettertype theme
kesäkuu 12, 2007, 10:49:11 AP tekijältä Dave123
......  bij mezelf. al wat geprobeerd in style.css bij font-size wat grotere waardes in te vullen maar had  ............  wijzigen.  Lainaa/* CSS for Endar template for SMF 1.1 - 1.1.2 by Jasidog.com */  p { font-family :  ............ ;  text-decoration: none; } a.nav:hover {  font-weight: bold;  color: #cc3333;  text- ............  cells. */ table {  empty-cells: show; }  /* By default (td, body..) use Tahoma in black. */ td {   ............ : #553A00;  font-family : Georgia, Verdana, Geneva, Arial,  ............ , sans-serif;  font-size:12px; }  /* The main body of the entire  ............  : #553A00;  margin: 0px;  padding: 0px;  font-size:70%;  font-family : Georgia, Verdana,  ............  normal so they align well. */ input, textarea, button { font-size: 12px; margin:0px 5px; padding:1px  ............ ; font-family: Georgia, tahoma, sans-serif; } textarea {  ............ /* All input elements that are checkboxes or radio buttons. */ input.check { margin:2px; padding:0; }  /*  ............  it makes them look even better . */ select {  font-size: 9pt;  font-weight: normal;  color: # ............ ;  font-family: Georgia, tahoma, sans-serif;  margin: ............   /* A code block - maybe even PHP . */ .code {  font-family: "courier new", "times new roman",  ............ ;  font-size:120%;  background: url(images/quote-bot. ............ .gif) repeat-x top;  text-decoration: none;  font-style: normal;  font-weight: bold;  border: ............ . */ .highlight {  background-color: yellow;  font-weight: bold;  color: black; }  /* Alternating  ............  what everything in the table is.) */ .titlebg { font-family : Georgia, Verdana, Geneva, Arial,  ............ , sans-serif; font-weight : bold; background-repeat : repeat-x;  ............ : top; margin:0; padding: 4px 6px 2px 6px; font-size:100%; color: #553A00;  border-bottom: 1px  ............ (images/subtitle.gif) repeat-x top; color: #666;  font-weight: bold;  letter-spacing: 1px; padding: 8px  ............  4px 4px; font-size:90%; } tr.catbg td { padding: 8px 4px 4px  ............ /catbg2.jpg); }  .catbg, .catbg2  { color: #666;  font-weight: bold;  letter-spacing: 1px; padding: 8px  ............  4px 4px; font-size:90%; }  /* This is used for tables that have  ............  background-color: #C8BCA1;  padding: 2px; }  /* Default font sizes: small (8pt), normal (10pt), and large  ............ (14pt). */ .smalltext { font-size: 93%; } .normaltext {  font-size: small; }  ............ .largetext {  font-size: large; }  /* Posts and personal messages  ............  { clear:both; height:1px; } .title, .title2 { font-family : Georgia, Verdana, Geneva, Arial,  ............ , sans-serif; font-weight : bold; background-repeat : repeat-x;  ............ /title.gif); background-position: top; margin:0; font-size: 103%; color: #553A00;  padding: 6px 6px 4px  ............ (images/subtitle.gif) repeat-x top; color: #666;  font-weight: bold;  letter-spacing: 1px; padding: 8px  ............  4px 4px; font-size: 93%; clear:both; } dt a:link, dt a:visited,  ............ (images/block-foot.gif) repeat-x top; color: #000; font-size: 0; height: 12px; padding:0px; } .topic-icon  ............ ,  .row2 dt { background: none; color: #553A00;  font-weight: bold;  letter-spacing: 0px; padding: 4px;  ............ /nav-tile.gif) repeat-x top; color: #553A00; font-weight:bold; } #nav a { color: #553A00; } #nav- ............  { margin:0; padding:0 10px; display:inline; font-size:110%; } #usernav li { display:inline; margin: ............ ; height:22px; }  .edittime { margin-top:20px; font-size:90%; } * html .post-foot img { margin:0 0 - ............  End hide from IE-mac */  /* hover effect on topic buttons */  * html #topic-buttons-top a,  * html #topic- ............ -bot a, * html #topic-buttons-mod a, #topic-buttons-top a img,  #topic-buttons- ............  a img,  #topic-buttons-mod a img {  background-color: #BFE2CA; } *  ............  #topic-buttons-top a:hover,  * html #topic-buttons-bot a:hover,  ............ * html #topic-buttons-mod a:hover, #topic-buttons-top a:hover img,  # ............ -buttons-bot a:hover img,  #topic-buttons-mod a:hover img{ ............   background-color: #FFF9C5; } #topic-buttons-top .navPages:link,  #topic-buttons-bot . ............ :link,  #topic-buttons-mod .navPages:link, #topic-buttons-top .navPages: ............ ,  #topic-buttons-bot .navPages:hover,  #topic-buttons-mod . ............ :hover, #topic-buttons-top .navPages:visited,  #topic-buttons-bot . ............ :visited,  #topic-buttons-mod .navPages:visited {  background-color:  ............  .formright { height:46px; }  /* text and form buttons */  .button,  .buttons a:link,  .buttons a: ............ -space: nowrap; background-color: #E2DBBF; } .button { margin:0px 5px 0px 5px; padding:0px 4px 0px 4px; ............  }  .button:active,  .buttons a:hover { color: #333; border:  ............ .gif) no-repeat top right; text-decoration:none; font-weight: bold; } /* Hide from mac IE \*/ * html # ............ /poll-bar.gif); border: 1px solid #AD9C82; } #poll-buttons { float:left; padding:5px; }  /*stats page*/  # ............ -right .float-r { padding-top:3px; }  .copy-r { font-family: Verdana,Arial,sans-serif; color: #E8E1C7;  ............ -align:center; font-size: 90%; margin-top:-10px; padding-bottom: 10px; ............  font-weight: bold; background-color: transparent; }  /* ............ .copy-r a { color: #DCD1AB; } .copy-r .smalltext { font-size: 90%; } #ajax_in_progress {  text-align:  ............ ;  font-weight: bold;  font-size: 18pt;  padding: 3px; ......
#204
Graphics and Templates / fixed size problem
toukokuu 05, 2007, 05:59:17 IP tekijältä berkgun
......  menu sub template should display all the relevant buttons the user<br /> wants and or needs.<br /><br />  ............ , $options, $txt;<br /><br /> /* Use images from default theme when using templates from the default theme? ............ <br /> if this is 'always', images from the default theme will be used.<br /> if this is 'defaults',  ............  from the default theme will only be used with default templates.< ............  is 'never' or isn't set at all, images from the default theme will not be used. */<br /> $settings[' ............  What document type definition is being used? (for font size and other issues.)<br /> 'xhtml' for an  ............ .<br /> This should probably be the version of SMF it was created for. */<br /> $settings[' ............ ['use_tabs'] = true;<br /><br /> /* Use plain buttons - as oppossed to text buttons? */<br /> $ ............ ['use_buttons'] = true;<br /><br /> /* Show sticky and lock  ............ " type="text/javascript" src="', $settings['default_theme_url'], '/script.js?fin11"></script><br /> < ............ ="text/javascript"><!-- // --><![CDATA[<br /> var smf_theme_url = "', $settings['theme_url'], '";<br />  ............  var smf_images_url = "', $settings['images_url'], '";<br / ............ > var smf_scripturl = "', $scripturl, '";<br /> var  ............ '] ? 'true' : 'false', ';<br /> var smf_charset = "', $context['character_set'], '";<br /> ............ ="stylesheet" type="text/css" href="', $settings['default_theme_url'], '/print.css?fin11" media="print" />'; ............ /* Internet Explorer 4/5 and Opera 6 just don't do font sizes properly. (they are big...)<br /> Thus, in  ............  Explorer 4, 5, and Opera 6 this will show fonts one size smaller than usual.<br /> Note that  ............ ="stylesheet" type="text/css" href="', $settings['default_theme_url'], '/fonts-compat.css" />';<br /><br />  ............ (mode ? 1 : 0);';<br /> else<br /> echo '<br /> smf_setThemeOption("collapse_header", mode ? 1 : 0,  ............ <br /> document.getElementById("upshrink").src = smf_images_url + (mode ? "/upshrink2.gif" : "/ ............  ? 1 : 0);';<br /> else<br /> echo '<br /> smf_setThemeOption("collapse_header_ic", mode ? 1 : 0, ............ /> document.getElementById("upshrink_ic").src = smf_images_url + (mode ? "/expand.gif" : "/collapse. ............ " type="text/javascript" src="', $settings['default_theme_url'], '/sha1.js"></script><br /><br />  ............ "><br /> <option value="60">', $txt['smf53'], '</option><br /> <option value=" ............ ">', $txt['smf47'], '</option><br /> <option value=" ............ ">', $txt['smf48'], '</option><br /> <option value=" ............ ">', $txt['smf49'], '</option><br /> <option value="-1"  ............ ="selected">', $txt['smf50'], '</option><br /> </select></td><br /> ............ /javascript"><!-- // --><![CDATA[<br /> function smfFooterHighlight(element, value)<br /> {<br />  ............ .src = smf_images_url + "/" + (value ? "h_" : "") + element. ............ /> echo '<br /> <span class="smalltext">', $txt['smf301'], $context['load_time'], $txt['smf302'], $ ............ ['load_queries'], $txt['smf302b'], '</span>';<br /><br /> // This is an  ............ > echo '<br /> window.addEventListener("load", smf_codeFix, false);<br /><br /> function  ............ > echo '<br /> window.addEventListener("load", smf_codeFix, false);<br /> function smf_codeFix()< ............  = window.onload;<br /> window.onload = smf_codeFix;<br /><br /> function smf_codeFix()<br / ............ ;<br /><br /> echo '<div class="nav-tree" style="font-size: smaller; margin-bottom: 2ex; margin-top:  ............ > // Folder style or inline? Inline has a smaller font.<br /> echo '<span class="nav-tree" style="font............  // Folder style or inline? Inline has a smaller font.<br /> echo '<span class="nav-tree">';<br / ............ "><br /> <tr>';<br /><br /> // Show the [home] button.<br /> echo '<br /> <td class="main-navigation"> ............ ] , '</a></td>';<br /><br /> // Show the [help] button.<br /> echo '<br /> <td class="main-navigation"> ............ '</a></td>';<br /><br /> // How about the [search] button?<br /> if ($context['allow_search'])<br /> echo ' ............ /tr><br /> </table><br /><div align="right" style="font-size:10px;"><a href="#" onClick="overlayclose(\' ............ '] , '</a></td>';<br /><br /> // the [member] list button<br /> if ($context['allow_memberlist'])<br />  ............  /><br /> // If the user is a guest, show [login] button.<br /> if ($context['user']['is_guest'])<br />  ............ /> // If the user is a guest, also show [register] button.<br /> if ($context['user']['is_guest'])<br />  ............ >';<br /> <br /> // How about the [quick links] button?<br /> if ($context['user']['is_logged'])<br />  ............ /tr><br /> </table><br /><div align="right" style="font-size:10px;"><a href="#" onClick="overlayclose(\' ............ >';<br /><br />}<br /><br />// Generate a strip of buttons.<br />function template_button_strip($ ............ , $custom_td = '')<br />{<br /> global $settings, $buttons, $context, $txt, $scripturl;<br /><br /> //  ............  the buttons...<br /> foreach ($button_strip as $key => $ ............ $context[$value['test']]))<br /> {<br /> unset($button_strip[$key]);<br /> continue;<br /> }<br />  ............  (!isset($buttons[$key]) || $force_reset)<br /> $buttons[$key] =  ............ '>' . $txt[$value['text']] . '</a>';<br /><br /> $button_strip[$key] = $buttons[$key];<br /> }<br /><br />  ............  (empty($button_strip))<br /> return '<td>&nbsp;</td>';<br /><br  ............ 'mirror', 'tab_back">', implode(' &nbsp;&nbsp; ', $button_strip) , '</td><br /> <td class="', $direction == ......
#205
SMF Feedback and Discussion / Some SEO Tricks
tammikuu 03, 2007, 01:56:09 AP tekijältä Microdot
......  so I'm sorry if this isn't new info.  Been using SMF for about a week, and am very impressed. The only  ............  and all these tips are legal. I'm also using Seo4SMF.  I worked on the default template of 1.1.1  MAKE  ............ ['header_logo_url']))  echo '  <h1><span style="font-family: Verdana, sans-serif; font-size: 140%; ">', ............  [Valitse] Laajenna // How about the [search] button?  if ($context['allow_search'])  echo ($ ............  stuff them though). I've just used the 'Search' button as an example, you will want to do this on all  ............  but I haven't seen it posted here before. I know SMF can be made even more SE Friendly and it's  ......
#206
SMF 2.0.x Support / Can someone help me with this code problem?
helmikuu 06, 2011, 08:28:44 AP tekijältä Surferbird
...... 'm installing SMF ADS mod in SMF 1.1.12, and stumbled on small  ............  error: syntax error, unexpected '<' in .../Themes/default/index.template.php on line 194  185: { 186: $ ............  menu sub template should display all the relevant buttons the user<br /> wants and or needs.<br /><br />  ............ , $options, $txt;<br /><br /> /* Use images from default theme when using templates from the default theme? ............ <br /> if this is 'always', images from the default theme will be used.<br /> if this is 'defaults',  ............  from the default theme will only be used with default templates.< ............  is 'never' or isn't set at all, images from the default theme will not be used. */<br /> $settings[' ............  What document type definition is being used? (for font size and other issues.)<br /> 'xhtml' for an  ............ .<br /> This should probably be the version of SMF it was created for. */<br /> $settings[' ............ ['use_tabs'] = true;<br /><br /> /* Use plain buttons - as oppossed to text buttons? */<br /> $ ............ ['use_buttons'] = true;<br /><br /> /* Show sticky and lock  ............ ="PHP, MySQL, bulletin, board, free, open, source, smf, simple, machines, forum" /><br /> <script  ............ " type="text/javascript" src="', $settings['default_theme_url'], '/script.js?fin11"></script><br /> < ............ ="text/javascript"><!-- // --><![CDATA[<br /> var smf_theme_url = "', $settings['theme_url'], '";<br />  ............  var smf_images_url = "', $settings['images_url'], '";<br / ............ > var smf_scripturl = "', $scripturl, '";<br /> var  ............ '] ? 'true' : 'false', ';<br /> var smf_charset = "', $context['character_set'], '";<br /> ............ ="stylesheet" type="text/css" href="', $settings['default_theme_url'], '/print.css?fin11" media="print" />< ............ /* Internet Explorer 4/5 and Opera 6 just don't do font sizes properly. (they are big...)<br /> Thus, in  ............  Explorer 4, 5, and Opera 6 this will show fonts one size smaller than usual.<br /> Note that  ............ ="stylesheet" type="text/css" href="', $settings['default_theme_url'], '/fonts-compat.css" />';<br /><br />  ............ (mode ? 1 : 0);';<br /> else<br /> echo '<br /> smf_setThemeOption("collapse_header", mode ? 1 : 0,  ............ <br /> document.getElementById("upshrink").src = smf_images_url + (mode ? "/upshrink2.gif" : "/ ............  ? 1 : 0);';<br /> else<br /> echo '<br /> smf_setThemeOption("collapse_header_ic", mode ? 1 : 0, ............ /> document.getElementById("upshrink_ic").src = smf_images_url + (mode ? "/expand.gif" : "/collapse. ............ ']))<br /> echo '<br /> <span style="font-family: Verdana, sans-serif; font-size: 140%; ">', ............ <br /> <img src="', $settings['images_url'], '/smflogo.gif" style="margin: 2px;" alt="" /><br /> < ............ ="titlebg2" height="32"><br /> <span style="font-size: 130%;"> ', $txt['hello_member_ndt'], ' <b>', ............ '], '</span>';<br /><br /> // this is the upshrink button for the user info section<br /> echo '<br /> < ............ " type="text/javascript" src="', $settings['default_theme_url'], '/sha1.js"></script><br /><br />  ............ "><br /> <option value="60">', $txt['smf53'], '</option><br /> <option value=" ............ ">', $txt['smf47'], '</option><br /> <option value=" ............ ">', $txt['smf48'], '</option><br /> <option value=" ............ ">', $txt['smf49'], '</option><br /> <option value="-1"  ............ ="selected">', $txt['smf50'], '</option><br /> </select><br />  ............ /><br /> <span class="middletext">', $txt['smf52'], '</span><br /> <input type="hidden"  ............ /javascript"><!-- // --><![CDATA[<br /> function smfFooterHighlight(element, value)<br /> {<br />  ............ .src = smf_images_url + "/" + (value ? "h_" : "") + element. ............ ="20" style="margin: 5px 16px;" onmouseover="smfFooterHighlight(this, true);" onmouseout=" ............ ="20" style="margin: 5px 16px;" onmouseover="smfFooterHighlight(this, true);" onmouseout=" ............  ', theme_copyright(), '<br /><a href="http://www.smfads.com" target="_blank">SMFAds</a> for <a href=" ............ ="20" style="margin: 5px 16px;" onmouseover="smfFooterHighlight(this, true);" onmouseout=" ............ ="20" style="margin: 5px 16px;" onmouseover="smfFooterHighlight(this, true);" onmouseout=" ............ /> echo '<br /> <span class="smalltext">', $txt['smf301'], $context['load_time'], $txt['smf302'], $ ............ ['load_queries'], $txt['smf302b'], '</span>';<br /><br /> // This is an  ............ > echo '<br /> window.addEventListener("load", smf_codeFix, false);<br /><br /> function  ............ > echo '<br /> window.addEventListener("load", smf_codeFix, false);<br /> function smf_codeFix()< ............  = window.onload;<br /> window.onload = smf_codeFix;<br /><br /> function smf_codeFix()<br / ............ ;<br /><br /> echo '<div class="nav" style="font-size: smaller; margin-bottom: 2ex; margin-top:  ............  , '">&nbsp;</td>';<br /><br /> // Show the [home] button.<br /> echo ($current_action=='home' || $context[' ............ >&nbsp;</td>' : '';<br /><br /> // Show the [help] button.<br /> echo ($current_action == 'help' || $ ............ </td>' : '';<br /><br /> // How about the [search] button?<br /> if ($context['allow_search'])<br /> echo ( ............ ;</td>' : '';<br /><br /> // the [member] list button<br /> if ($context['allow_memberlist'])<br />  ............ . '">&nbsp;</td>' : '';<br /><br /> // the [links] button<br /> if ($context['allow_view_smflinks'])<br />  ............  <a href="', $scripturl, '?action=links">' , $txt['smflinks_menu'] , '</a><br /> </td>' , $ ............  '">&nbsp;</td>' : '';<br /><br /> <br /> // the [SMF Gallery] button<br /> if ($context[' ............  href="', $scripturl, '?action=gallery">' , $txt['smfgallery_menu'] , '</a><br /> </td>' , $ ............  /><br /> // If the user is a guest, show [login] button.<br /> if ($context['user']['is_guest'])<br />  ............ /> // If the user is a guest, also show [register] button.<br /> if ($context['user']['is_guest'])<br />  ............ >';<br /><br />}<br /><br />// Generate a strip of buttons.<br />function template_button_strip($ ............ , $custom_td = '')<br />{<br /> global $settings, $buttons, $context, $txt, $scripturl;<br /><br /> //  ............  the buttons...<br /> foreach ($button_strip as $key => $ ............ $context[$value['test']]))<br /> {<br /> unset($button_strip[$key]);<br /> continue;<br /> }<br />  ............  (!isset($buttons[$key]) || $force_reset)<br /> $buttons[$key] =  ............ '>' . $txt[$value['text']] . '</a>';<br /><br /> $button_strip[$key] = $buttons[$key];<br /> }<br /><br />  ............  (empty($button_strip))<br /> return '<td>&nbsp;</td>';<br /><br  ............ ', 'tab_back">', implode(' &nbsp;|&nbsp; ', $button_strip) , '</td><br /> <td class="', $direction == ......
#207
SMF 1.1.x Support / Need help!
joulukuu 22, 2010, 10:32:30 AP tekijältä LOADING...
......  menu sub template should display all the relevant buttons the user<br /> wants and or needs.<br /><br />  ............ , $options, $txt;<br /><br /> /* Use images from default theme when using templates from the default theme? ............ <br /> if this is 'always', images from the default theme will be used.<br /> if this is 'defaults',  ............  from the default theme will only be used with default templates.< ............  is 'never' or isn't set at all, images from the default theme will not be used. */<br /> $settings[' ............  What document type definition is being used? (for font size and other issues.)<br /> 'xhtml' for an  ............ .<br /> This should probably be the version of SMF it was created for. */<br /> $settings[' ............ ['use_tabs'] = true;<br /><br /> /* Use plain buttons - as oppossed to text buttons? */<br /> $ ............ ['use_buttons'] = true;<br /><br /> /* Show sticky and lock  ............ :image" content="', !empty($modSettings['share_likebutton_image']) ? $modSettings[' ............ " content="', !empty($modSettings['share_likebutton_appid']) ? $modSettings['share_likebutton_appid']  ............ ="PHP, MySQL, bulletin, board, free, open, source, smf, simple, machines, forum" /><br /> <script  ............ " type="text/javascript" src="', $settings['default_theme_url'], '/script.js?fin11"></script><br /> < ............ ="text/javascript"><!-- // --><![CDATA[<br /> var smf_theme_url = "', $settings['theme_url'], '";<br />  ............  var smf_images_url = "', $settings['images_url'], '";<br / ............ > var smf_scripturl = "', $scripturl, '";<br /> var  ............ '] ? 'true' : 'false', ';<br /> var smf_charset = "', $context['character_set'], '";<br /> ............ ="stylesheet" type="text/css" href="', $settings['default_theme_url'], '/print.css?fin11" media="print" />'; ............ /* Internet Explorer 4/5 and Opera 6 just don't do font sizes properly. (they are big...)<br /> Thus, in  ............  Explorer 4, 5, and Opera 6 this will show fonts one size smaller than usual.<br /> Note that  ............ ="stylesheet" type="text/css" href="', $settings['default_theme_url'], '/fonts-compat.css" />';<br /><br />  ............ (mode ? 1 : 0);';<br /> else<br /> echo '<br /> smf_setThemeOption("collapse_header", mode ? 1 : 0,  ............ <br /> document.getElementById("upshrink").src = smf_images_url + (mode ? "/upshrink2.gif" : "/ ............  ? 1 : 0);';<br /> else<br /> echo '<br /> smf_setThemeOption("collapse_header_ic", mode ? 1 : 0, ............ /> document.getElementById("upshrink_ic").src = smf_images_url + (mode ? "/expand.gif" : "/collapse. ............ ']))<br /> echo '<br /> <span style="font-family: Verdana, sans-serif; font-size: 140%; ">', ............ <br /> <img src="', $settings['images_url'], '/smflogo.gif" style="margin: 2px;" alt="" /><br /> < ............ ="titlebg2" height="32"><br /> <span style="font-size: 130%;"> ', $txt['hello_member_ndt'], ' <b>', ............ '], '</span>';<br /><br /> // this is the upshrink button for the user info section<br /> echo '<br /> < ............ " type="text/javascript" src="', $settings['default_theme_url'], '/sha1.js"></script><br /><br />  ............ "><br /> <option value="60">', $txt['smf53'], '</option><br /> <option value=" ............ ">', $txt['smf47'], '</option><br /> <option value=" ............ ">', $txt['smf48'], '</option><br /> <option value=" ............ ">', $txt['smf49'], '</option><br /> <option value="-1"  ............ ="selected">', $txt['smf50'], '</option><br /> </select><br />  ............ /><br /> <span class="middletext">', $txt['smf52'], '</span><br /> <input type="hidden"  ............  mod<br /> if (!empty($modSettings['share_likebutton_enable']))<br /> {<br />echo '<div id="fb- ............ .init({appId: \'', !empty($modSettings['share_likebutton_appid']) ? $modSettings['share_likebutton_appid']  ............ .facebook.net/', !empty($modSettings['share_likebutton_lang']) ? $modSettings['share_likebutton_lang'] :  ............ /javascript"><!-- // --><![CDATA[<br /> function smfFooterHighlight(element, value)<br /> {<br />  ............ .src = smf_images_url + "/" + (value ? "h_" : "") + element. ............ ="20" style="margin: 5px 16px;" onmouseover="smfFooterHighlight(this, true);" onmouseout=" ............ ="20" style="margin: 5px 16px;" onmouseover="smfFooterHighlight(this, true);" onmouseout=" ............ ']) ? $modSettings['foot_links'] : $txt['default_foot_links'],'<br /> </span><br /><br /> < ............ ']) ? $modSettings['forum_copyright'] : $txt['default_copyright'],' <br /> </span></td>';<br /> if  ............ ="20" style="margin: 5px 16px;" onmouseover="smfFooterHighlight(this, true);" onmouseout=" ............ ="20" style="margin: 5px 16px;" onmouseover="smfFooterHighlight(this, true);" onmouseout=" ............ /> echo '<br /> <span class="smalltext">', $txt['smf301'], $context['load_time'], $txt['smf302'], $ ............ ['load_queries'], $txt['smf302b'], '</span>';<br /><br /> // This is an  ............ > echo '<br /> window.addEventListener("load", smf_codeFix, false);<br /><br /> function  ............ > echo '<br /> window.addEventListener("load", smf_codeFix, false);<br /> function smf_codeFix()< ............  = window.onload;<br /> window.onload = smf_codeFix;<br /><br /> function smf_codeFix()<br / ............ ;<br /><br /> echo '<div class="nav" style="font-size: smaller; margin-bottom: 2ex; margin-top:  ............  , '">&nbsp;</td>';<br /><br /> // Show the [home] button.<br /> echo ($current_action=='home' || $context[' ............ >&nbsp;</td>' : '';<br /><br /> // Show the [help] button.<br /> echo ($current_action == 'help' || $ ............ </td>' : '';<br /><br /> // How about the [search] button?<br /> if ($context['allow_search'])<br /> echo ( ............ ;</td>' : '';<br /><br /> // the [member] list button<br /> if ($context['allow_memberlist'])<br />  ............  /><br /> // If the user is a guest, show [login] button.<br /> if ($context['user']['is_guest'])<br />  ............ /> // If the user is a guest, also show [register] button.<br /> if ($context['user']['is_guest'])<br />  ............ >';<br /><br />}<br /><br />// Generate a strip of buttons.<br />function template_button_strip($ ............ , $custom_td = '')<br />{<br /> global $settings, $buttons, $context, $txt, $scripturl;<br /><br /> //  ............  the buttons...<br /> foreach ($button_strip as $key => $ ............ $context[$value['test']]))<br /> {<br /> unset($button_strip[$key]);<br /> continue;<br /> }<br />  ............  (!isset($buttons[$key]) || $force_reset)<br /> $buttons[$key] =  ............ '>' . $txt[$value['text']] . '</a>';<br /><br /> $button_strip[$key] = $buttons[$key];<br /> }<br /><br />  ............  (empty($button_strip))<br /> return '<td>&nbsp;</td>';<br /><br  ............ ', 'tab_back">', implode(' &nbsp;|&nbsp; ', $button_strip) , '</td><br /> <td class="', $direction == ............ >&nbsp;</td>';<br />}<br /><br />?> I am using the default  ......
#208
SMF Coding Discussion / Want to learn to write my first Theme, help?
heinäkuu 14, 2010, 05:32:36 IP tekijältä anidea
...... , followed by the user panel, followed by the buttons, followed by a dahsed line...followed by the  ............  site name that I keep missing? I'm assuming "Buttons" refers to the Home/Help/Search/Admin etc menu,  ............ , $settings, $options, $txt;   /* Use images from default theme when using templates from the default theme? ............   if this is 'always', images from the default theme will be used.  if this is 'defaults',  ............  from the default theme will only be used with default templates.   ............  is 'never' or isn't set at all, images from the default theme will not be used. */  $settings[' ............  What document type definition is being used? (for font size and other issues.)  'xhtml' for an XHTML 1. ............  is for.  This should probably be the version of SMF it was created for. */  $settings['theme_version'] ............ . */  $settings['use_tabs'] = true;   /* Use plain buttons - as opposed to text buttons? */  $settings[' ............ ="stylesheet" type="text/css" href="', $settings['default_theme_url'], '/css/print.css?rc3" media="print" /> ............ ="stylesheet" type="text/css" href="', $settings['default_theme_url'], '/css/', $cssfix, '.css" />';   //  ............  <script type="text/javascript" src="', $settings['default_theme_url'], '/scripts/script.js?rc3"></script>  < ............  type="text/javascript"><!-- // --><![CDATA[  var smf_theme_url = "', $settings['theme_url'], '";  var  ............  = "', $settings['default_theme_url'], '";  var smf_images_url = "', $ ............ ['images_url'], '";  var smf_scripturl = "', $scripturl, '";  var  ............ ]['iso_case_folding'] ? 'true' : 'false', ';  var smf_charset = "', $context['character_set'], '";', $ ............ ['show_personal_messages'] . '"))  window.open(smf_prepareScriptUrl(smf_scripturl) + "action=pm");   ............   ', empty($settings['site_slogan']) ? '<img id="smflogo" src="' . $settings['images_url'] . '/smflogo. ............  <script type="text/javascript" src="', $settings['default_theme_url'], '/scripts/sha1.js"></script>  < ............  type="submit" value="', $txt['login'], '" class="button_submit" /><br />  <div class="info">', $txt[' ............  name="submit" value="', $txt['search'], '" class="button_submit" />  <input type="hidden" name=" ............  {  sId: \'upshrink\',  srcExpanded: smf_images_url + \'/upshrink.png\',  altExpanded: ............ ['upshrink_description']), ',  srcCollapsed: smf_images_url + \'/upshrink2.png\',   ............ ""><span><b>Crip</b></span></a></li>  <li><a id="button_xhtml" href="http://validator.w3.org/check/ ............ ]) || $context['user']['is_logged']) ? '<li><a id="button_rss" href="' . $scripturl . '?action=.xml;type= ............ ></a></li>' : '', '  <li class="last"><a id="button_wap2" href="', $scripturl , '?wap2" class=" ............ ($context['linktree']) || (!empty($context['dont_default_linktree']) && !$force_show))  return;   echo '   ............ " id="menu_nav">';   foreach ($context['menu_buttons'] as $act => $button)  {  echo '  <li id=" ............ ', $act, '">  <a class="', $button['active_button'] ? 'active ' : '', 'firstlevel"  ............ ="', $button['href'], '"', isset($button['target']) ? ' target= ............ "' . $button['target'] . '"' : '', '>  <span class="',  ............ ($button['is_last']) ? 'last ' : '', 'firstlevel">', $ ............ ['title'], '</span>  </a>';  if (!empty($button['sub_buttons']))  {  echo '  <ul>';    ............  ($button['sub_buttons'] as $childbutton)  {  echo '   ............  <li>  <a href="', $childbutton['href'], '"', isset($childbutton['target']) ? '  ............ ="' . $childbutton['target'] . '"' : '', '>  <span', isset($ ............ ['is_last']) ? ' class="last"' : '', '>', $childbutton['title'], !empty($childbutton['sub_buttons']) ? '. ............ >';  // 3rd level menus :)  if (!empty($childbutton['sub_buttons']))  {  echo '  <ul>';   ............  foreach ($childbutton['sub_buttons'] as $grandchildbutton)  echo '  ............  <li>  <a', $grandchildbutton['active_button'] ? ' class="active"' : '', ' href= ............ "', $grandchildbutton['href'], '"', isset($grandchildbutton['target']) ? ............  ' target="' . $grandchildbutton['target'] . '"' : '', '>  <span', isset($ ............ ']) ? ' class="last"' : '', '>', $grandchildbutton['title'], '</span>  </a>  </li>';   ............  '  </ul>  </div>'; }  // Generate a strip of buttons. function template_button_strip($button_strip, $ ............ ))  $strip_options = array();   // Create the buttons...  $buttons = array();  foreach ($button_strip  ............ ['test']) || !empty($context[$value['test']]))  $buttons[] = '<a ' . (isset($value['active']) ? 'class=" ............ . $txt[$value['text']] . '</span></a>';  }   // No buttons? No button strip either.  if (empty($buttons))   ............ ;   // Make the last one, as easy as possible.  $buttons[count($buttons) - 1] = str_replace('<span>', '< ............  class="last">', $buttons[count($buttons) - 1]);   echo '  <div class=" ............ ) ? ' align_' . $direction : '', '"', (empty($buttons) ? ' style="display: none;"' : ''), (!empty($ ............ : ''), '>  <ul>  <li>', implode('</li><li>', $buttons), '</li>  </ul>  </div>'; }  ?> While  ......
#209
Arşiv / Template Parse sorunu
toukokuu 24, 2009, 10:26:53 AP tekijältä lordreco
......  menu sub template should display all the relevant buttons the user<br /> wants and or needs.<br /><br />  ............ , $options, $txt;<br /><br /> /* Use images from default theme when using templates from the default theme? ............ <br /> if this is 'always', images from the default theme will be used.<br /> if this is 'defaults',  ............  from the default theme will only be used with default templates.< ............  is 'never' or isn't set at all, images from the default theme will not be used. */<br /> $settings[' ............  What document type definition is being used? (for font size and other issues.)<br /> 'xhtml' for an  ............ .<br /> This should probably be the version of SMF it was created for. */<br /> $settings[' ............ ['use_tabs'] = true;<br /><br /> /* Use plain buttons - as oppossed to text buttons? */<br /> $ ............ ['use_buttons'] = true;<br /><br /> /* Show sticky and lock  ............ ="PHP, MySQL, bulletin, board, free, open, source, smf, simple, machines, forum" /><br /> <script  ............ " type="text/javascript" src="', $settings['default_theme_url'], '/script.js?fin11"></script><br /> < ............ ="text/javascript"><!-- // --><![CDATA[<br /> var smf_theme_url = "', $settings['theme_url'], '";<br />  ............  var smf_images_url = "', $settings['images_url'], '";<br / ............ > var smf_scripturl = "', $scripturl, '";<br /> var  ............ '] ? 'true' : 'false', ';<br /> var smf_charset = "', $context['character_set'], '";<br /> ............ ="stylesheet" type="text/css" href="', $settings['default_theme_url'], '/print.css?fin11" media="print" />'; ............ /* Internet Explorer 4/5 and Opera 6 just don't do font sizes properly. (they are big...)<br /> Thus, in  ............  Explorer 4, 5, and Opera 6 this will show fonts one size smaller than usual.<br /> Note that  ............ ="stylesheet" type="text/css" href="', $settings['default_theme_url'], '/fonts-compat.css" />';<br /><br />  ............ (mode ? 1 : 0);';<br /> else<br /> echo '<br /> smf_setThemeOption("collapse_header", mode ? 1 : 0,  ............ <br /> document.getElementById("upshrink").src = smf_images_url + (mode ? "/upshrink2.gif" : "/ ............  ? 1 : 0);';<br /> else<br /> echo '<br /> smf_setThemeOption("collapse_header_ic", mode ? 1 : 0, ............ /> document.getElementById("upshrink_ic").src = smf_images_url + (mode ? "/expand.gif" : "/collapse. ............  /><br /> <br /> <input type="submit" class="button" value="Git" tabindex="1004" /></div><br /> < ............  type="image" src="images/funkyfresh/header/go_button.gif" class="search_button"/><br /> </form><br  ............ "25" tabindex="1001" /><input type="submit" class="button" value="Go" tabindex="1004" /></div><br /> < ............ " width="100%"><br /> <br /> <div class="smallfont" style="font-size:10pt"> <strong>',  ............ /javascript"><!-- // --><![CDATA[<br /> function smfFooterHighlight(element, value)<br /> {<br />  ............ .src = smf_images_url + "/" + (value ? "h_" : "") + element. ............  <td valign="middle" align="center" style="smallfont"><br /> ', theme_copyright(), '<br><font size= ............ -bu-sayfada-t10080.0.html" target="_blank" title="SMF Temalar">FoRuMBoL Themes</a></font><br /> </td> ............ ="right" width="100%"><br /> <div class="smallfont"><br /> <strong><br /> <a href="mailto:admin@ ............ /lordreco-temalari-artik-bu-sayfada-t10080.0.html">SMF Temalar</a> -<br /> <br /> <br /> <a  ............ /> echo '<br /> <span class="smalltext">', $txt['smf301'], $context['load_time'], $txt['smf302'], $ ............ ['load_queries'], $txt['smf302b'], '</span>';<br /><br /> // This is an  ............ > echo '<br /> window.addEventListener("load", smf_codeFix, false);<br /><br /> function  ............ > echo '<br /> window.addEventListener("load", smf_codeFix, false);<br /> function smf_codeFix()< ............  = window.onload;<br /> window.onload = smf_codeFix;<br /><br /> function smf_codeFix()<br / ............  // Folder style or inline? Inline has a smaller font.<br /> echo '<span class="inlineimg">';<br  ............ ' : 'admin';<br /><br /><br /> // Show the [home] button.<br /> echo '<br /><br /><ul><li><a href="', $ ............ ></a></li></ul>';<br /><br /> // Show the [help] button.<br /><br /> echo '<br /><ul><li><a href="', $ ............ </a></li></ul>'; <br /><br /> // the [member] list button<br /> if ($context['allow_memberlist'])<br />  ............ </li></ul>';<br /><br /> // How about the [search] button?<br /> if ($context['allow_search'])<br /> echo ' ............  /><br /> // If the user is a guest, show [login] button.<br /> if ($context['user']['is_guest'])<br />  ............ /> // If the user is a guest, also show [register] button.<br /> if ($context['user']['is_guest'])<br />  ............  /><br />}<br /><br /><br />// Generate a strip of buttons.<br />function template_button_strip($ ............ , $custom_td = '')<br />{<br /> global $settings, $buttons, $context, $txt, $scripturl;<br /><br /> //  ............  the buttons...<br /> foreach ($button_strip as $key => $ ............ $context[$value['test']]))<br /> {<br /> unset($button_strip[$key]);<br /> continue;<br /> }<br />  ............  (!isset($buttons[$key]) || $force_reset)<br /> $buttons[$key] =  ............ '>' . $txt[$value['text']] . '</a>';<br /><br /> $button_strip[$key] = $buttons[$key];<br /> }<br /><br />  ............  (empty($button_strip))<br /> return '<td>&nbsp;</td>';<br /><br  ............ ', 'tab_back">', implode(' &nbsp;|&nbsp; ', $button_strip) , '</td><br /> <td class="', $direction == ......
#210
Graphics and Templates / Image Buttons instead of text
toukokuu 04, 2009, 09:18:17 IP tekijältä Sman1400
......  theme, i have "use images instead of text for buttons" checked in admin but it only shows text, how  ............ , $settings, $options, $txt;   /* Use images from default theme when using templates from the default theme? ............   if this is 'always', images from the default theme will be used.  if this is 'defaults',  ............  from the default theme will only be used with default templates.   ............  is 'never' or isn't set at all, images from the default theme will not be used. */  $settings[' ............  What document type definition is being used? (for font size and other issues.)  'xhtml' for an XHTML 1. ............  is for.  This should probably be the version of SMF it was created for. */  $settings['theme_version'] ............ . */  $settings['use_tabs'] = true;   /* Use plain buttons - as oppossed to text buttons? */  $settings[' ............ " type="text/javascript" src="', $settings['default_theme_url'], '/scripts/script.js?rc1"></script>  < ............ " type="text/javascript" src="', $settings['default_theme_url'], '/scripts/theme.js?rc1"></script>  < ............  type="text/javascript"><!-- // --><![CDATA[  var smf_theme_url = "', $settings['theme_url'], '";  var  ............  = "', $settings['default_theme_url'], '";  var smf_images_url = "', $ ............ ['images_url'], '";  var smf_scripturl = "', $scripturl, '";  var  ............ ]['iso_case_folding'] ? 'true' : 'false', ';  var smf_charset = "', $context['character_set'], '";', $ ............ ['show_personal_messages'] . '"))  window.open(smf_prepareScriptUrl(smf_scripturl) + "action=pm");' : ............ ="stylesheet" type="text/css" href="', $settings['default_theme_url'], '/css/print.css?rc1" media="print" /> ............  the main header object.  var mainHeader = new smfToggle("upshrink", ', empty($options[' ............  <ul class="menu1">';   foreach ($context['menu_buttons'] as $act => $button)  echo '<li><a ', $ ............ ['selected_button'] ? ' class="selected"' : '' , ' href="', $button............ 'href'], '"><span><b>', $button['title'], '</b></span></a></li>';   echo '  </ ............ >';  }  // Generate a strip of buttons. function template_button_strip($button_strip, $ ............ , $context, $txt, $scripturl;   // Create the buttons...  $buttons = array();  foreach ($button_strip  ............ ['test']) || !empty($context[$value['test']]))  $buttons[] = '<a href="' . $value['url'] . '" ' . (isset($ ............ [$value['text']] . '</span></a>';  }   if (empty($buttons))  return '';   // Make the last one, as easy  ............  possible.  $buttons[count($buttons) - 1] = str_replace('<span>', '< ............  class="last">', $buttons[count($buttons) - 1]);   echo '  <div class=" ............ ="clearfix">  <li>', implode('</li><li>', $buttons), '</li>  </ul>  </div>';  }  ?> ......
#211
SMF 1.1.x Support / index.template.php - Template Phase Error!
lokakuu 04, 2008, 04:31:14 IP tekijältä GaminGarage
......  menu sub template should display all the relevant buttons the user<br /> wants and or needs.<br /><br />  ............ , $options, $txt;<br /><br /> /* Use images from default theme when using templates from the default theme? ............ <br /> if this is 'always', images from the default theme will be used.<br /> if this is 'defaults',  ............  from the default theme will only be used with default templates.< ............  is 'never' or isn't set at all, images from the default theme will not be used. */<br /> $settings[' ............  What document type definition is being used? (for font size and other issues.)<br /> 'xhtml' for an  ............ .<br /> This should probably be the version of SMF it was created for. */<br /> $settings[' ............ ['use_tabs'] = true;<br /><br /> /* Use plain buttons - as oppossed to text buttons? */<br /> $ ............ ['use_buttons'] = true;<br /><br /> /* Show sticky and lock  ............ ="PHP, MySQL, bulletin, board, free, open, source, smf, simple, machines, forum" /><br /> <script  ............ " type="text/javascript" src="', $settings['default_theme_url'], '/script.js?fin11"></script><br /> < ............ ="text/javascript"><!-- // --><![CDATA[<br /> var smf_theme_url = "', $settings['theme_url'], '";<br />  ............  var smf_images_url = "', $settings['images_url'], '";<br / ............ > var smf_scripturl = "', $scripturl, '";<br /> var  ............ '] ? 'true' : 'false', ';<br /> var smf_charset = "', $context['character_set'], '";<br /> ............ ="stylesheet" type="text/css" href="', $settings['default_theme_url'], '/print.css?fin11" media="print" />'; ............ /* Internet Explorer 4/5 and Opera 6 just don't do font sizes properly. (they are big...)<br /> Thus, in  ............  Explorer 4, 5, and Opera 6 this will show fonts one size smaller than usual.<br /> Note that  ............ ="stylesheet" type="text/css" href="', $settings['default_theme_url'], '/fonts-compat.css" />';<br /><br />  ............  echo '<br /> smf_setThemeOption("collapse_leftbar", mode ? 1 : 0,  ............  document.getElementById("upshrinkLeftbar").src = smf_images_url + (mode ? "/upshrink2.gif" : "/ ............  echo '<br /> smf_setThemeOption("collapse_rightbar", mode ? 1 : 0,  ............  document.getElementById("upshrinkRightbar").src = smf_images_url + (mode ? "/upshrink2.gif" : "/ ............ (mode ? 1 : 0);';<br /> else<br /> echo '<br /> smf_setThemeOption("collapse_header", mode ? 1 : 0,  ............ <br /> document.getElementById("upshrink").src = smf_images_url + (mode ? "/upshrink2.gif" : "/ ............  ? 1 : 0);';<br /> else<br /> echo '<br /> smf_setThemeOption("collapse_header_ic", mode ? 1 : 0, ............ /> document.getElementById("upshrink_ic").src = smf_images_url + (mode ? "/expand.gif" : "/collapse. ............ ']))<br /> echo '<br /> <span style="font-family: Verdana, sans-serif; font-size: 140%; ">', ............ ><br /> echo '<br /> </td>';<br /> /* Remove SMF logo<br /> <td align="right" class="catbg"><br  ............ /> <img src="', $settings['images_url'], '/smflogo.gif" style="margin: 2px;" alt="" /><br /> < ............ ="titlebg2" height="32"><br /> <span style="font-size: 130%;"> ', $txt['hello_member_ndt'], ' <b>', ............ '], '</span>';<br /><br /> // this is the upshrink button for the user info section<br /> echo '<br /> < ............ " type="text/javascript" src="', $settings['default_theme_url'], '/sha1.js"></script><br /><br />  ............ "><br /> <option value="60">', $txt['smf53'], '</option><br /> <option value=" ............ ">', $txt['smf47'], '</option><br /> <option value=" ............ ">', $txt['smf48'], '</option><br /> <option value=" ............ ">', $txt['smf49'], '</option><br /> <option value="-1"  ............ ="selected">', $txt['smf50'], '</option><br /> </select><br />  ............ /><br /> <span class="middletext">', $txt['smf52'], '</span><br /> <input type="hidden"  ............ /javascript"><!-- // --><![CDATA[<br /> function smfFooterHighlight(element, value)<br /> {<br />  ............ .src = smf_images_url + "/" + (value ? "h_" : "") + element. ............ ="20" style="margin: 5px 16px;" onmouseover="smfFooterHighlight(this, true);" onmouseout=" ............ ="20" style="margin: 5px 16px;" onmouseover="smfFooterHighlight(this, true);" onmouseout=" ............ /> echo '<br /> <span class="smalltext">', $txt['smf301'], $context['load_time'], $txt['smf302'], $ ............ ['load_queries'], $txt['smf302b'], '</span>';<br /><br /> // This is an  ............ > echo '<br /> window.addEventListener("load", smf_codeFix, false);<br /><br /> function  ............ > echo '<br /> window.addEventListener("load", smf_codeFix, false);<br /> function smf_codeFix()< ............  = window.onload;<br /> window.onload = smf_codeFix;<br /><br /> function smf_codeFix()<br / ............ ;<br /><br /> echo '<div class="nav" style="font-size: smaller; margin-bottom: 2ex; margin-top:  ............  , '">&nbsp;</td>';<br /><br /> // Show the [home] button.<br /> echo ($current_action=='home' || $context[' ............ ']!='boardindex')<br /> // Show the [forum] button.<br /> echo ($current_action=='forum' || $context[ ............ &nbsp;</td>' : '';<br /> <br /> // Show the [help] button.<br /> echo ($current_action == 'help' || $ ............ ['custom_tab_label'] : $txt['custom_tab_label_default'], '</a><br /> </td>' , $current_action == ' ............ </td>' : '';<br /><br /> // How about the [search] button?<br /> if ($context['allow_search'])<br /> echo ( ............ ;</td>' : '';<br /><br /> // the [member] list button<br /> if ($context['allow_memberlist'])<br />  ............  /><br /> // If the user is a guest, show [login] button.<br /> if ($context['user']['is_guest'])<br />  ............ /> // If the user is a guest, also show [register] button.<br /> if ($context['user']['is_guest'])<br />  ............ >';<br /><br />}<br /><br />// Generate a strip of buttons.<br />function template_button_strip($ ............ , $custom_td = '')<br />{<br /> global $settings, $buttons, $context, $txt, $scripturl;<br /><br /> //  ............  the buttons...<br /> foreach ($button_strip as $key => $ ............ $context[$value['test']]))<br /> {<br /> unset($button_strip[$key]);<br /> continue;<br /> }<br />  ............  (!isset($buttons[$key]) || $force_reset)<br /> $buttons[$key] =  ............ '>' . $txt[$value['text']] . '</a>';<br /><br /> $button_strip[$key] = $buttons[$key];<br /> }<br /><br />  ............  (empty($button_strip))<br /> return '<td>&nbsp;</td>';<br /><br  ............ ', 'tab_back">', implode(' &nbsp;|&nbsp; ', $button_strip) , '</td><br /> <td class="', $direction == ......
#212
SMF Coding Discussion / [TIP/TRICK] Second Menu For Default Theme
elokuu 26, 2008, 06:48:24 IP tekijältä [SiNaN]
...... : How can I add a second menu for my SMF Default Core Theme? Original Topic:  ../Themes/ ............ :  Koodi [Valitse] Laajenna // Generate a strip of buttons. Replace:  Koodi [Valitse] Laajenna // Show the  ............ ' , $first , '">&nbsp;</td>';   // Show the [home] button.  echo ($current_action=='home' || $context[' ............ $last . '">&nbsp;</td>' : '';   // Show the [help] button.  echo ($current_action == 'help' || $context[' ............  '">&nbsp;</td>' : '';   // How about the [search] button?  if ($context['allow_search'])  echo ($ ............ >  </tr>  </table>';  }  // Generate a strip of buttons. ../Themes/default/style.css  Find:  Koodi [ ............  {  color: white;  text-decoration: none;  font-size: 9px;  vertical-align: bottom;  padding:  ............  6px 2px 6px;  font-family: tahoma, sans-serif; }  .maintab2_first {   ......
#213
Modificaciones (Mods) / pregunta sobre Global Announcements
kesäkuu 15, 2008, 03:37:59 IP tekijältä kenet
......  este mod. lo instale manualmente en el theme default.  pero ahora lo quiero poner en mi theme tango  ............   </file>  este seria mi index.template del theme default que lo encontre sin ningun problema  Koodi [ ............  menu sub template should display all the relevant buttons the user  wants and or needs.   For more  ............ , $settings, $options, $txt;   /* Use images from default theme when using templates from the default theme? ............   if this is 'always', images from the default theme will be used.  if this is 'defaults',  ............  from the default theme will only be used with default templates.   ............  is 'never' or isn't set at all, images from the default theme will not be used. */  $settings[' ............  What document type definition is being used? (for font size and other issues.)  'xhtml' for an XHTML 1. ............  is for.  This should probably be the version of SMF it was created for. */  $settings['theme_version'] ............ . */  $settings['use_tabs'] = true;   /* Use plain buttons - as oppossed to text buttons? */  $settings[' ............ ="PHP, MySQL, bulletin, board, free, open, source, smf, simple, machines, forum" />  <script language=" ............ " type="text/javascript" src="', $settings['default_theme_url'], '/script.js?fin11"></script>  < ............  type="text/javascript"><!-- // --><![CDATA[  var smf_theme_url = "', $settings['theme_url'], '";  var  ............  = "', $settings['images_url'], '";  var smf_scripturl = "', $scripturl, '";  var  ............ ]['iso_case_folding'] ? 'true' : 'false', ';  var smf_charset = "', $context['character_set'], '";  // ] ............ ="stylesheet" type="text/css" href="', $settings['default_theme_url'], '/print.css?fin11" media="print" />'; ............ /* Internet Explorer 4/5 and Opera 6 just don't do font sizes properly. (they are big...)  Thus, in  ............  Explorer 4, 5, and Opera 6 this will show fonts one size smaller than usual.  Note that this is  ............ ="stylesheet" type="text/css" href="', $settings['default_theme_url'], '/fonts-compat.css" />';   // Show  ............  "upshrink=" + (mode ? 1 : 0);';  else  echo '  smf_setThemeOption("collapse_header", mode ? 1 : 0,  ............  '  document.getElementById("upshrink").src = smf_images_url + (mode ? "/upshrink2.gif" : "/ ............ =" + (mode ? 1 : 0);';  else  echo '  smf_setThemeOption("collapse_header_ic", mode ? 1 : 0, ............ '  document.getElementById("upshrink_ic").src = smf_images_url + (mode ? "/expand.gif" : "/collapse. ............ ['header_logo_url']))  echo '  <span style="font-family: Verdana, sans-serif; font-size: 140%; ">', ............ ">  <img src="', $settings['images_url'], '/smflogo.gif" style="margin: 2px;" alt="" />  </td>  ............  class="titlebg2" height="32">  <span style="font-size: 130%;"> ', $txt['hello_member_ndt'], ' <b>', ............ '], '</span>';   // this is the upshrink button for the user info section  echo '  <a href="#" ............ " type="text/javascript" src="', $settings['default_theme_url'], '/sha1.js"></script>   <form  ............ ">  <option value="60">', $txt['smf53'], '</option>  <option value="1440">',  ............ $txt['smf47'], '</option>  <option value="10080">', ............  $txt['smf48'], '</option>  <option value="43200">', ............  $txt['smf49'], '</option>  <option value="-1"  ............ ="selected">', $txt['smf50'], '</option>  </select>  < ............ ><br />  <span class="middletext">', $txt['smf52'], '</span>  <input type="hidden" name=" ............ "text/javascript"><!-- // --><![CDATA[  function smfFooterHighlight(element, value)  {  element. ............  = smf_images_url + "/" + (value ? "h_" : "") + element. ............ ="20" style="margin: 5px 16px;" onmouseover="smfFooterHighlight(this, true);" onmouseout=" ............ ="20" style="margin: 5px 16px;" onmouseover="smfFooterHighlight(this, true);" onmouseout=" ............ ="20" style="margin: 5px 16px;" onmouseover="smfFooterHighlight(this, true);" onmouseout=" ............ ="20" style="margin: 5px 16px;" onmouseover="smfFooterHighlight(this, true);" onmouseout=" ............ '])  echo '  <span class="smalltext">', $txt['smf301'], $context['load_time'], $txt['smf302'], $ ............ ['load_queries'], $txt['smf302b'], '</span>';   // This is an interesting bug  ............ '])  echo '  window.addEventListener("load", smf_codeFix, false);   function smf_codeFix()  {   ............ '])  echo '  window.addEventListener("load", smf_codeFix, false);  function smf_codeFix()  {   ............  = window.onload;  window.onload = smf_codeFix;   function smf_codeFix()  {  var  ............ , $options;   echo '<div class="nav" style="font-size: smaller; margin-bottom: 2ex; margin-top:  ............ ' , $first , '">&nbsp;</td>';   // Show the [home] button.  echo ($current_action=='home' || $context[' ............ $last . '">&nbsp;</td>' : '';   // Show the [help] button.  echo ($current_action == 'help' || $context[' ............  '">&nbsp;</td>' : '';   // How about the [search] button?  if ($context['allow_search'])  echo ($ ............  . '">&nbsp;</td>' : '';   // the [member] list button  if ($context['allow_memberlist'])  echo ($ ............ ' : '';    // If the user is a guest, show [login] button.  if ($context['user']['is_guest'])  echo ($ ............    // If the user is a guest, also show [register] button.  if ($context['user']['is_guest'])  echo ($ ............ >  </tr>  </table>';  }  // Generate a strip of buttons. function template_button_strip($button_strip, $ ............  = false, $custom_td = '') {  global $settings, $buttons, $context, $txt, $scripturl;   // Create the  ............ ...  foreach ($button_strip as $key => $value)  {  if (isset($value[' ............  && empty($context[$value['test']]))  {  unset($button_strip[$key]);  continue;  }  elseif (!isset($ ............ [$key]) || $force_reset)  $buttons[$key] = '<a href="' . $value['url'] . '" ' .(  ............ ] : '') . '>' . $txt[$value['text']] . '</a>';   $button_strip[$key] = $buttons[$key];  }   if (empty($ ............ ', 'tab_back">', implode(' &nbsp;|&nbsp; ', $button_strip) , '</td>  <td class="', $direction == ' ......
#214
Español (Spanish) / Pequeños problemas de diseño.
toukokuu 11, 2008, 07:11:49 AP tekijältä Sergioropase
...... ;  }  .sitemap_header_active {  display: block;  font-weight: bold;  padding: 6px;  background: #393939; ............  cells. */ table {  empty-cells: show; }  /* By default (td, body..) use verdana in black. */ body, td,  ............  , tr {  font-family: verdana,geneva,lucida,'lucida grande', ............ -serif;  line-height: 145%;  color: #cccccc;  font-size: 11px; }  /* The main body of the entire  ............  normal so they align well. */ input, textarea, button {  color: #000;  font-family: verdana, sans-serif; ............  }  input, buttonfont-size: 110%; }  textarea {   font-size:  ............ %;  color: #000;  font-family: verdana, sans-serif; }  /* All input  ............  that are checkboxes or radio buttons. */ input.check { }  /* Selects are a bit  ............  it makes them look even better 8). */ select {  font-size: 110%;  font-weight: normal;  color: #000;   ............ : 1px solid #cfcfcf;  margin: 4px;  padding: 4px;  font-size: x-small;  line-height: 1.4em; }  /* A code  ............  {  color: #3a3a3a;  background-color: #fbede6;  /*font-family: "courier new", "times new roman",  ............ ;*/  font-size: x-small;  line-height: 1.3em;  /* Put a  ............  {  color: #000;  text-decoration: none;  font-style: normal;  font-weight: bold;  font-size: x- ............ . */ .highlight {  background-color: yellow;  font-weight: bold;  color: black; }  /* Alternating  ............ .titlebg2 th, tr.titlebg2 td {  color: #f67b3a;  font-style: normal;  background: #3d3c3c url(images/ ............   .titlebg, .titlebg a:link, .titlebg a:visited {  font-weight: bold;  color: #ddd;  font-style: normal; } ............  a:link, .titlebg2 a:visited {  color: #9937df;  font-style: normal;  text-decoration: none; }  . ............ , .titlebg2 {  color: #f67b3a;  font-family: Tahoma, sans-serif;  font-size: 11px; ............   font-weight: bold;  text-transform: uppercase; }   ............ , .catbg3 {  background-repeat: repeat-x;  font-size: 11px;  font-weight: bold;  font-family: ............  Tahoma, sans-serif; }  .catbg, .catbg2 {  font-weight: bold; }  .catbg3, tr.catbg3 td, .catbg3 a: ............ , .catbg3 a:visited {  font-size: 95%;  color: #fff;  text-decoration: none; } ............ {  border: 1px solid #303030;  padding: 0px; }  /* Default font sizes: small (8pt), normal (10pt), and large  ............ (14pt). */ .smalltext {  font-size: x-small;  font-family: verdana, sans-serif;  ............ : 18px;  text-indent: 10px; }  .normaltext {  font-size: small; }  .largetext {  font-size: large; }  ............  {  color: white;  text-decoration: none;  font-size: 10px;  vertical-align: top;  padding: 2px  ............  2px 6px;  font-family: tahoma, sans-serif;  font-weight:  ............  {  color: white;  text-decoration: none;  font-size: 10px;  vertical-align: top;  padding: 2px  ............  2px 6px;  font-family: tahoma, sans-serif;  font-weight:  ............ ; }  /* TP rss feed styles */ .rss_title {  font-weight: bold; }  .rss_body {  margin-bottom: 1ex;  ............  position: relative;  height: 25px;  font-size: 11px;  font-weight: bold;  margin: ............   float: left;  padding: 20px 0 0 10px;  font-family: tahoma, sans-serif; }  #topmenu ul {   ............ ) no-repeat;  cursor: pointer; }  #welcome {  font-size: 1.0em;  color: #fff;  font-family: tahoma,  ............ , #welcome a:visited {  color: #404040;  font-weight: bold; }  #welcome a:hover {  text- ............ : center;   margin: 0;  padding: 0;  font-size: 10px;  color: #606060; }  #footer-left  ............  menu sub template should display all the relevant buttons the user<br /> wants and or needs.<br /><br />  ............ , $options, $txt;<br /><br /> /* Use images from default theme when using templates from the default theme? ............ <br /> if this is 'always', images from the default theme will be used.<br /> if this is 'defaults',  ............  from the default theme will only be used with default templates.< ............  is 'never' or isn't set at all, images from the default theme will not be used. */<br /> $settings[' ............  What document type definition is being used? (for font size and other issues.)<br /> 'xhtml' for an  ............ .<br /> This should probably be the version of SMF it was created for. */<br /> $settings[' ............ ['use_tabs'] = true;<br /><br /> /* Use plain buttons - as oppossed to text buttons? */<br /> $ ............ ['use_buttons'] = true;<br /><br /> /* Show sticky and lock  ............ ="PHP, MySQL, bulletin, board, free, open, source, smf, simple, machines, forum" /><br /> <script  ............ " type="text/javascript" src="', $settings['default_theme_url'], '/script.js?rc2p"></script><br /> < ............ ="text/javascript"><!-- // --><![CDATA[<br /> var smf_theme_url = "', $settings['theme_url'], '";<br />  ............  var smf_images_url = "', $settings['images_url'], '";<br / ............ > var smf_scripturl = "', $scripturl, '";<br /> // ]]></ ............ ="stylesheet" type="text/css" href="', $settings['default_theme_url'], '/print.css?rc2" media="print" />';< ............ /* Internet Explorer 4/5 and Opera 6 just don't do font sizes properly. (they are big...)<br /> Thus, in  ............  Explorer 4, 5, and Opera 6 this will show fonts one size smaller than usual.<br /> Note that  ............ ="stylesheet" type="text/css" href="', $settings['default_theme_url'], '/fonts-compat.css" />';<br /><br />  ............  echo '<br /> smf_setThemeOption("collapse_leftbar", mode ? 1 : 0,  ............  document.getElementById("upshrinkLeftbar").src = smf_images_url + (mode ? "/upshrink2.gif" : "/ ............  echo '<br /> smf_setThemeOption("collapse_rightbar", mode ? 1 : 0,  ............  document.getElementById("upshrinkRightbar").src = smf_images_url + (mode ? "/upshrink2.gif" : "/ ............ (mode ? 1 : 0);';<br /> else<br /> echo '<br /> smf_setThemeOption("collapse_header", mode ? 1 : 0,  ............ <br /> document.getElementById("upshrink").src = smf_images_url + (mode ? "/upshrink2.gif" : "/ ............  ? 1 : 0);';<br /> else<br /> echo '<br /> smf_setThemeOption("collapse_header_ic", mode ? 1 : 0, ............ /> document.getElementById("upshrink_ic").src = smf_images_url + (mode ? "/expand.gif" : "/collapse. ............ " type="text/javascript" src="', $settings['default_theme_url'], '/sha1.js"></script><br /> <form  ............ ="hash_passwrd" value="" /><br /> </form>', $txt['smf52'], '<br /><br />';<br /> }<br /> echo '<br />  ............ ['show_load_time'])<br /> echo '<br />'. $txt['smf301'], $context['load_time'], $txt['smf302'], $ ............ ['load_queries'], $txt['smf302b'];<br /><br /> echo '<br /> </div><br />  ............ ;<br /><br /> echo '<div class="nav" style="font-size: smaller; margin-bottom: 2ex; margin-top:  ............ >';<br /> // Show the [home] button.<br /> echo '<li><a' , $current_action=='home' ............ ')<br /> // Show the [forum] button.<br /> echo '<li><a' , $ ............  /><br /> // Show the [help] button.<br /> echo '<li><a'  ............  /> // How about the [search] button?<br /> if ($context['allow_search'])<br />  ............  /><br /> // the [member] list button<br /> if ($context[' ............  // If the user is a guest, show [login] button.<br /> if ($context['user' ............  // If the user is a guest, also show [register] button.<br /> if ($context['user' ............  /><br /><br />}<br /><br />// Generate a strip of buttons.<br />function template_button_strip($ ............ , $custom_td = '')<br />{<br /> global $settings, $buttons, $context, $txt, $scripturl;<br /><br /> //  ............  the buttons...<br /> foreach ($button_strip as $key => $ ............ $context[$value['test']]))<br /> {<br /> unset($button_strip[$key]);<br /> continue;<br /> }<br />  ............  (!isset($buttons[$key]) || $force_reset)<br /> $buttons[$key] =  ............ '>' . $txt[$value['text']] . '</a>';<br /><br /> $button_strip[$key] = $buttons[$key];<br /> }<br /><br />  ............  (empty($button_strip))<br /> return '<td>&nbsp;</td>';<br /><br  ............ ', 'tab_back">', implode(' &nbsp;|&nbsp; ', $button_strip) , '</td><br /> <td class="', $direction == ......
#215
Español (Spanish) / Insertar anuncios de google de forma Manual.
huhtikuu 29, 2008, 01:12:40 IP tekijältä LoboBlanco
......  menu sub template should display all the relevant buttons the user  wants and or needs.   For more  ............  $settings, $options, $txt;   /* Use images from default theme when using templates from the default theme? ............   if this is 'always', images from the default theme will be used.  if this is 'defaults',  ............  from the default theme will only be used with default templates.   ............  is 'never' or isn't set at all, images from the default theme will not be used. */  $settings[' ............  What document type definition is being used? (for font size and other issues.)  'xhtml' for an  ............  for.  This should probably be the version of SMF it was created for. */  $settings[' ............   $settings['use_tabs'] = true;   /* Use plain buttons - as oppossed to text buttons? */  $settings[' ............ ="PHP, MySQL, bulletin, board, free, open, source, smf, simple, machines, forum" />  <script language=" ............ " type="text/javascript" src="', $settings['default_theme_url'], '/script.js?fin11"></script>  < ............ ="text/javascript"><!-- // --><![CDATA[  var smf_theme_url = "', $settings['theme_url'], '";   ............  smf_images_url = "', $settings['images_url'], '";   ............  var smf_scripturl = "', $scripturl, '";  var  ............ '] ? 'true' : 'false', ';  var smf_charset = "', $context['character_set'], '";  // ............ ="stylesheet" type="text/css" href="', $settings['default_theme_url'], '/print.css?fin11" media="print" />'; ............ /* Internet Explorer 4/5 and Opera 6 just don't do font sizes properly. (they are big...)  Thus, in  ............  Explorer 4, 5, and Opera 6 this will show fonts one size smaller than usual.  Note that  ............ ="stylesheet" type="text/css" href="', $settings['default_theme_url'], '/fonts-compat.css" />';   // Show  ............  + (mode ? 1 : 0);';  else  echo '  smf_setThemeOption("collapse_header", mode ? 1 : 0,  ............  document.getElementById("upshrink").src = smf_images_url + (mode ? "/upshrink2.gif" : "/ ............ (mode ? 1 : 0);';  else  echo '  smf_setThemeOption("collapse_header_ic", mode ? 1 : 0, ............  document.getElementById("upshrink_ic").src = smf_images_url + (mode ? "/expand.gif" : "/collapse. ............ " type="text/javascript" src="', $settings['default_theme_url'], '/sha1.js"></script>    ............  <option value="60">', $txt['smf53'], '</option>  < ............  value="1440">', $txt['smf47'], '</option>  < ............  value="10080">', $txt['smf48'], '</option>  < ............  value="43200">', $txt['smf49'], '</option>  < ............  value="-1" selected="selected">', $txt['smf50'], '</option>  </ ............ "><!-- // --><![CDATA[  function smfFooterHighlight(element, value)  {   ............  element.src = smf_images_url + "/" + (value ? "h_" : "") + element. ............ /www.mysql.com/ [nofollow]" target="_blank" style="font-size:10px;">MySQL</a>&nbsp;|&nbsp;<a href="http:// ............ .php.net/ [nofollow]" target="_blank" style="font-size:10px;">PHP</a>&nbsp;|&nbsp;<a href="http:// ............ /check/referer [nofollow]" target="_blank" style="font-size:10px;">XHTML</a>&nbsp;|&nbsp;<a href="http:// ............ /check/referer [nofollow]" target="_blank" style="font-size:10px;">CSS</a>  </td>  </ ............  echo '  <span class="smalltext">', $txt['smf301'], $context['load_time'], $txt['smf302'], $ ............ ['load_queries'], $txt['smf302b'], '</span>';   // This is an interesting  ............  echo '  window.addEventListener("load", smf_codeFix, false);   function smf_codeFix()  ............  echo '  window.addEventListener("load", smf_codeFix, false);  function smf_codeFix()   ............  = window.onload;   window.onload = smf_codeFix;   function smf_codeFix()   ............ , $options;   echo '<div class="nav-tree" style="font-size: smaller; margin-bottom: 2ex; margin-top:  ............  // Folder style or inline? Inline has a smaller font.  echo '<span class="nav-tree" style="font-size: ............  // Folder style or inline? Inline has a smaller font.  echo '<span class="nav-tree">';     ............ ="0">  <tr>';   // Show the [help] button.  echo '  <td class="main-navigation">< ............ [119] , '</a></td>';   // How about the [search] button?  if ($context['allow_search'])  echo '   ............   </tr>  </table> <div align="right" style="font-size:10px;"><a href="#" onClick="overlayclose(\' ............ '] , '</a></td>';   // the [member] list button  if ($context['allow_memberlist'])  echo '  ............ >';    // If the user is a guest, show [login] button.  if ($context['user']['is_guest'])  echo ' ............  // If the user is a guest, also show [register] button.  if ($context['user']['is_guest'])  echo ' ............ >';    // How about the [quick links] button?  if ($context['user']['is_logged'])  echo  ............  </tr>   </table> <div align="right" style="font-size:10px;"><a href="#" onClick="overlayclose(\' ............  </tr>  </table>';  }  // Generate a strip of buttons. function template_button_strip($button_strip, $ ............  = false, $custom_td = '') {  global $settings, $buttons, $context, $txt, $scripturl;   // Create the  ............ ...  foreach ($button_strip as $key => $value)  {  if (isset($ ............ $context[$value['test']]))  {  unset($button_strip[$key]);  continue;  }   ............  (!isset($buttons[$key]) || $force_reset)  $buttons[$key] = ............ '') . '>' . $txt[$value['text']] . '</a>';   $button_strip[$key] = $buttons[$key];  }   if (empty($ ............ 'mirror', 'tab_back">', implode(' &nbsp;&nbsp; ', $button_strip) , '</td>  <td class="', $direction ==  ......
#216
Scripting Help / Not really scripting - Please help :)
tammikuu 04, 2008, 02:01:04 IP tekijältä Embrace
...... , there will be JS errors.   submenu[0]='<font size="2" face="Verdana"><b><a href="http://www. ............ .javascriptkit.com/howto/">Web Tutorials</a></b></font>'  submenu[1]='<font size="2" face="Verdana"><b>< ............ ://freewarejava.com/jsp/index.shtml">JSP</a></b></font>'  //Set delay before submenu disappears after  ............  menu sub template should display all the relevant buttons the user<br /> wants and or needs.<br /><br />  ............ , $options, $txt;<br /><br /> /* Use images from default theme when using templates from the default theme? ............ <br /> if this is 'always', images from the default theme will be used.<br /> if this is 'defaults',  ............  from the default theme will only be used with default templates.< ............  is 'never' or isn't set at all, images from the default theme will not be used. */<br /> $settings[' ............  What document type definition is being used? (for font size and other issues.)<br /> 'xhtml' for an  ............ .<br /> This should probably be the version of SMF it was created for. */<br /> $settings[' ............ ['use_tabs'] = true;<br /><br /> /* Use plain buttons - as oppossed to text buttons? */<br /> $ ............ ['use_buttons'] = true;<br /><br /> /* Show sticky and lock  ............ ="PHP, MySQL, bulletin, board, free, open, source, smf, simple, machines, forum" /><br /> <script  ............ " type="text/javascript" src="', $settings['default_theme_url'], '/script.js?fin11"></script><br /> < ............ ="text/javascript"><!-- // --><![CDATA[<br /> var smf_theme_url = "', $settings['theme_url'], '";<br />  ............  var smf_images_url = "', $settings['images_url'], '";<br / ............ > var smf_scripturl = "', $scripturl, '";<br /> var  ............ '] ? 'true' : 'false', ';<br /> var smf_charset = "', $context['character_set'], '";<br /> ............  var smf_default_theme_url = "', $settings[' ............ ="stylesheet" type="text/css" href="', $settings['default_theme_url'], '/print.css?fin11" media="print" />'; ............  <script type="text/javascript" src="', $settings['default_theme_url'], '/prototype.js"></script><br /> < ............  type="text/javascript" src="', $settings['default_theme_url'], '/scriptaculous.js?load=effects"></ ............  <script type="text/javascript" src="', $settings['default_theme_url'], '/lightbox.js"></script><br /> < ............  rel="stylesheet" href="', $settings['default_theme_url'], '/lightbox.css" type="text/css"  ............ /* Internet Explorer 4/5 and Opera 6 just don't do font sizes properly. (they are big...)<br /> Thus, in  ............  Explorer 4, 5, and Opera 6 this will show fonts one size smaller than usual.<br /> Note that  ............ ="stylesheet" type="text/css" href="', $settings['default_theme_url'], '/fonts-compat.css" />';<br /><br />  ............ (mode ? 1 : 0);';<br /> else<br /> echo '<br /> smf_setThemeOption("collapse_header", mode ? 1 : 0,  ............ <br /> document.getElementById("upshrink").src = smf_images_url + (mode ? "/upshrink2.gif" : "/ ............  ? 1 : 0);';<br /> else<br /> echo '<br /> smf_setThemeOption("collapse_header_ic", mode ? 1 : 0, ............ /> document.getElementById("upshrink_ic").src = smf_images_url + (mode ? "/expand.gif" : "/collapse. ............ " type="text/javascript" src="', $settings['default_theme_url'], '/sha1.js"></script><br /> <form  ............  '<br /> <br /><span class="smalltext">', $txt['smf301'], $context['load_time'], $txt['smf302'], $ ............ ['load_queries'], $txt['smf302b'], '</span>';<br /><br /> // This is an  ............ > echo '<br /> window.addEventListener("load", smf_codeFix, false);<br /><br /> function  ............ > echo '<br /> window.addEventListener("load", smf_codeFix, false);<br /> function smf_codeFix()< ............  = window.onload;<br /> window.onload = smf_codeFix;<br /><br /> function smf_codeFix()<br / ............ ;<br /><br /> echo '<div class="nav" style="font-size: smaller; margin-bottom: 2ex; margin-top:  ............  id="topmenu"><br /><ul>';<br />// Show the [home] button.<br />echo '<li><a' , $current_action=='home' ? '  ............ ']!='boardindex')<br />// Show the [forum] button.<br />echo '<li><a' , $current_action=='forum' ? ' ............ ['tp-forum'] , '</span></a></li>';<br /><br />// SMF Arcade<br />echo '<li><a' , $current_action==' ............ $txt['arcade'] , '</span></a></li>';<br /><br />// SMF shop<br />echo '<li><a' , $current_action=='shop'  ............  /><br />// If the user is a guest, show [login] button.<br />if ($context['user']['is_guest'])<br />echo  ............  />// If the user is a guest, also show [register] button.<br />if ($context['user']['is_guest'])<br />echo  ............  />}<br /><br /><br /><br />// Generate a strip of buttons.<br />function template_button_strip($ ............ , $custom_td = '')<br />{<br /> global $settings, $buttons, $context, $txt, $scripturl;<br /><br /> //  ............  the buttons...<br /> foreach ($button_strip as $key => $ ............ $context[$value['test']]))<br /> {<br /> unset($button_strip[$key]);<br /> continue;<br /> }<br />  ............  (!isset($buttons[$key]) || $force_reset)<br /> $buttons[$key] =  ............ '>' . $txt[$value['text']] . '</a>';<br /><br /> $button_strip[$key] = $buttons[$key];<br /> }<br /><br />  ............  (empty($button_strip))<br /> return '<td>&nbsp;</td>';<br /><br  ............ ', 'tab_back">', implode(' &nbsp;|&nbsp; ', $button_strip) , '</td><br /> <td class="', $direction == ......
#217
Mambo Bridge Support / mambo and smf wrapped
marraskuu 06, 2007, 06:52:19 AP tekijältä Herman's Mixen
......  do i wrap my smf theme in mambo  i use same themes for mambo and  ............  Versatility II Lime - from RocketTheme if i wrap smf i get a bunch of these errors  Koodi [Valitse]  ............ // test for joomla integration  global $wrapped, $jsmfConfig, $header_style , $toolbar_style , $ ............ ;   $context['jsmf_wrapped']=false;   if(isset($wrapped) && $wrapped  ............  $context['joomla_wrapped']=false;  elseif(isset($jsmfConfig) && $jsmfConfig->wrapped) {  $context[' ............ ']=true;  $context['jsmf_wrapped']=true;  } elseif(isset($jsmfConfig) && !$ ............ ;   if (!$context['joomla_wrapped'] || $context['jsmf_wrapped']) {    if (!$context['jsmf_wrapped'])  ............ > tag Koodi [Valitse] Laajenna if (!$context['jsmf_wrapped']) {  echo ' <body id="page_bg" class="'.$ ............ .' '.$fontstyle.'">   <div id="mainbg">  <div class=" ............ "access">  <div id="selectors">  <span class="font-selector">&nbsp;</span>  <span class="width- ............ ">&nbsp;</span>  </div>  <div id="buttons">  <a href="',$scripturl,'?widthstyle=w-fluid" ............  title="fluid width" class="fluid"><span class="button">&nbsp;</span></a>  <a href="',$scripturl,'? ............ " title="wide width" class="wide"><span class="button">&nbsp;</span></a>  <a href="',$scripturl,'? ............ " title="thin width" class="thin"><span class="button">&nbsp;</span></a>  <a href="',$scripturl,'? ............ " title="Increase size" class="lrg"><span class="button">&nbsp;</span></a>  <a href="',$scripturl,'? ............ =f-default" title="Default size" class="med"><span class=" ............ ">&nbsp;</span></a>  <a href="',$scripturl,'?fontstyle=f-smaller" title="Decrease size" class="sml"> ............ <span class="button">&nbsp;</span></a>  </div>  </div>  <a href="' ............ ="titlebg" style="overflow: hidden;"><div id="smf_menu">',template_menu2(),'</div></div>';  } and  ............ (),'<br /> Design by <a href="http://smf.rockettheme.com">RocketTheme</a> </div></div>'; }  ............ (),'<br />  Design by <a href="http://smf.rockettheme.com">RocketTheme</a>  < ......
#218
SMF 1.1.x Support / adding a donation button
kesäkuu 15, 2007, 08:17:44 IP tekijältä techmob
......  hours on trying to achieve a simple donation button with paypal in the main index.template.php  i  ............  menu sub template should display all the relevant buttons the user  wants and or needs.    ............ , $options, $txt;   /* Use images from default theme when using templates from the default theme? ............  if this is 'always', images from the default theme will be used.  if this is ' ............ ', images from the default theme will only be used with default templates.   ............  is 'never' or isn't set at all, images from the default theme will not be used. */  $settings[' ............  What document type definition is being used? (for font size and other issues.)  'xhtml'  ............  This should probably be the version of SMF it was created for. */  $settings[' ............ ['use_tabs'] = false;   /* Use plain buttons - as oppossed to text buttons? */  $ ............ ['use_buttons'] = true;   /* Show sticky and lock  ............ ="PHP, MySQL, bulletin, board, free, open, source, smf, simple, machines, forum" />  <script  ............ " type="text/javascript" src="', $settings['default_theme_url'], '/script.js?rc3"></script>  < ............ "><!-- // --><![CDATA[  var smf_theme_url = "', $settings['theme_url'], '";   ............  var smf_images_url = "', $settings['images_url'], '";   ............  var smf_scripturl = "', $scripturl, '";  // ]]></ ............ ="stylesheet" type="text/css" href="', $settings['default_theme_url'], '/print.css?rc3" media="print" />';   ............ /* Internet Explorer 4/5 and Opera 6 just don't do font sizes properly. (they are big...)   ............  Explorer 4, 5, and Opera 6 this will show fonts one size smaller than usual.   ............ ="stylesheet" type="text/css" href="', $settings['default_theme_url'], '/fonts-compat.css" />';   //  ............   echo '  smf_setThemeOption("collapse_header", mode ? 1 : 0,  ............  document.getElementById("upshrink").src = smf_images_url + (mode ? "/upshrink2.gif" : "/ ............  echo '  smf_setThemeOption("collapse_header_ic", mode ? 1 : 0, ............  document.getElementById("upshrink_ic").src = smf_images_url + (mode ? "/expand.gif" : "/collapse. ............  window.addEventListener("load", smf_codeFix, false);    ............  smf_codeFix()  {   ............ .onload;  window.onload = smf_codeFix;   function  ............ >  <span class="smalltext">', $txt['smf301'], $context['load_time'], $txt['smf302'], $ ............ ['load_queries'], $txt['smf302b'], '</span>';   echo '</td>   ............ , $options;   echo '<div class="nav" style="font-size: smaller; margin-bottom: 2ex; margin-top:  ............  , '">&nbsp;</td>';   // Show the [home] button.  echo ($current_action=='home' || $ ............  '">&nbsp;</td>' : '';   // Show the [help] button.  echo ($current_action == 'help' || $ ............ ;</td>' : '';   // How about the [search] button?  if ($context['allow_search'])   ............ ">&nbsp;</td>' : '';   // the [member] list button  if ($context['allow_memberlist'])   ............     // If the user is a guest, show [login] button.  if ($context['user']['is_guest'])   ............  // If the user is a guest, also show [register] button.  if ($context['user']['is_guest'])   ............  </table>';  }  // Generate a strip of buttons. function template_button_strip($button_strip, $ ............ , $custom_td = '') {  global $settings, $buttons, $context, $txt, $scripturl;   // Create  ............  buttons...  foreach ($button_strip as $key => $ ............ )  {  unset($button_strip[$key]);  continue;   ............  }  elseif (!isset($buttons[$key]) || $force_reset)  $ ............ . $txt[$value['text']] . '</a>';   $button_strip[$key] = $buttons[$key];  }    ............  (empty($button_strip))  return '<td>&nbsp;</td>';  ............ ', 'tab_back">', implode(' &nbsp;|&nbsp; ', $button_strip) , '</td>  <td class="', $ ............ ="100%" valign="top" class="smalltext" style="font-family: verdana, arial, sans-serif;">';    ............  <option value="60">', $txt['smf53'], '</option>   ............  <option value="1440">', $txt['smf47'], '</option>   ............  <option value="10080">', $txt['smf48'], '</option>   ............  <option value="302400">', $txt['smf49'], '</option>   ............  <option value="-1" selected="selected">', $txt['smf50'], '</option>   ............  ', $txt['smf52'], '   ......
#219
Graphics and Templates / My tabs are not showing!
tammikuu 24, 2007, 11:05:28 AP tekijältä Bulls Eye
......  upgraded from SMF 1.08 to 1.1.1 . Since the upgrade my tabs are not  ............  menu sub template should display all the relevant buttons the user<br /> wants and or needs.<br /><br />  ............ , $options, $txt;<br /><br /> /* Use images from default theme when using templates from the default theme? ............ <br /> if this is 'always', images from the default theme will be used.<br /> if this is 'defaults',  ............  from the default theme will only be used with default templates.< ............  is 'never' or isn't set at all, images from the default theme will not be used. */<br /> $settings[' ............  What document type definition is being used? (for font size and other issues.)<br /> 'xhtml' for an  ............ .<br /> This should probably be the version of SMF it was created for. */<br /> $settings[' ............ ['use_tabs'] = true;<br /><br /> /* Use plain buttons - as oppossed to text buttons? */<br /> $ ............ ['use_buttons'] = true;<br /><br /> /* Show sticky and lock  ............ " type="text/javascript" src="', $settings['default_theme_url'], '/script.js?fin11"></script><br /> < ............ ="text/javascript"><!-- // --><![CDATA[<br /> var smf_theme_url = "', $settings['theme_url'], '";<br />  ............  var smf_images_url = "', $settings['images_url'], '";<br / ............ > var smf_scripturl = "', $scripturl, '";<br /> var  ............ '] ? 'true' : 'false', ';<br /> var smf_charset = "', $context['character_set'], '";<br /> ............ ="stylesheet" type="text/css" href="', $settings['default_theme_url'], '/print.css?fin11" media="print" />'; ............ /* Internet Explorer 4/5 and Opera 6 just don't do font sizes properly. (they are big...)<br /> Thus, in  ............  Explorer 4, 5, and Opera 6 this will show fonts one size smaller than usual.<br /> Note that  ............ ="stylesheet" type="text/css" href="', $settings['default_theme_url'], '/fonts-compat.css" />';<br /><br />  ............ (mode ? 1 : 0);';<br /> else<br /> echo '<br /> smf_setThemeOption("collapse_header", mode ? 1 : 0,  ............ <br /> document.getElementById("upshrink").src = smf_images_url + (mode ? "/upshrink2.gif" : "/ ............  ? 1 : 0);';<br /> else<br /> echo '<br /> smf_setThemeOption("collapse_header_ic", mode ? 1 : 0, ............ /> document.getElementById("upshrink_ic").src = smf_images_url + (mode ? "/expand.gif" : "/collapse. ............ ="titlebg2" height="32"><br /> <span style="font-size: 130%;"> ', $txt['hello_member_ndt'], ' <b>', ............ '], '</span>';<br /><br /> // this is the upshrink button for the user info section<br /> echo '<br /> < ............ " type="text/javascript" src="', $settings['default_theme_url'], '/sha1.js"></script><br /><br />  ............ "><br /> <option value="60">', $txt['smf53'], '</option><br /> <option value=" ............ ">', $txt['smf47'], '</option><br /> <option value=" ............ ">', $txt['smf48'], '</option><br /> <option value=" ............ ">', $txt['smf49'], '</option><br /> <option value="-1"  ............ ="selected">', $txt['smf50'], '</option><br /> </select><br />  ............ /><br /> <span class="middletext">', $txt['smf52'], '</span><br /> <input type="hidden"  ............ /javascript"><!-- // --><![CDATA[<br /> function smfFooterHighlight(element, value)<br /> {<br />  ............ .src = smf_images_url + "/" + (value ? "h_" : "") + element. ............ ="20" style="margin: 5px 16px;" onmouseover="smfFooterHighlight(this, true);" onmouseout=" ............ ="20" style="margin: 5px 16px;" onmouseover="smfFooterHighlight(this, true);" onmouseout=" ............ ="20" style="margin: 5px 16px;" onmouseover="smfFooterHighlight(this, true);" onmouseout=" ............ ="20" style="margin: 5px 16px;" onmouseover="smfFooterHighlight(this, true);" onmouseout=" ............ /> echo '<br /> <span class="smalltext">', $txt['smf301'], $context['load_time'], $txt['smf302'], $ ............ ['load_queries'], $txt['smf302b'], '</span>';<br /><br /> // This is an  ............ > echo '<br /> window.addEventListener("load", smf_codeFix, false);<br /><br /> function  ............ > echo '<br /> window.addEventListener("load", smf_codeFix, false);<br /> function smf_codeFix()< ............  = window.onload;<br /> window.onload = smf_codeFix;<br /><br /> function smf_codeFix()<br / ............ ;<br /><br /> echo '<div class="nav" style="font-size: smaller; margin-bottom: 2ex; margin-top:  ............  , '">&nbsp;</td>';<br /><br /> // Show the [home] button.<br /> echo ($current_action=='home' || $context[' ............ >&nbsp;</td>' : '';<br /><br /> // Show the [help] button.<br /> echo ($current_action == 'help' || $ ............ </td>' : '';<br /><br /> // How about the [search] button?<br /> if ($context['allow_search'])<br /> echo ( ............ ;</td>' : '';<br /><br /> // the [member] list button<br /> if ($context['allow_memberlist'])<br />  ............  /><br /> // If the user is a guest, show [login] button.<br /> if ($context['user']['is_guest'])<br />  ............ /> // If the user is a guest, also show [register] button.<br /> if ($context['user']['is_guest'])<br />  ............ >';<br /><br />}<br /><br />// Generate a strip of buttons.<br />function template_button_strip($ ............ , $custom_td = '')<br />{<br /> global $settings, $buttons, $context, $txt, $scripturl;<br /><br /> //  ............  the buttons...<br /> foreach ($button_strip as $key => $ ............ $context[$value['test']]))<br /> {<br /> unset($button_strip[$key]);<br /> continue;<br /> }<br />  ............  (!isset($buttons[$key]) || $force_reset)<br /> $buttons[$key] =  ............ '>' . $txt[$value['text']] . '</a>';<br /><br /> $button_strip[$key] = $buttons[$key];<br /> }<br /><br />  ............  (empty($button_strip))<br /> return '<td>&nbsp;</td>';<br /><br  ............ ', 'tab_back">', implode(' &nbsp;|&nbsp; ', $button_strip) , '</td><br /> <td class="', $direction == ............  cells. */ table {  empty-cells: show; }  /* By default (td, body..) use Times in black. */ body, td {   ............ : #000000;  font-size: small;  font-family: Tahoma, times, arial,  ............  normal so they align well. */ input, textarea, button {  font-size: 9pt;  color: #000000;  font-family:  ............ /* All input elements that are checkboxes or radio buttons. */ input.check { }  /* Selects are a bit  ............  it makes them look even better 8). */ select {  font-size: 8pt;  font-weight: normal;  color: #000000;  ............  font-family: Tahoma, arial, helvetica, serif; }  /*  ............ : 1px solid #000000;  margin: 1px;  padding: 1px;  font-size: x-small; }  /* A code block - maybe even  ............ ;  border: 1px solid #000000;  padding: 1px;  font-family: "courier new", helvetica, "times new  ............ ", serif;  font-size: x-small;  width: 99%;  margin: 1px auto 1px  ............  {  color: #000000;  text-decoration: none;  font-style: normal;  font-weight: bold;  font-size: x- ............  ;). */ .highlight {  background-color: yellow;  font-weight: bold;  color: black; }  /* Alternating  ............  a:link, .titlebg a:visited {  color: black;  font-style: normal;  background-color: #FF0000; } . ............ : url(images/catbg2.jpg); }  .catbg, .catbg2 {  font-weight: bold;  background-color: #0066FF;  color:  ............ ;  background-color: #black;  padding: 1px; }  /* Default font sizes: small (8pt), normal (10pt), and large  ............ (14pt). */ .smalltext {  font-size: x-small;  font-family: Tahoma, arial,  ............ , serif; } .normaltext {  font-size: small; } .largetext {  font-size: large; }   ......
#220
Arşiv / Buton oluşturamadım
tammikuu 16, 2007, 12:35:26 IP tekijältä imazy
......  menu sub template should display all the relevant buttons the user<br /> wants and or needs.<br /><br />  ............ , $options, $txt;<br /><br /> /* Use images from default theme when using templates from the default theme? ............ <br /> if this is 'always', images from the default theme will be used.<br /> if this is 'defaults',  ............  from the default theme will only be used with default templates.< ............  is 'never' or isn't set at all, images from the default theme will not be used. */<br /> $settings[' ............  What document type definition is being used? (for font size and other issues.)<br /> 'xhtml' for an  ............ ="PHP, MySQL, bulletin, board, free, open, source, smf, simple, machines, forum" /><br /> <script  ............ " type="text/javascript" src="', $settings['default_theme_url'], '/script.js"></script><br /> <script  ............ " type="text/javascript"><!--<br /> var smf_theme_url = "', $settings['theme_url'], '";<br />  ............  var smf_images_url = "', $settings['images_url'], '";<br / ............ /* Internet Explorer 4/5 and Opera 6 just don't do font sizes properly. (they are big...)<br /> Thus, in  ............  Explorer 4, 5, and Opera 6 this will show fonts one size smaller than usual.<br /> Note that  ............ ="stylesheet" type="text/css" href="', $settings['default_theme_url'], '/fonts-compat.css" />';<br /><br />  ............ <br /> document.getElementById("upshrink").src = smf_images_url + (mode ? "/upshrink2.gif" : "/ ............ "><br /> <option value="60">', $txt['smf53'], '</option><br /> <option value=" ............ ">', $txt['smf47'], '</option><br /> <option value=" ............ ">', $txt['smf48'], '</option><br /> <option value=" ............ ">', $txt['smf49'], '</option><br /> <option value="-1"  ............ ="selected">', $txt['smf50'], '</option><br /> </select><br />  ............ '" /><br /> <br /><br /> ', $txt['smf52'], '<br /> <input type="hidden" name=" ............ ; position: absolute; right: 190px; top: 10px; font-family: Comic Sans MS, sans-serif; font-size: xx- ............ ['totalPosts'], '</b> ', $txt[95], ' ', $txt['smf88'], ' <b>', $modSettings['totalTopics'], '</b> ', ............ " type="text/javascript"><!--<br /> function smfFooterHighlight(element, value)<br /> {<br />  ............ .src = smf_images_url + "/" + (value ? "h_" : "") + element. ............ =\'alt1\'<br />var opentags=\'<span class="smallfont">\'<br />var closetags=\'</span>\'<br />////////// ............ /> echo '<br /> <span class="smalltext">', $txt['smf301'], $context['load_time'], $txt['smf302'], $ ............ ['load_queries'], $txt['smf302b'], '</span>';<br /><br /> echo '<br /> </div> ............ > echo '<br /> window.addEventListener("load", smf_codeFix, false);<br /><br /> function  ............  = window.onload;<br /> window.onload = smf_codeFix;<br /><br /> function smf_codeFix()<br / ............ > // Folder style or inline? Inline has a smaller font.<br /> echo '<span class="nav"', $settings[' ............ '] ? ' style="font-size: smaller;"' : '', '>';<br /><br /> // Each  ............ , $txt;<br /><br /> // Show the [home] and [help] buttons.<br /> echo '<br /> <a href="', $scripturl, '" ............ >', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/'  ............ =gallery" ="_blank">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/'  ............ '];<br /><br /> // How about the [search] button?<br /> if ($context['allow_search'])<br /> echo ' ............ , '?action=search">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/'  ............ , '?action=admin">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/'  ............ , '?action=profile">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/'  ............ , '?action=shop">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/'  ............  the user is a guest, show [login] and [register] buttons.<br /> if ($context['user']['is_guest'])<br /> {< ............ , '?action=login">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/'  ............ , '?action=register">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/'  ............ ['session_id'], '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/'  ......
Advertisement: