إعلانات المنزل في مكون الإعلانات الرسمي

Not true. You can see our own ads (“Stay hydrated!”) below that last post of a topic when you’re not logged in.

3 إعجابات

I think I came across a small bug:

image
Expected behaviour: Both house ads are shown after another.
Actual behavior: Only the ad that is added later is shown.

إعجاب واحد (1)

It will display one of the list randomly.

10 إعجابات

Strange, I’ll look into my code and share the link here. Thank you. :slight_smile:

إعجاب واحد (1)

Hi! Our “Topic above suggested” ad is not completely below the “Reply” button by default here?

This is how the ad appears for unregistered or ‘not-logged-in’ users, the ad goes right side.

This is how the ad appears for logged-in users, below the “Watching” button and in a proper centralized way we coded. You can check this on our HBB Forum.

Using extra “margin-bottom” will affect the already perfect one for registered users view. Kindly let me know your thoughts, please.

إعجابَين (2)

I’m working on something for this issue, but my browser’s cache is acting weird, I’ll share an update if it works. Thank you. :smiley:

إعجاب واحد (1)

Looks like a problem with your html and/or css. Add css like clear: both;, display: block, etc. whatever is necessary there.

7 إعجابات

Hi,

Is there any code to display banner on mobile since when i did as video, there is no switch when access forum on mobile. And the banner with dimension 728x90 will not fit mobile screen.

Anyone know please,

إعجابَين (2)

You’ll need to make it responsive. You have total freedom on the html and styling, so responsive CSS is up to you.

7 إعجابات

Thank @neil , I found the way to do it.

إعجابَين (2)

Testing this plugin now and seems super useful. Thanks @neil!

A few quick points of feedback / suggestions:

  1. Tweak to improve default formatting for between posts ads: these go full width unless explicitly set otherwise, which works fine for top / bottom of page, but in posts stream can interfere with the topic timeline. I think the between posts ads should have a default max-width same as post content. To approximate this I added .house-post-bottom {max-width: 700px;}

  2. Seems that renaming an ad also removes it from the display locations setting. May be easy to miss; probably ideal to catch the rename and update in the locations instead if possible.

  3. For me at least, on saving a new ad + adding to a location, it takes a few minutes to actually show up on the site. Not sure if that’s avoidable (or if others are noticing this at all); not a major issue but makes testing a bit slower.

  4. One idea to extend this that came to mind is adding a per-ad group setting. I’m thinking of cases where it’d be useful to e.g. show certain ads to only anons, and other ads only to logged in users. Or different ads to different group-based tiers on a membership site (to ‘join’ vs. ‘upgrade’ for example).

6 إعجابات

مرحبًا بالجميع،

1- أحاول تتبع عدد النقرات على لافتة، وأضيف الكود أدناه، لكنه يبدو أنه لا يعمل، هل لديكم أي اقتراحات؟

<a href="http://bit.ly/2MSa3ZF" onclick="ga('send', 'event', 'banniere', 'petiteetoile', 'ban-petites-etoiles');">

2- ما هي أفضل طريقة لتتبع عدد مرات الظهور لكل لافتة؟

شكرًا جزيلًا لكم،

إعجاب واحد (1)

كيف يمكنني إصلاح هذا؟

أريد أن يكون على هذا النحو

إعجاب واحد (1)

هل توجد أخطاء في وحدة تحكم جافا سكريبت؟ يبدو لي أن الكود يجب أن يعمل. سأترك الأمر لخبراء الإعلانات لتقديم اقتراحات حول تتبع الظهور.

هذا هو تنسيق CSS الذي نستخدمه لـ Let’s Encrypt. قم بتعديله ليتناسب مع HTML الخاص بك:

.house-creative {
    margin: 0 !important;
}

.h-creative {
    display: block;
    clear: both;
    max-width: 500px;
    color: $primary !important;
    background-color: $secondary;
    .container {
        display: flex;
        align-items: center;
        width: 100%;
        padding: 6px 0;
    }
    p {
        margin: 0 20px;
    }
    .product-image {
        width: 150px;
        height: 150px;
    }
    img {
        max-width: 150px;
        max-height: 150px;
        &.mozilla {
            max-width: 300px;
        }
    }
    .big {
        font-size: 24px;
        line-height: normal;
        padding-bottom: 10px;
    }
}

.mobile-device .house-creative {
    .product-image {
        width: 120px;
        height: 120px;
    }
    img {
        max-width: 120px;
        max-height: 120px;
        &.mozilla {
            max-width: 240px;
        }
    }
}
5 إعجابات

إذن، أحتاج إلى إضافته إلى ملف CSS الخاص بسمتي؟

بمناسبة ذلك، بعد تحديث النواة، أحصل على هذا

إعجاب واحد (1)

نعم، أفضل ما يمكن فعله هو إنشاء مكون سمات يحتوي على جميع تنسيقات CSS للإعلانات المنزلية، ثم إضافته إلى السمات النشطة لديك.

5 إعجابات

أليس لدينا موضوع تعريفي #كيفية القيام بذلك @tshenry

5 إعجابات

نحن نفعل الآن! يمكن العثور على العمل قيد التنفيذ (WIP) هنا: House Ad Templates

6 إعجابات

هل قمت بتثبيت مانع إعلانات في متصفحك؟ هل توجد أي أخطاء في وحدة تحكم JavaScript؟

5 إعجابات

لم ينجح الأمر يا صديقي، لا يزال الأمر كما هو

شكرًا لك، ساعدني ذلك… لا، أنا أستخدم متصفح برايف، لذا جربت من متصفح آخر…

إعجاب واحد (1)