هاست لینوکس

آخرین بسته‌ی MyBB: نسخه‌ی 1.8.27 MyBB منتشر شد


امتیاز موضوع:
  • 0 رأی - میانگین امتیازات: 0
  • 1
  • 2
  • 3
  • 4
  • 5
[آموزش] آموزش ایجاد باکس آژاکس جستجو در سمت چپ انجمن
#1
آموزش ایجاد باکس جستجو در سمت چپ انجمن

در کنترل پنل مديريت>قالب و پوسته ها>قالب (؟)>Indextempaltes> و سپس در قسمت Index

تصویر


تصویر 2

کد :

کد:
<html>
<head>
<title>{$mybb->settings['bbname']}</title>
{$headerinclude}
<script type="text/javascript">
<!--
    lang.no_new_posts = "{$lang->no_new_posts}";
    lang.click_mark_read = "{$lang->click_mark_read}";
// -->
</script>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.2/jquery-ui.min.js"></script>
<style type="text/css">
.buttons {
    background: url(images/arrowleft.png) no-repeat;
    width: 16px;
    height: 16px;
    display: block;
    cursor: pointer;
}

.clickedbuttons {
    background: url(images/arrowright.png) no-repeat;
    width: 16px;
    height: 16px;
    display: block;
    cursor: pointer;
}
</style>
</head>
<body>
{$header}
<div style="float: left;">
<a id="button" class="buttons"></a>
</div>
<table>
<tr>
<td width="100%;" valign="top">
{$forums}
</td>
    <script type="text/javascript">
jQuery.noConflict();
    jQuery(function() {
        //run the currently selected effect
        function runEffect(){
            //get effect type from
            var selectedEffect = 'slide';
            
            //most effect types need no options passed by default
            var options = {};
            //check if it's scale or size - they need options explicitly set
            if(selectedEffect == 'scale'){  options = {percent: 0}; }
            else if(selectedEffect == 'size'){ options = { to: {width: 200,height: 60} }; }
            
            //run the effect
            jQuery("#effect").toggle(selectedEffect,options,500);

        };
        
        //set effect from select menu value
        jQuery("#button").click(function() {
            jQuery(this).toggleClass("clickedbuttons")
            runEffect();
            return false;
        });

    });
    </script>
<td valign="top">
<div id="effect" class="ui-widget-content ui-corner-all">
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder" width="240">
<tr>
<td class="thead">
<strong>جستجو</strong>
</td>
</tr>
<tr>
<td class="trow1">
<form method="post"
action="{$mybb->settings['bburl']}/search.php">

<input type="hidden" name="action" value="do_search" />

<input type="hidden" name="postthread" value="1" />

<input type="hidden" name="forums" value="all" />

<input type="hidden" name="showresults" value="threads" />

<input type="text" class="textbox" name="keywords" value="" />

<!-- start: gobutton -->

<input type="submit" class="button" value="جستجو کن" />

<!-- end: gobutton -->

</form>
</td>
</tr>
</table>
</div>
</td>
</tr>
</table>


{$boardstats}

<dl class="forum_legend smalltext">
    <dt><img src="{$theme['imgdir']}/on.gif" alt="{$lang->new_posts}" title="{$lang->new_posts}" style="vertical-align: middle; padding-bottom: 4px;" /></dt>
    <dd>{$lang->new_posts}</dd>

    <dt><img src="{$theme['imgdir']}/off.gif" alt="{$lang->no_new_posts}" title="{$lang->no_new_posts}" style="vertical-align: middle; padding-bottom: 4px;" /></dt>
    <dd>{$lang->no_new_posts}</dd>

    <dt><img src="{$theme['imgdir']}/offlock.gif" alt="{$lang->forum_locked}" title="{$lang->forum_locked}" style="vertical-align: middle;" /></dt>
    <dd>{$lang->forum_locked}</dd>
</dl>
<br style="clear: both" />
{$footer}
</body>
</html>

جایگزین کنید

و دو عکس :


[تصویر:  30924c1e21cb4de1a453.png]

[تصویر:  2e8eaf1690bc45c69147.png]

رو در پوشه ی خود اپلود کنید.

c_r_fel
 سپاس شده توسطK@M@L (۱۳۸۹/۴/۲۲، ۱۴:۳۹:۲۲ عصر) ، Bl4ck.W4R (۱۳۸۹/۴/۲۲، ۱۷:۵۳:۲۹ عصر)
#2
ارسال به روز شد.

c_r_fel
 سپاس شده توسطK@M@L (۱۳۸۹/۴/۲۲، ۱۵:۱۷:۵۱ عصر)
#3
درود و تشکر.
این 2 عکس رو کجا باید آپلود کرد؟
#4
تو فولدر images
 سپاس شده توسطشماره مجازی (۱۴۰۱/۸/۲۶، ۰۱:۴۸:۴۰ صبح) ، گراف مسنجر (۱۴۰۱/۱۰/۳، ۰۴:۱۱:۰۰ صبح) ، چارتر ۴۲۴ (۱۴۰۲/۹/۱۲، ۱۵:۱۰:۳۳ عصر)


موضوع‌های مشابه…
موضوع نویسنده پاسخ بازدید آخرین ارسال
  آموزش ایجاد فیلد های اضافی Tee7 18 17,228 ۱۳۹۰/۴/۲۴، ۱۸:۴۱:۳۱ عصر
آخرین ارسال: riches2011
  آموزش گذاشتن عکس به جای اسم موتورهای جستجو ™IRAN FORUM 4 8,569 ۱۳۹۰/۴/۱۷، ۱۵:۴۲:۲۵ عصر
آخرین ارسال: ssd
  آموزش پاپ آپ کردن قسمت جستجو Mohammad-Za 4 5,192 ۱۳۹۰/۲/۱۹، ۰۰:۱۴:۲۲ صبح
آخرین ارسال: pouloton
  [آموزش] آموزش قرار دادن آدرس و آی پی و باقی اطلاعات در بالای انجمن c_r_fel 0 2,796 ۱۳۸۹/۴/۱۸، ۰۱:۲۷:۳۳ صبح
آخرین ارسال: c_r_fel
  [آموزش] آموزش تغییر در توضیحات هر انجمن c_r_fel 0 2,208 ۱۳۸۹/۴/۱۸، ۰۱:۲۶:۲۲ صبح
آخرین ارسال: c_r_fel
  [آموزش] آموزش قرار دادن نوع ارسالهای انجمن در قسمت آمار انجمن c_r_fel 0 2,566 ۱۳۸۹/۴/۱۸، ۰۱:۲۲:۰۱ صبح
آخرین ارسال: c_r_fel
  [آموزش] آموزش ایجاد افکت نام کاربری به همراه پیغام c_r_fel 0 2,959 ۱۳۸۹/۴/۵، ۲۱:۲۱:۲۶ عصر
آخرین ارسال: c_r_fel
  آموزش اضافه کردن گزینه ایجاد موضوع در صفحه اصلی Pars 0 2,707 ۱۳۸۸/۷/۲، ۰۱:۱۱:۰۲ صبح
آخرین ارسال: Pars

پرش به انجمن:


کاربرانِ درحال بازدید از این موضوع: 1 مهمان