Uutiset:

Wondering if this will always be free?  See why free is better.

Main Menu
Advertisement:

Haun tulos hakusanalle: Default smf Button Font

Tuloksien järjestys
......  have now revamped the code to call data from the smf_members table, now that i am moving everything  ............  to smf.  the call to get the data from the table is fine. ............  in the fields, but when hitting the update button, it does nothing (which is better than before,  ............ == "form1")) {<br /> $updateSQL = sprintf("UPDATE smf_members SET email_address=%s, M_first_name=%s,  ............ , M_tm6, M_visacheckpoint, M_ipaddress FROM smf_members WHERE id_member = $userid");<br />$users = ............  echo $pagetitle; ?></title> <link href="../Themes/default/style.css" rel="stylesheet" type="text/css" /> < ............  <p>To remind you - <br />  <span style="font-weight:bold">Valid insurance is mandatory</span> - ............ ']; ?>" id="email_address">  </font></td>  </tr>  <tr valign="baseline" class=" ............ " bgcolor="#CCCCCC" class="invoice_pickselectsearchbutton">  <input name="Submit" type="submit"  ............ ="invoice_pickselectsearchbutton" value="Update Record" />  <input type=" ......
#422
SMF 1.1.x Support / Google Translate on Smf 1.1.11
heinäkuu 07, 2010, 02:43:30 IP tekijältä W7 riso
......  I need some programming help.  I'm working on a Smf Translator powered by Google, all works fine only  ............  the forum all goes well but when I hit the ''Default Forum Language'' button all is original again  ............  the ''Select Language" button it stays in the translated language take a look  ............  <a href="javascript:doGTranslate('en|en')" title="Default Forum Language" class="gflag" style="background- ............ " /></a>  <style type="text/css">  <!--  a.gflag {font-size:24px;padding:1px 0;background-repeat:no- ............ :url('http://www.freepicsupload.com/pics/php8ibBNa-default.png');}  -->  </style>  <br /><select onchange=" ......
#423
Español (Spanish) / Integrar Google Analytics en SMF+TP (Ayuda)
toukokuu 29, 2010, 11:36:36 AP tekijältä KoNgUi
......  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 opposed to text buttons? */<br /> $settings[ ............ 'use_buttons'] = true;<br /><br /> /* Show sticky and lock  ............ ="stylesheet" type="text/css" href="', $settings['default_theme_url'], '/css/print.css?rc3" media="print" /> ............ ="stylesheet" type="text/css" href="', $settings['default_theme_url'], '/css/', $cssfix, '.css" />';<br />< ............  <script type="text/javascript" src="', $settings['default_theme_url'], '/scripts/script.js?rc3"></script>< ............ ="text/javascript"><!-- // --><![CDATA[<br /> var smf_theme_url = "', $settings['theme_url'], '";<br />  ............  var smf_default_theme_url = "', $settings[' ............ '], '";<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 /> window.open(smf_prepareScriptUrl(smf_scripturl) + "action=pm");< ............ ($context['linktree']) || (!empty($context['dont_default_linktree']) && !$force_show))<br /> return;<br /> ............  '<br /> <ul>';<br /> foreach ($context['menu_buttons'] as $act => $button)<br /> echo '<li><a ', $ ............ ['active_button'] ? ' class="current"' : '' , ' href="', $button[' ............ '], '"><span>', $button['title'], '</span></a></li>';<br /><br /> // The  ............ >';<br /><br />}<br /><br />// Generate a strip of buttons.<br />function template_button_strip($ ............  = array();<br /><br /> // Create the buttons...<br /> $buttons = array();<br /> foreach ($ ............ ']) || !empty($context[$value['test']]))<br /> $buttons[] = '<br /> <li><a' . (isset($value['id']) ? ' ............  id="button_strip_' . $value['id'] . '"' : '') . ' class=" ............ ]] . '</span></a></li>';<br /> }<br /><br /> // No buttons? No button strip either.<br /> if (empty($ ............  // Make the last one, as easy as possible.<br /> $buttons[count($buttons) - 1] = str_replace('<span>', '< ............  class="last">', $buttons[count($buttons) - 1]);<br /><br /> echo '<br />  ............ <div class="buttonlist', !empty($direction) ? ' align_' . $direction  ............ : '', '"', (empty($buttons) ? ' style="display: none;"' : ''), (!empty($ ............  '"': ''), '><br /> <ul>',<br /> implode('', $buttons), '<br /> </ul><br /> </div>';<br />}<br />< ......
#424
......  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 /> < ............ " class="tborder" style="border-width: 1px 0 0 0; font-size: smaller;"><br /><!-- Beginning of  ............ "GAF_projects_horizontal_box" style="padding: 0px; font-family:sans-serif; font-size: 12px;"><br /><div  ............ ="http://www.freelancer.com/" target="_blank"><font color="blue">Freelance jobs</font></a> on <a href= ............ "http://www.freelancer.com/" target="_blank"><font color="blue"><b>Freelancer.com</b></font></a></b>< ............ " type="text/javascript" src="', $settings['default_theme_url'], '/sha1.js"></script><br /><br />  ............ "><br /> <option value="60">', $txt['smf53'], '</option><br /> <option value=" ............ ">', $txt['smf47'], '</option><br /> <option value=" ............ ">', $txt['smf48'], '</option><br /> <option value=" ............ ">', $txt['smf49'], '</option><br /> <option value="-1"  ............ ="selected">', $txt['smf50'], '</option><br /> </select><br />  ............ /><br /> <span class="middletext">', $txt['smf52'], '</span><br /> <input type="hidden"  ............ /javascript"><!-- // --><![CDATA[<br /> function smfFooterHighlight(element, value)<br /> {<br />  ............ .src = smf_images_url + "/" + (value ? "h_" : "") + element. ............ ="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  ......
#425
Español (Spanish) / Agregar img.
marraskuu 17, 2009, 08:23:22 IP tekijältä Emmaa
......  menu sub template should display all the relevant buttons the user   wants and or needs.     For more  ............ , $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  ............ .   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?rc2p"></script>   < ............ ="text/javascript"><!-- // --><![CDATA[   var smf_theme_url = "', $settings['theme_url'], '";    ............  var smf_images_url = "', $settings['images_url'], '";    ............  var smf_scripturl = "', $scripturl, '";   // ]]></ ............ ="stylesheet" type="text/css" href="', $settings['default_theme_url'], '/print.css?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" />';     //  ............ (mode ? 1 : 0);';   else   echo '   smf_setThemeOption("collapse_header", mode ? 1 : 0,  ............  document.getElementById("upshrink").src = smf_images_url + (mode ? "/upshrink2.gif" : "/ ............  ? 1 : 0);';   else   echo '   smf_setThemeOption("collapse_header_ic", mode ? 1 : 0, ............  document.getElementById("upshrink_ic").src = smf_images_url + (mode ? "/expand.gif" : "/collapse. ............ " type="text/javascript" src="', $settings['default_theme_url'], '/sha1.js"></script>    ............  <option value="60">', $txt['smf53'], '</option>   < ............  value="1440">', $txt['smf47'], '</option>   < ............  value="10080">', $txt['smf48'], '</option>   < ............  value="43200">', $txt['smf49'], '</option>   < ............  value="-1" selected="selected">', $txt['smf50'], '</option>   </ ............  value="" />   </form>', $txt['smf52'], '<br /><br />';   }      ............  echo '<br /><span class="smalltext">'. $txt['smf301'], $context['load_time'], $txt['smf302'], $ ............ ['load_queries'], $txt['smf302b'], '</span>';     echo '    ............  <ul>';      // Show the [home] button.   echo '<li><a' , $current_action== ............ ] , '</a></li>';     // Show the [help] button.   echo '<li><a' , $current_action== ............ ></li>';     // How about the [search] button?   if ($context['allow_search'])    ............ , '</a></li>';     // the [member] list button   if ($context['allow_memberlist'])    ............  // If the user is a guest, show [login] button.   if ($context['user']['is_guest'])    ............  // If the user is a guest, also show [register] button.   if ($context['user']['is_guest'])    ............  '</ul>   </div>';  }    // 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['test']]))   {   unset($button_strip[$key]);   continue;   }    ............  (!isset($buttons[$key]) || $force_reset)   $buttons[$key]  ............ ) . '>' . $txt[$value['text']] . '</a>';     $button_strip[$key] = $buttons[$key];   }     if ( ............ ($button_strip))   return '<td>&nbsp;</td>';      ............ ', 'tab_back">', implode(' &nbsp;|&nbsp; ', $button_strip) , '</td>   <td class="', $direction == ......
#426
...... ./Themes/default/Display.template.php  Find: [Seleccionar]  ?>    ............ 'd expect to see with a message box, the box, BBC buttons and of course smileys. // NOTICE: With the  ............  from Subs-Post.php, which is the work of the SMF dev team. I only moved things around...so thank  ............ ;  // Assuming BBC code is enabled then print the buttons and some javascript to handle it. if ($context[' ............ ) { something.style.backgroundImage = "url(" + smf_images_url + (mode ? "/bbc/bbc_hoverbg.gif)" : "/ ............ ' => $txt[532]), 'face' => array('code' => 'font', 'before' => '', 'after' => '', 'description' =>  ............ > ' \n\n', 'description' => $txt[261]), );  $found_button = false; // Here loop through the array, printing  ............ > $tag) { // Is there a "before" part for this bbc button? If not, it can't be a button!! if (isset($tag[' ............ 'disabled_tags'][$tag['code']])) continue;  $found_button = true;  // If there's no after, we're just  ............ >'; } // I guess it's a divider... elseif ($found_button) { echo '<img src="', $settings['images_url'], '/ ............ " alt="|" style="margin: 0 3px 0 3px;" />'; $found_button = false; } }  // Print a drop down list for all  ............ ], '</option> </select>'; echo '<br />';  $found_button = false; // Print the buttom row of buttons!  ............ 'disabled_tags'][$tag['code']])) continue;  $found_button = true;  // If there's no after, we're just  ............ >'; } // I guess it's a divider... elseif ($found_button) { echo '<img src="', $settings['images_url'], '/ ............ " alt="|" style="margin: 0 3px 0 3px;" />'; $found_button = false; } } }  // Now start printing all of the  ......
#427
Graphics and Templates / counter in footer
syyskuu 08, 2009, 09:00:17 AP tekijältä pisalkabg
......  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  ............ " type="text/javascript" src="', $settings['default_theme_url'], '/scripts/script.js?rc1"></script>< ............ ="text/javascript"><!-- // --><![CDATA[<br /> var smf_theme_url = "', $settings['theme_url'], '";<br />  ............  var smf_default_theme_url = "', $settings[' ............ '], '";<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 /> window.open(smf_prepareScriptUrl(smf_scripturl) + "action=pm");' : ............ ="stylesheet" type="text/css" href="', $settings['default_theme_url'], '/css/print.css?rc1" 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'], '/css/fonts-compat.css" />';<br />< ............  main header object.<br /> var mainHeader = new smfToggle("upshrink", ', empty($options[' ............ , '...\';" /><input type="submit" value="." class="button"/> </div><br /> <input type="hidden" name=" ............ " type="text/javascript" src="', $settings['default_theme_url'], '/sha1.js"></script><br /> <form  ............  GmbH.</a><br /><br />Gladiatus Ported to SMF by <a href="http://wannabedie.deviantart.com"><b> ............ ($context['linktree']) || (!empty($context['dont_default_linktree']) && !$force_show))<br /> return;<br /> ............  /> <ul>';<br /><br /> foreach ($context['menu_buttons'] as $act => $button)<br /> echo '<li><a ', $ ............ ['active_button'] ? ' class="current"' : '' , ' href="', $button[' ............ '], '"><span>', $button['title'], '</span></a></li>';<br /><br /> echo '< ............  </div>';<br />}<br /><br />// Generate a strip of buttons.<br />function template_button_strip($ ............ , $txt, $scripturl;<br /><br /> // Create the buttons...<br /> $buttons = array();<br /> foreach ($ ............ ']) || !empty($context[$value['test']]))<br /> $buttons[] = '<a href="' . $value['url'] . '" ' . (isset($ ............ ]] . '</span></a>';<br /> }<br /><br /> if (empty($buttons))<br /> return '';<br /><br /> // Make the last  ............ , as easy as possible.<br /> $buttons[count($buttons) - 1] = str_replace('<span>', '< ............  class="last">', $buttons[count($buttons) - 1]);<br /><br /> echo '<br />  ............ <div class="buttonlist', $direction != 'top' ? '_bottom' : '', '">< ............ ="clearfix"><br /> <li>', implode('</li><li>', $buttons), '</li><br /> </ul><br /> </div>';<br /><br / ......
#428
Graphics and Templates / Header from JPG to SWF
elokuu 06, 2009, 05:03:41 IP tekijältä ricardo35
......  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=" ............ ="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 == ......
#429
SMF 1.1.x Support / nneonneo's shoutbox error
heinäkuu 18, 2009, 09:31:10 AP tekijältä xum
......  running smf 1.1.9 ive recently installed nneonneo's shoutbox . ............  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  ............  <style type="text/css">  #yshout {  font-size: 10px;  overflow: hidden;  }   ............   }  #yshout .shout-timestamp {  font-style: normal;  font-weight: normal;   ............ }  #yshout .shout-adminlinks { /* del and ban buttons */  font-size: 6pt;  color: # ............  margin-right: 5px;  }  #yshout #shout-button {  width: 55px;  }  #yshout . ............  + (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. ............  '  <br /><span class="smalltext">', $txt['smf301'], $context['load_time'], $txt['smf302'], $ ............ ['load_queries'], $txt['smf302b'], '</span>';   // This is an interesting  ............  echo '  window.addEventListener("load", smf_codeFix, false);   function smf_codeFix()  ............  echo '  window.addEventListener("load", smf_codeFix, false);  function smf_codeFix()   ............  = window.onload;  window.onload = smf_codeFix;   function smf_codeFix()   ............  '  <ul id="nav">';  // Show the [home] button.  echo '<li', $current_action == 'home' ? '  ............ '">' , $txt[103] , '</a></li>'; // Show the [help] button.  echo '<li', $current_action == 'help' ? '  ............ $txt[119] , '</a></li>'; // How about the [search] button? if ($context['allow_search'])  echo '<li', $ ............ ['calendar24'] , '</a></li>'; // The [member] list button. if ($context['allow_memberlist'])  echo '<li',  ............ '; // If the user is a guest, also show [register] button. if ($context['user']['is_guest'])  echo '<li',  ............ /a></li>'; // If the user is a guest, show [login] button. if ($context['user']['is_guest'])  echo '<li',  ............  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($ ............ 'main' : 'mirror', 'tab_back">', implode(' | ', $button_strip) , '</td>  <td class="', $direction ==  ......
#430
Español (Spanish) / Ayuda shop en el menu
heinäkuu 07, 2009, 05:54:29 AP tekijältä angel29396
......  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['theme_color'] = isset($ ............ ="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[' ............ /> echo ' <br /> <td><br /> <span style="font-family: \'Trebuchet MS\', Verdana, sans-serif;  ............ " 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="- ............ " selected="selected">', $txt['smf50'], '</option><br /> </select><br />  ............  /> <span class="middletext">', $txt['smf52'], '</span><br /> <input type=" ............ : relative; bottom: 13px; right:15px; float:right; font-size:16px;"><br /> <form action="', $ ............ " value="&raquo;&raquo;" style="width: 8ex; font-size:12px;" /><br /> </form><br /> </ ............ -color: #6699CC; color: #6699CC; width: 20px; font-size: 1px;" type="submit" value="lightblue" name=" ............ -color: #5371AD; color: #5371AD; width: 20px; font-size: 1px;" type="submit" value="lightnavy" name=" ............ -color: #6C7F93; color: #6C7F93; width: 20px; font-size: 1px;" type="submit" value="lightsilver"  ............ -color: #53ADAD; color: #53ADAD; width: 20px; font-size: 1px;" type="submit" value="lightturquoise"  ............ -color: #4DB45D; color: #4DB45D; width: 20px; font-size: 1px;" type="submit" value="lightgreen" name= ............ -color: #93A659; color: #93A659; width: 20px; font-size: 1px;" type="submit" value="lightolive" name= ............ -color: #D8A259; color: #D8A259; width: 20px; font-size: 1px;" type="submit" value="lightgolden"  ............ -color: #a67259; color: #a67259; width: 20px; font-size: 1px;" type="submit" value="lightbrown" name= ............ -color: #E15050; color: #E15050; width: 20px; font-size: 1px;" type="submit" value="lightred" name=" ............ -color: #D47BC5; color: #D47BC5; width: 20px; font-size: 1px;" type="submit" value="lightrose" name=" ............ -color: #A185D6; color: #A185D6; width: 20px; font-size: 1px;" type="submit" value="lightlilac" name= ............ -color: #7F88B2; color: #7F88B2; width: 20px; font-size: 1px;" type="submit" value="lightviolet"  ............ /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=" ............ > <span style="float:right; margin-right:10px; font-size:70%;"><b>Dilber MC</b> Theme by <b><a href=" ............ /> 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: 85%; margin-bottom: 2ex; margin-top: 2ex;">' ............ "><br /> </td>';<br /><br /> // Show the [home] button.<br /> echo'<br /> <td align="center" class=" ............  '</a><br /> </td>';<br /> // Show the [forum] button.<br /> if (in_array($modSettings['sp_portal_mode'] ............ '], '</a></li>';<br /><br /> // Show the [help] button.<br /> echo'<br /> <td align="center" class=" ............ ><br /> </td>';<br /> // How about the [search] button?<br /> if ($context['allow_search'])<br /> echo'< ............  <br /> </td>'; <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', 'strip">', implode(' &nbsp;|&nbsp; ', $button_strip) , '</td><br /> <td class="', $direction == ......
#431
Arşiv / Smf Hoteditör Smf Vr: 1.1.1 , 1.1.2 *
toukokuu 25, 2009, 02:22:33 AP tekijältä sevilistan
......  BEN BU KONUYU BİR SMF SİTESİNDEN ALDIM. HATTA ESKİ TEMAMDADA KULLANDIM.  ............  MOD Version: 4.2  Degiştirilecek dosyalar: Themes/default/Display.template.php, Themes/default/Post. ............ .php, Themes/default/Profile.template.php, Themes/default/script.js  ............ ----------------------------------------    Themes/default/Display.template.php   -----[ Bul ]--------------- ............ --------------------  Koodi [Valitse] Laajenna var smf_template_body_edit = \'<div id="error_box" style=" ............ ;', $context['show_spellchecking'] ? '<input type="button" value="' . $txt['spell_check'] . '" onclick=" ............  = "', $context['session_id'], '"; var smf_template_body_edit = \'<div id="error_box" style=" ............ ;', $context['show_spellchecking'] ? '<input type="button" value="' . $txt['spell_check'] . '" onclick=" ............ ----------------------------------------    Themes/default/Post.template.php   -----[ Bul ]------------------ ............ 'd expect to see with a message box, the box, BBC buttons and of course smileys. function template_postbox( ............ -----------------------------------------   Themes/default/Profile.template.php   -----[ Bul ]--------------- ............ ------------------------------------------  Themes/default/script.js   -----[Bul ]--------------------------- ............ [Valitse] Laajenna function submitonce(theform) {  smf_formSubmitted = true; }# #-----[ Degiştir ]------- ............ ) {  //HotEditor MOD  get_hoteditor_data();   smf_formSubmitted = true; } -----[ Bul ]-------------- ............  [Valitse] Laajenna 'before' => '<table style="font: inherit; color: inherit;">',-----[ Degiştir ]---- ............  solid #6CAFF7;background-color: #F4F4F4;width:98%;font-family:Verdana,Arial,Sans-Serif,Tahoma;font-size: ............ ] Laajenna 'before' => '<td valign="top" style="font: inherit; color: inherit;">', -----[ Degiştir ]--- ......
#432
SMF Coding Discussion / Add a new button
toukokuu 13, 2009, 11:51:58 AP tekijältä mih02k
......   I use the las version of SMF and as template I use Orangeline. I have  ............  bridged coppermine to my forum and I want a button in my template to link from forum to coppermine,  ............  read all topics abaut how to add a button but I dont know how to modify this template.   ............  menu sub template should display all the relevant buttons the user<br /> wants and or needs.<br /><br />  ............ , $options, $txt;<br /><br /> /* Use images from default theme when using templates from the default theme? ............ <br /> if this is 'always', images from the default theme will be used.<br /> if this is 'defaults',  ............  from the default theme will only be used with default templates.< ............  is 'never' or isn't set at all, images from the default theme will not be used. */<br /> $settings[' ............  What document type definition is being used? (for font size and other issues.)<br /> 'xhtml' for an  ............ .<br /> This should probably be the version of SMF it was created for. */<br /> $settings[' ............ ['use_tabs'] = true;<br /><br /> /* Use plain buttons - as oppossed to text buttons? */<br /> $ ............ ['use_buttons'] = true;<br /><br /> /* Show sticky and lock  ............ " type="text/javascript" src="', $settings['default_theme_url'], '/scripts/script.js?rc1"></script>< ............ " type="text/javascript" src="', $settings['default_theme_url'], '/scripts/theme.js?rc1"></script><br  ............ ="text/javascript"><!-- // --><![CDATA[<br /> var smf_theme_url = "', $settings['theme_url'], '";<br />  ............  var smf_default_theme_url = "', $settings[' ............ '], '";<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 /> window.open(smf_prepareScriptUrl(smf_scripturl) + "action=pm");' : ............ ="stylesheet" type="text/css" href="', $settings['default_theme_url'], '/css/print.css?rc1" media="print" /> ............ ="stylesheet" type="text/css" href="', $settings['default_theme_url'], '/css/ie7.css" />';<br /> // ..and  ............ ="stylesheet" type="text/css" href="', $settings['default_theme_url'], '/css/ie6.css" />';<br /> // Firefox  ............ ="stylesheet" type="text/css" href="', $settings['default_theme_url'], '/css/ff.css" />';<br /><br /> //  ............ ="stylesheet" type="text/css" href="', $settings['default_theme_url'], '/css/rtl.css" />';<br /><br /> //  ............  main header object.<br /> var mainHeader = new smfToggle("upshrink", ', empty($options[' ............ " type="text/javascript" src="', $settings['default_theme_url'], '/sha1.js"></script><br /> <form  ............ ($context['linktree']) || (!empty($context['dont_default_linktree']) && !$force_show))<br /> return;<br /> ............  /> <ul>';<br /><br /> foreach ($context['menu_buttons'] as $act => $button)<br /> echo '<li><a ', $ ............ ['active_button'] ? ' class="chosen"' : '' , ' href="', $button[' ............ '], '"><span>', $button['title'], '</span></a></li>';<br /><br /> echo '< ............ >';<br /><br />}<br /><br />// Generate a strip of buttons.<br />function template_button_strip($ ............ , $txt, $scripturl;<br /><br /> // Create the buttons...<br /> $buttons = array();<br /> foreach ($ ............ ']) || !empty($context[$value['test']]))<br /> $buttons[] = '<a href="' . $value['url'] . '" ' . (isset($ ............ ]] . '</span></a>';<br /> }<br /><br /> if (empty($buttons))<br /> return '';<br /><br /> // Make the last  ............ , as easy as possible.<br /> $buttons[count($buttons) - 1] = str_replace('<span>', '< ............  class="last">', $buttons[count($buttons) - 1]);<br /><br /> echo '<br />  ............ <div class="buttonlist', $direction != 'top' ? '_bottom' : '', '">< ............ ="clearfix"><br /> <li>', implode('</li><li>', $buttons), '</li><br /> </ul><br /> </div>';<br /><br / ......
#433
SMF 1.1.x Support / Theme color problem
huhtikuu 22, 2009, 05:36:10 IP tekijältä Kestryll
......  some of the colors using this: http://www.smfhacks.com/smf-theme-generator.html and I am  ............  like this:   See how the category bars and such default back to standard? You can actually see that as  ............  current style.css is this: Lainaa/* Generated by SMF Theme Generator http://www.smfhacks.com */ /*  ............  cells. */ table {  empty-cells: show; }  /* By default (td, body..) use verdana in black. */ body, td,  ............  , tr {  color: #000000;  font-size: small;  font-family: verdana, sans-serif;  ............  normal so they align well. */ input, textarea, button {  background-color: ;  color: #000000;   ............ -family: verdana, sans-serif; } input, button {  font-size: 90%; }  textarea {  font-size:  ............ %;  color: #000000;  font-family: verdana, sans-serif; }  /* All input  ............  that are checkboxes or radio buttons. */ input.check { }  /* Selects are a bit  ............  it makes them look even better . */ select {  font-size: 90%;  font-weight: normal;  color: # ............ ;  font-family: verdana, sans-serif; }  /* Standard  ............  #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: url(images/titlebg. ............ .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; }  . ............ -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:  ............  #696969;  background-color: #FFFFFF; }  /* Default font sizes: small (8pt), normal (10pt), and large  ............ (14pt). */ .smalltext {  font-size: x-small;  font-family: verdana, sans- ............ ; } .middletext {  font-size: 90%; } .normaltext {  font-size: small; }  ............ .largetext {  font-size: large; }   /* Posts and personal messages  ............  {  color: white;  text-decoration: none;  font-size: 9px;  vertical-align: top;  padding:  ............  6px 6px 6px;  font-family: tahoma, sans-serif; }  .maintab_first {   ............  8px; } .maintab_active_first {  background: url(default/images/maintab_active_first.gif) left bottom no- ............ : 6px; } .maintab_active_back {  background: url(default/images/maintab_active_back.gif) left bottom  ............ -x; } .maintab_active_last {  background: url(default/images/maintab_active_last.gif) left bottom no- ............  {  color: white;  text-decoration: none;  font-size: 9px;  vertical-align: bottom;  padding:  ............  6px 2px 6px;  font-family: tahoma, sans-serif; }  .mirrortab_first {  ............ ;  color: white;  text-align: center;  font-weight: bold;  font-size: 18pt;  padding: 3px; ......
#434
Graphics and Templates / Helpme with my logo pls
maaliskuu 10, 2009, 04:15:13 IP tekijältä henry74
...... : http://www.henryf3f.com  i paste the code of my default theme (index.template.php):  Koodi [Valitse]  ............  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[' ............ " type="text/javascript" src="', $settings['default_theme_url'], '/scripts/script.js?rc1"></script>  < ............ " type="text/javascript" src="', $settings['default_theme_url'], '/scripts/theme.js?rc1"></script>  < ............  type="text/javascript"><!-- // --><![CDATA[  var smf_theme_url = "', $settings['theme_url'], '";  var  ............  = "', $settings['default_theme_url'], '";  var smf_images_url = "', $ ............ ['images_url'], '";  var smf_scripturl = "', $scripturl, '";  var  ............ ]['iso_case_folding'] ? 'true' : 'false', ';  var smf_charset = "', $context['character_set'], '";', $ ............ ['show_personal_messages'] . '"))  window.open(smf_prepareScriptUrl(smf_scripturl) + "action=pm");' : ............ ="stylesheet" type="text/css" href="', $settings['default_theme_url'], '/css/print.css?rc1" media="print" /> ............ ="stylesheet" type="text/css" href="', $settings['default_theme_url'], '/css/ie7.css" />';  // ..and IE6!   ............ ="stylesheet" type="text/css" href="', $settings['default_theme_url'], '/css/ie6.css" />';  // Firefox -  ............ ="stylesheet" type="text/css" href="', $settings['default_theme_url'], '/css/ff.css" />';   // RTL  ............ ="stylesheet" type="text/css" href="', $settings['default_theme_url'], '/css/rtl.css" />';   // Show all  ............  the main header object.  var mainHeader = new smfToggle("upshrink", ', empty($options[' ............ <div class="catbg">  <img class="floatright" id="smflogo" src="' , $settings['images_url'] , '/smflogo. ............ " type="text/javascript" src="', $settings['default_theme_url'], '/scripts/sha1.js"></script>  < ............ ">', theme_copyright(), '</li>  <li><a id="button_xhtml" href="http://validator.w3.org/check/ ............ '], '"><span>XHTML</span></a></li>  <li><a id="button_rss" href="', $scripturl , '?type=rss;action=.xml" ............ >RSS</span></a></li>  <li class="last"><a id="button_wap2" href="', $scripturl , '?wap2" class=" ............ ($context['linktree']) || (!empty($context['dont_default_linktree']) && !$force_show))  return;   //!!!  ............  <ul class="clearfix">';   foreach ($context['menu_buttons'] as $act => $button)  {  $classes = array();   ............  (!empty($button['active_button']))  $classes[] = 'active';  if  ............ (!empty($button['is_last']))  $classes[] = 'last';  $classes =  ............ (' ', $classes);    echo '  <li id="button_', $act, '"', !empty($classes) ? ' class="' . $ ............ . '"' : '', '>  <a title="', $act, '" href="', $button['href'], '">  <span>', ($button[' ............ '] ? '<em>' : ''), $button['title'], ($button['active_button'] ? '</em>' : '' ............  '  </ul>  </div>'; }  // Generate a strip of buttons. function template_button_strip($button_strip, $ ............ , $context, $txt, $scripturl;   // Create the buttons...  $buttons = array();  foreach ($button_strip  ............ ['test']) || !empty($context[$value['test']]))  $buttons[] = '<a href="' . $value['url'] . '"' . (isset($ ............ $txt[$value['text']] . '</span></a>';   if (empty($buttons))  return '';   // Make the last one, as easy  ............  possible.  $buttons[count($buttons) - 1] = str_replace('<span>', '< ............  class="last">', $buttons[count($buttons) - 1]);   echo '  <div class=" ............ ="clearfix">  <li>', implode('</li><li>', $buttons), '</li>  </ul>  </div>'; }  ?>  Thank you  ......
......  off, I currently and successfully integrated my SMF forum into my 4Images site through the procedure  ............  was the result of my issue. The ignored fields of SMF are to prevent forum viewers from registering  ............  automatically added through the 4Images site.  SMF Forum Integration into 4Images http://www. ............  only text. I have already made sure that the "Buttons" option is ON through the Admin > Current Themes  ............  seems to be right, but I have no idea why the buttons aren't showing up. The text is rather annoying  ............  look at when I want my custom buttons shown.  Here is my index.template.php file, if  ............  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. ............  class="smalltext">', theme_copyright(), '<br /><font color="#757575">Theme </font><font color="#858585" ............ ><b>Extreme6 By</b></font> <a href="http://www.fussilet.com" target="_blank" ............ <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:  ............ ="kwicks">';<br /><br /> // Show the [home] button.<br /> echo '<li><a href="', $scripturl, '"  ............ ="kwick opt1">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/'  ............ ></a></li>';<br /><br /> // Show the [help] button.<br /> echo '<li><a href="', $scripturl, '? ............ " class="kwick opt2" >', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/'  ............ ></li>';<br /><br /> // How about the [search] button?<br /> if ($context['allow_search'])<br />  ............ " class="kwick opt3">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/'  ............ " class="kwick opt4">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/'  ............ " class="kwick opt5">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/'  ............ =pm" class="kwick opt6">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/'  ............ ="margin: 0px 0;" border="0" /><span>' : $txt['smf199']), '</span></a></li>';<br /><br /> // The [ ............ " class="kwick opt7">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/'  ............ /a></li>';<br /> <br /> // The [member] list button :)<br /> if ($context['allow_memberlist'])<br / ............ " class="kwick opt8">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/'  ............ <br />// If the user is a guest, show [login] button.<br />// 4images hack<br />//if ($context['user'][ ............  />// If the user is a guest, also show [register] button.<br />//4images hack<br />//if ($context['user'][' ............ >';<br /><br />}<br /><br />// Generate a strip of buttons.<br />function template_button_strip($ ............ , $custom_td = '')<br />{<br /> global $settings, $buttons, $context, $txt, $scripturl;<br /><br /> //  ............  the buttons...<br /> foreach ($button_strip as $key => $ ............ $context[$value['test']]))<br /> {<br /> unset($button_strip[$key]);<br /> continue;<br /> }<br />  ............  (!isset($buttons[$key]) || $force_reset)<br /> $buttons[$key] =  ............ '>' . $txt[$value['text']] . '</a>';<br /><br /> $button_strip[$key] = $buttons[$key];<br /> }<br /><br />  ............  (empty($button_strip))<br /> return '<td> </td>';<br /><br />  ............ 'main' : 'mirror', 'tab_back">', implode(' | ', $button_strip) , '</td><br /> <td class="', $direction == ......
#436
SMF Coding Discussion / Slight modification to custom fields
marraskuu 08, 2008, 11:59:55 AP tekijältä SNewman
...... ="PHP, MySQL, bulletin, board, free, open, source, smf, simple, machines, forum" />  <script language=" ............ " src="http://www.psplockhaven.org/Themes/default/scripts/script.js?b4"></script>  <script language= ............ " src="http://www.psplockhaven.org/Themes/default/scripts/theme.js?b4"></script>  <script language=" ............  type="text/javascript"><!-- // --><![CDATA[  var smf_theme_url = "http://www.psplockhaven.org/Themes/ ............ ";  var smf_default_theme_url = "http://www.psplockhaven.org/ ............ /default";  var smf_images_url = "http://www.psplockhaven. ............ /Themes/default/images";  var smf_scripturl = "http://www. ............ .org/index.php";  var smf_iso_case_folding = false;  var smf_charset = " ............ /css" href="http://www.psplockhaven.org/Themes/default/style.css?b4" />  <link rel="stylesheet" type=" ............ /css" href="http://www.psplockhaven.org/Themes/default/css/print.css?b4" media="print" />  <link rel=" ............ " href="http://www.psplockhaven.org/Themes/default/css/index.css" />  <script language="JavaScript"  ............ " src="http://www.psplockhaven.org/Themes/default/scripts/captcha.js"></script>   <script language=" ............  the main header object.  var mainHeader = new smfToggle("upshrink", false);  mainHeader.useCookie( ............ ="text" />  <input name="search" class="button" value="Search" type="submit" />  </p>  </ ............  <img src="http://www.psplockhaven.org/Themes/default/images/english/home.gif">  </a>    <a  ............  <img src="http://www.psplockhaven.org/Themes/default/images/english/forum.gif">  </a>    < ............  <img src="http://www.psplockhaven.org/Themes/default/images/english/help.gif">   </a>    < ............  <img src="http://www.psplockhaven.org/Themes/default/images/english/login.gif">  </a>    < ............  <img src="http://www.psplockhaven.org/Themes/default/images/english/register.gif">  </a>  </ ............ " src="http://www.psplockhaven.org/Themes/default/scripts/register.js"></script> <script language=" ............  == 'passwd' && document.forms.creator.smf_autov_pwmain.value != document.forms.creator. ............  'openid' ? false : true;  document.forms.creator.smf_autov_pwmain.disabled = currentAuthMethod == ' ............ ' ? false : true;  document.forms.creator.smf_autov_pwverify.disabled = currentAuthMethod == ' ............ ' ? false : true;  document.getElementById('smf_autov_pwmain_div').style.display =  ............ 'passwd' ? '' : 'none';  document.getElementById('smf_autov_pwverify_div').style.display =  ............  = '';  }  else  {  document.forms.creator.smf_autov_pwmain.style.backgroundColor = '';   ............ .forms.creator.smf_autov_pwverify.style.backgroundColor = '';   ............ == "passwd" && (isEmptyText(document.forms.creator.smf_autov_pwmain) || isEmptyText(document.forms. ............  <td>  <input type="text" name="user" id="smf_autov_username" size="30" tabindex="1" maxlength=" ............ " value="" />  <span id="smf_autov_username_div" style="display: none;">   ............  <a id="smf_autov_username_link" href="">  <img id=" ............ " src="http://www.psplockhaven.org/Themes/default/images/icons/field_check.gif" alt="*" />    ............  <td>  <input type="text" name="email" id="smf_autov_reserve1" size="30" tabindex="2" value="" /> ............   <input type="password" name="passwrd1" id="smf_autov_pwmain" size="30" tabindex="4" />   < ............  id="smf_autov_pwmain_div" style="display: none;">   ............ <img id="smf_autov_pwmain_img" src="http://www.psplockhaven. ............ /Themes/default/images/icons/field_invalid.gif" alt="*" />   ............   <input type="password" name="passwrd2" id="smf_autov_pwverify" size="30" tabindex="5" />  < ............  id="smf_autov_pwverify_div" style="display: none;">   ............  <img id="smf_autov_pwverify_img" src="http://www.psplockhaven. ............ /Themes/default/images/icons/field_valid.gif" alt="*" />  </ ............ <span><img src="http://www.psplockhaven.org/Themes/default/images/openid.gif" alt="OpenID" /></span>  </ ............  "Password is valid"  };  verificationHandle = new smfRegister("creator", 0, regTextStrings);  // Update  ............ // --><![CDATA[  verificationregisterHandle = new smfCaptcha("http://www.psplockhaven.org/index.php? ............ " style="display: inline; visibility: visible; font-family: Verdana, Arial, sans-serif;"><a href=" ............  Forum" target="_blank" class="new_win">Powered by SMF 2.0 Beta 4</a> |  <a href="http://www. ............  Forum Software" target="_blank" class="new_win">SMF &copy; 2006&ndash;2008, Simple Machines LLC</a>   ............ </span></li>  <li><a id="button_xhtml" href="http://validator.w3.org/check/ ............  4.01!"><span>XHTML</span></a></li>  <li><a id="button_rss" href="http://www.psplockhaven.org/.xml/?type= ............ >RSS</span></a></li>   <li class="last"><a id="button_wap2" href="http://www.psplockhaven.org/index.php? ......
#437
Graphics and Templates / Expandable Width
marraskuu 03, 2008, 12:49:42 AP tekijältä Tibian
......  just installed SMF forums 1.1.6 and TP1.0.5 for my guild... but  ............  menu sub template should display all the relevant buttons the user<br /> wants and or needs.<br /><br />  ............ , $options, $txt;<br /><br /> /* Use images from default theme when using templates from the default theme? ............ <br /> if this is 'always', images from the default theme will be used.<br /> if this is 'defaults',  ............  from the default theme will only be used with default templates.< ............  is 'never' or isn't set at all, images from the default theme will not be used. */<br /> $settings[' ............  What document type definition is being used? (for font size and other issues.)<br /> 'xhtml' for an  ............ .<br /> This should probably be the version of SMF it was created for. */<br /> $settings[' ............ ['use_tabs'] = true;<br /><br /> /* Use plain buttons - as oppossed to text buttons? */<br /> $ ............ ['use_buttons'] = true;<br /><br /> /* Show sticky and lock  ............ ="PHP, MySQL, bulletin, board, free, open, source, smf, simple, machines, forum" /><br /> <script  ............ " type="text/javascript" src="', $settings['default_theme_url'], '/script.js?fin11"></script><br /> < ............ ="text/javascript"><!-- // --><![CDATA[<br /> var smf_theme_url = "', $settings['theme_url'], '";<br />  ............  var smf_images_url = "', $settings['images_url'], '";<br / ............ > var smf_scripturl = "', $scripturl, '";<br /> var  ............ '] ? 'true' : 'false', ';<br /> var smf_charset = "', $context['character_set'], '";<br /> ............ ="stylesheet" type="text/css" href="', $settings['default_theme_url'], '/print.css?fin11" media="print" />'; ............ /* Internet Explorer 4/5 and Opera 6 just don't do font sizes properly. (they are big...)<br /> Thus, in  ............  Explorer 4, 5, and Opera 6 this will show fonts one size smaller than usual.<br /> Note that  ............ ="stylesheet" type="text/css" href="', $settings['default_theme_url'], '/fonts-compat.css" />';<br /><br />  ............ (mode ? 1 : 0);';<br /> else<br /> echo '<br /> smf_setThemeOption("collapse_header", mode ? 1 : 0,  ............ <br /> document.getElementById("upshrink").src = smf_images_url + (mode ? "/upshrink2.gif" : "/ ............  ? 1 : 0);';<br /> else<br /> echo '<br /> smf_setThemeOption("collapse_header_ic", mode ? 1 : 0, ............ /> document.getElementById("upshrink_ic").src = smf_images_url + (mode ? "/expand.gif" : "/collapse. ............ ="titlebg2" height="32"><br /> <span style="font-size: 130%;"> ', $txt['hello_member_ndt'], ' <b>', ............ '], '</span>';<br /><br /> // this is the upshrink button for the user info section<br /> echo '<br /> < ............ " type="text/javascript" src="', $settings['default_theme_url'], '/sha1.js"></script><br /><br />  ............ "><br /> <option value="60">', $txt['smf53'], '</option><br /> <option value=" ............ ">', $txt['smf47'], '</option><br /> <option value=" ............ ">', $txt['smf48'], '</option><br /> <option value=" ............ ">', $txt['smf49'], '</option><br /> <option value="-1"  ............ ="selected">', $txt['smf50'], '</option><br /> </select><br />  ............  <input class="button" type="submit" value="', $txt[34], '" /><br /><br  ............ /> <span class="middletext">', $txt['smf52'], '</span><br /> <input type="hidden"  ............ ="width: 190px;" />&nbsp;<br /> <input class="button" type="submit" name="submit" value="', $txt[182],  ............ /javascript"><!-- // --><![CDATA[<br /> function smfFooterHighlight(element, value)<br /> {<br />  ............ .src = smf_images_url + "/" + (value ? "h_" : "") + element. ............ "http://www.m3talc0re.com/" target="_blank" style="font-size:10px;">m3talc0re</a>.<br /> </td><br />  ............ ="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 /><br /> window.onload = smf_codeFix;<br /><br /> function smf_codeFix()<br / ............ ;<br /><br /> echo '<div class="nav" style="font-size: smaller; margin-bottom: 2ex; margin-top:  ............ -navigation">';<br /><br /> // Show the [home] button.<br /> echo ($current_action=='home' || $context[' ............ = 'home' ? '' : '';<br /><br /> // Show the [help] button.<br /> echo ($current_action == 'help' || $ ............ ' ? '' : '';<br /><br /> // How about the [search] button?<br /> if ($context['allow_search'])<br /> echo ( ............ ' ? '' : '';<br /><br /> // 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 == ......
#438
Install and Upgrade Help / Menu not working. Please help
lokakuu 21, 2008, 06:22:37 AP tekijältä mike810
......  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  ............ <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 />  ............ /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, ............  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 />  ............ );';<br /> else<br /> echo '<br /> smf_setThemeOption("collapse_header", mode ? 1 : 0,  ............  document.getElementById("upshrink").src = smf_images_url + (mode ? "/upshrink2.gif" : "/ ............ ';<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. ............  /> echo '<br /> <span style="font-family: Verdana, sans-serif; font-size: 140%; ">', ............  <img src="', $settings['images_url'], '/smflogo.gif" style="margin: 2px;" alt="" /><br />  ............ " 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 />  ............  <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 /> < ............ "><!-- // --><![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 /> <span class="smalltext">', $txt['smf301'], $context['load_time'], $txt['smf302'], $ ............ ['load_queries'], $txt['smf302b'], '</span>';<br /><br /> // This is an  ............  '<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:  ............  '">&nbsp;</td>';<br /><br /> // Show the [home] button.<br /> echo ($current_action=='home' || $ ............ ;</td>' : '';<br /><br /> // Show the [help] button.<br /> echo ($current_action == 'help' || $ ............ >' : '';<br /><br /> // How about the [search] button?<br /> if ($context['allow_search'])<br />  ............ ;</td>' : '';<br /><br /> // the [member] list button<br /> if ($context['allow_memberlist'])<br />  ............ /><br /> // If the user is a guest, show [login] button.<br /> if ($context['user']['is_guest'])<br />  ............  // If the user is a guest, also show [register] button.<br /> if ($context['user']['is_guest'])<br />  ............ >';<br /><br />}<br /><br />// Generate a strip of buttons.<br />function template_button_strip($ ............ $custom_td = '')<br />{<br /> global $settings, $buttons, $context, $txt, $scripturl;<br /><br /> //  ............  the buttons...<br /> foreach ($button_strip as $key => $ ............ ['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 '<td>&nbsp;</td>';<br /> ............ ', 'tab_back">', implode(' &nbsp;|&nbsp; ', $button_strip) , '</td><br /> <td class="', $ ......
#439
SMF 1.1.x Support / Template editing help!
lokakuu 18, 2008, 01:10:58 IP tekijältä David Benjamin
......  Koodi [Valitse] Laajenna  '; if (function_exists('smfshout'))  smfshout(); echo '  to index.template  ............  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" : "/ ............  ? 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. ............  // If the user is a guest, also show [register] button.<br /> if ($context['user']['is_guest'])<br />  ............ <br /> // If the user is a guest, show [login] button.<br /> if ($context['user']['is_guest'])<br />  ............ " type="text/javascript" src="', $settings['default_theme_url'], '/sha1.js"></script><br /> <form  ............ <br /> <div style="float: left; width: 2ex; font-size: 2em; color: red;">!!</div><br /> <b  ............ > echo '<br /> <div class="smalltext">', $txt['smf301'], $context['load_time'], $txt['smf302'], $ ............ ['load_queries'], $txt['smf302b'], '</div><br /> </div>';<br /> <br /> //  ............ > 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 />echo '<br /> <ul>';<br /> <br /> // Show the default [home] button.<br /> echo ($current_action=='home' ............ ] , '</a></li>';<br /> <br /> // Show the [help] button.<br /> echo ($current_action=='help' || $context[' ............ '</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 />  ............  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 /><br />?> ......
......  themes, porfavor una colaboracioncilla.  pd. mi smf es 1.1.6 por si aca.   masomenos obtuve este  ............  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. ............ " type="text/javascript" src="', $settings['default_theme_url'], '/sha1.js"></script><br /> <form  ............  '<br /> <br /><span class="smalltext">', $txt['smf301'], $context['load_time'], $txt['smf302'], $ ............ ['load_queries'], $txt['smf302b'], '</span>';<br /><br /> // This is an  ............ > echo '<br /> window.addEventListener("load", smf_codeFix, false);<br /><br /> function  ............ > echo '<br /> window.addEventListener("load", smf_codeFix, false);<br /> function smf_codeFix()< ............  = window.onload;<br /> window.onload = smf_codeFix;<br /><br /> function smf_codeFix()<br / ............ ;<br /><br /> echo '<div class="nav" style="font-size: smaller; margin-bottom: 2ex; margin-top:  ............ >';<br /> // Show the [home] button.<br /> echo '<li><a' , $current_action=='home' ............  /><br /> // Show the [help] button.<br /> echo '<li><a'  ............  /> // How about the [search] button?<br /> if ($context['allow_search'])<br />  ............  /><br /> // the [member] list button<br /> if ($context[' ............  // If the user is a guest, show [login] button.<br /> if ($context['user' ............  // If the user is a guest, also show [register] button.<br /> if ($context['user' ............ >';<br /><br />}<br /><br />// Generate a strip of buttons.<br />function template_button_strip($ ............ , $custom_td = '')<br />{<br /> global $settings, $buttons, $context, $txt, $scripturl;<br /><br /> //  ............  the buttons...<br /> foreach ($button_strip as $key => $ ............ $context[$value['test']]))<br /> {<br /> unset($button_strip[$key]);<br /> continue;<br /> }<br />  ............  (!isset($buttons[$key]) || $force_reset)<br /> $buttons[$key] =  ............ '>' . $txt[$value['text']] . '</a>';<br /><br /> $button_strip[$key] = $buttons[$key];<br /> }<br /><br />  ............  (empty($button_strip))<br /> return '<td>&nbsp;</td>';<br /><br  ............ ', 'tab_back">', implode(' &nbsp;|&nbsp; ', $button_strip) , '</td><br /> <td class="', $direction == ......
Advertisement: