Uutiset:

Read the blogs!

Main Menu
Advertisement:

Haun tulos hakusanalle: Default smf Button Font

Tuloksien järjestys
#141
Graphics and Templates / REMOVING SMF HEADER!!!
huhtikuu 12, 2008, 07:28:00 AP tekijältä antj87
......  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=" ............ " style="display: inline; visibility: visible; font-family: Verdana, Arial, sans-serif;"> | <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 [treasury] button<br /> if ($context['allow_view_treasury'])<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 == ......
......  bu olay smf tarihinde varmıdır yokmudur bilmiyorum ama şuna  ............  verıyorum.. isteyen kendısıne koyabilir.. rc3 1.1 default tema için.  Koodi [Valitse] Laajenna <?php<br />// ............ /> ', $txt['smf88'], ' ', $board['last_post']['link'], '<br /><br  ............ >';<br /> }<br /> <br /> // Create the button set...<br /> $normal_buttons = array(<br /> ' ............ ' => array('test' => 'can_post_new', 'text' => 'smf258', 'image' => 'new_topic.gif', 'lang' => true, ' ............ ' => array('test' => 'can_post_poll', 'text' => 'smf20', 'image' => 'new_poll.gif', 'lang' => true, ' ............ !$settings['show_mark_read'])<br /> unset($normal_buttons['markread']);<br /><br /> if (!$context[' ............ ="0"><br /> <tr><br /> ', template_button_strip($normal_buttons, 'bottom'), '<br /> </ ............ .gif" border="0" />';<br />}<br /> echo'<br><font style="font-size: 8pt">', $topic['first_post'][' ............ ']['name'], '</font><br /><br /> </td><br /> <br /> <td  ............ , '/icons/quick_lock.gif" width="16" alt="', $txt['smf279'], '" title="', $txt['smf279'], '" /></a>';<br  ............ '/icons/quick_sticky.gif" width="16" alt="', $txt['smf277'], '" title="', $txt['smf277'], '" /></a>';<br  ............ ="0"><br /> <tr><br /> ', template_button_strip($normal_buttons, 'top'), '<br /> </tr>< ............ .gif" alt="" align="middle" /> ' . $txt['smf96'] . '<br />' : '') . ($modSettings['pollMode'] = ............ .gif" alt="" align="middle" /> ' . $txt['smf43'] : '') . '<br /> </td>';<br /><br /> echo '< ............ [this.selectedIndex].value) window.location.href = smf_scripturl + this.options[this.selectedIndex]. ............ .substr(smf_scripturl.indexOf(\'?\') == -1 || this.options[ ............ <br /> </select>&nbsp;<br /> <input type="button" value="', $txt[161], '" onclick="if (this.form. ............ " type="text/javascript" src="' . $settings['default_theme_url'] . '/xml_board.js"></script><br />< ............ ></script>';<br />}<br /><br />function theme_show_buttons()<br />{<br /> global $context, $settings, $ ............ , $txt, $scripturl;<br /><br /> $buttonArray = array();<br /><br /> // If they are logged  ............ , and the mark read buttons are enabled..<br /> if ($context['user'][' ............ '] && $settings['show_mark_read'])<br /> $buttonArray[] = '<a href="' . $scripturl . '?action= ............  the user has permission to show the notification button... ask them if they're sure, though.<br /> if ($ ............ ['can_mark_notify'])<br /> $buttonArray[] = '<a href="' . $scripturl . '?action= ............ ?<br /> if ($context['can_post_new'])<br /> $buttonArray[] = '<a href="' . $scripturl . '?action=post; ............ =' . $context['current_board'] . '.0">' . $txt['smf258'] . '</a>';<br /><br /> // How about new polls, ............ ?<br /> if ($context['can_post_poll'])<br /> $buttonArray[] = '<a href="' . $scripturl . '?action=post; ............  . $context['current_board'] . '.0;poll">' . $txt['smf20'] . '</a>';<br /><br /> return implode(' &nbsp;| ............ &nbsp; ', $buttonArray);<br />}<br /><br />?> Örneğe bakmak için  ......
#143
Arşiv / logoya basınca forum anasayfasına gitme
maaliskuu 15, 2006, 06:54:55 AP tekijältä Webersin
......  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'] = false;   /* Use plain buttons - as oppossed to text buttons? */  $settings[' ............ " type="text/javascript" src="', $settings['default_theme_url'], '/script.js?rc2"></script>  < ............ ="text/javascript"><!-- // --><![CDATA[  var smf_theme_url = "', $settings['theme_url'], '";   ............  smf_images_url = "', $settings['images_url'], '";   ............  var smf_scripturl = "', $scripturl, '";  // ]]></script> ............ ="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...)  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" : "/ ............  '<td width="50%" valign="top" style="padding: 6px;font-family: verdana, arial, sans-serif;"><span class=" ............ " type="text/javascript" src="', $settings['default_theme_url'], '/sha1.js"></script>    ............  <option value="60">', $txt['smf53'], '</option>  < ............  value="1440">', $txt['smf'], '</option>  < ............  value="10080">', $txt['smf48'], '</option>  < ............  value="302400">', $txt['smf49'], '</option>  < ............  value="-1" selected="selected">', $txt['smf50'], '</option>  </ ............ ], '" /><br />  ', $txt['smf52'], '  <input type=" ............ "', $scripturl, '?action=search;advanced">', $txt['smf298'], '</a>   ............ ['totalMessages'], '</b> ', $txt[95], ' ', $txt['smf88'], ' <b>', $modSettings['totalTopics'], '</b> ', ............ - // --><![CDATA[  function smfFooterHighlight(element, value)   ............  {  element.src = smf_images_url + "/" + (value ? "h_" : "") + element. ............  <a href="http://www.mikxi.com" target="_blank"><font color=red><b>Mikxi Center</b> </font></a><a href=" ............ .geceninrengi.net/formmail.php" target="_blank"><font color=003366><b>SiTeNi EkLe</b></font></a>  <a  ............ ="http://www.bizekatil.com" target="_blank"><font color=red><b>BizeKatil.Com</b></font></a>  <a  ............ ="http://www.benimlesin.com" target="_blank"><font color=003366><b>BeNimLeSiN.CoM</b></font></a>  <a  ............ ="http://www.chatkolik.net" target="_blank"><font color=red><b>CHATKOLIK WAREZ ©</b></font></a>  <a  ............ ="http://www.paylasmaliyiz.biz" target="_blank"><font color=003366><b>PaylasmaLiyiz.Biz</b></font></a>  ............  <a href="http://www.ksforum.net" target="_blank"><font color=red><b>Ksforum.net</b></font></a>  <a href=" ............ ://www.soccermanagers.org" target="_blank"><font color=003366><b>SoccerManager</a>    ............ '  <span class="smalltext">', $txt['smf301'], $context['load_time'], $txt['smf302'], $ ............ ['load_queries'], $txt['smf302b'], '</span>';   echo '   ............  echo '  window.addEventListener("load", smf_codeFix, false);   function smf_codeFix()  ............  = window.onload;  window.onload = smf_codeFix;   function smf_codeFix()   ............  // Folder style or inline? Inline has a smaller font.  echo '<span class="nav"', $settings[' ............ '] ? ' style="font-size: smaller;"' : '', '>'; echo'<center><script  ............  /></a></div>';   // How about the [search] button?  if ($context['allow_search'])   ............  the user is a guest, show [login] and [register] buttons.  if ($context['user']['is_guest'])   ............ ="0" /></a></div>'; } // Generate a strip of buttons, out of buttons. function template_button_strip($ ............  = false, $custom_td = '') {  global $settings, $buttons, $context, $txt, $scripturl;   if (empty($ ............ ))  return '';   // Create the buttons...  foreach ($button_strip as $key => $value)   ............ $context[$value['test']]))  {  unset($button_strip[$key]);  continue;  }   ............  (!isset($buttons[$key]) || $force_reset)  $buttons[$key] = ............ ['custom'] : '') . '>' . ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/'  ............ ="0" />' : $txt[$value['text']]) . '</a>';   $button_strip[$key] = $buttons[$key];  }   echo '   ............ , '>', implode($context['menu_separator'], $button_strip) , '</td>'; }  ?>  ......
#144
Grafiken & Templates / Boxen löschen
marraskuu 29, 2005, 12:02:21 IP tekijältä yr-micha
......  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 ' ............ ', 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. */<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 /> < ............ " 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, ............  Explorer 4, 5, and Opera 6 this will show fonts one size smaller than usual.<br /> Note  ............ ="stylesheet" type="text/css" href="', $settings['default_theme_url'], '/fonts-compat.css" />';<br /><br />  ............  document.getElementById("upshrink").src = smf_images_url + (mode ? "/upshrink2.gif" : "/ ............  5px; white-space: nowrap; vertical-align: middle; font-size: xx-large; border-left: 1px solid #143659;">' ............ ="100%" valign="top" class="smalltext" style="font-family: verdana, arial, sans-serif;">';<br /><br / ............  <option value="60">', $txt['smf53'], '</option><br /> < ............  value="1440">', $txt['smf47'], '</option><br /> < ............  value="10080">', $txt['smf48'], '</option><br /> < ............  value="302400">', $txt['smf49'], '</option><br /> < ............  value="-1" selected="selected">', $txt['smf50'], '</option><br /> </ ............  '" /><br /><br /> ', $txt['smf52'], '<br /> </form>';<br />  ............  style="color: white; text-decoration: underline; font-weight: bold;" href="', $scripturl, '?action= ............ ;advanced">', $txt['smf298'], '</a><br /> <input type=" ............ ['totalMessages'], '</b> ', $txt[95], ' ', $txt['smf88'], ' <b>', $modSettings['totalTopics'], '</b> ', ............  '<br /> <span class="smalltext">', $txt['smf301'], $context['load_time'], $txt['smf302'], $ ............ ['load_queries'], $txt['smf302b'], '</span>';<br /><br /> echo '<br />  ............ "><!--<br /> window.attachEvent("onload", smf_codeFix);<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  ............ /> }<br /><br /> // Show the [home] and [help] buttons.<br /> echo '<br /> <a href="', $ ............ , '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/'  ............ =help" target="_blank">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/'  ............ '];<br /><br /> // How about the [search] button?<br /> if ($context['allow_search'])<br />  ............ , '?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=calendar">', ($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'] . '/'  ......
#145
SMF 1.1.x Support / Template Parse Error.
joulukuu 13, 2010, 08:27:05 AP tekijältä caulkhead
......  a new theme, but it didnt have the forum link button, so i searched and tried to adjust the programme  ............  install the new button...big mistake, now ive got the TPE message coming  ............ , and I cant get into admin to put it back to default.  my site is http://www.dirtcadets.com/  and the  ............  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 /> //  ............  fontsize<br /> if($context['user']['is_logged'])<br  ............  type="text/css"><!--<br /> body<br /> {<br /> font-size: ' , !empty($options['mysize']) ? $options[' ............  type="text/css"><!--<br /> body<br /> {<br /> font-size: ' , $gsize , ';<br /> }<br /> --></style>'; ............ (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. ............ 'tr\');<br /><br />//Specify spectrum of different font sizes:<br />var szs = new Array( \'xx-small\',\'x- ............ ( trgt )[ 0 ];<br /><br /> cEl.style.fontSize = szs[ sz ];<br /><br /> for ( i = 0 ; i <  ............  j = 0 ; j < cTags.length ; j++ ) cTags[ j ].style.fontSize = szs[ sz ];<br /> }<br /> setmysize(szs[  ............ ( trgt )[ 0 ];<br /><br /> cEl.style.fontSize = szs[ sz ];<br /><br /> for ( i = 0 ; i <  ............  j = 0 ; j < cTags.length ; j++ ) cTags[ j ].style.fontSize = szs[ sz ];<br /> }<br /> setmysize(szs[  ............ .w3.org/check/referer" target="_blank" style="font-size:10px;">XHTML</a>'; <br /> // Show the load  ............ <p align="center"><span class="smalltext">', $txt['smf301'], $context['load_time'], $txt['smf302'], $ ............ ['load_queries'], $txt['smf302b'], '</span></p>';<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 />echo '<br /> <ul>';<br /> <br /> // Show the default [home] button.<br /> echo ( global $modSettings; ............  '</a></li>';<br /> <br /> // Show the [forum] button. if (empty($context['disable_sp']) && in_array($ ............ <br /><br /><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  ............ ' ? 'main' : 'mirror', 'tab_back">', implode('', $button_strip) , '</td>';<br />}<br /><br />?> ......
......  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>  <form  ............ .w3.org/check/referer" target="_blank" style="font-size:10px;">XHTML</a>&nbsp; | ', theme_copyright() ............  '  <br /><span class="smalltext">', $txt['smf301'], $context['load_time'], $txt['smf302'], $ ............ ['load_queries'], $txt['smf302b'], '</span></div>';   // This is an  ............  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 '<span class="nav" style="font-size: 12px; margin-bottom: 2ex; margin-left: 2ex;  ............  <ul id="nav-bar">';   // How about the [home] button?  echo '<li' , $current_action=='home' ? '  ............ ].'</b></a></li>';     // How about the [help] button?  echo '<li' , $current_action=='help' ? '  ............ [119], '</a></li>';   // How about the [search] button?  if ($context['allow_search'])  echo '<li' ............  , '</span></a></li>';    // the [member] list button  if ($context['allow_memberlist'])  echo '< ............  the user is a guest, show [login] and [register] buttons.  if ($context['user']['is_guest'])  {   ............ ';  echo '</ul>';  }  // 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($ ............ ', 'tab_back">', implode(' &nbsp;|&nbsp; ', $button_strip) , '</td>  <td class="', $direction ==  ............  <ul id="nav-bar">';   // How about the [home] button?  echo '<li' , $current_action=='home' ? '  ............ .'</b></a></li>';       // How about the [help] button?  echo '<li' , $current_action=='help' ? '  ............ [119], '</a></li>';   // How about the [search] button?  if ($context['allow_search'])  echo '<li' ............  , '</span></a></li>';    // the [member] list button  if ($context['allow_memberlist'])  echo '< ............  the user is a guest, show [login] and [register] buttons.  if ($context['user']['is_guest'])  {   ......
#147
Graphics and Templates / Theme Trouble
elokuu 30, 2007, 10:06:26 IP tekijältä wvcaudill2
...... , im trying to integrate a SMF into my site, so I made my site layout into two  ............  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  ............ ="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. ............ ['user']['is_logged'])<br /> echo '<br /> <font style="font-size: 8pt"><br /> <span style=" ............ -size: 100%;"> ', $txt['hello_member_ndt'], ' <font style="font-size: 8pt" color="#000000"><b>', $ ............ ['user']['name'] , '</b></font></span><br><br /> ';<br /><br /> <br />//  ............ " type="text/javascript" src="', $settings['default_theme_url'], '/sha1.js"></script><br /> < ............ /javascript"><!-- // --><![CDATA[<br /> function smfFooterHighlight(element, value)<br /> {<br />  ............ .src = smf_images_url + "/" + (value ? "h_" : "") + element. ............ ="http://www.forumavi.net/" target="_blank" style="font-size:12px;">Turklord</a><br /><br />Images by <a  ............ ="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 / ............  // 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 align="center"><a href= ............ ] , '</a></td>';<br /><br /> // Show the [help] button.<br /> echo '<br /> <td align="center"><a href= ............ ></td>';<br /> <br /> // How about the [search] button?<br /> if ($context['allow_search'])<br /> echo ' ............ '] , '</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 />  ............ /table>';<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 == ......
#148
Graphics and Templates / Little Help To Complete Template
syyskuu 18, 2006, 07:06:01 IP tekijältä dan1dyoung
......  have been modifying the default template on SMF 1.1RC3 to suit my requirements,  ............  link "Did you miss your activation email?" in the SMF standard forum (Here), is this an add-on as i can  ............  cells. */ table {  empty-cells: show; }  /* By default (td, body..) use verdana in black. */ body, td,  ............  , tr {  color: #000000;  font-size: small;  font-family: verdana; }  /* The  ............  normal so they align well. */ input, textarea, button {  color: #000000;  font-family: verdana; }  ............ , button {  font-size: 90%; }  textarea {  font-size:  ............ %;  color: #000000;  font-family: verdana; }  /* All input elements that  ............  checkboxes or radio buttons. */ input.check { }  /* Selects are a bit  ............  it makes them look even better 8). */ select {  font-size: 90%;  font-weight: normal;  color: # ............ ;  font-family: verdana; }  /* Standard horizontal rule..  ............  #000000;  margin: 1px;  padding: 1px;  font-size: x-small;  line-height: 1.4em; }  /* A  ............  color: #000000;  background-color: #dddddd;  font-family: "courier new", "times new roman",  ............ ;  font-size: x-small;  line-height: 1.3em;  /* Put a  ............  {  color: #000000;  text-decoration: none;  font-style: normal;  font-weight: bold;  font-size: ............ . */ .highlight {  background-color: yellow;  font-weight: bold;  color: black; }  /* Alternating  ............ .titlebg2 th, tr.titlebg2 td {  color: black;  font-style: normal;  background: #F0AB00;  border- ............ .titlebg, .titlebg a:link, .titlebg a:visited {  font-weight: bold;  color: black;  font-style:  ............  a:link, .titlebg2 a:visited {  color: black;  font-style: normal;  text-decoration: underline; }  . ............ .catbg, .catbg2, .catbg3 {  } .catbg, .catbg2 {  font-weight: bold; } .catbg3, tr.catbg3 td, .catbg3 a: ............ , .catbg3 a:visited {  font-size: 95%;  color: white;  text-decoration:  ............  #1C93C1;  background-color: #FFFFFF; }  /* Default font sizes: small (8pt), normal (10pt), and large  ............ (14pt). */ .smalltext {  font-size: x-small;  font-family: verdana; } . ............  {  font-size: 90%; } .normaltext {  font-size: small; }  ............ .largetext {  font-size: large; }   /* Posts and personal messages  ............ -transform: uppercase;  background: #FFFFFF;  font-size: 10px;  vertical-align: top;  padding:  ............  6px 6px 6px;  font-family: verdana; }  .maintab_last {  }  . ............ ;  background: #F3D311;  border: 2px;  font-size: 10px;  vertical-align: top;  padding:  ............  6px 6px 6px;  font-family: verdana;  }  .maintab_active_back {   ............ ;  background: #F3D311;  border: 2px;  font-size: 10px;  vertical-align: top;  padding:  ............  6px 6px 6px;  font-family: verdana;  } .maintab_active_last {   ............ ;  background: #F3D311;  border: 2px;  font-size: 10px;  vertical-align: top;  padding:  ............  6px 6px 6px;  font-family: verdana;  }   /* how links behave in  ............ -transform: uppercase;  background: #FFFFFF;  font-size: 10px;  vertical-align: top;  padding:  ............  6px 6px 6px;  font-family: verdana; }  .mirrortab_last { }  . ............ -transform: uppercase;  background: #F3D311;  font-size: 10px;  vertical-align: top;  padding:  ............  6px 6px 6px;  font-family: verdana; }  .mirrortab_active_back {   ............ -transform: uppercase;  background: #F3D311;  font-size: 10px;  vertical-align: top;  padding:  ............  6px 6px 6px;  font-family: verdana; } .mirrortab_active_last {   ............ -transform: uppercase;  background: #F3D311;  font-size: 10px;  vertical-align: top;  padding:  ............  6px 6px 6px;  font-family: verdana; }    /* how links behave in  ............ ;  color: white;  text-align: center;  font-weight: bold;  font-size: 18pt;  padding: 3px; ............ , $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'], '/script.js?rc3"></script>  <script  ............  type="text/javascript"><!-- // --><![CDATA[  var smf_theme_url = "', $settings['theme_url'], '";  var  ............  = "', $settings['images_url'], '";  var smf_scripturl = "', $scripturl, '";  // ]]></script>   ............ ="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...)  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; font-size: 140%; ">', $context[' ............  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 '  </td>  </ ............ " 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()  {   ............  = 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 // Is the user allowed to administrate at all? ([ ............            // 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 == ' ......
......  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'] = false;<br /><br /> /* Use plain buttons - as oppossed to text buttons? */<br /> $ ............ ['use_buttons'] = false;<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" : "/ ............ ['mf_guests']) ? $modSettings['mf_guests'] : $txt['default_message'],'</div>';<br /><br /> // Because of the  ............ ="top" class="smalltext" style="width: 100%; font-family: verdana, arial, sans-serif;">';<br /><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 />  ............ ="', $txt[34], '" /><br /><br /> ', $txt['smf52'], '<br /> <input type="hidden" name=" ............ "', $scripturl, '?action=search;advanced">', $txt['smf298'], '</a><br /> <input type="hidden" name= ............ ']['total_posts'], '</b> ', $txt[95], ' ', $txt['smf88'], ' <b>', $context['common_stats'][' ............ /javascript"><!-- // --><![CDATA[<br /> function smfFooterHighlight(element, value)<br /> {<br />  ............ .src = smf_images_url + "/" + (value ? "h_" : "") + element. ............  style="margin: 5px 16px;" border="0" onmouseover="smfFooterHighlight(this, true);" onmouseout=" ............  style="margin: 5px 16px;" border="0" onmouseover="smfFooterHighlight(this, true);" onmouseout=" ............  style="margin: 5px 16px;" border="0" onmouseover="smfFooterHighlight(this, true);" onmouseout=" ............  style="margin: 5px 16px;" border="0" onmouseover="smfFooterHighlight(this, true);" onmouseout=" ............ /> 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  ............ > 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="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'] . '/'  ............ , '?action=help">', ($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=calendar">', ($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'] . '/'  ............ , '</a>';<br />}<br /><br />// Generate a strip of buttons, out of buttons.<br />function  ............ ($button_strip, $direction = 'top', $force_reset = false, $ ............  = '')<br />{<br /> global $settings, $buttons, $context, $txt, $scripturl;<br /><br /> if ( ............ ($button_strip))<br /> return '';<br /><br /> // Create  ............  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] =  ............ ['custom'] : '') . '>' . ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/'  ............ >' : $txt[$value['text']]) . '</a>';<br /><br /> $button_strip[$key] = $buttons[$key];<br /> }<br /><br />  ............ , '>', implode($context['menu_separator'], $button_strip) , '</td>';<br />}<br /><br />?> Also look  ......
#150
SMF 1.1.x Support / How do i get forum in center of page?
toukokuu 10, 2008, 08:19:17 IP tekijältä Xavierr
......  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 XHTML  ............  for.<br />This should probably be the version of SMF it was created for. */<br />$settings[' ............ ['use_tabs'] = false;<br /><br />/* Use plain buttons - as oppossed to text buttons? */<br />$settings[ ............ 'use_buttons'] = false;<br />$settings['use_image_buttons'] =  ............ ="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 /> ............  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 this  ............ ="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" : "/ ............ =" + (mode ? 1 : 0);';<br />else<br />echo '<br />smf_setThemeOption("collapse_header_ic", mode ? 1 : 0, ............ <br />document.getElementById("upshrink_ic").src = smf_images_url + (mode ? "/expand.gif" : "/collapse. ............  ]]></script><br /></head><br /> <body class="default" ><br /><!-- Top Navigation Begin --><br /><br />< ............ :url(http://www.mileytv.com/forums/Themes/default/image.gif);backgrond-color:#fff;"><br /><br /><br  ............ " type="text/javascript" src="', $settings['default_theme_url'], '/sha1.js"></script><br /><form  ............ "><!-- // --><![CDATA[<br /> function smfFooterHighlight(element, value)<br /> {<br  ............ /> element.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=" ............  '<br /> window.addEventListener("load", smf_codeFix, false);<br /><br /> function  ............  '<br /> window.addEventListener("load", smf_codeFix, false);<br /> function  ............  = window.onload;<br /> window.onload = smf_codeFix;<br /><br /> function smf_codeFix( ............ ;<br /><br /> echo '<div class="nav" style="font-size: smaller; margin-bottom: 2ex; margin-top:  ............ ' ? 'profile' : 'admin';<br /><br /> // Begin SMFShop code<br /> if ($context['current_action'] == ............  /> $current_action = 'admin';<br /> // End SMFShop code<br /><br /> // Are we using right-to- ............  section.<br /><br /><br /> // Show the [home] button.<br /> echo ($current_action=='home' || $ ............  <br /> // Show the [news] button.<br /> echo ($current_action=='news' || $ ............  $last . '"> </td>' : '';// How about the [search] button?<br /> if ($context['allow_search'])<br />  ............  <br /> <br /> <br /> //END SMFShop code<br /><br /> <br /><br /> <br /><br /> ............  <br /> // the [SMF Gallery] button<br /> if ($context[' ............  href="', $scripturl, '?action=gallery">' , $txt['smfgallery_menu'] , '</a><br /> </td>' , $ ............  /> <br /><br /> <br /> // the [SMF Shop] button<br /> if ($context[' ............  <a href="', $scripturl, '?action=shop">' , $txt['smfshop_menu'] , '</a><br /> </td>' , $ ............ /> <br /> // Show the [help] button.<br /> echo ($current_action == 'help' || $ ............ /><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 => $ ............ ['test']]))<br /> {<br /> unset($button_strip[$key]);<br /> continue;<br /> } ............ <br /> elseif (!isset($buttons[$key]) || $force_reset)<br /> $buttons[$ ............ . $txt[$value['text']] . '</a>';<br /><br /> $button_strip[$key] = $buttons[$key];<br /> }<br /><br / ............ > if (empty($button_strip))<br /> return '';<br /><br /> <br />} ......
#151
......  al de los foros VB, probado con la version SMF 1.1 Final, este codigo lo obtuve de un tema de  ............  esta dificil  Aca la imagen de ejemplo en el tema default    aka dejo el script y el boton que les servira   ............ ] Laajenna http://rapidshare.com/files/28305612/smfbusquedarapida.rar Resubido!!!  bueno explicare  ............  en el que pondran el codigo; ejemplo: /Themes/default/ 2. suben la imagen en la carpeta de images de  ............ ="PHP, MySQL, bulletin, board, free, open, source, smf, simple, machines, forum" />  <script language=" ............ " type="text/javascript" src="', $settings['default_theme_url'], '/script.js?aca_va_la  ............  [Valitse] Laajenna // How about the [search] button?  if ($context['allow_search'])  echo ($ ............  [Valitse] Laajenna // How about the [search] button?  if ($context['allow_search'])  echo ($ ............ </td>  </tr>  </table>  <div align="right" style="font-size:10px;"><a style="color:#000000;" href="#"  ......
#152
SMF 1.1.x Support / Flash chat Button
syyskuu 13, 2010, 09:19:25 AP tekijältä michalis
......  flashchat and is work perfect with the default theme smf, but i have install another theme  ............  v2 and he not show me the button, i try some codes but the only thing i made its  ............  show the button like txt its show only the leters not like the  ............  button. Please i need litle help, thank you in advance!!  ............  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 ' ............ ', 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. */<br /> $settings[' ............  What document type definition is being used? (for font size and other issues.)<br /> 'xhtml' for  ............  /> 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 />  ............ /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 />  ............  Explorer 4, 5, and Opera 6 this will show fonts one size smaller than usual.<br /> Note  ............ ="stylesheet" type="text/css" href="', $settings['default_theme_url'], '/fonts-compat.css" />';<br /><br />  ............  /> else<br /> echo '<br /> smf_setThemeOption("collapse_header", mode ? 1 : 0,  ............  document.getElementById("upshrink").src = smf_images_url + (mode ? "/upshrink2.gif" : "/ ............ > else<br /> echo '<br /> smf_setThemeOption("collapse_header_ic", mode ? 1 : 0, ............  document.getElementById("upshrink_ic").src = smf_images_url + (mode ? "/expand.gif" : "/collapse. ............ ="32"><br /> <span style="font-size: 120%;">', $txt['hello_member'], ' <b>', $ ............  '</span>';<br /><br /> // this is the upshrink button for the user info section.<br />  ............ " type="text/javascript" src="', $settings['default_theme_url'], '/sha1.js"></script><br /><br />  ............  <option value="60">', $txt['smf53'], '</option><br />  ............  <option value="1440">', $txt['smf47'], '</option><br />  ............  <option value="10080">', $txt['smf48'], '</option><br />  ............  <option value="43200">', $txt['smf49'], '</option><br />  ............  <option value="-1" selected="selected">', $txt['smf50'], '</option><br />  ............  <span class="middletext">', $txt['smf52'], '</span><br />  ............ , '?action=search;advanced" title="', $txt['smf298'], '"><img src="'.$settings['images_url'].'/ ............ ="middle" style="margin: 0 0 1ex;" alt="', $txt['smf298'], '" /></a><br /> < ............ .w3.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>&nbsp;&nbsp;&nbsp;<br />  ............  '<br /> <span class="smalltext">', $txt['smf301'], $context['load_time'], $txt['smf302'], $ ............ ['load_queries'], $txt['smf302b'], '</span><p align="center"><a title=" ............ '<br /> window.addEventListener("load", smf_codeFix, false);<br /><br /> function  ............  = window.onload;<br /> window.onload = smf_codeFix;<br /><br /> function  ............ ="tabs6">';<br /><br /> // How about the [home] button?<br /> echo '<ul><li', $current_action == ' ............ </a></li>';<br /><br /> // How about the [help] button?<br /> echo '<li', $current_action == ' ............ ></li>';<br /><br /> // How about the [search] button?<br /> if ($context['allow_search'])<br />  ............ /a></li>';<br /> <br /> // the [member] list button<br /> if ($context['allow_memberlist'])<br />  ............  the user is a guest, show [login] and [register] buttons.<br /> if ($context['user']['is_guest'])<br /> ............ ></div>';<br />}<br /><br />// Generate a strip of buttons.<br />function template_button_strip($ ............  = '')<br />{<br /> global $settings, $buttons, $context, $txt, $scripturl;<br /><br /> //  ............  the buttons...<br /> foreach ($button_strip as $key => $ ............ ['test']]))<br /> {<br /> unset($button_strip[$key]);<br /> continue;<br />  ............  }<br /> elseif (!isset($buttons[$key]) || $force_reset)<br /> $ ............ $txt[$value['text']] . '</a>';<br /><br /> $button_strip[$key] = $buttons[$key];<br /> }<br /><br  ............ /> if (empty($button_strip))<br /> return '<td>&nbsp;</td>';<br  ............ ', 'tab_back">', implode(' &nbsp;|&nbsp; ', $button_strip) , '</td><br /> <td class="', $ ......
#153
Arşiv / Xhtml Hatası ?
syyskuu 07, 2009, 08:18:25 AP tekijältä !!kaos!!
......  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 /> ............ ['allow_color_change'] == 'no'))<br />{<br />// Defaults.<br />$options['color'] = isset($settings[' ............ ="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 + ' . '"/'. $settings[' ............  ? 1 : 0);';<br /> else<br /> echo '<br /> smf_setThemeOption("collapse_header_ic", mode ? 1 : 0, ............ /> document.getElementById("upshrink_ic").src = smf_images_url + ' . '"/'. $settings[' ............ ="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 /> < ............ ']))<br /> echo '<br /> <span style="font-family: Verdana, sans-serif; font-size: 140%; ">', ............ ['user']['is_logged'])<br /> echo '<br /> <font style="font-size: 8pt"><br /> <span style=" ............ -size: 100%;"> ', $txt['hello_member_ndt'], ' <font style="font-size: 8pt" color="#000000"><b>', $ ............ ['user']['name'] , '</b></font></span><br />';<br /><br /> <br />// Only tell  ............ '], '<br />';<br /> }<br /> echo ' </font></span></td>';<br /><br /> }<br /><br /><br /> //  ............ " type="text/javascript" src="', $settings['default_theme_url'], '/sha1.js"></script><br /> < ............  <td valign="middle" style="font-size: 8pt;" align="left">',$txt[35],':</td><br />  ............  <td align="left" style="font-size: 8pt;"><input type="checkbox" name=" ............  <td align="left" style="font-size: 8pt;">',$txt[36],':</td><br />  ............  <td align="left" style="font-size: 8pt;"><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><input type="submit" value="', $ ............ -color: #002953; color: #002953; width: 20px; font-size: 3px;" type="submit" value="blue" name=" ............ -color: #AD01FD; color: #AD01FD; width: 20px; font-size: 3px;" type="submit" value="violet" name=" ............ -color: #EB0153; color: #EB0153; width: 20px; font-size: 3px;" type="submit" value="red" name=" ............ -color: #006400; color: #006400; width: 20px; font-size: 3px;" type="submit" value="green" name=" ............ -color: #AE1D1D; color: #AE1D1D; width: 20px; font-size: 3px;" type="submit" value="orange" name=" ............ /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:  ............ ="glossymenu">';<br /><br /> // Show the [home] button.<br /> echo '<li class="current"><a href="', $ ............ /span></a></li>';<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 ' ............ /span></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  ............ " >', implode('</td><td class="mirrortab_back">', $button_strip) , '</td><br /> ';<br />}<br /><br />?> ......
#154
SMF 2.0.x Support / Custom theme issue
toukokuu 19, 2009, 07:36:37 IP tekijältä MzCiska
......  cells. */ table {  empty-cells: show; }  /* set a fontsize that will look the same in all browsers. */  ............  {  font: 95%/90% "century gothic", sans-serif;   ............  normal so they align well. */ input, textarea, button {  color: #000000;  background-color: #476C8E;   ............ : 1px inset #000000;  font-family: century gothic, sans-serif;   } input,  ............  {  font-size: 90%; }  textarea {  font-size: 100%;  color: ............  #000000;  font-family: century gothic, sans-serif; }  /* All  ............  elements that are checkboxes or radio buttons. */ input.check {  border: none; }  /* Selects  ............  it makes them look even better 8). */ select {  font-size: 90%;  font-weight: normal;  color: #000000;  ............  font-family: century gothic, sans-serif; }  /*  ............ : #030303;  background-color: #000000; }  /* By default set the color on these tags as black. */ h1, h2,  ............ , h4, h5, h6, h7 {  color: #5980a3;  font-size: 1em;  margin: 0;  padding: 0; }  /* No  ............ . */ a img {  border: 0; }  /* No lines around buttons in Firefox! */ a {  outline: none; }  /* Reset  ............   float: right; } .floatleft {  float: left; }  /* Default font sizes: small (8pt), normal (10pt), and large  ............ (14pt). */ .smalltext {  font-size: 0.88em;  font-family: century gothic, sans- ............ ; } .middletext {  font-size: 0.85em; } .normaltext {  font-size: 1em; } . ............  {  font-size: 1.4em; }  /* This style will make sure all  ............ /* remove bold/italic styles */ span.plainstyle {  font-weight: normal;  font-style: normal; } /* float a  ............ ****************************** */ /* Some specific SMF elements */ /* ******************************** ............ : 3px solid #89a0af;  margin: 1px;  padding: 5px;  font-size: x-small;  line-height: 1.4em;  }  /* A code  ............  border-left: 3px solid #9a9a9a;  display: block;  font-family: "courier new", "times new roman",  ............ ;  font-size: x-small;  line-height: 1.3em;  /* Put a  ............  {  color: #000000;  text-decoration: none;  font-style: normal;  font-weight: bold;  font-size: x- ............  to change the code stuff... */ .codeoperation {  font-weight: normal; }  /* Styling for BBC tags */ . ............  .bbc_size {  line-height: 1.3em; }  .bbc_table {  font: inherit;  color: inherit; }  .bbc_table td {   ............ . */ .highlight {  background-color: yellow;  font-weight: bold;  color: black; }  /* A more  ............  th, tr.titlebg2 td, #credits h3 {  color: Black;  font-style: normal;  background: url(images/titlebg. ............ } .titlebg, .titlebg a:link, .titlebg a:visited {  font-weight: bold;  color: black;  font-style: normal;  ............  a:link, .titlebg2 a:visited {  color: black;  font-style: normal;  text-decoration: underline; }  . ............ -bottom: solid 1px #375576; } .catbg, .catbg2 {  font-weight: bold; } .catbg3, tr.catbg3 td, .catbg3 a: ............ , .catbg3 a:visited {  font-size: 95%;  color: white;  text-decoration: none;  ............ , a.moderation_link:visited {  color: red;  font-weight: bold; }  .openid_login {  background:  ............ : #32CD32;  color: white;  text-align: center;  font-weight: bold;  font-size: 18pt;  padding: 0.4em;   ............  a {  color: white;  text-decoration: underline;  font-size: smaller;  float: right; }  /* ************** ............ *********************** */ /* Buttons and menus */ /* *************************** ............ ********** */  .buttonlist ul, .buttonlist_bottom ul {  background: url( ............ ) no-repeat bottom left;  padding-left: 10px; } .buttonlist ul li, .buttonlist_bottom ul li {  margin: 0;  ............  padding: 0;  display: inline; } .buttonlist ul li a, .buttonlist ul li a:visited, . ............  ul li a, .buttonlist_bottom ul li a:visited {  float: left;   ............ : block;  color: white;  font-size: 0.8em;  font-family: tahoma, sans-serif;   ............ -transform: uppercase; } .buttonlist ul li a:hover, .buttonlist_bottom ul li a: ............  {  color: #e0e0ff;  text-decoration: none; } .buttonlist ul li a span, .buttonlist_bottom ul li a span  ............ : block;  padding: 0.1em 0.5em 0.5em 0.5em; } .buttonlist ul li a.active, .buttonlist_bottom ul li a. ............ ) no-repeat bottom right;  padding-right: 8px; } .buttonlist ul li a.active span em, .buttonlist_bottom ul  ............ : 0.1em 0.5em 0.5em 0.5em;  display: block;  font-style: normal;  background: url(images/ ............ .gif) repeat-x bottom right; } .buttonlist ul li a.active span, .buttonlist_bottom ul li  ............ ) no-repeat bottom left;  padding: 0 0 0 8px; } .buttonlist ul li a span.last, .buttonlist_bottom ul li a  ............  0.5em; }  /* For links that are basically submit buttons. */ .buttonlist_submit {  background:  ............ ;  vertical-align: top;  text-decoration: none;  font-size: 9px;  font-family: tahoma, sans-serif;   ............ : 0; }  .buttonlist_submit:hover {  color: #e0e0ff; }  /* ..for  ............  "bottom" menu */ .buttonlist_bottom ul {  background: url(images/ ............ .gif) no-repeat top left; } .buttonlist_bottom ul li a span {  padding: 0.5em 0.5em 0. ............ (images/mirrortab_back.gif) repeat-x top left; } .buttonlist_bottom ul li a.active {  background: url( ............ .gif) no-repeat top right; } .buttonlist_bottom ul li a.active span em {  background:  ............ /mirrortab_active_back.gif) repeat-x top right; } .buttonlist_bottom ul li a.active span {  background: url( ............ .gif) no-repeat top left; } .buttonlist_bottom ul li a span.last {  padding: 0.5em 1. ............ ; } /* the old type of menu, with images */ .oldbuttonlist {  text-align: right;  padding: 0.5em; }  /* * ............  {  color: white;  text-decoration: none;  font-size: 9px;  vertical-align: top;  padding: 2px  ............  6px 6px;  font-family: tahoma, sans-serif; }  .maintab_first {   ............  {  color: white;  text-decoration: none;  font-size: 9px;  vertical-align: bottom;  padding: 6px  ............  2px 6px;  font-family: tahoma, sans-serif; }  .mirrortab_first {  ............   border: 1px solid #505050;  position: absolute;  font-size: .7em; }  /* An auto suggest item */ . ......
#155
SMF Coding Discussion / Change 'SEARCH' to ARCADE.
kesäkuu 05, 2008, 05:07:40 IP tekijältä Afro
...... ,  I installed SMF Arcade , on Dilbermc theme. smf1.1.5. MY forum is  ............  modify some file for it to show.  it shows on the default theme but doesnt show on the dilbermc. i want to  ............  Serch button with the arcade button.  my indextemplate php is  ............  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" />';   // YSHOUT  ............ ;</script>  <style type="text/css">  #yshout {  font-size: 10px;  }  #yshout p {  margin: 0 0 0; /* ............  fieldset {  border: none;  }  #yshout em {  font-style: normal;  }  #yshout p {  line-height:  ............ : hidden;  }  #yshout .shout-timestamp {  font-weight: normal;  color: #000;  }  #yshout . ............  {  font-size: 6pt;  color: #141414;  }  #forum-name, # ............ -text, #shout-buttonfont-size: 9px;  margin: 0;  padding: 0;  ............  310px;  margin-right: 5px;  }  #yshout #shout-button {  width: 55px;  }  </style>';  // YSHOUT END   ............  "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. ............  {  color: #000000; /* the font color */  border: 1px solid #CCCDCD; /* the  ............ ;  }  table.ncode_imageresizer_warning td {  font-size: 10px;  vertical-align: middle;  text- ............ ['header_logo_url']))  echo '  <span style="font-family: Verdana, sans-serif; font-size: 140%; ">', ............  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 ($ ............ ' . $last . '">&nbsp;</td>' : '';   // the [links] button  if ($context['allow_view_smflinks'])  echo ($ ............  <a href="', $scripturl, '?action=links">' , $txt['smflinks_menu'] , '</a>  </td>' , $current_action  ............  . '">&nbsp;</td>' : '';     // the [staff list] button  if ($context['allow_view_stafflist'])  echo ($ ............  <a href="', $scripturl, '?action=staff">' , $txt['smfstaff_stafflist'] , '</a>  </td>' , $ ............ ' . $last . '">&nbsp;</td>' : '';     // the [SMF Gallery] button  if ($context[' ............  href="', $scripturl, '?action=gallery">' , $txt['smfgallery_menu'] , '</a>  </td>' , $ ............  '';      // 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 == ' ......
#156
SMF 1.1.x Support / Add link in navigation?
tammikuu 20, 2008, 12:28:06 AP tekijältä Mysteerie
......  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'] = false;<br /><br /> /* Use plain buttons - as oppossed to text buttons? */<br /> $ ............ ['use_buttons'] = false;<br /> $settings['use_image_buttons'] = ............ ="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 /> < ............ ="JavaScript" type="text/javascript"><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 /> if ($forum_version != 'SMF 1.1.3')<br /> echo '<br /> <div style="margin:  ............ -color: #ffb76f;"><br /> <div style="width: 2ex; font-size: 2em; color: red;">!!</div><br /> <b style= ............  This theme doesn\'t correspond to the version of SMF that you are using. <u>This theme is made for SMF  ............ - configuration - current theme (above the save button)<br /> </div><br /> </div>';<br /> }<br /> if ( ............ -color: #ffb76f;"><br /> <div style="width: 2ex; font-size: 2em; color: red;">!!</div><br /> <b style=" ............ / If link set in admin interface show extra [home] button .<br /> if (!empty($settings['pdx_forum_button'])) ............ <br /> echo '<li><a href="', $settings['pdx_forum_button'], '">' , $txt[103] , '</a></li>';<br /><br /> if  ............ (!empty($settings['pdx_forum_button']))<br /> {<br /> // Show the extra [forum]  ............ <li><a href="', $scripturl, '">' , $txt['pdx_forum_button_forum'] , '</a></li>';<br /> }<br /> else<br />  ............ {<br /> // Show the default [home] button.<br /> echo '<li><a href="http:// ............ ></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 == ............ ">&nbsp;</td>';<br />}<br />// Generate a strip of buttons.<br />function template_button_strip_mill($ ............ , $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] =  ............ ? '</'.$custom_td.'>' : '') .'</a>';<br /><br /> $button_strip[$key] = $buttons[$key];<br /> }<br /><br />  ............  (empty($button_strip))<br /> return '&nbsp;';<br /><br /> echo  ............ (' &nbsp;|&nbsp; ', $button_strip);<br />}<br />function showcase()<br />{<br  ............ /> global $settings, $buttons, $context, $txt, $scripturl;<br /> // personal  ............ " 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 />  ............ " value="" /><br /> </form>', $txt['smf52'], '<br /><br />';<br /> }<br /> if ($context[' ............ "', $scripturl, '?action=search;advanced">', $txt['smf298'], '</a><br /> <input type="hidden" name= ............ ']['total_posts'], '</b> ', $txt[95], ' ', $txt['smf88'], ' <b>', $context['common_stats'][' ......
#157
SMF 1.1.x Support / Adding javascripted banners to forum pages
heinäkuu 25, 2006, 11:58:39 AP tekijältä vortexsf
......  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 /> <img src="', $settings['images_url'], '/smflogo.gif" width="250" style="float: right;" alt=""  ............ /><br /> <span style="font-family: Georgia, sans-serif; font-size: xx-large;" ............ ="100%" valign="top" class="smalltext" style="font-family: verdana, arial, sans-serif;">';<br /><br / ............ "><br /> <option value="60">', $txt['smf53'], '</option><br /> <option value="1440" ............ >', $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 />  ............ ="', $txt[34], '" /><br /><br /> ', $txt['smf52'], '<br /> </form>';<br /> }<br /><br />  ............ "', $scripturl, '?action=search;advanced">', $txt['smf298'], '</a><br /> <input type="hidden" name=" ............ ['totalMessages'], '</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. ............  style="margin: 5px 16px;" border="0" onmouseover="smfFooterHighlight(this, true);" onmouseout=" ............  style="margin: 5px 16px;" border="0" onmouseover="smfFooterHighlight(this, true);" onmouseout=" ............  style="margin: 5px 16px;" border="0" onmouseover="smfFooterHighlight(this, true);" onmouseout=" ............  style="margin: 5px 16px;" border="0" onmouseover="smfFooterHighlight(this, true);" onmouseout=" ............ /> 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'] . '/'  ............ =help" target="_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=calendar">', ($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'] . '/'  ......
#158
Ελληνικά (Greek) / SMF 1.1.12 & Adsense
tammikuu 24, 2011, 09:13:57 AP tekijältä Manux
......  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'] = false;<br /><br /> /* Use plain buttons - as oppossed to text buttons? */<br /> $ ............ ['use_buttons'] = false;<br /> $settings['use_image_buttons'] = ............ ="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. ............ " type="text/javascript" src="', $settings['default_theme_url'], '/sha1.js"></script><br /> < ............ > echo '<br /> <p class="smalltext">', $txt['smf301'], $context['load_time'], $txt['smf302'], $ ............ ['load_queries'], $txt['smf302b'], '</p>';<br /> }<br /> <br /> // The  ............ <a href="http://padexx.de/" target="_blank" title="SMF Themes &amp; webdesign solutions">padexx</a></ ............ <br />echo '<br /> <ul>';<br /> <br /> // Show the default [home] button.<br /> echo ($current_action=='home' ............ '] , '</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 />  ............  section.<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 />  ............  ($button_strip as $key => $value)<br /> {<br /> if ( ............ [$value['test']]))<br /> {<br /> unset($button_strip[$key]);<br /> continue;<br /> }<br />  ............  elseif (!isset($buttons[$key]) || $force_reset)<br /> $buttons[$key] = ............ >' . $txt[$value['text']] . '</a>';<br /><br /> $button_strip[$key] = $buttons[$key];<br /> }<br /><br /> ............  if (empty($button_strip))<br /> return '<td>&nbsp;</td>';<br />< ............  /> echo '<br /> <td class="buttons">', implode('</td><td class="buttons">', $ ............  showcase()<br />{<br /> global $settings, $buttons, $context, $txt, $scripturl;<br /> // personal  ............ " type="text/javascript" src="', $settings['default_theme_url'], '/sha1.js"></script><br /> <form  ............ "><br /> <option value="60">', $txt['smf53'], '</option><br /> <option value="1440">', $ ............ ['smf47'], '</option><br /> <option value="10080">',  ............ $txt['smf48'], '</option><br /> <option value="43200">',  ............ $txt['smf49'], '</option><br /> <option value="-1"  ............ ="selected">', $txt['smf50'], '</option><br /> </select><br /> <input  ............ ="hash_passwrd" value="" /><br /> </form>', $txt['smf52'], '<br /><br />';<br /> }<br /><br /> echo ' < ............ "', $scripturl, '?action=search;advanced">', $txt['smf298'], '</a></b><br /> <input type="hidden"  ............ ']['total_posts'], '</b> ', $txt[95], ' ', $txt['smf88'], ' <b>', $context['common_stats'][' ......
#159
Scripting Help / template parse errror
joulukuu 23, 2010, 04:23:46 IP tekijältä lazym4n2010
...... , I recently switched back to default smf theme and came up with the parse error  It  ............  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=" ............ " style="display: inline; visibility: visible; font-family: Verdana, Arial, sans-serif;"> | <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[' ............ ']!='boardindex')<br /> // Show the [forum] button.<br /> echo ($current_action=='forum' || $context[ ............ ">&nbsp;</td>' : '';<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 />  ............  $last . '">&nbsp;</td>' : '';<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 == ......
#160
SMF 1.1.x Support / Help with unread/replies
maaliskuu 15, 2010, 10:04:43 AP tekijältä [SS]Parker
......  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. ............ ['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 /> <ul>';<br /><br /> // Show the [home] button.<br /> echo '<li><a href="', $scripturl, '">' ,  ............ >';<br /><br /><br /> // How about the [search] button?<br /> if ($context['allow_search'])<br />  ............  , '</a></li>';<br /><br /> // the [member] list button<br /> if ($context['allow_memberlist'])<br />  ............  , '</a></li>';<br /><br /> // Show the [Upload] button.<br /> echo '<li><a href="http://www.uploadaj. ............ /><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 />  ............  </ul>';<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 == ......
Advertisement: