نمایش نتایج: از 1 به 3 از 3

موضوع: آموزش قرار دادن عكس كنار انجمن ها در اس ام اف SMF

  1. #1
    مدیر کل سایت
    قمیا آواتار ها
    تاریخ عضویت
    Jun 2010
    محل سکونت
    قم
    نوشته ها
    1,672
    نوشته های وبلاگ
    144
    میزان امتیاز
    10

    پیش فرض آموزش قرار دادن عكس كنار انجمن ها در اس ام اف SMF

    سايت قميا
    مديراني كه از انجمن ساز اس ام اف نسخه 2 استفاده ميكنند ميتونن براي زيبا سازي صفحه اصلي انجمنشون از اين آموزش استفاده كنند

    قرار دادن عكس يا آيكن مرتبط در كنار هر انجمن

    ميتونيد از مد زير استفاده كنيد

    کد:
    http://custom.simplemachines.org/mods/index.php?mod=511
    به صورت دستي هم اگر ميخواهيد نصب كنيد به اين صورت است
    بايد فايل هاي BoardIndex.template.php و MessageIndex.template.php قالبتونو ويرايش كنيد.قالبي كه نصب هست و استفاده ميكنيد

    اين قسمت را در قالب Boradindex پيدا كنيد

    کد PHP:
                /* Each board in each category's boards has:
                new (is it new?), id, name, description, moderators (see below), link_moderators (just a list.),
                children (see below.), link_children (easier to use.), children_new (are they new?),
                topics (# of), posts (# of), link, href, and last_post. (see below.) */
                
    foreach ($category['boards'] as $board)
                {
                    echo 
    '
                    <tr id="board_'
    $board['id'], '" class="windowbg2">
                        <td class="icon windowbg"'
    , !empty($board['children']) ? ' rowspan="2"' '''>
                            <a href="'
    , ($board['is_redirect'] || $context['user']['is_guest'] ? $board['href'] : $scripturl '?action=unread;board=' $board['id'] . '.0;children'), '">';

                    
    // If the board or children is new, show an indicator.
                    
    if ($board['new'] || $board['children_new'])
                        echo 
    '
                                <img src="'
    $settings['images_url'], '/'$context['theme_variant_url'], 'on'$board['new'] ? '' '2''.png" alt="'$txt['new_posts'], '" title="'$txt['new_posts'], '" />';
                    
    // Is it a redirection board?
                    
    elseif ($board['is_redirect'])
                        echo 
    '
                                <img src="'
    $settings['images_url'], '/'$context['theme_variant_url'], 'redirect.png" alt="*" title="*" />';
                    
    // No new posts at all! The agony!!
                    
    else
                        echo 
    '
                                <img src="'
    $settings['images_url'], '/'$context['theme_variant_url'], 'off.png" alt="'$txt['old_posts'], '" title="'$txt['old_posts'], '" />';

                    echo 
    '
                            </a>
                        </td> 
    اين كد ها را جايگزين كنيد

    کد PHP:
                /* Each board in each category's boards has:
                new (is it new?), id, name, description, moderators (see below), link_moderators (just a list.),
                children (see below.), link_children (easier to use.), children_new (are they new?),
                topics (# of), posts (# of), link, href, and last_post. (see below.) */
                
    foreach ($category['boards'] as $board)
                {
                    echo 
    '
                    <tr id="board_'
    $board['id'], '" class="windowbg2">
                        <td class="icon windowbg"'
    , !empty($board['children']) ? ' rowspan="2"' '''>
                            <a href="'
    , ($board['is_redirect'] || $context['user']['is_guest'] ? $board['href'] : $scripturl '?action=unread;board=' $board['id'] . '.0;children'), '">';
                    
    // If the board or children is new, show an indicator.
                    
    if ($board['new'] || $board['children_new'])
                    {
                        if (
    file_exists($settings['theme_dir'] . '/images/icons/' $board['id'] . '/' $context['theme_variant_url'] . 'on.png'))
                            
    $board_new_img '/icons/' $board['id'];
                        else
                            
    $board_new_img '';
                        echo 
    '
                                <img src="'
    $settings['images_url'], $board_new_img'/'$context['theme_variant_url'], 'on'$board['new'] ? '' '2''.png" alt="'$txt['new_posts'], '" title="'$txt['new_posts'], '" />';
                    }
                    
    // Is it a redirection board?
                    
    elseif ($board['is_redirect'])
                    {
                        if (
    file_exists($settings['theme_dir'] . '/images/icons/' $board['id'] . '/' $context['theme_variant_url'] . 'redirect.png'))
                            
    $board_redirect_img '/icons/' $board['id'];
                        else
                            
    $board_redirect_img '';
                        echo 
    '
                                <img src="'
    $settings['images_url'], $board_redirect_img'/'$context['theme_variant_url'], 'redirect.png" alt="*" title="*" />';
                    }
                    
    // No new posts at all! The agony!!
                    
    else
                    {
                        if (
    file_exists($settings['theme_dir'] . '/images/icons/' $board['id'] . '/' $context['theme_variant_url'] . 'off.png'))
                            
    $board_nonew_img '/icons/' $board['id'];
                        else
                            
    $board_nonew_img '';
                        echo 
    '
                                <img src="'
    $settings['images_url'], $board_nonew_img'/'$context['theme_variant_url'], 'off.png" alt="'$txt['old_posts'], '" title="'$txt['old_posts'], '" />';
                    }
                    echo 
    '
                            </a>
                        </td> 

    فايل MessageIndex.template.php باز كنيد

    قسمت زير را پيدا كنيد

    کد PHP:
                // If the board or children is new, show an indicator.
                
    if ($board['new'] || $board['children_new'])
                    echo 
    '
                                <img src="'
    $settings['images_url'], '/' .$context['theme_variant_url'], 'on'$board['new'] ? '' '2''.png" alt="'$txt['new_posts'], '" title="'$txt['new_posts'], '" />';
                
    // Is it a redirection board?
                
    elseif ($board['is_redirect'])
                    echo 
    '
                                <img src="'
    $settings['images_url'], '/' .$context['theme_variant_url'], 'redirect.png" alt="*" title="*" />';
                
    // No new posts at all! The agony!!
                
    else
                    echo 
    '
                                <img src="'
    $settings['images_url'], '/' .$context['theme_variant_url'], 'off.png" alt="'$txt['old_posts'], '" title="'$txt['old_posts'], '" />';

                echo 
    '
                            </a>
                        </td>
                        <td class="info">
                            <a class="subject" href="'
    $board['href'], '" name="b'$board['id'], '">'$board['name'], '</a>'
    و كد زير را جايگزين كنيد

    کد PHP:
                // If the board or children is new, show an indicator.
                
    if ($board['new'] || $board['children_new'])
                {
                    if (
    file_exists($settings['theme_dir'] . '/images/icons/' $board['id'] . '/' $context['theme_variant_url'] . 'on.png'))
                        
    $board_new_img '/icons/' $board['id'];
                    else
                        
    $board_new_img '';
                    echo 
    '
                                <img src="'
    $settings['images_url'], $board_new_img'/' .$context['theme_variant_url'], 'on'$board['new'] ? '' '2''.png" alt="'$txt['new_posts'], '" title="'$txt['new_posts'], '" />';
                }
                
    // Is it a redirection board?
                
    elseif ($board['is_redirect'])
                {
                    if (
    file_exists($settings['theme_dir'] . '/images/icons/' $board['id'] . '/' $context['theme_variant_url'] . 'redirect.png'))
                        
    $board_redirect_img '/icons/' $board['id'];
                    else
                        
    $board_redirect_img '';
                    echo 
    '
                                <img src="'
    $settings['images_url'], $board_redirect_img'/' .$context['theme_variant_url'], 'redirect.png" alt="*" title="*" />';
                }
                
    // No new posts at all! The agony!!
                
    else
                {
                    if (
    file_exists($settings['theme_dir'] . '/images/icons/' $board['id'] . '/' $context['theme_variant_url'] . 'off.png'))
                        
    $board_nonew_img '/icons/' $board['id'];
                    else
                        
    $board_nonew_img '';
                    echo 
    '
                                <img src="'
    $settings['images_url'], $board_nonew_img'/' .$context['theme_variant_url'], 'off.png" alt="'$txt['old_posts'], '" title="'$txt['old_posts'], '" />';
                }
                echo 
    '
                            </a>
                        </td>
                        <td class="info">
                            <a class="subject" href="'
    $board['href'], '" name="b'$board['id'], '">'$board['name'], '</a>'

    بعد از ويرايش قالب ها حالا بايد آيكن ها را آپلود كنيد

    آدرس محل آپلود فايل

    forum/Themes/default/images/icons/board_id/_variation/on.png
    forum/Themes/default/images/icons/board_id/_variation/on2.png
    forum/Themes/default/images/icons/board_id/_variation/off.png
    forum/Themes/default/images/icons/board_id/_variation/redirect.png

    بايد در قالبي آپلود شود كه در حال استفاده از آن هستيد.
    به جاي board_id بايد شماره انجمن را بنويسيد مثلا انجمن آموزشي با شماره 3 هست بايد فولدري ايجاد كنيد با اسم 3 و آيكن مربوط را آنجا آپلود كنيد

  2. #2
    كاربر درجه 4
    محمد علی آواتار ها
    تاریخ عضویت
    Apr 2011
    سن
    33
    نوشته ها
    387
    نوشته های وبلاگ
    46
    میزان امتیاز
    16

    پیش فرض پاسخ : آموزش قرار دادن عكس كنار انجمن ها در اس ام اف SMF

    هـــا ای کـــَـــه وَگفتی یــــعـــنی چــــَـــه؟

  3. #3
    مدیر کل سایت
    قمیا آواتار ها
    تاریخ عضویت
    Jun 2010
    محل سکونت
    قم
    نوشته ها
    1,672
    نوشته های وبلاگ
    144
    میزان امتیاز
    10

    پیش فرض پاسخ : آموزش قرار دادن عكس كنار انجمن ها در اس ام اف SMF

    براي كساني هست كه انجمن هاي SMF دارند

موضوعات مشابه

  1. کد قرار دادن آهنگ در وبلاگ+آموزش
    توسط قمیا در انجمن راهنمای وبلاگ قم
    پاسخ: 8
    آخرين نوشته: 02-07-2024, 08:07 PM
  2. آموزش قرار دادن تبليغات موثر
    توسط قمیا در انجمن طراحي سايت
    پاسخ: 2
    آخرين نوشته: 11-05-2012, 02:11 PM
  3. آموزش قرار دادن زیرنویس برای فیلم یا سریال
    توسط قمیا در انجمن زیرنویس فیلم خارجی
    پاسخ: 2
    آخرين نوشته: 10-31-2012, 11:16 PM
  4. آموزش قرار دادن آهنگ در وبلاگ قميا
    توسط قمیا در انجمن راهنمای وبلاگ قم
    پاسخ: 1
    آخرين نوشته: 04-02-2012, 10:24 PM
  5. قرار دادن آواتار در انجمن و سایت قم
    توسط قمیا در انجمن راهنماي انجمن قم
    پاسخ: 0
    آخرين نوشته: 06-14-2011, 05:36 PM

کاربرانی که این تاپیک را مشاهده کرده اند: 0

هیچ عضوی در لیست وجود ندارد.

کلمات کلیدی این موضوع

علاقه مندي ها (Bookmarks)

علاقه مندي ها (Bookmarks)

مجوز های ارسال و ویرایش

  • شما نمیتوانید موضوع جدیدی ارسال کنید
  • شما امکان ارسال پاسخ را ندارید
  • شما نمیتوانید فایل پیوست کنید.
  • شما نمیتوانید پست های خود را ویرایش کنید
  •