Jump to content

(NB41) Enhanced Advertisements


newbie LAC

Recommended Posts

11 minutes ago, Mike_ said:

1. Advert after 3rd post in activity feed

HTML

{{if request.app == 'core' and request.module == 'discover' and request.controller == 'streams' and !isset(request.id)}}
    Activity Stream After 3 post
{{endif}}

Selector 

.ipsStreamItem_contentBlock:eq(2)

Position 

Insert advert after the chosen element(s)

 

12 minutes ago, Mike_ said:

2. Advert after first subcategory in category? 

HTML 

{{if request.app == 'forums' and request.module == 'forums' and request.controller == 'forums' and request.id}}
    Advert after first subcategory in category
{{endif}}

Selector

.cForumList li[data-forumid]:eq(0)

Position 

Insert advert after the chosen element(s)

 

Link to comment
Share on other sites

Hello. I added the ad code after 5,20,35 post.

Custom CSS and position:
article.Post:eq(5)
article.cPost: eq (20)
article.cPost: eq (35)

When I go to the second or the next page is an advertisement does not shine. It appears only when you refresh the page.

Thank you for your help

Link to comment
Share on other sites

19 minutes ago, Hugo_S4 said:

Hello. I added the ad code after 5,20,35 post.

Custom CSS and position:
article.Post:eq(5)
article.cPost: eq (20)
article.cPost: eq (35)

When I go to the second or the next page is an advertisement does not shine. It appears only when you refresh the page.

Thank you for your help

Hello,

I can't reproduce.

What's the code you use? html, js?

Link to comment
Share on other sites

Hi @newbie LAC, it appears your plugin may be what I was looking for here:

So if I download your plugin and want it to show advertisements every X topics & every X posts, what would I need to do?  Thanks in advance.

 

Nevermind, I see you already developed this!

 

 

 

Thanks!

Edited by mwcboard
Link to comment
Share on other sites

  • 4 weeks later...

Hello,

56 minutes ago, Joey_M said:

There's no icon Newbie? (Is this supposed to happen?)

Where?

57 minutes ago, Joey_M said:

Does the click protection only work for HTML codes?

Say I wanted to show a banner instead of say Adsense, how would I call one of my banner advertisements to display when someone has clicked to many times?

Do you mean "Type of advertisement (Upload images)"?

I added data-nbenhadvid="X" attribute to this type of ads. X is advert ID

So you can add 

div[data-nbenhadvid="X"]

to CSS selectors setting

Link to comment
Share on other sites

  • 2 weeks later...

@newbie LAC: I'm just starting out with using this.

