هاست لینوکس

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


امتیاز موضوع:
  • 0 رأی - میانگین امتیازات: 0
  • 1
  • 2
  • 3
  • 4
  • 5
یک مشکل در CSS کردن دکمه های قالب
#11
قالبهاي دسته بندي نشده>>قالبهاي مربوط به پلاگين سپاس رو چك كنيد
نصب مای بی بینصب پلاگیننصب و طراحی پوستهاصلاح کدهای قالبافزایش سرعت در GTmetrix با هزینه مناسب

درخواست از طریق پیام خصوصی
پاسخ
 سپاس شده توسطFarhoodi (۱۳۹۰/۸/۳، ۰۴:۳۵:۲۱ صبح)
#12
میشه نحوه CSS کردن دکمه ها رو شرح بدیدHeart
پاسخ
#13
(۱۳۹۰/۸/۱، ۰۳:۴۴:۰۸ صبح)Farhoodi نوشته است: ادرس عکس در فایل پلاگین تعریف شده راهی نداره ؟ بجای عکس توی فایل پلاگین CSS گذاشتم ولی با ارور مواجه شدم Big Grin


کد php:
    if($mybb->user['uid'] != && $mybb->user['uid'] != $post['uid']) 
    {
        if(!
$b)
        {
            
$post['thanks'] = "<a id=\"a{$post['pid']}\" onclick=\"javascript:return thx({$post['pid']});\" href=\"showthread.php?action=thank&tid={$post['tid']}&pid={$post['pid']}\">
            <img src=\"
{$mybb->settings['bburl']}/{$theme['imgdir']}/postbit_thx.gif\" border=\"0\" alt=\"$lang->thx_main\" title=\"$lang->thx_main\" id=\"i{$post['pid']}\" /></a>";
        }
        else if(
$mybb->settings['thx_del'] == "1")
        {
            
$post['thanks'] = "<a id=\"a{$post['pid']}\" onclick=\"javascript:return rthx({$post['pid']});\" href=\"showthread.php?action=remove_thank&tid={$post['tid']}&pid={$post['pid']}\">
            <img src=\"
{$mybb->settings['bburl']}/{$theme['imgdir']}/postbit_rthx.gif\" border=\"0\" alt=\"$lang->thx_remove\" title=\"$lang->thx_remove\" id=\"i{$post['pid']}\" /></a>";
        }
        else
        {
            
$post['thanks'] = "<!-- remove thanks disabled by administrator -->";
        }
    } 

کسی راهی واسه حل این مشکل سراغ نداره
پاسخ
#14
HuhHuhHuhHuh
پاسخ
#15
HuhHuhHuhHuhHuhHuhHuh
پاسخ
#16
HuhHuhHuh
پاسخ
#17
اگر طبق "اموزش تبدیل دکمه های مای بی بی به CSS" عمل كرديد :

كد زير رو از پلاگين پيدا كنيد :

کد php:
if($mybb->user['uid'] != && $mybb->user['uid'] != $post['uid']) 
    {
        if(!
$b)
        {
            
$post['thanks'] = "<a id=\"a{$post['pid']}\" onclick=\"javascript:return thx({$post['pid']});\" href=\"showthread.php?action=thank&tid={$post['tid']}&pid={$post['pid']}\">
            <img src=\"
{$mybb->settings['bburl']}/{$theme['imgdir']}/postbit_thx.gif\" border=\"0\" alt=\"$lang->thx_main\" title=\"$lang->thx_main\" id=\"i{$post['pid']}\" /></a>";
        }
        else if(
$mybb->settings['thx_del'] == "1")
        {
            
$post['thanks'] = "<a id=\"a{$post['pid']}\" onclick=\"javascript:return rthx({$post['pid']});\" href=\"showthread.php?action=remove_thank&tid={$post['tid']}&pid={$post['pid']}\">
            <img src=\"
{$mybb->settings['bburl']}/{$theme['imgdir']}/postbit_rthx.gif\" border=\"0\" alt=\"$lang->thx_remove\" title=\"$lang->thx_remove\" id=\"i{$post['pid']}\" /></a>";
        }
        else
        {
            
$post['thanks'] = "<!-- remove thanks disabled by administrator -->";
        }
    } 



