Jump to content

(NB41) Enhanced Advertisements


Recommended Posts

Posted
26 minutes ago, Silnei L Andrade said:

 On the page of specific forum.

For example, if I have a 4x4 vehicle forum in my community and want to post a banner offering tires for these vehicles on this forum page and on all topic pages of this forum, how do I do it?

Add in Extra condition field

{{if isset(\IPS\Output::i()->hiddenElements['nbenhadverts_node_class']) and \IPS\Output::i()->hiddenElements['nbenhadverts_node_class'] instanceof \IPS\forums\Forum and \IPS\Output::i()->hiddenElements['nbenhadverts_node_id'] == 631}}
	1
{{endif}}

 

  • 5 weeks later...
Posted

Hello I am having a hard time understanding the CSS system. 

For example I want an ad after this menu at the complete bottom of the thread page.

image.thumb.png.3a17f674d0fb4bd340649267786c6c79.png

 

If I go with CSS selector I get: ipsToolList ipsToolList_horizontal ipsClearfix ipsSpacer_top ipsResponsive_hidePhone

If I use ipsToolList it appears the first place where its used in the page... not where i wanted it to be.

How does this translate into a usable code for this plugin?

Is there a proper tutorial please? Just saying use a CSS selector is not enough.

Posted

Hello,

13 hours ago, mtlurb said:

For example I want an ad after this menu at the complete bottom of the thread page.

Selector 

.cTopic + .ipsToolList.ipsToolList_horizontal

Position

Insert advert after the chosen element(s)

 

13 hours ago, mtlurb said:

How does this translate into a usable code for this plugin?

.ipsToolList.ipsToolList_horizontal.ipsClearfix.ipsSpacer_top.ipsResponsive_hidePhone

 

13 hours ago, mtlurb said:

Is there a proper tutorial please?

All you need to know is css. If you are not familiar with css feel free to ask me in the support topic or PM (some customers do it)

Posted
13 hours ago, newbie LAC said:

Hello,

Selector 


.cTopic + .ipsToolList.ipsToolList_horizontal

Position


Insert advert after the chosen element(s)

 


.ipsToolList.ipsToolList_horizontal.ipsClearfix.ipsSpacer_top.ipsResponsive_hidePhone

 

All you need to know is css. If you are not familiar with css feel free to ask me in the support topic or PM (some customers do it)

Ok so the proper to do it is to insert . between each css style of an element?

Thanks!!

Posted

Thank you it works!

 

My other question is regarding this page: https://mtlurb.com/discover/

It is a page that dynamically loads, and I am able to place an ad only in the section that loaded first, not subsequent sections.

 

I tried: 

.ipsStreamItem_contentBlock:eq(50)

And it doesnt show.

Thanks for the help!

Posted
On 11/15/2019 at 11:46 PM, mtlurb said:

My other question is regarding this page: https://mtlurb.com/discover/

It is a page that dynamically loads, and I am able to place an ad only in the section that loaded first, not subsequent sections.

 

I tried: 

.ipsStreamItem_contentBlock:eq(50)

And it doesnt show.

I'll look into that

  • 3 weeks later...
Posted

@newbie LAC, I just purchased your enhanced ad module.  It looks good so far.  A few questions:

  1. My existing ads are not showing up in the advert list (on your module).  How do I get them to show up?
  2. How do I enable the click counter for ads that I've already got running?
  3. I want to show an ad for every 3 posts when a guest is viewing a topic.  How do I get this going?  (I had your previous Ads after X posts and want to get that working again)

Thank you!

Mike

Posted

Hello,

8 hours ago, Mike Gholson said:
  • My existing ads are not showing up in the advert list (on your module).  How do I get them to show up?

Do you mean this?

ea.jpg.306f294c73bb14f9b4225890926f1a45.jpg

That page displays ads with clicks

ae2.thumb.jpg.f27768c89b66859299e91c4420bbe192.jpg

8 hours ago, Mike Gholson said:
  • How do I enable the click counter for ads that I've already got running?

ea3.thumb.jpg.2a4a385b40780553487409e7b1b7303f.jpg

 

ea4.jpg.2d84b6e26b6c11cbe8135e9ef2925e91.jpg

8 hours ago, Mike Gholson said:
  • I want to show an ad for every 3 posts when a guest is viewing a topic.  How do I get this going?  (I had your previous Ads after X posts and want to get that working again)

CSS selector

.cPost:nth-child(3n)

Position

Insert advert after the chosen element(s)

 

Posted

Great thanks!  I suppose the ads weren't showing up on your module because I didn't have the click log enabled?  Will try that now.

I am a bit confused with the ad after every 3 posts, but, will look into it tomorrow when I have a bit more time to follow your instruction.

Mike

Posted
1 minute ago, Mike Gholson said:

I suppose the ads weren't showing up on your module because I didn't have the click log enabled?

You have no ads clicked by users. My application logs clicks and show the stats (see above screenshot).

4 minutes ago, Mike Gholson said:

I am a bit confused with the ad after every 3 posts, but, will look into it tomorrow when I have a bit more time to follow your instruction.

ea5.jpg.e653c8d45f4814c2058c568c50683cba.jpg

Posted
15 hours ago, newbie LAC said:

Hello,

It's css

I explain how it works here

Thanks.  However, I am not a CSS programmer so I don't know where to find these elements?  Is there a simple way to find them?

m

  • 4 weeks later...
Posted

Abs adore this product.

Quick question on Clubs. I see you've answered this before but I didn't quite understand the solution.

When I target forums, Club forums are included too. What is the 'and not clubs' condition that I need to use to exclude Clubs from other selection sets.

Many thanks!

Posted
42 minutes ago, christopher-w said:

Quick question on Clubs. I see you've answered this before but I didn't quite understand the solution.

When I target forums, Club forums are included too. What is the 'and not clubs' condition that I need to use to exclude Clubs from other selection sets.

Hello,

What condition are you using?

Posted (edited)
47 minutes ago, newbie LAC said:

Hello,

What condition are you using?

I'm not using anythng specific at the moment, but for example if I used your example from the admin panel, could I include a not clubs parameter in this?

 

{{if request.app == 'forums' and request.module == 'forums' and request.controller == 'forums'}}1{{endif}}
Edited by christopher-w
Posted (edited)

 

2 minutes ago, christopher-w said:

if I used your example from the admin panel, could I include a not clubs parameter in this?

{{if request.app == 'forums' and request.module == 'forums' and request.controller == 'forums' and !isset(\IPS\Output::i()->hiddenElements['nbenhadverts_club_id'])}}1{{endif}}

 

Edited by newbie LAC
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...