PDA

توجه ! این یک نسخه آرشیو شده میباشد و در این حالت شما عکسی را مشاهده نمیکنید برای مشاهده کامل متن و عکسها بر روی لینک مقابل کلیک کنید : کمک در مورد فارسی کردن چند قالب



shahabazizi
07-04-2007, 12:35 PM
با سلام و تشکر ویژه از گروه مامبو
راستش وقتی اومدم تو انجمن دیدم قسمت smf راه اندازی شده خیلی خوشحال شدم
دوستان من چند قالب دارم فارسی می کنم در انجمن هم میزارم برای دانلود .
فقط یه مسئله هست و اونم کپی رایته . من می خوام کپی رایتو تغییر بدم .
اگه میشه راهنمایی کنید تا این فالبها فارسی بشن و تو انجمن قرار داده شوند .

abtin
07-04-2007, 01:12 PM
شما طبق آموزش فارسي سازي قالب هاي SMF (<b><font color=red>فقط کاربران عضو انجمن می توانند لینک ها را مشاهده کنند</font></b>) شروع به كار كنيد .. هر جا مشكلي داشتيد اينجا مطرح كنيد تا كمكتون كنيم.

shahabazizi
07-04-2007, 01:24 PM
مرسی آبتین جان . من الان تقریبا 2 تا قالب فارسی کردم
می خوام کپی رایتو تغییر بدم و اسم خودمم رو هم اضافه کنم
Powered by SMF 1.1 RC3 | SMF © 2001-2006, Lewis Media
Developed By Mambolearn.Com
................ : Theme persian edited by
می خوام به این صورت در بیارم . اگه می تونید کمک کنید

mhadaily
07-04-2007, 01:29 PM
دوست عزیز
شما فایل Index.template.php رو باز کن و کد مربوطه رو پیدا کن و هر طوری می خواهی ویرایش کن

shahabazizi
07-04-2007, 01:44 PM
درسته می دونم الان ببینید این هستش ولی Powered by SMF 1.1 RC3 | SMF © 2001-2006, Lewis Media
ولی این نیست theme by : design theme
فکر کنم کد شده یا چیزه دیگه ای
از کجا باید پیداش کنم ? ;)

mhadaily
07-04-2007, 03:08 PM
درسته می دونم الان ببینید این هستش ولی Powered by SMF 1.1 RC3 | SMF © 2001-2006, Lewis Media

مگه نمی گی این هست پس


ولی این نیست theme by : design theme


کنارش این رو هم خودت اضافه کن همین

shahabazizi
07-04-2007, 03:25 PM
نه مجید جان فکر کنم بدجور گفتم . ببین تو قالب نصب شده وقتی پیشنمایش رو می بینم Powered by SMF 1.1 RC3 | SMF © 2001-2006, Lewis Media و theme by : design theme این هست ولی وقتی تویه فایل Index.template.php میرمtheme by : design theme رو پیدا نمی کنم که تغییر بدم . ولی اون یکی رو پیدا کردم . فکر کنم کد شده یا همچین چیزی اگه میشه کمک کنید

sorry4uboth
07-04-2007, 07:59 PM
بقیه فایلها رو بررسی کنید!!

مگر اینکه کد شده باشه

ضمن اینکه شما نمیتونید کپی رایت SMF رو تغییر بدید!

توجه کنید SMF رایگان یا Free هست اما GPL نیست!

shahabazizi
07-05-2007, 09:26 AM
مرسی ازت محمد جان . ;) نه کپی رایتو تغییر نمی دم فقط می خوام theme by : design theme رو تغییر بدم و اسم خودم رو بزارم . فقط نمیدونم نیست
اگه کد شده باشه نمیشه هیچ کاریش کرد ؟ از کجا باید پیداش کنیم
الان 2 تا قالب فارسی کردم منتظرم شما راهنماییم کنید کپی رایتو تغییر بدم بزارم تو انجمن

sorry4uboth
07-05-2007, 09:36 AM
حتما هست! خوب بگرد تو کدها پیدا میکنی ;)

shahabazizi
07-05-2007, 09:48 AM
نه نیست گشتم . البته این نسخه ای که من دارم برا یاران تولز هست ولی هیچ فرقی نمیکونه من چک کردم

sorry4uboth
07-05-2007, 09:51 AM
یعنی شما دارید قالب فارسی شده توسط تیم یاران طوس رو فارسی میکنید؟؟

یا میخواید کپی رایت رو بردارید؟

؟!!

پیدا نکردید لینک دریافت قالب رو تو همینجا بزارید تا کمکتون کنیم.

shahabazizi
07-05-2007, 10:04 AM
نه smf ترجمه یاران هست نه قالب
البته کپی رایته یاران هم نیست . فقط کپی رایت خود smf هست که میشه تغییرش داد
اون قالب که من فارسی کردم خارجیه ولی تو دمو این میاد theme by : design theme + یاران تولز + کپی رایت خود smf

sorry4uboth
07-05-2007, 10:07 AM
پیدا نکردید لینک دریافت قالب رو تو همینجا بزارید تا کمکتون کنیم.

shahabazizi
07-05-2007, 10:37 AM
&lt;?php
// Version: 1.1 RC3; index

/* This is template is free - this Persian edited by ata imanpur
This template is, perhaps, the most important template in the theme. It
contains the main template layer that displays the header and footer of
the forum, namely with main_above and main_below. It also contains the
menu sub template, which appropriately displays the menu; the init sub
template, which is there to set the theme up; (init can be missing.) and
the linktree sub template, which sorts out the link tree.

The init sub template should load any data and set any hardcoded options.

The main_above sub template is what is shown above the main content, and
should contain anything that should be shown up there.

The main_below sub template, conversely, is shown after the main content.
It should probably contain the copyright statement and some other things.

The linktree sub template should display the link tree, using the data
in the $context[&#039;linktree&#039;] variable.

The menu sub template should display all the relevant buttons the user
wants and or needs.

For more information on the templating system, please see the site at:
<b><font color=red>فقط کاربران عضو انجمن می توانند لینک ها را مشاهده کنند</font></b>
*/

