مرجع پارسی MyBB

نسخه‌ی کامل: آموزش افزودن ابزار موضوع به پایین هر تاپیک
شما درحال مشاهده‌ی نسخه‌ی متنی این صفحه می‌باشید. مشاهده‌ی نسخه‌ی کامل با قالب‌بندی مناسب.
درود
آموزش: افزودن ابزار موضوع به پایین هر تاپیک
[تصویر:  user.png] نویسنده: bomfile
مترجم: Pars

[تصویر:  photos.png] نمونه:
[تصویر:  1254348216.jpg]

1- یه مسیر زیر بروید:
کنترل پنل مدیریت > قالب ها و پوسته > قالب ها > قالب مورد نظر > Show Thread Templates > در showthread
قسمت زیر را پیدا کنید و آن را حذف کنید:
کد php:
<ul class="thread_tools">
        <
td><img src="images/printable.gif"> <a href="printthread.php?tid={$tid}">{$lang->view_printable}</a></td>
        <
td><img src="images/send.gif"> <a href="sendthread.php?tid={$tid}">{$lang->send_thread}</a></td>
        <
td><img src="images/subscribe.gif"> <a href="usercp2.php?action={$add_remove_subscription}subscription&amp;tid={$tid}">{$add_remove_subscription_text}</a></td>
    </
ul

حالا قسمت زیر را پیدا کنید:
کد php:
{$threadexbox
و به بالای آن (قبل از آن) قسمت زیر را اضافه کنید:
کد php:
<br /><table class="tborder" cellpadding="5" cellspacing="1" border="0" width="100%" align="center">
<
tr><td class="thead" align="left"><b>ابزار موضوع</a></b></td></tr>
<
tr><td class="trow2" align="left">
<
center><table cellpadding="0" cellspacing="0">  
    <
tr>  
        <
td><b>لینک موضوع:</b></td>  
        <
td><textarea name="link" cols="80" wrap="virtual" READONLY onfocus="javascript: this.select()" rows="1">{$mybb->settings['bburl']}/showthread.php?tid={$tid}</textarea></td>  
    </
tr>  
    <
tr>  
        <
td><b>بی بی کد:</b></td>  
        <
td><textarea name="bbkodu" cols="80" wrap="virtual" READONLY onfocus="javascript: this.select()" rows="1">[url={$mybb->settings['bburl']}/showthread.php?tid={$tid}]{$thread['subject']}[/url]</textarea></td>  
    </
tr>  
    <
tr>  
        <
td><b>کد اچ تی ام ال:</b></td>  
        <
td>  
        <
textarea name="htmlkodu" cols="80" wrap="virtual" READONLY onfocus="javascript: this.select()" rows="1"><a href="{$mybb->settings['bburl']}/showthread.php?tid={$tid}">{$thread['subject']}</a></textarea></td>  
    </
tr>  
</
table></center>
<
center><table cellpadding="5" cellspacing="2">
    <
tr>
    <
ul class="thread_tools">
        <
td><img src="images/printable.gif"> <a href="printthread.php?tid={$tid}">{$lang->view_printable}</a></td>
        <
td><img src="images/send.gif"> <a href="sendthread.php?tid={$tid}">{$lang->send_thread}</a></td>
        <
td><img src="images/subscribe.gif"> <a href="usercp2.php?action={$add_remove_subscription}subscription&amp;tid={$tid}">{$add_remove_subscription_text}</a></td>
    </
ul>
    </
tr>
</
table></td></tr></table></center>
</
table>
<
td align="center"><div id="ietiketbg"><div align="center"><div id="diz"><a rel="nofollow" target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&amp;output=popup&amp;bkmk={$mybb->settings['bburl']}/showthread.php?tid={$tid}"><img alt="Submit Google" src="images/google.png" class="inlineimg" title="Submit Google" border="0"></a>   <a rel="nofollow" target="_blank" href="http://www.facebook.com/share.php?u=%url%={$mybb->settings['bburl']}/showthread.php?tid={$tid}"><img alt="Submit Face book" src="images/facebook.gif" class="inlineimg" title="Submit Face book" border="0"></a>   <a rel="nofollow" target="_blank" href="http://digg.com/submit?phase=2&amp;url={$mybb->settings['bburl']}/showthread.php?tid={$tid}"><img alt="Submit to Digg" src="images/digg.png" class="inlineimg" title="Submit to Digg" border="0"></a>   <a rel="nofollow" target="_blank" href="http://reddit.com/submit?url={$mybb->settings['bburl']}/showthread.php?tid={$tid}"><img alt="Submit to Reddit" src="images/reddit.gif" class="inlineimg" title="Submit to Reddit" border="0"></a>   <a rel="nofollow" target="_blank" href="http://www.furl.net/storeIt.jsp?u={$mybb->settings['bburl']}/showthread.php?tid={$tid}"><img alt="Submit to Furl" src="images/furl.gif" class="inlineimg" title="Submit to Furl" border="0"></a>   <a rel="nofollow" target="_blank" href="http://del.icio.us/post?url={$mybb->settings['bburl']}/showthread.php?tid={$tid}"><img alt="Submit to Del.icio.us" src="images/delicious.png" class="inlineimg" title="Submit to Del.icio.us" border="0"></a>   <a rel="nofollow" target="_blank" href="http://jeqq.com/submit.php?phase=2&amp;url={$mybb->settings['bburl']}/showthread.php?tid={$tid}"><img alt="Submit to Jeqq" src="images/jeqq.gif" class="inlineimg" title="Submit to Jeqq" border="0"></a></div></div></div></td
ذخیره کنید.

2- حالا به مسیر زیر بروید:
کنترل پنل مدیریت > قالب ها و پوسته > پوسته ها > پوسته مورد نظر > global.css > ویرایش پیشرفته
به انتهای آن قسمت زیر را اضافه کنید:
کد php:
#ietiketbg {
    
backgroundurl(images/bb.gifno-repeat;
    
height39px;
    
width:218px;
    
margin-top: -6px;
    
margin-left:auto;
    
margin-right:auto;
}

#diz {
    
padding:7px 17px 0px 14px;


3- عکس های داخل پوشه زیر را در پوشه images در هاست خود آپلود کنید.
[attachment=370]

موفق باشید.