The click protection can you confirm it only applies to HTML ads? (I'd hate any banner advertisements to lose out on impressions).

May I also purpose that the option to show an alternative advert once a HTML ad has been clicked to many times is relocated inside the ad options itself? This would allow us to define separate replacements.

Example - I will be using Amazon Affiliates, so once Adsense an IP triggers to many HTML clicks, I could then display a banner or alternative code that the click protection isn't applied too.

Link to comment
Share on other sites

Hello,

4 hours ago, Joey_M said:

The click protection can you confirm it only applies to HTML ads?

No

4 hours ago, Joey_M said:

May I also purpose that the option to show an alternative advert once a HTML ad has been clicked to many times is relocated inside the ad options itself? This would allow us to define separate replacements.

 

What to add and where?

Link to comment
Share on other sites

17 hours ago, newbie LAC said:

No

I have some in-house advertisers about to come on board, they will be paying for impressions and if people click this would limit that amount. Would you be able to look into making it HTML only that is protected by the click counter?

17 hours ago, newbie LAC said:

What to add and where?

Somewhere inside the Advertisement configuration page would be awesome.

advert.thumb.png.8d8f0a21f610c5bc6fb9da759827fcc6.png

Inside here would allow for greater control, allowing for more customization with the ads. I can replace ads for like for like, so a in-house banner could be shown when a HTML ad unit is under the click limit.

PS. Would it also be possible to add a setting for a mobile/responsive HTML advert?

Adsense have done a way with their responsive banner adverts, the link version is very uninspiring (almost as poorly designed as Media.net's). If I could add a smaller banner designed for mobiles, I could have a banner showing instead just links.

Link to comment
Share on other sites

Hello,

6 hours ago, Joey_M said:

Would you be able to look into making it HTML only that is protected by the click counter?

Have you seen how the app works?

It does not depend on image or html. It check css selectors.

You can use 

<img src="ad.png" class="protect_this_image">

Or 

<div class="protect_this_div">Some text</div>

Then add css selectors .protect_this_image and .protect_this_div

6 hours ago, Joey_M said:

PS. Would it also be possible to add a setting for a mobile/responsive HTML advert?

You mean html ads?

showon.thumb.jpg.fe7168c8a89638a8695c848e7c864116.jpg

 

6 hours ago, Joey_M said:

Somewhere inside the Advertisement configuration page would be awesome.

 

What to add?

Link to comment
Share on other sites

5 hours ago, newbie LAC said:

Have you seen how the app works?

Sorry, I'm in the process of settings things up and I find it a little confusing.

6 hours ago, newbie LAC said:

It does not depend on image or html. It check css selectors.

You can use 


<img src="ad.png" class="protect_this_image">

Or 


<div class="protect_this_div">Some text</div>

Then add css selectors .protect_this_image and .protect_this_div

Ads are not protected until code is added? Where would I add the code?

6 hours ago, newbie LAC said:

What to add?

The alternative advert code.

To my understanding currently there is only one available, I think it would be better defined by each advertisement.

Link to comment
Share on other sites

1 minute ago, Joey_M said:

Ads are not protected until code is added? Where would I add the code?

No

ACP - Enhanced Adverts - Advertisements - Settings

2 minutes ago, Joey_M said:

To my understanding currently there is only one available, I think it would be better defined by each advertisement.

I asked on PM and you told me "one replaced advert for all adverts" :)

 

Link to comment
Share on other sites

15 hours ago, newbie LAC said:

You mean html ads?

showon.thumb.jpg.fe7168c8a89638a8695c848e7c864116.jpg

Yes, sorry - I should make a note to check that I'm being clear enough.

'Show On' - is this what you plan to add? Would it be possible to replicate what the banner element does?advert2.thumb.png.35ff9ff1fdb43caf294077deff08962b.png

Instead of 'upload smaller versions'. Supply mobile and tablet code.

9 hours ago, newbie LAC said:

I asked on PM and you told me "one replaced advert for all adverts" :)

Lack of being clear and probably rushing on my behalf, sorry about this also Newbie. I should have said this but I honestly don't recall. :(

Link to comment
Share on other sites

11 hours ago, Joey_M said:

'Show On' - is this what you plan to add?

Added already (version 1.0.4)

11 hours ago, Joey_M said:

Would it be possible to replicate what the banner element does?advert2.thumb.png.35ff9ff1fdb43caf294077deff08962b.png

Instead of 'upload smaller versions'. Supply mobile and tablet code.

No. I added select box not code boxes for devices.

Link to comment
Share on other sites

2 hours ago, newbie LAC said:

Added already (version 1.0.4)

No. I added select box not code boxes for devices.

This will require people to have two ads though, perhaps even three.

I will be putting them in blocks, so I'd require two.

-Edit-

Is there a way I may be able to use 1 block but two ad units? (would placing both codes work?) I guess I can try.

Edited by Joey_M
Link to comment
Share on other sites

5 hours ago, newbie LAC said:

You can put in the block as many ads as you want.

Yes, this works well for what I wanted to do.

I'm not sure if this is cache or something but at times the first ad inside a block shows on mobiles despite being set for desktop only.

The triggers a bit hit and miss, so it's kinda random.

20170222_153344.thumb.png.49e7ec16891da168e71fa8feb34129c8.png

This is the same block, but then this happens.

20170222_153308.thumb.png.9f2c15f871f03b96cfd18d5e384af45f.png

I've noticed when this happens, the menu tab doesn't work on the page effected. Not sure if this is helpful info? But i tought I'd just pointing this out.

