توجه ! این یک نسخه آرشیو شده میباشد و در این حالت شما عکسی را مشاهده نمیکنید برای مشاهده کامل متن و عکسها بر روی لینک مقابل کلیک کنید : دکمه ها به جای نوشته ها
aaaaallllliiiii
07-08-2009, 02:39 AM
<b><font color=red>فقط کاربران عضو انجمن می توانند لینک ها را مشاهده کنند</font></b>
چه طور میشه به جای متن،دکمه هاش رو قرار داد ؟
مثل همین فروم مامبولرن
firoozmandan
07-08-2009, 07:36 AM
سلام!
در قسمت مدیریت انجمن روی "تنظيمات قالب جاري" کلیک کنید
گزینه "نشان دادن دکمه و عکس به جاي متن" را فعال کنید
یا علی
aaaaallllliiiii
07-08-2009, 08:43 AM
این دکمه فعال هست.ولی نمایش نمیده
عکس های دکمه ها رو توی پوشه ی ایمیج در قالب،چه جوری باید بریزیم؟ احتمال میدم مشکل از اونه
firoozmandan
07-08-2009, 09:12 AM
سلام
در این صورت مشکل از قالب هست . ابتدا از فایلهای قالب بکاپ بگیرید و راه زیر رو امتحان کنید :
فایل index.template.php :
$settings['use_tabs'] رو برابر با false ست کنید
$settings['use_buttons'] را برابر با false ست کنید
این کد رو پیدا کنید :
// Generate a strip of buttons.
function template_button_strip($button_strip, $direction = 'top', $force_reset = false, $custom_td = '')
{
global $settings, $buttons, $context, $txt, $scripturl;
// Create the buttons...
foreach ($button_strip as $key => $value)
{
if (isset($value['test']) && empty($context[$value['test']]))
{
unset($button_strip[$key]);
continue;
}
elseif (!isset($buttons[$key]) || $force_reset)
$buttons[$key] = '<a href="' . $value['url'] . '" ' .( isset($value['custom']) ? $value['custom'] : '') . '>' . $txt[$value['text']] . '</a>';
$button_strip[$key] = $buttons[$key];
}
if (empty($button_strip))
return '<td>&nbsp;</td>';
echo '
<td class="maintab_back">', implode('', $button_strip) , '</td>';
}
با کد زیر جایگزین کنید :
// Generate a strip of buttons, out of buttons.
function template_button_strip($button_strip, $direction = 'top', $force_reset = false, $custom_td = '')
{
global $settings, $buttons, $context, $txt, $scripturl;
if (empty($button_strip))
return '';
// Create the buttons...
foreach ($button_strip as $key => $value)
{
if (isset($value['test']) && empty($context[$value['test']]))
{
unset($button_strip[$key]);
continue;
}
elseif (!isset($buttons[$key]) || $force_reset)
$buttons[$key] = '<a href="' . $value['url'] . '" ' .( isset($value['custom']) ? $value['custom'] : '') . '>' . ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . ($value['lang'] ? $context['user']['language'] . '/' : '') . $value['image'] . '" alt="' . $txt[$value['text']] . '" border="0" />' : $txt[$value['text']]) . '</a>';
$button_strip[$key] = $buttons[$key];
}
echo '
<td height="40" valign="middle" ', $custom_td, '>', implode($context['menu_separator'], $button_strip) , '</td>';
}
یا علی
aaaaallllliiiii
07-08-2009, 01:47 PM
قالب ما ورژن 2.0 RC1 هست.
firoozmandan
07-08-2009, 01:52 PM
تفاوتی نمیکنه
aaaaallllliiiii
07-08-2009, 09:19 PM
// Generate a strip of buttons.
function template_button_strip($button_strip, $direction = 'top', $force_reset = false, $custom_td = '')
{
global $settings, $context, $txt, $scripturl;
// Create the buttons...
$buttons = array();
foreach ($button_strip as $key => $value)
{
if (!isset($value['test']) || !empty($context[$value['test']]))
$buttons[] = '<a href="' . $value['url'] . '" ' . (isset($value['custom']) ? $value['custom'] : '') . '><span>' . $txt[$value['text']] . '</span></a>';
}
if (empty($buttons))
return '';
// Make the last one, as easy as possible.
$buttons[count($buttons) - 1] = str_replace('<span>', '<span class="last">', $buttons[count($buttons) - 1]);
echo '
<div class="buttonlist', $direction != 'top' ? '_bottom' : '', '">
<ul class="clearfix">
<li>', implode('</li><li>', $buttons), '</li>
</ul>
</div>';
}
?>
کد به این صورت هست.
firoozmandan
07-09-2009, 08:15 AM
شما از چه قالبی استفاده میکنید ؟
aaaaallllliiiii
07-09-2009, 11:34 AM
قالب جاری: Outline
<b><font color=red>فقط کاربران عضو انجمن می توانند لینک ها را مشاهده کنند</font></b>
این مساله به کجا رسید؟
من باید چی کار کنم؟
شما که گفتین فرقی نداره
firoozmandan
07-18-2009, 09:02 AM
سلام
قالب Outline هنوز برای نسخه 2 منتشر نشده !
<b><font color=red>فقط کاربران عضو انجمن می توانند لینک ها را مشاهده کنند</font></b>
یا علی
shayan72
08-03-2009, 01:58 AM
من از قالب outline استفاده می کنم smf ورژن 1.1.10 !
همین مشکل رو دارم چی کار باید بکنم ؟؟
firoozmandan
08-03-2009, 06:16 AM
سلام
فایل index.template.php رو باز کنید و عبارت زیر رو پیدا کنید :
/* Use plain buttons - as oppossed to text buttons? */
$settings['use_buttons'] = true;
true را به false تغییر بدید
کد زیر را پیدا کنید :
// Generate a strip of buttons.
function template_button_strip($button_strip, $direction = 'top', $force_reset = false, $custom_td = '')
{
global $settings, $buttons, $context, $txt, $scripturl;
// Create the buttons...
foreach ($button_strip as $key => $value)
{
if (isset($value['test']) && empty($context[$value['test']]))
{
unset($button_strip[$key]);
continue;
}
elseif (!isset($buttons[$key]) || $force_reset)
$buttons[$key] = '<a href="' . $value['url'] . '" ' .( isset($value['custom']) ? $value['custom'] : '') . '>' . $txt[$value['text']] . '</a>';
$button_strip[$key] = $buttons[$key];
}
if (empty($button_strip))
return '<td>&nbsp;</td>';
echo '
<td class="', $direction == 'top' ? 'main' : 'mirror', 'tab_' , $context['right_to_left'] ? 'last' : 'first' , '">&nbsp;</td>
<td class="', $direction == 'top' ? 'main' : 'mirror', 'tab_back">', implode(' &nbsp;|&nbsp; ', $button_strip) , '</td>
<td class="', $direction == 'top' ? 'main' : 'mirror', 'tab_' , $context['right_to_left'] ? 'first' : 'last' , '">&nbsp;</td>';
}
و با کد زیر جایگزین کنید :
// Generate a strip of buttons.
function template_button_strip($button_strip, $direction = 'top', $force_reset = false, $custom_td = '')
{
global $settings, $buttons, $context, $txt, $scripturl;
if (empty($button_strip))
return '';
// Create the buttons...
foreach ($button_strip as $key => $value)
{
if (isset($value['test']) && empty($context[$value['test']]))
{
unset($button_strip[$key]);
continue;
}
elseif (!isset($buttons[$key]) || $force_reset)
$buttons[$key] = '<a href="' . $value['url'] . '" ' .( isset($value['custom']) ? $value['custom'] : '') . '>' . ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . ($value['lang'] ? $context['user']['language'] . '/' : '') . $value['image'] . '" alt="' . $txt[$value['text']] . '" border="0" />' : $txt[$value['text']]) . '</a>';
$button_strip[$key] = $buttons[$key];
}
echo '
<td ', $custom_td, '>', implode($context['menu_separator'], $button_strip) , '</td>';
}
یا علی
shayan72
08-03-2009, 11:17 AM
مشکل رفع نشد ! :(
من فقط همین کدهایی که گفتین رو تغییر دادم اما درست نشد . دیگه هیچی رو نباید تغییر بدم ؟
shayan72
08-03-2009, 09:20 PM
ببخشید میشه رهنمایی کنین ؟ :-[
من مشکلم حل نشد !
لطفا بگین فایل عکس ها باید در چه شاخه ای باشه ؟ شاید اشکال از اونه !
کجا میشه آدرس این فایل رو تغییر داد ...
مرسی
firoozmandan
08-06-2009, 07:32 AM
سلام
در فولدر Themes\YourTemplateName\images شاخه جدیدی بسازید بنام persian
در این فولدر باید تصاویر مورد نظر رو قرار بدید .
برای اینکه کارتون ساده تر بشه از فولدر english یک کپی بگیرید و اون رو به persian تغییر نام بدید سپس تک تک دکمه ها رو ادیت کنید .
یا علی
aaaaallllliiiii
08-06-2009, 10:38 AM
hotfile.com/dl/9780280/30ca674/persian.rar.html
بفرمایید
این،دکمه هاست.
یا علی
vBulletin® v4.2.5, Copyright ©2000-2026, Jelsoft Enterprises Ltd.