به صورت زير تغيير دهيد :

کد php:
if($mybb->user['uid'] != && $mybb->user['uid'] != $post['uid']) 
    {
        if(!
$b)
        {
            
$post['thanks'] = "<a id=\"a{$post['pid']}\" onclick=\"javascript:return thx({$post['pid']});\" href=\"showthread.php?action=thank&tid={$post['tid']}&pid={$post['pid']}\" class=\"myButton\"><span id=\"i{$post['pid']}\">تشكر</span></a>";
        }
        else if(
$mybb->settings['thx_del'] == "1")
        {
            
$post['thanks'] = "<a id=\"a{$post['pid']}\" onclick=\"javascript:return rthx({$post['pid']});\" href=\"showthread.php?action=remove_thank&tid={$post['tid']}&pid={$post['pid']}\" class=\"myButton\"><span id=\"i{$post['pid']}\">حذف تشكر</span></a>";
        }
        else
        {
            
$post['thanks'] = "<!-- remove thanks disabled by administrator -->";
        }
    } 


و كد زير را هم:

کد php:
    $output "<thankyou>
                <list><![CDATA[
$list]]></list>
                <display>"
.($list "1" "0")."</display>
                <image>
{$mybb->settings['bburl']}/{$theme['imgdir']}/";
    
    if(
$mybb->input['action'] == "thankyou")
    {
        
$output .= "postbit_rthx.gif";
    }
    else
    {
        
$output .= "postbit_thx.gif";
    }
    
    
$output .= "</image>
              <del>
{$mybb->settings['thx_del']}</del>    
             </thankyou>"



به صورت زير تغيير دهيد:

کد php:
    $output "<thankyou>
                <list><![CDATA[
$list]]></list>
                <display>"
.($list "1" "0")."</display>
                <span>"
;
    
    if(
$mybb->input['action'] == "thankyou")
    {
        
$output .= "حذف تشكر";
    }
    else
    {
        
$output .= "تشكر";
    }
    
    
$output .= "</span>
              <del>
{$mybb->settings['thx_del']}</del>    
             </thankyou>"



حالا فايل tnx.js رو باز كنيد و كد زير را :

کد php:
            img document.getElementById('i' pid);
            
img.src xml.getElementsByTagName('image').item(0).firstChild.data

به صورت زير تغيير دهيد :

کد php:
            span document.getElementById('i' pid);
            
span.innerHTML xml.getElementsByTagName('span').item(0).firstChild.data
پاسخ
 سپاس شده توسطFarhoodi (۱۳۹۰/۸/۱۳، ۰۷:۱۱:۵۲ صبح) ، newmybb (۱۳۹۰/۸/۲۰، ۱۵:۵۵:۳۱ عصر) ، majid01 (۱۳۹۱/۱/۱۵، ۱۲:۳۶:۲۸ عصر) ، farshid142 (۱۳۹۳/۱/۳۰، ۱۱:۵۹:۰۷ صبح) ، shezen (۱۳۹۳/۱۱/۱۶، ۱۶:۲۴:۵۵ عصر)
#18
یدونه ایی مملیHeartHeartHeart
پاسخ
 سپاس شده توسطشماره مجازی (۱۴۰۱/۸/۲۶، ۰۱:۵۱:۲۴ صبح) ، گراف مسنجر (۱۴۰۱/۱۰/۳، ۰۴:۱۳:۳۲ صبح) ، چارتر ۴۲۴ (۱۴۰۲/۹/۱۲، ۱۵:۱۳:۵۰ عصر)


پرش به انجمن:


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