Jump to content

newbie LAC

Members
  • Posts

    5,244
  • Joined

  • Days Won

    40

 Content Type 

Downloads

Release Notes

IPS4 Guides

IPS4 Developer Documentation

Invision Community Blog

Development Blog

Deprecation Tracker

Providers Directory

Forums

Events

Store

Gallery

Posts posted by newbie LAC

  1. 6 minutes ago, LemonGrenade said:

    What would be the chances and/or code to add advert just before each day break on Discover pages? Is it possible?

    Hello,

    Try

    Css selector 

    .ipsStreamItem_time

    Position

    Insert advert before the chosen element(s)

     

  2. 10 hours ago, Sheffielder said:


    Quick question - is this advert plug in responsive?

    I have ads that are breaking out of the theme that are too wide for the screen - is that down to a setting I need to alter on the plugin?

    The application adds new features.

    How an advert will be display depends on advert code.

    [hr]

    You can use Responsiveness

     

  3. 1 minute ago, Sheffielder said:

    Final question -  What code would I need to put in to make advertisements appear between the last post on a page and the navigation

    Css selector 

    #elPostFeed

    Position 

    Insert advert after the chosen element(s)

     

  4. 4 minutes ago, Sheffielder said:

    Do you know how I can create an adhesion unit to show on both mobile and desktop?

    I think you should read the docs of advert system which you will use.

    I did not work with adhesion.

    I can help with application if you have any issues

  5. 2 minutes ago, Sheffielder said:

    after the 8th post in a topic?

     

    2 minutes ago, Sheffielder said:

    in the 8th post in a topic?

    Just change the index in css selector to

    :eq(7)

    After 8th post

    article.cPost:eq(7)

    Inside 8th post

    div[data-role="commentContent"]:eq(7)

     

  6. Hello,

    3 minutes ago, Sheffielder said:

    1 - To have adverts after/in the 8th post in a topic

    Yes.

    9 minutes ago, Sheffielder said:

    2 - Adding an adhesion unit to both mobile and desktop

    18 minutes ago, Sheffielder said:

    3 - Moving the standard Invisionboard bottom advert up to appear between the last post on a page and the navigation

     

    You can use css selector to add your advert where you want

    code.jpg

  7. 12 hours ago, LemonGrenade said:

    So in theory, the defualt positions can't be used for clicks protection and only those in CSS locations?

     

    12 hours ago, LemonGrenade said:

    So would it be possible to activate click protection for the advert currently in the built-in header location?

    You can.

    The application add extra attributes to advert code.

    position.jpg.f8ccc8a6bf33bca0e23abb315add53f4.jpg

    html.jpg.64326a8433b894fd017ed425e0c58a57.jpg

    If you check the source code you will see 

    <div class="ipsMessage ipsMessage_info" data-nbEnhAdv="" data-nbEnhAdvId="152">Just below the page header</div>

    So you can use the data-nbEnhAdv attribute to protect ads

    css.jpg.b189becf6d281db4a703792e4f8c1277.jpg

  8. Hello,

    14 hours ago, kmk said:

    1. Cover for topic page and forum page too

    Not sure what you mean.

    The cover image only displays on the topic page.

    14 hours ago, kmk said:

    2. There any demo or website already have it implemented? 

    No demo.

    14 hours ago, kmk said:

    I would like check how it looks at on the mobile. 

    I hide the topic cover on mobile

    But you can use css to display it https://invisioncommunity.com/forums/topic/432553-nb41-topic-cover/?do=findComment&comment=2720246

     

  9. On 5/9/2020 at 5:22 PM, Jirinex said:

    Hello,

    Is there any way to place an ad on all threads and sub-categories under a category?

    Hello,

    You can use conditions

    {{if isset(\IPS\Output::i()->hiddenElements['nbenhadverts_node_class']) and \IPS\Output::i()->hiddenElements['nbenhadverts_node_class'] == 'IPS\forums\Forum' and $forum = \IPS\Output::i()->hiddenElements['nbenhadverts_node_node']}}
    {{ try { $category = \IPS\forums\Forum::load(12345); } catch (\OutOfRangeException $e){} }}
    {{if $category and $forum->isChildOf($category)}}
    1
    {{endif}}
    {{endif}}

    Change the 12345 on category ID

×
×
  • Create New...