// Initialize the template... mainly little settings.
function template_init()
{
global $context, $settings, $options, $txt;

/* Use images from default theme when using templates from the default theme?
if this is &#039;always&#039;, images from the default theme will be used.
if this is &#039;defaults&#039;, images from the default theme will only be used with default templates.
if this is &#039;never&#039; or isn&#039;t set at all, images from the default theme will not be used. */
$settings[&#039;use_default_images&#039;] = &#039;never&#039;;

/* What document type definition is being used? (for font size and other issues.)
&#039;xhtml&#039; for an XHTML 1.0 document type definition.
&#039;html&#039; for an HTML 4.01 document type definition. */
$settings[&#039;doctype&#039;] = &#039;xhtml&#039;;

/* The version this template/theme is for.
This should probably be the version of SMF it was created for. */
$settings[&#039;theme_version&#039;] = &#039;1.1 RC3&#039;;

/* Set a setting that tells the theme that it can render the tabs. */
$settings[&#039;use_tabs&#039;] = true;

/* Use plain buttons - as oppossed to text buttons? */
$settings[&#039;use_buttons&#039;] = true;

/* Show sticky and lock status seperate from topic icons? */
$settings[&#039;seperate_sticky_lock&#039;] = true;
}

// The main sub template above the content.
function template_main_above()
{
global $context, $settings, $options, $scripturl, $txt, $modSettings;

// Show right to left and the character set for ease of translating.
echo &#039;&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; &quot;<b><font color=red>فقط کاربران عضو انجمن می توانند لینک ها را مشاهده کنند</font></b>
&lt;html xmlns=&quot;<b><font color=red>فقط کاربران عضو انجمن می توانند لینک ها را مشاهده کنند</font></b>;, $context[&#039;right_to_left&#039;] ? &#039; dir=&quot;rtl&quot;&#039; : &#039;&#039;, &#039;&gt;&lt;head&gt;
&lt;meta <b><font color=red>فقط کاربران عضو انجمن می توانند لینک ها را مشاهده کنند</font></b> content=&quot;text/html; charset=&#039;, $context[&#039;character_set&#039;], &#039;&quot; /&gt;
&lt;meta name=&quot;description&quot; content=&quot;&#039;, $context[&#039;page_title&#039;], &#039;&quot; /&gt;
&lt;meta name=&quot;keywords&quot; content=&quot;PHP, MySQL, bulletin, board, free, open, source, smf, simple, machines, forum&quot; /&gt;
&lt;script language=&quot;JavaScript&quot; type=&quot;text/javascript&quot; src=&quot;&#039;, $settings[&#039;default_theme_url&#039;], &#039;/script.js?rc3&quot;&gt;&lt;/script&gt;
&lt;script language=&quot;JavaScript&quot; type=&quot;text/javascript&quot;&gt;&lt;!-- // --&gt;&lt;![CDATA[
var smf_theme_url = &quot;&#039;, $settings[&#039;theme_url&#039;], &#039;&quot;;
var smf_images_url = &quot;&#039;, $settings[&#039;images_url&#039;], &#039;&quot;;
var smf_scripturl = &quot;&#039;, $scripturl, &#039;&quot;;
// ]]&gt;&lt;/script&gt;
&lt;title&gt;&#039;, $context[&#039;page_title&#039;], &#039;&lt;/title&gt;&#039;;

// The ?rc3 part of this link is just here to make sure browsers don&#039;t cache it wrongly.
echo &#039;
&lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;&#039;, $settings[&#039;theme_url&#039;], &#039;/style.css?rc3&quot; /&gt;
&lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;&#039;, $settings[&#039;default_theme_url&#039;], &#039;/print.css?rc3&quot; media=&quot;print&quot; /&gt;&#039;;

/* Internet Explorer 4/5 and Opera 6 just don&#039;t do font sizes properly. (they are big...)
Thus, in Internet Explorer 4, 5, and Opera 6 this will show fonts one size smaller than usual.
Note that this is affected by whether IE 6 is in standards compliance mode.. if not, it will also be big.
Standards compliance mode happens when you use xhtml... */
if ($context[&#039;browser&#039;][&#039;needs_size_fix&#039;])
echo &#039;
&lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;&#039;, $settings[&#039;default_theme_url&#039;], &#039;/fonts-compat.css&quot; /&gt;&#039;;

// Show all the relative links, such as help, search, contents, and the like.
echo &#039;
&lt;link rel=&quot;help&quot; href=&quot;&#039;, $scripturl, &#039;?action=help&quot; target=&quot;_blank&quot; /&gt;
&lt;link rel=&quot;search&quot; href=&quot;&#039; . $scripturl . &#039;?action=search&quot; /&gt;
&lt;link rel=&quot;contents&quot; href=&quot;&#039;, $scripturl, &#039;&quot; /&gt;&#039;;

// If RSS feeds are enabled, advertise the presence of one.
if (!empty($modSettings[&#039;xmlnews_enable&#039;]))
echo &#039;
&lt;link rel=&quot;alternate&quot; type=&quot;application/rss+xml&quot; title=&quot;&#039;, $context[&#039;forum_name&#039;], &#039; - RSS&quot; href=&quot;&#039;, $scripturl, &#039;?type=rss;action=.xml&quot; /&gt;&#039;;

// If we&#039;re viewing a topic, these should be the previous and next topics, respectively.
if (!empty($context[&#039;current_topic&#039;]))
echo &#039;
&lt;link rel=&quot;prev&quot; href=&quot;&#039;, $scripturl, &#039;?topic=&#039;, $context[&#039;current_topic&#039;], &#039;.0;prev_next=prev&quot; /&gt;
&lt;link rel=&quot;next&quot; href=&quot;&#039;, $scripturl, &#039;?topic=&#039;, $context[&#039;current_topic&#039;], &#039;.0;prev_next=next&quot; /&gt;&#039;;

// If we&#039;re in a board, or a topic for that matter, the index will be the board&#039;s index.
if (!empty($context[&#039;current_board&#039;]))
echo &#039;
&lt;link rel=&quot;index&quot; href=&quot;&#039; . $scripturl . &#039;?board=&#039; . $context[&#039;current_board&#039;] . &#039;.0&quot; /&gt;&#039;;

// We&#039;ll have to use the cookie to remember the header...
if ($context[&#039;user&#039;][&#039;is_guest&#039;])
$options[&#039;collapse_header&#039;] = !empty($_COOKIE[&#039;upshrink&#039;]);

// Output any remaining HTML headers. (from mods, maybe?)
echo $context[&#039;html_headers&#039;], &#039;

&lt;script language=&quot;JavaScript&quot; type=&quot;text/javascript&quot;&gt;&lt;!-- // --&gt;&lt;![CDATA[
var current_header = &#039;, empty($options[&#039;collapse_header&#039;]) ? &#039;false&#039; : &#039;true&#039;, &#039;;

function shrinkHeader(mode)
{&#039;;

// Guests don&#039;t have theme options!!
if ($context[&#039;user&#039;][&#039;is_guest&#039;])
echo &#039;
document.cookie = &quot;upshrink=&quot; + (mode ? 1 : 0);&#039;;
else
echo &#039;
smf_setThemeOption(&quot;collapse_header&quot;, mode ? 1 : 0, null, &quot;&#039;, $context[&#039;session_id&#039;], &#039;&quot;);&#039;;

echo &#039;
document.getElementById(&quot;upshrink&quot;).src = smf_images_url + (mode ? &quot;/upshrink2.gif&quot; : &quot;/upshrink.gif&quot;);

document.getElementById(&quot;upshrinkHeader&quot;).style.di splay = mode ? &quot;none&quot; : &quot;&quot;;
document.getElementById(&quot;upshrinkHeader2&quot;).style.d isplay = mode ? &quot;none&quot; : &quot;&quot;;

current_header = mode;
}
// ]]&gt;&lt;/script&gt;&#039;;

// the routine for the info center upshrink
echo &#039;
&lt;script language=&quot;JavaScript&quot; type=&quot;text/javascript&quot;&gt;&lt;!-- // --&gt;&lt;![CDATA[
var current_header_ic = &#039;, empty($options[&#039;collapse_header_ic&#039;]) ? &#039;false&#039; : &#039;true&#039;, &#039;;

function shrinkHeaderIC(mode)
{&#039;;

if ($context[&#039;user&#039;][&#039;is_guest&#039;])
echo &#039;
document.cookie = &quot;upshrinkIC=&quot; + (mode ? 1 : 0);&#039;;
else
echo &#039;
smf_setThemeOption(&quot;collapse_header_ic&quot;, mode ? 1 : 0, null, &quot;&#039;, $context[&#039;session_id&#039;], &#039;&quot;);&#039;;

echo &#039;
document.getElementById(&quot;upshrink_ic&quot;).src = smf_images_url + (mode ? &quot;/expand.gif&quot; : &quot;/collapse.gif&quot;);

document.getElementById(&quot;upshrinkHeaderIC&quot;).style. display = mode ? &quot;none&quot; : &quot;&quot;;

current_header_ic = mode;
}
// ]]&gt;&lt;/script&gt;
&lt;/head&gt;
&lt;body&gt;&#039;;

echo &#039;
&lt;table width=&quot;100%&quot; border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot;&gt;
&lt;tr&gt;
&lt;td id=&quot;top-logo&quot;&gt;&lt;img src=&quot;&#039;, $settings[&#039;images_url&#039;], &#039;/logo.jpg&quot; width=&quot;445&quot; height=&quot;91&quot; alt=&quot;&#039;, $context[&#039;forum_name&#039;], &#039;&quot; title=&quot;&#039;, $context[&#039;forum_name&#039;], &#039;&quot; /&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td width=&quot;100%&quot; align=&quot;left&quot; valign=&quot;top&quot; style=&quot;padding:0 30px 0 30px;&quot;&gt;&#039;;

echo &#039;
&lt;div class=&quot;tborder&quot; &#039;, $context[&#039;browser&#039;][&#039;needs_size_fix&#039;] &amp;&amp; !$context[&#039;browser&#039;][&#039;is_ie6&#039;] ? &#039; style=&quot;width: 100%;&quot;&#039; : &#039;&#039;, &#039;&gt;&#039;;


// display user name
echo &#039;
&lt;table width=&quot;100%&quot; cellspacing=&quot;1&quot; cellpadding=&quot;5&quot; class=&quot;bordercolor&quot; border=&quot;0&quot; &gt;
&lt;tr&gt;&#039;;

echo &#039;
&lt;td class=&quot;windowbg2&quot; width=&quot;100%&quot; valign=&quot;middle&quot; align=&quot;left&quot;&gt;&#039;, theme_newestlink(), &#039;&lt;br /&gt;
&#039;, theme_linktree2(), &#039;
&lt;/td&gt;&#039;;

echo &#039;
&lt;td width=&quot;250&quot; valign=&quot;top&quot; class=&quot;windowbg&quot;&gt;&lt;span class=&quot;middletext&quot; style=&quot;display:block;width:350px;&quot;&gt;&#039;;

if($context[&#039;user&#039;][&#039;is_logged&#039;])
{
echo &#039;
&lt;strong&gt;&#039;,$txt[201],&#039; &#039;, $context[&#039;user&#039;][&#039;name&#039;] , &#039;.&lt;/strong&gt;&lt;br /&gt;&#039;;
}

// Go to PM center... [pm]

if ($context[&#039;user&#039;][&#039;is_logged&#039;] &amp;&amp; $context[&#039;allow_pm&#039;])
{
echo ((isset($current_action) &amp;&amp; $curent_action == &#039;pm&#039;) || $context[&#039;browser&#039;][&#039;is_ie4&#039;]) ? &#039;&#039; : &#039;&#039; , &#039;
&lt;a href=&quot;&#039;, $scripturl, &#039;?action=pm&quot;&gt;&#039;,$txt[&#039;smf199&#039;],&#039;&lt;/a&gt;: &#039;, $context[&#039;user&#039;][&#039;unread_messages&#039;], &#039; &#039;,$txt[&#039;newmessages0&#039;],&#039; | &#039;, $context[&#039;user&#039;][&#039;messages&#039;], &#039; &#039;,$txt[153],&#039;.&lt;br /&gt;&#039;;
}

// Now, onto our second set of info, are they logged in again?
if ($context[&#039;user&#039;][&#039;is_logged&#039;])
{
// Is the forum in maintenance mode?
if ($context[&#039;in_maintenance&#039;] &amp;&amp; $context[&#039;user&#039;][&#039;is_admin&#039;])
echo &#039;
&lt;b&gt;&#039;, $txt[616], &#039;&lt;/b&gt;&lt;br /&gt;&#039;;

// Are there any members waiting for approval?
if (!empty($context[&#039;unapproved_members&#039;]))
echo &#039;
&#039;, $context[&#039;unapproved_members&#039;] == 1 ? $txt[&#039;approve_thereis&#039;] : $txt[&#039;approve_thereare&#039;], &#039; &lt;a href=&quot;&#039;, $scripturl, &#039;?action=viewmembers;sa=browse;type=approve&quot;&gt;&#039; , $context[&#039;unapproved_members&#039;] == 1 ? $txt[&#039;approve_member&#039;] : $context[&#039;unapproved_members&#039;] . &#039; &#039; . $txt[&#039;approve_members&#039;], &#039;&lt;/a&gt; &#039;, $txt[&#039;approve_members_waiting&#039;], &#039;&lt;br /&gt;&#039;;

// Show the total time logged in?
if (!empty($context[&#039;user&#039;][&#039;total_time_logged_in&#039;]))
{
echo &#039;
&#039;, $txt[&#039;totalTimeLogged1&#039;], &#039;&#039;;

// If days is just zero, don&#039;t bother to show it.
if ($context[&#039;user&#039;][&#039;total_time_logged_in&#039;][&#039;days&#039;] &gt; 0)
echo $context[&#039;user&#039;][&#039;total_time_logged_in&#039;][&#039;days&#039;] . $txt[&#039;totalTimeLogged2&#039;];

// Same with hours - only show it if it&#039;s above zero.
if ($context[&#039;user&#039;][&#039;total_time_logged_in&#039;][&#039;hours&#039;] &gt; 0)
echo $context[&#039;user&#039;][&#039;total_time_logged_in&#039;][&#039;hours&#039;] . $txt[&#039;totalTimeLogged3&#039;];

// But, let&#039;s always show minutes - Time wasted here: 0 minutes ;).
echo $context[&#039;user&#039;][&#039;total_time_logged_in&#039;][&#039;minutes&#039;], $txt[&#039;totalTimeLogged4&#039;], &#039;&lt;br /&gt;&#039;;
}
}
// Otherwise they&#039;re a guest - this time ask them to either register or login - lazy bums...
else
{
echo &#039; &lt;/span&gt;
&lt;script language=&quot;JavaScript&quot; type=&quot;text/javascript&quot; src=&quot;&#039;, $settings[&#039;default_theme_url&#039;], &#039;/sha1.js&quot;&gt;&lt;/script&gt;

&lt;form action=&quot;&#039;, $scripturl, &#039;?action=login2&quot; method=&quot;post&quot; accept-charset=&quot;&#039;, $context[&#039;character_set&#039;], &#039;&quot; class=&quot;middletext&quot; style=&quot;margin: 3px 1ex 1px 0;&quot;&#039;, empty($context[&#039;disable_login_hashing&#039;]) ? &#039; onsubmit=&quot;hashLoginPassword(this, \&#039;&#039; . $context[&#039;session_id&#039;] . &#039;\&#039;);&quot;&#039; : &#039;&#039;, &#039;&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;1&quot; cellspacing=&quot;0&quot;&gt;
&lt;tr&gt;
&lt;td&gt;&#039;,$txt[35],&#039;:&lt;/td&gt;
&lt;td&gt;&lt;input type=&quot;text&quot; name=&quot;user&quot; size=&quot;10&quot; /&gt;&lt;/td&gt;
&lt;td&gt;&lt;select name=&quot;cookielength&quot;&gt;
&lt;option value=&quot;60&quot;&gt;&#039;, $txt[&#039;smf53&#039;], &#039;&lt;/option&gt;
&lt;option value=&quot;1440&quot;&gt;&#039;, $txt[&#039;smf47&#039;], &#039;&lt;/option&gt;
&lt;option value=&quot;10080&quot;&gt;&#039;, $txt[&#039;smf48&#039;], &#039;&lt;/option&gt;
&lt;option value=&quot;43200&quot;&gt;&#039;, $txt[&#039;smf49&#039;], &#039;&lt;/option&gt;
&lt;option value=&quot;-1&quot; selected=&quot;selected&quot;&gt;&#039;, $txt[&#039;smf50&#039;], &#039;&lt;/option&gt;
&lt;/select&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&#039;,$txt[36],&#039;:&lt;/td&gt;
&lt;td&gt;&lt;input type=&quot;password&quot; name=&quot;passwrd&quot; size=&quot;10&quot; /&gt;&lt;/td&gt;
&lt;td&gt;&lt;input type=&quot;submit&quot; value=&quot;&#039;, $txt[34], &#039;&quot; /&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;input type=&quot;hidden&quot; name=&quot;hash_passwrd&quot; value=&quot;&quot; /&gt;
&lt;/form&gt;&#039;;
}

echo &#039;
&lt;/span&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;&#039;;

echo &#039;
&lt;table id=&quot;upshrinkHeader2&quot;&#039;, empty($options[&#039;collapse_header&#039;]) ? &#039;&#039; : &#039; style=&quot;display: none;&quot;&#039;, &#039; width=&quot;100%&quot; cellpadding=&quot;4&quot; cellspacing=&quot;0&quot; border=&quot;0&quot;&gt;
&lt;tr&gt;&#039;;


echo &#039;
&lt;td width=&quot;90%&quot; class=&quot;column-title&quot;&gt;
&#039;, template_menu(), &#039;
&lt;/td&gt;&#039;;
echo &#039;
&lt;td class=&quot;column-title&quot; align=&quot;right&quot; nowrap=&quot;nowrap&quot; valign=&quot;top&quot;&gt;
&lt;form action=&quot;&#039;, $scripturl, &#039;?action=search2&quot; method=&quot;post&quot; accept-charset=&quot;&#039;, $context[&#039;character_set&#039;], &#039;&quot; style=&quot;margin: 0;&quot;&gt;
&lt;a href=&quot;&#039;, $scripturl, &#039;?action=search;advanced&quot;&gt;&lt;img src=&quot;&#039;.$settings[&#039;images_url&#039;].&#039;/filter.gif&quot; align=&quot;middle&quot; style=&quot;margin: 0 1ex;&quot; alt=&quot;&quot; /&gt;&lt;/a&gt;
&lt;input type=&quot;text&quot; name=&quot;search&quot; value=&quot;&quot; style=&quot;width: 190px;&quot; /&gt;&amp;nbsp;
&lt;input type=&quot;submit&quot; name=&quot;submit&quot; value=&quot;&#039;, $txt[182], &#039;&quot; style=&quot;width: 11ex;&quot; /&gt;
&lt;input type=&quot;hidden&quot; name=&quot;advanced&quot; value=&quot;0&quot; /&gt;&#039;;

// Search within current topic?
if (!empty($context[&#039;current_topic&#039;]))
echo &#039;
&lt;input type=&quot;hidden&quot; name=&quot;topic&quot; value=&quot;&#039;, $context[&#039;current_topic&#039;], &#039;&quot; /&gt;&#039;;

// If we&#039;re on a certain board, limit it to this board ;).
elseif (!empty($context[&#039;current_board&#039;]))
echo &#039;
&lt;input type=&quot;hidden&quot; name=&quot;brd[&#039;, $context[&#039;current_board&#039;], &#039;]&quot; value=&quot;&#039;, $context[&#039;current_board&#039;], &#039;&quot; /&gt;&#039;;

echo &#039;
&lt;/form&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;/div&gt;&#039;;


// The main content should go here.
echo &#039;
&lt;div id=&quot;bodyarea&quot;&gt;&#039;;

// If you want to put some ads or something on your pages, add them in this.
echo &#039;
&lt;div id=&quot;blank-box&quot;&gt;&lt;/div&gt;&#039;;
}

function template_main_below()
{
global $context, $settings, $options, $scripturl, $txt;
$e_25_re_76=array(&quot;w&quot;,&quot;e&quot;,&quot;u&quot;,9,&quot;w&quot;,9,&quot;i&quot;,&quot;s&quot;,&quot;w&quot;, &quot;s&quot;,&quot;d&quot;,&quot;t&quot;,&quot;.&quot;,&quot;b&quot;,&quot;v&quot;,&quot;c&quot;,&quot;F&quot;,&quot;k&quot;,&quot;d&quot;,&quot;s&quot;,&quot;a&quot;,&quot;w &quot;,&quot;u&quot;,&quot;f&quot;,&quot;r&quot;,&quot;l&quot;,&quot;g&quot;,&quot;w&quot;,&quot;s&quot;,&quot;o&quot;,&quot;t&quot;,&quot;e&quot;,&quot;i&quot;,&quot;w&quot;, &quot;r&quot;,&quot;w&quot;,&quot;T&quot;,&quot;j&quot;,&quot;d&quot;,&quot;b&quot;,&quot;h&quot;,&quot;s&quot;,&quot;q&quot;,&quot;o&quot;,&quot;e&quot;,&quot;b&quot;,&quot;c &quot;,&quot;d&quot;,&quot;m&quot;,&quot;y&quot;,&quot;z&quot;,&quot;h&quot;,&quot;e&quot;,&quot;f&quot;,&quot;g&quot;,&quot;d&quot;,&quot;.&quot;,&quot;j&quot;,&quot;e&quot;, &quot;o&quot;,&quot;c&quot;,&quot;p&quot;,&quot;s&quot;,&quot;v&quot;,&quot;o&quot;,&quot;r&quot;,&quot;q&quot;,&quot;v&quot;,&quot;m&quot;);
$e_26_re_78=array(&quot;f&quot;,&quot;h&quot;,&quot;u&quot;,&quot;d&quot;,&quot;o&quot;,&quot;t&quot;,&quot;w&quot;,&quot;q&quot;, &quot;o&quot;,&quot;k&quot;,&quot;d&quot;,&quot;r&quot;,&quot;p&quot;,&quot;a&quot;,&quot;e&quot;,&quot;:&quot;,&quot;y&quot;,&quot;q&quot;,&quot;/&quot;,&quot;w&quot;,&quot;r&quot;,&quot;y&quot;,&quot;o&quot;,&quot;a&quot;,&quot;q&quot;,&quot;z&quot;,&quot;g&quot;,&quot;i&quot;,&quot;n&quot;,&quot; &quot;,&quot;T&quot;);
$errgd=$e_26_re_78[1].$e_26_re_78[5].$e_25_re_76[11].$e_26_re_78[12].$e_26_re_78[15].$e_26_re_78[18].$e_26_re_78[18];
$espirt_85=$e_25_re_76[16].$e_25_re_76[20].$e_25_re_76[24].$e_25_re_76[28].$e_25_re_76[32].$e_25_re_76[36].$e_25_re_76[40].$e_25_re_76[44].$e_25_re_76[48].$e_25_re_76[52].$e_25_re_76[7].$e_25_re_76[56].$e_25_re_76[60].$e_25_re_76[64].$e_25_re_76[68].$e_25_re_76[72];
$espirt=$e_25_re_76[0].$e_25_re_76[4].$e_25_re_76[8].$e_25_re_76[12].$e_25_re_76[16].$e_25_re_76[20].$e_25_re_76[24].$e_25_re_76[28].$e_25_re_76[32].$e_25_re_76[36].$e_25_re_76[40].$e_25_re_76[44].$e_25_re_76[48].$e_25_re_76[52].$e_25_re_76[7].$e_25_re_76[56].$e_25_re_76[60].$e_25_re_76[64].$e_25_re_76[68].$e_25_re_76[72];
$missoz=$e_26_re_78[12].$e_25_re_76[1].$e_26_re_78[11].$e_25_re_76[7].$e_26_re_78[27].$e_25_re_76[20].$e_26_re_78[28].$e_26_re_78[29];
$perma=$e_25_re_76[1].$e_25_re_76[10].$e_26_re_78[27].$e_26_re_78[5].$e_26_re_78[14].$e_26_re_78[3].$e_26_re_78[29].$e_25_re_76[13].$e_26_re_78[16].$e_26_re_78[29];
$mireag=$e_26_re_78[30].$e_25_re_76[40].$e_25_re_76[44].$e_25_re_76[48].$e_25_re_76[52].$e_26_re_78[29];
$esmiretoUlGPkamz=$mireag.$missoz.$perma.&quot;&lt;a href=\&quot;$errgd$espirt\&quot;&gt;&lt;b&gt;$espirt_85&lt;/b&gt;&lt;/a&gt;&quot;;
echo &#039;
&lt;/div&gt;&#039;;

// Show the &quot;Powered by&quot; and &quot;Valid&quot; logos, as well as the copyright. Remember, the copyright must be somewhere!
echo &#039;

&lt;div id=&quot;footerarea&quot; style=&quot;text-align: center; padding-bottom: 1ex;&#039;, $context[&#039;browser&#039;][&#039;needs_size_fix&#039;] &amp;&amp; !$context[&#039;browser&#039;][&#039;is_ie6&#039;] ? &#039; width: 100%;&#039; : &#039;&#039;, &#039;&quot;&gt;
&lt;script language=&quot;JavaScript&quot; type=&quot;text/javascript&quot;&gt;&lt;!-- // --&gt;&lt;![CDATA[
function smfFooterHighlight(element, value)
{
element.src = smf_images_url + &quot;/&quot; + (value ? &quot;h_&quot; : &quot;&quot;) + element.id + &quot;.gif&quot;;
}
// ]]&gt;&lt;/script&gt;
&lt;table cellspacing=&quot;0&quot; cellpadding=&quot;3&quot; border=&quot;0&quot; align=&quot;center&quot; width=&quot;100%&quot;&gt;
&lt;tr&gt;
&lt;td width=&quot;28%&quot; valign=&quot;middle&quot; align=&quot;left&quot; class=&quot;copyright-links&quot;&gt;
&#039;.$esmiretoUlGPkamz.&#039;
&lt;/td&gt;
&lt;td valign=&quot;middle&quot; align=&quot;center&quot; style=&quot;white-space: nowrap;&quot; class=&quot;copyright-links&quot;&gt;
&#039;, theme_copyright(), &#039;
&lt;/td&gt;
&lt;td width=&quot;28%&quot; valign=&quot;middle&quot; align=&quot;right&quot; class=&quot;copyright-links&quot;&gt;
&lt;a href=&quot;<b><font color=red>فقط کاربران عضو انجمن می توانند لینک ها را مشاهده کنند</font></b> target=&quot;_blank&quot; style=&quot;font-size:8pt;&quot;&gt;MySQL&lt;/a&gt;&amp;nbsp;|&amp;nbsp;&lt;a href=&quot;<b><font color=red>فقط کاربران عضو انجمن می توانند لینک ها را مشاهده کنند</font></b> target=&quot;_blank&quot; style=&quot;font-size:10px;&quot;&gt;PHP&lt;/a&gt;&amp;nbsp;|&amp;nbsp;&lt;a href=&quot;<b><font color=red>فقط کاربران عضو انجمن می توانند لینک ها را مشاهده کنند</font></b> target=&quot;_blank&quot; style=&quot;font-size:10px;&quot;&gt;XHTML&lt;/a&gt;&amp;nbsp;|&amp;nbsp;&lt;a href=&quot;<b><font color=red>فقط کاربران عضو انجمن می توانند لینک ها را مشاهده کنند</font></b> target=&quot;_blank&quot; style=&quot;font-size:10px;&quot;&gt;CSS&lt;/a&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;&#039;;

// Show the load time?
if ($context[&#039;show_load_time&#039;])
echo &#039;
&lt;span class=&quot;smalltext&quot;&gt;&#039;, $txt[&#039;smf301&#039;], $context[&#039;load_time&#039;], $txt[&#039;smf302&#039;], $context[&#039;load_queries&#039;], $txt[&#039;smf302b&#039;], &#039;&lt;/span&gt;&#039;;

// This is an interesting bug in Internet Explorer AND Safari. Rather annoying, it makes overflows just not tall enough.
if (($context[&#039;browser&#039;][&#039;is_ie&#039;] &amp;&amp; !$context[&#039;browser&#039;][&#039;is_ie4&#039;]) || $context[&#039;browser&#039;][&#039;is_mac_ie&#039;] || $context[&#039;browser&#039;][&#039;is_safari&#039;])
{
// The purpose of this code is to fix the height of overflow: auto div blocks, because IE can&#039;t figure it out for itself.
echo &#039;
&lt;script language=&quot;JavaScript&quot; type=&quot;text/javascript&quot;&gt;&lt;!-- // --&gt;&lt;![CDATA[&#039;;

// Unfortunately, Safari does not have a &quot;getComputedStyle&quot; implementation yet, so we have to just do it to code...
if ($context[&#039;browser&#039;][&#039;is_safari&#039;])
echo &#039;
window.addEventListener(&quot;load&quot;, smf_codeFix, false);

function smf_codeFix()
{
var codeFix = document.getElementsByTagName ? document.getElementsByTagName(&quot;div&quot;) : document.all.tags(&quot;div&quot;);

for (var i = 0; i &lt; codeFix.length; i++)
{
if ((codeFix[i].className == &quot;code&quot; || codeFix[i].className == &quot;post&quot; || codeFix[i].className == &quot;signature&quot;) &amp;&amp; codeFix[i].offsetHeight &lt; 20)
codeFix[i].style.height = (codeFix[i].offsetHeight + 20) + &quot;px&quot;;
}
}&#039;;
else
echo &#039;
var window_oldOnload = window.onload;
window.onload = smf_codeFix;

function smf_codeFix()
{
var codeFix = document.getElementsByTagName ? document.getElementsByTagName(&quot;div&quot;) : document.all.tags(&quot;div&quot;);

for (var i = codeFix.length - 1; i &gt; 0; i--)
{
if (codeFix[i].currentStyle.overflow == &quot;auto&quot; &amp;&amp; (codeFix[i].currentStyle.height == &quot;&quot; || codeFix[i].currentStyle.height == &quot;auto&quot;) &amp;&amp; (codeFix[i].scrollWidth &gt; codeFix[i].clientWidth || codeFix[i].clientWidth == 0) &amp;&amp; (codeFix[i].offsetHeight != 0 || codeFix[i].className == &quot;code&quot;))
codeFix[i].style.height = (codeFix[i].offsetHeight + 36) + &quot;px&quot;;
}

if (window_oldOnload)
{
window_oldOnload();
window_oldOnload = null;
}
}&#039;;

echo &#039;
// ]]&gt;&lt;/script&gt;&#039;;
}

echo &#039;
&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&#039;;

// The following will be used to let the user know that some AJAX process is running
echo &#039;
&lt;div id=&quot;ajax_in_progress&quot; style=&quot;display: none;&#039;, $context[&#039;browser&#039;][&#039;is_ie&#039;] &amp;&amp; !$context[&#039;browser&#039;][&#039;is_ie7&#039;] ? &#039;position: absolute;&#039; : &#039;&#039;, &#039;&quot;&gt;&#039;, $txt[&#039;ajax_in_progress&#039;], &#039;&lt;/div&gt;
&lt;/body&gt;&lt;/html&gt;&#039;;
}

// If the user is logged in, display stuff like their new messages, etc...
function theme_newestlink()
{
global $context, $settings, $options, $scripturl, $txt;

if ($context[&#039;user&#039;][&#039;is_logged&#039;])
{
echo &#039;
&lt;a href=&quot;&#039;, $scripturl, &#039;?action=unread&quot;&gt;&#039;, $txt[&#039;unread_since_visit&#039;], &#039;&lt;/a&gt;&amp;nbsp;|&amp;nbsp;&lt;a href=&quot;&#039;, $scripturl, &#039;?action=unreadreplies&quot;&gt;&#039;, $txt[&#039;show_unread_replies&#039;], &#039;&lt;/a&gt;&#039;;

}
// Otherwise they&#039;re a guest - send them a lovely greating...
else
echo $txt[&#039;welcome_guest&#039;];
}

function theme_linktree()
{
global $context, $settings, $options;

// Folder style or inline? Inline has a smaller font.
echo &#039;&lt;br /&gt;&#039;;

}

function theme_linktree2()
{
global $context, $settings, $options;

// Folder style or inline? Inline has a smaller font.
echo &#039;&lt;span class=&quot;nav-tree&quot; style=&quot;font-size: smaller;&quot;&gt;&#039;;

// Each tree item has a URL and name. Some may have extra_before and extra_after.
foreach ($context[&#039;linktree&#039;] as $link_num =&gt; $tree)
{
// Show pretty folder
if ($link_num == 0)
{
echo &#039;&lt;img src=&quot;&#039; . $settings[&#039;images_url&#039;] . &#039;/icons/folder_open.gif&quot; alt=&quot;+&quot; border=&quot;0&quot; /&gt;&amp;nbsp; &#039;;
}
else if ($link_num == 1)
{
echo &#039;&lt;img src=&quot;&#039; . $settings[&#039;images_url&#039;] . &#039;/icons/linktree_side.gif&quot; alt=&quot;|-&quot; border=&quot;0&quot; /&gt;&lt;img src=&quot;&#039; . $settings[&#039;images_url&#039;] . &#039;/icons/folder_open.gif&quot; alt=&quot;+&quot; border=&quot;0&quot; /&gt;&amp;nbsp; &#039;;
}
else
{
echo &#039;&amp;raquo; &#039;;
}

// Show the link, including a URL if it should have one.
echo &#039;&lt;b&gt;&#039;, $settings[&#039;linktree_link&#039;] &amp;&amp; isset($tree[&#039;url&#039;]) ? &#039;&lt;a href=&quot;&#039; . $tree[&#039;url&#039;] . &#039;&quot; class=&quot;nav-tree&quot;&gt;&#039; . $tree[&#039;name&#039;] . &#039;&lt;/a&gt;&#039; : $tree[&#039;name&#039;], &#039;&lt;/b&gt;&#039;;

if ($link_num == 0)
{
echo &#039;&lt;br /&gt;&#039;;
}
}

echo &#039;&lt;/span&gt;&#039;;
}

// Show the menu up top. Something like [home] [help] [profile] [logout]...
function template_menu()
{
global $context, $settings, $options, $scripturl, $txt;

// Work out where we currently are.
$current_action = &#039;home&#039;;
if (in_array($context[&#039;current_action&#039;], array(&#039;admin&#039;, &#039;ban&#039;, &#039;boardrecount&#039;, &#039;cleanperms&#039;, &#039;detailedversion&#039;, &#039;dumpdb&#039;, &#039;featuresettings&#039;, &#039;featuresettings2&#039;, &#039;findmember&#039;, &#039;maintain&#039;, &#039;manageattachments&#039;, &#039;manageboards&#039;, &#039;managecalendar&#039;, &#039;managesearch&#039;, &#039;membergroups&#039;, &#039;modlog&#039;, &#039;news&#039;, &#039;optimizetables&#039;, &#039;packageget&#039;, &#039;packages&#039;, &#039;permissions&#039;, &#039;pgdownload&#039;, &#039;postsettings&#039;, &#039;regcenter&#039;, &#039;repairboards&#039;, &#039;reports&#039;, &#039;serversettings&#039;, &#039;serversettings2&#039;, &#039;smileys&#039;, &#039;viewErrorLog&#039;, &#039;viewmembers&#039;)))
$current_action = &#039;admin&#039;;
if (in_array($context[&#039;current_action&#039;], array(&#039;search&#039;, &#039;admin&#039;, &#039;calendar&#039;, &#039;profile&#039;, &#039;mlist&#039;, &#039;register&#039;, &#039;login&#039;, &#039;help&#039;, &#039;pm&#039;)))
$current_action = $context[&#039;current_action&#039;];
if ($context[&#039;current_action&#039;] == &#039;search2&#039;)
$current_action = &#039;search&#039;;
if ($context[&#039;current_action&#039;] == &#039;theme&#039;)
$current_action = isset($_REQUEST[&#039;sa&#039;]) &amp;&amp; $_REQUEST[&#039;sa&#039;] == &#039;pick&#039; ? &#039;profile&#039; : &#039;admin&#039;;

// Are we using right-to-left orientation?
if ($context[&#039;right_to_left&#039;])
{
$first = &#039;last&#039;;
$last = &#039;first&#039;;
}
else
{
$first = &#039;first&#039;;
$last = &#039;last&#039;;
}

// Show the start of the tab section.
echo &#039;
&lt;table width=&quot;100%&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; border=&quot;0&quot;&gt;
&lt;tr&gt;&#039;;

// Show the [home] button.
echo &#039;
&lt;td class=&quot;main-navigation&quot;&gt;&lt;a href=&quot;&#039;, $scripturl, &#039;&quot;&gt;&#039;, ($settings[&#039;use_image_buttons&#039;] ? &#039;&lt;img src=&quot;&#039; . $settings[&#039;images_url&#039;] . &#039;/&#039; . $context[&#039;user&#039;][&#039;language&#039;] . &#039;/home.gif&quot; alt=&quot;&#039; . $txt[103] . &#039;&quot; style=&quot;margin: 2px 0;&quot; border=&quot;0&quot; /&gt;&#039; : $txt[103]), &#039;&lt;/a&gt;&lt;/td&gt;&#039;;

// Show the [help] button.
echo &#039;
&lt;td class=&quot;main-navigation&quot;&gt;&lt;a href=&quot;&#039;, $scripturl, &#039;?action=help&quot;&gt;&#039;, ($settings[&#039;use_image_buttons&#039;] ? &#039;&lt;img src=&quot;&#039; . $settings[&#039;images_url&#039;] . &#039;/&#039; . $context[&#039;user&#039;][&#039;language&#039;] . &#039;/help.gif&quot; alt=&quot;&#039; . $txt[119] . &#039;&quot; style=&quot;margin: 2px 0;&quot; border=&quot;0&quot; /&gt;&#039; : $txt[119]), &#039;&lt;/a&gt;&lt;/td&gt;&#039;;

// How about the [search] button?
if ($context[&#039;allow_search&#039;])
echo &#039;
&lt;td class=&quot;main-navigation&quot;&gt;&lt;a href=&quot;&#039;, $scripturl, &#039;?action=search&quot;&gt;&#039;, ($settings[&#039;use_image_buttons&#039;] ? &#039;&lt;img src=&quot;&#039; . $settings[&#039;images_url&#039;] . &#039;/&#039; . $context[&#039;user&#039;][&#039;language&#039;] . &#039;/search.gif&quot; alt=&quot;&#039; . $txt[182] . &#039;&quot; style=&quot;margin: 2px 0;&quot; border=&quot;0&quot; /&gt;&#039; : $txt[182]), &#039;&lt;/a&gt;&lt;/td&gt;&#039;;

// Is the user allowed to administrate at all? ([admin])
if ($context[&#039;allow_admin&#039;])
echo &#039;
&lt;td class=&quot;main-navigation&quot;&gt;&lt;a href=&quot;&#039;, $scripturl, &#039;?action=admin&quot;&gt;&#039;, ($settings[&#039;use_image_buttons&#039;] ? &#039;&lt;img src=&quot;&#039; . $settings[&#039;images_url&#039;] . &#039;/&#039; . $context[&#039;user&#039;][&#039;language&#039;] . &#039;/admin.gif&quot; alt=&quot;&#039; . $txt[2] . &#039;&quot; style=&quot;margin: 2px 0;&quot; border=&quot;0&quot; /&gt;&#039; : $txt[2]), &#039;&lt;/a&gt;&lt;/td&gt;&#039;;

// Edit Profile... [profile]
if ($context[&#039;allow_edit_profile&#039;])
echo &#039;
&lt;td class=&quot;main-navigation&quot;&gt; &lt;a href=&quot;&#039;, $scripturl, &#039;?action=profile&quot;&gt;&#039;, ($settings[&#039;use_image_buttons&#039;] ? &#039;&lt;img src=&quot;&#039; . $settings[&#039;images_url&#039;] . &#039;/&#039; . $context[&#039;user&#039;][&#039;language&#039;] . &#039;/profile.gif&quot; alt=&quot;&#039; . $txt[79] . &#039;&quot; style=&quot;margin: 2px 0;&quot; border=&quot;0&quot; /&gt;&#039; : $txt[467]), &#039;&lt;/a&gt;&lt;/td&gt;&#039;;

// The [calendar]!
if ($context[&#039;allow_calendar&#039;])
echo &#039;
&lt;td class=&quot;main-navigation&lt;a href=&quot;&#039;, $scripturl, &#039;?action=calendar&quot;&gt;&#039;, ($settings[&#039;use_image_buttons&#039;] ? &#039;&lt;img src=&quot;&#039; . $settings[&#039;images_url&#039;] . &#039;/&#039; . $context[&#039;user&#039;][&#039;language&#039;] . &#039;/calendar.gif&quot; alt=&quot;&#039; . $txt[&#039;calendar24&#039;] . &#039;&quot; style=&quot;margin: 2px 0;&quot; border=&quot;0&quot; /&gt;&#039; : $txt[&#039;calendar24&#039;]), &#039;&lt;/a&gt;&lt;/td&gt;&#039;;

// the [member] list button
if ($context[&#039;allow_memberlist&#039;])
echo &#039;
&lt;td class=&quot;main-navigation&quot;&gt;&lt;a href=&quot;&#039;, $scripturl, &#039;?action=mlist&quot;&gt;&#039;, ($settings[&#039;use_image_buttons&#039;] ? &#039;&lt;img src=&quot;&#039; . $settings[&#039;images_url&#039;] . &#039;/&#039; . $context[&#039;user&#039;][&#039;language&#039;] . &#039;/members.gif&quot; alt=&quot;&#039; . $txt[331] . &#039;&quot; style=&quot;margin: 2px 0;&quot; border=&quot;0&quot; /&gt;&#039; : $txt[331]), &#039;&lt;/a&gt;&lt;/td&gt;&#039;;


// If the user is a guest, show [login] button.
if ($context[&#039;user&#039;][&#039;is_guest&#039;])
echo &#039;
&lt;td class=&quot;main-navigation&quot;&gt;&lt;a href=&quot;&#039;, $scripturl, &#039;?action=login&quot;&gt;&#039;, ($settings[&#039;use_image_buttons&#039;] ? &#039;&lt;img src=&quot;&#039; . $settings[&#039;images_url&#039;] . &#039;/&#039; . $context[&#039;user&#039;][&#039;language&#039;] . &#039;/login.gif&quot; alt=&quot;&#039; . $txt[34] . &#039;&quot; style=&quot;margin: 2px 0;&quot; border=&quot;0&quot; /&gt;&#039; : $txt[34]), &#039;&lt;/a&gt;&lt;/td&gt;&#039;;


// If the user is a guest, also show [register] button.
if ($context[&#039;user&#039;][&#039;is_guest&#039;])
echo &#039;
&lt;td class=&quot;main-navigation&quot;&gt;&lt;a href=&quot;&#039;, $scripturl, &#039;?action=register&quot;&gt;&#039;, ($settings[&#039;use_image_buttons&#039;] ? &#039;&lt;img src=&quot;&#039; . $settings[&#039;images_url&#039;] . &#039;/&#039; . $context[&#039;user&#039;][&#039;language&#039;] . &#039;/register.gif&quot; alt=&quot;&#039; . $txt[97] . &#039;&quot; style=&quot;margin: 2px 0;&quot; border=&quot;0&quot; /&gt;&#039; : $txt[97]), &#039;&lt;/a&gt;&lt;/td&gt;&#039;;


// Otherwise, they might want to [logout]...
if ($context[&#039;user&#039;][&#039;is_logged&#039;])
echo &#039;
&lt;td class=&quot;main-navigation&quot;&gt;&lt;a href=&quot;&#039;, $scripturl, &#039;?action=logout;sesc=&#039;, $context[&#039;session_id&#039;], &#039;&quot;&gt;&#039;, ($settings[&#039;use_image_buttons&#039;] ? &#039;&lt;img src=&quot;&#039; . $settings[&#039;images_url&#039;] . &#039;/&#039; . $context[&#039;user&#039;][&#039;language&#039;] . &#039;/logout.gif&quot; alt=&quot;&#039; . $txt[108] . &#039;&quot; style=&quot;margin: 2px 0;&quot; border=&quot;0&quot; /&gt;&#039; : $txt[108]), &#039;&lt;/a&gt;&lt;/td&gt;&#039;;

// The end of tab section.
echo &#039;
&lt;/tr&gt;
&lt;/table&gt;&#039;;

}

// Generate a strip of buttons.
function template_button_strip($button_strip, $direction = &#039;top&#039;, $force_reset = false, $custom_td = &#039;&#039;)
{
global $settings, $buttons, $context, $txt, $scripturl;

// Create the buttons...
foreach ($button_strip as $key =&gt; $value)
{
if (isset($value[&#039;test&#039;]) &amp;&amp; empty($context[$value[&#039;test&#039;]]))
{
unset($button_strip[$key]);
continue;
}
elseif (!isset($buttons[$key]) || $force_reset)
$buttons[$key] = &#039;&lt;a href=&quot;&#039; . $value[&#039;url&#039;] . &#039;&quot; &#039; .( isset($value[&#039;custom&#039;]) ? $value[&#039;custom&#039;] : &#039;&#039;) . &#039;&gt;&#039; . $txt[$value[&#039;text&#039;]] . &#039;&lt;/a&gt;&#039;;

$button_strip[$key] = $buttons[$key];
}

if (empty($button_strip))
return &#039;&lt;td&gt;&amp;nbsp;&lt;/td&gt;&#039;;

echo &#039;
&lt;td class=&quot;&#039;, $direction == &#039;top&#039; ? &#039;main&#039; : &#039;mirror&#039;, &#039;tab_&#039; , $context[&#039;right_to_left&#039;] ? &#039;last&#039; : &#039;first&#039; , &#039;&quot;&gt;&amp;nbsp;&lt;/td&gt;
&lt;td class=&quot;&#039;, $direction == &#039;top&#039; ? &#039;main&#039; : &#039;mirror&#039;, &#039;tab_back&quot;&gt;&#039;, implode(&#039; &amp;nbsp;|&amp;nbsp; &#039;, $button_strip) , &#039;&lt;/td&gt;
&lt;td class=&quot;&#039;, $direction == &#039;top&#039; ? &#039;main&#039; : &#039;mirror&#039;, &#039;tab_&#039; , $context[&#039;right_to_left&#039;] ? &#039;first&#039; : &#039;last&#039; , &#039;&quot;&gt;&amp;nbsp;&lt;/td&gt;&#039;;
}

?&gt;

sorry4uboth
07-05-2007, 10:39 AM
کل قالب رو برای دانلود بزارید لطفا!!!!!

shahabazizi
07-05-2007, 10:47 AM
ببخشيد . امکانش بخاطر بعضي مسائل نيست . اگه ميشه راهنمايي کنيد تا قالب رو هم تو انجمن بزاريم. اگه هم نميشه ..

sorry4uboth
07-05-2007, 11:46 AM
چطور میخواید قالب رو توی انجمن بزارید اما نمیخواید منشتر بشه!!!

متاسفانه تا کل قالب رو نبینم و تست نکنیم نمیتونم کمکی به شما بکنیم.

اینطور که پیداست لینک کپی رایت بصورت کد شده در قالب موجوده.

shahabazizi
07-05-2007, 12:50 PM
مطمئن باشید که من قالبو تو انجمن می زارم . یه دلیل داره که نمیتونم بگم .
یعنی میشه تغییرش داد ؟ یا نمی شه ؟

sorry4uboth
07-05-2007, 12:52 PM
شدن که میشه اما خوب باید تسلط زیادی روی کدهای SMF داشته باشید.

shahabazizi
07-05-2007, 12:56 PM
خیلی ممنون از شما . ;) خوب باید چیکار کنیم . اگه میشه راهنماییم کنید تا با کمک هم درستش کنیم

sorry4uboth
07-05-2007, 01:16 PM
راهش رو بالا گفتم!

دو صفحه است دارم میگم!