Neler yeni

Foruma hoş geldin 👋, Ziyaretçi

Forum içeriğine ve tüm hizmetlerimize erişim sağlamak için foruma kayıt olmalı ya da giriş yapmalısınız. Foruma üye olmak tamamen ücretsizdir.

  • Forumdan daha fazla yararlanmak için, profilinizi telefon numaranız 📱 ile doğrulayın ve daha ayrıcalıklı olun 😉
    Daha fazla bilgi!

Nasıl yapılır ? How to fix the problem in the medal plugin

Jonoon

Sabit kullanıcı
Kullanıcı
Katılım
6 Eyl 2019
Mesajlar
54
Hi, I'm using the [bd] Medal 2.0.4 plugin
In this plugin, medals are displayed as shown below in the user banners
IMG_20200526_114027_121.jpg
But I manipulated the message_macros template and now it is displayed as shown below
IMG_20200523_193222_060 (1).jpg
Can anyone help me display medals like before?
 
For your security, change the mysql database password and other information. The picture you shared shows all of them.
 
Add the code below into the src/config.php file.

Kod:
$config['development']['enabled'] = true;

Appearance > Template modifications > [bd] Medal > message_macros (message_user_info_extra_(top|bottom)) follow the path. Replace the Find section with the code below.

Kod:
<xf:userbanners user="$user" tag="div" class="message-userBanner" itemprop="jobTitle" />


Replace the codes in the change field with the following.

Kod:
 $0
<xf:macro template="bdmedal_message_macros" name="user_medals"
              arg-position="message_user_info_extra_top"
              arg-user="{$user}"/>


Mark the search type as "Simple replacement". Be sure to save.

Demo :
Ekli dosyayı görüntüle 12112



Follow setup > options > [bd] Medal

Change the position in message to manual Position and save it.


Ekli dosyayı görüntüle 12113


I wish you a good day
I did it and the problem was solved. Thank you for your kindness
 
Click Appearance > Template modifications>Add template modification.

Type message_macros in the Template section.


Modification key kısmında yazınız. = bdmedal_message_user_info_extra_xxx


Type the code below in the Find section.

Kod:
<xf:userbanners user="$user" tag="div" class="message-userBanner" itemprop="jobTitle" />


In the Replace section, type the code below.

Kod:
$0
<xf:macro template="bdmedal_message_macros" name="user_medals"
              arg-position="message_user_info_extra_top"
              arg-user="{$user}"/>



Follow setup > options > [bd] Medal

Change the position in message to manual Position and save it.

Click Appearance > Templates > Extra.less add the code below.

CSS:
@media (min-width:651px){
    .message-userDetails .bdMedal_messageUserMedals.position-message_user_info_extra_top {
    display: none !important;
    }
}

Live Preview : تاپیک جامع نمایشنامه های قرار گرفته بر روی سایت - انجمن رمان نویسی | کافه نویسندگان

Screenshot_4.png Screenshot_5.png
 

Foruma hoş geldin 👋, Ziyaretçi

Forum içeriğine ve tüm hizmetlerimize erişim sağlamak için foruma kayıt olmalı ya da giriş yapmalısınız. Foruma üye olmak tamamen ücretsizdir.