هاست لینوکس

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


امتیاز موضوع:
  • 0 رأی - میانگین امتیازات: 0
  • 1
  • 2
  • 3
  • 4
  • 5
آموزش مدال دهی بر اساس تعداد پست ها
#1
سلام
این آموزش را ببینید، من خودم سر در نیاوردم ازش ، در این انجمن هم جستجو کردم به چیزی مشابه اون نرسیدم، میشه اگه کسی از این آموزش چیزی سر درآورد به ما هم راهنمایی بده ؟! خیلی ممنون Heart
پاسخ
 سپاس شده توسطdarya1012 (۱۳۹۰/۵/۱۶، ۰۱:۲۶:۲۷ صبح) ، falijojo (۱۳۹۰/۵/۲۲، ۱۸:۴۷:۳۰ عصر) ، vahidvahid (۱۳۹۰/۵/۲۳، ۰۳:۰۴:۳۳ صبح) ، pdistb.ir (۱۳۹۰/۶/۱۳، ۲۰:۰۳:۴۳ عصر) ، amirreza78 (۱۳۹۰/۶/۱۹، ۱۶:۰۴:۵۳ عصر) ، astas (۱۳۹۰/۸/۵، ۱۵:۵۱:۴۲ عصر) ، Amir_Sam (۱۳۹۰/۸/۵، ۲۰:۰۳:۱۹ عصر) ، Behr☺uz (۱۳۹۰/۱۰/۶، ۱۶:۱۰:۰۷ عصر)
#2
یکی اموزششو بزاره هرکی فهمید باید جالب باشه
پاسخ
#3
به حق چیزای نشنیده
خیای اسونه عزیزان
الان خودم توضیح میدم
وارد پنل ادیمن بشید و در بخش تنظیمات روی عبارت ایجاد گروه تنظیمات را بزنید و به این صورت مقدار دهی کنید


کد:
We will add a settings group for our automatic medals:
AdminCP -> Configuration -> Add New Setting Group:

    Title: Post Automatic Medal
    Modify it as our needs. This is the title of our automatic medals settings.
    Description: Automatic medal based on user's posts
    Modify it as our needs. This is the description of our automatic medals settings.
    Display Order: 500
    Modify it as our needs. This is the display order of our automatic medals settings.
    Identifier: pam

حالا در همون صفحه گزینه ی ایجاد تنظیمات جدید را بزنید
و به این صورت مقدار دهی کنید

کد:
First posts condition and display/medal:

    First posts condition:
        Title: #1 Post
        Modify it as our needs. This is the title of our first automatic medals condition.
        Description: Number of posts for #1 automatic medal
        Modify it as our needs. This is the description of our first automatic medals condition.
        Group: 'select the group setting in step #1'. In this example, Post Automatic Medal.
        Display Order: 1
        Identifier: pn1
        Type: Text
        Value: 1
        This is the minimum post number to get this medal.
    First automatic medal display:
        Title: #1 Medal Display
        Modify it as our needs. This is the title of our first automatic medals display (output).
        Description: How the #1 medal should be displayed?
        Modify it as our needs. This is the description of our first automatic medals display (output).
        Group: 'select the group setting in step #1'. In this example, Post Automatic Medal.
        Display Order: 2
        Identifier: am1
        Type: Textarea
If the HTML code we use not too long, we can use Text in the setting above.
Value:

HTML Code

<img src="url_or_path_to_medal_image_1" alt="First Post" title="First Post" />

Modify it as our needs.

حالا باید کد زیر را داخل تمپلیت postbit_author_user template شده و این مقدار را به ان اضافه کنید
کد php:
<if str_replace($mybb->settings['thousandssep'],'',$post['postnum']) >= $mybb->settings['pn1'then>
    {
$mybb->settings['am1']}
</if> 


حالا تنظیمات مشابه برای مدال دوم

کد:
Second posts condition and display/medal:

    Like said before, we only need to repeat the step above.
    But we need to use a different identifier.
        First posts condition:
            Title: #2 Post
            Description: Number of posts for #2 automatic medal
            Group: 'select the group setting in step #1'. In this example, Post Automatic Medal.
            Display Order: 3
            Identifier: pn2
            We use a different identifier here.
            Type: Text
            Value: 100
            This is the minimum post number to get this medal.
        Second automatic medal display:
            Title: #2 Medal Display
            Description: How the #2 medal should be displayed?
            Group: 'select the group setting in step #1'. In this example, Post Automatic Medal.
            Display Order: 4
            Identifier: am2
            We use a different identifier here.
            Type: Textarea
            Value:

            HTML Code

            <img src="url_or_path_to_medal_image_2" alt="Reached 100 Posts" title="Reached 100 Posts" />

            Modify it as our needs.

        We need to put this code in ourpostbit_author_user template for this first automatic medal:

        Code:

        <if str_replace($mybb->settings['thousandssep'],'',$post['postnum']) >= $mybb->settings['pn2'] then>
            {$mybb->settings['am2']}
        </if>

        Now, if our members have at 100 posts in our forum, they will have this medal, and the medal will be displayed in postbit.

حالا میتونین تنظیمات دلخواه رو مثل بقیه پلاگین ها انجام بدید
Tongue
[تصویر:  c613paraglider.png]

برای ثبت نام پرواز پاراگلایدر روی عکس کلیک کنید
پاسخ
 سپاس شده توسط123 (۱۳۹۰/۱۰/۶، ۲۱:۱۳:۵۱ عصر) ، yaser0421 (۱۳۹۰/۱۰/۷، ۰۳:۱۸:۱۳ صبح) ، dvdposti (۱۳۹۰/۱۱/۲۰، ۱۲:۲۶:۰۰ عصر) ، jamal2450 (۱۳۹۱/۴/۱۴، ۱۷:۱۲:۴۰ عصر)
#4
مممنون من انجام دادم اما خراب شد
فک کنم برا نسخه بالای 1.6 هست
پاسخ
 سپاس شده توسطervin (۱۳۹۱/۱/۲، ۰۷:۵۵:۱۴ صبح) ، شماره مجازی (۱۴۰۱/۸/۲۶، ۰۱:۵۱:۱۳ صبح) ، گراف مسنجر (۱۴۰۱/۱۰/۳، ۰۴:۱۳:۲۳ صبح) ، چارتر ۴۲۴ (۱۴۰۲/۹/۱۲، ۱۵:۱۳:۳۴ عصر)


پرش به انجمن:


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