Link to comment
Share on other sites

  • 4 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    • No registered users viewing this page.

  • Similar Content

    • By Eudemon
      If you can't purchase, please try here (also reduced price)
       
      This plugin enables few features for site wide:
      Optional Light and Dark mode switch
      This differ from other solutions on the marketplace that works for ANY theme with full customization-ability
      User option stays with them, even when they switch device, and since the style is loaded directly from source, you don’t get weird overwrite or lag on every page refreshes
        Optional set message required when reporting
      If you only want this and running 4.4 or below just use this free plugin
        Optional use SVG / Webp logo
      Much smaller size and scale without losing quality
        And more ...
      this app will get more features added Demo: https://turboduck.net/
      Planned features:
      Add flying kitty
       
      All my Apps support
      Follow best coding practice Support language translation
      Reuse default system element as much possible
      ensure compatibility of theme and other component updates Edit logging
      Permission sets
       
    • By Eudemon
      If you can't purchase, please try here (also reduced price)
       
      This plugin enables few features for download
      Optional Add Sign in button and highlight text
      when file require login to download, redirects user back to the page after complete
        Optional Add download button
      that show on top of pagination of auto generated topic
      on click redirects user to the download page
        Plug and play, author will auto follow the generated topic
      based on his follow setting, IPS default just creates the topic with no follow
        Optional Disable user from editing auto generated topic
        Optional allow open linked file in new tab
      External links submitted to download will open in new tab instead of redirect user away from your community
        And more ...
      this plugin will get more features added Planned feature:
      Notification setting auto follow new update on download
      Auto promote user on file approval
      (maybe) show reason why they can't download if exceed quota for download / bandwidth / wait time
       
      All my Apps support
      Follow best coding practice Support language translation
      Reuse default system element as much possible
      ensure compatibility of theme and other component updates Edit logging
      Permission sets
       
    • By InvisionHQ
      This is the support topic for:
      ------------------------------------------------------------------------------
      ------------------------------------------------------------------------------
      BUGS REPORTED:
      none
      SUGGESTIONS NOTED:
      1. would be nice with closed clubs have option to hide homepage or sidebars for non-members.
      2. put the custom block title optional
    • By opentype
      The is a bundle of small layout tweaks I use on my own community sites to change the look of the forums app. I turned them into a plugin so I and anyone else can use them easily without any manual changes to the theme code. 
      The main feature is a forum listing change, which puts the users into focus with large avatar images of the person creating the topic and the last poster. I’ve seen this on a community website once and it instantly convinced me. Instantly showing the people behind the posts makes the topics more personal and users are more likely to answer this way. I also added a few other tweaks, which I find useful or which people have asked for in this community. 
      Demo 1: Typography.Guru
      Demo 2: Typografie.info
      What’s needed: 
      Forums app Detailed Feature/Settings Description:
      Turn the avatar mode for desktop views on or off. Avatar size. mini, small or medium. Remove last poster column from index. A cleaner look and faster loading of the index page.  Dim inaccessible forums. Shows forums which can be seen but not opened with 50% opacity.  Dim forum description. Shows the forum descriptions with less contrast so the titles stand out more.  Remove headline from index. Removes the H1 “Forums” headline if you don’t need it.  Remove tags. Removes the tags from the forum listing views. Creates a much cleaner look.  More feature might be added over time. Feel free to suggest forum layout tweaks in the support topic. 
      Compatibility:
      The plugin only supports regular forums, not Q&A forums.  The plugin should work fine with forums using the stock theme or themes close to the stock theme. I cannot guarantee it will work on heavily modified themes. Third-party apps/plugins should still be able to change or inject content in the affected forum views. I tested a few like Topic Thumbnails or Best Answer on Discussion Forums and they continue to work. Again, there can be no guarantee that there will be no conflicts with third-party apps/plugins, which change the same theme files as this plugin. 
    • By Adriano Faria
      About This File
      This resource will add new features to the Calendar, such as:
      User will receive a notification about the event he has RSVPed in the event date Manage RSVP Attendees Add or Remove Attendees Change event author Swap Reviews & Comments tabs position in event view Add settings to control: Number of comments per page Number of reviews per page Add a new tab in member profile do display all events RSVPed by the member ------------------------------------------------------------------
      Some features listed above already existed in other resources. They will be delisted from marketplace and all existing clients will get a copy of this.
       
       
×
×
  • Create New...