Show Cover Photo in WoltLab Postbit

  • Hello, Jetto.NET Community!

    In today's topic, we will show how to add user photo on postbit. For those who want to do it with the plugin, you can download the relevant plugin from the link below. For those who want to do it without a plugin, you can follow the steps in our content.

    İndirme bağlantısını görmek için Giriş Yap veya Kayıt Ol.

    Let's log in to the Admin Panel

    After logging into the admin panel, let's create a template group by saying 'Customization -> Template groups -> Add template group'. As an example, you can process as in the picture;

    Then, by saying Templates, type 'messageSidebar' in the search field and copy the template. When copying the template, paste the following code in the section I specified. Then copy the template.

    Kod
    <div class="messageAuthorBackground" style="background-image: url({@$userProfile->getCoverPhoto()->getURL()});"></div>

    Let's adjust the theme settings

    Now we need to apply the template we created to the existing theme. In this 'Customization -> themes-> edit your theme' When editing the theme, there is a Template Group section at the bottom, let's select the template group we created in this section.

    Then save the settings.

    Let's make CSS settings

    Now we need to add our final stage css codes. Follow the 'Customization -> Global CSS and SCSS' steps and add and save the following codes.

    That's it, you will now be able to show Cover Photos in the user postbit.

Şimdi katılın!

Henüz hesabınız yok mu? Topluluğumuzun aktif bir üyesi olun ve oyunlarla, yazılımlarla ilgili ilginç konuları keşfedin! Kaydolun ve tartışmalara katılın, deneyimlerinizi paylaşın ve yeni arkadaşlar edinin. Topluluğumuzda herkesin kendine göre bir yer bulabileceğinden eminiz. Hadi, gelin ve bizimle birlikte eğlenceli ve bilgilendirici bir yolculuğa çıkın!