Jump to content

(NB40) Ads After X Posts


newbie LAC

Recommended Posts

Posted (edited)

Following from my questions in the other thread (enhanced adverts), is there a way of placing the ad before the first post?

Edited by PPlanet
Posted
Just now, PPlanet said:

Following from my questions in the other thread (enhanced adverts), is there a way of placing the ad before the first post?

Currently no.

I can add this feature.

  • 1 month later...
Posted
13 hours ago, BABOO2018 said:

I have 5 random ads to be shown after 2nd post. How do I ransomize them? 

I use a javascript for that:

<script language="JavaScript"><!--

//Javascript Created by Computerhope http://www.computerhope.com

//store the quotations in arrays

images = new Array(5);

images[0] = "<a href = 'https://www.example.com'><img src='https://www.example.com/banner1.jpg' alt='Alt Text'></a>";

images[1] = "<a href = 'https://www.example.com'><img src='https://www.example.com/banner2.jpg' alt='Alt Text'></a>";

images[2] = "<a href = 'https://www.example.com'><img src='https://www.example.com/banner3.jpg' alt='Alt Text'></a>";

images[3] = "<a href = 'https://www.example.com'><img src='https://www.example.com/banner4.jpg' alt='Alt Text'></a>";

images[4] = "<a href = 'https://www.example.com'><img src='https://www.example.com/banner5.jpg' alt='Alt Text'></a>";

  
index = Math.floor(Math.random() * images.length);

document.write(images[index]);

//done

// --></script>

You just create an ad using this code and change to suit you. Cheers

  • 1 month later...
Posted (edited)

Hi @newbie LAC. Pretty awesome plug-in, thank you! Can you please elaborate on what "I" does in the plug-in pid settings? Also, I am trying to make it so an ad appears just before the last updated/added post in a thread, regardless of position. For direct links to the last updated post in a thread, I can directly link to the thread with "?do=getNewComment" appended to the query string. 

Edited by 33andrain
Posted
1 hour ago, newbie LAC said:

Hello,

"l" is last post. Start read from here

Thanks. My apologies for missing this exchange in my research. I am still not having any luck and I am sure I am just doing something silly. Would appreciate your assistance. Attached are my settings for the plugin now, however by going here, you can see I am still not seeing the ad after the last post in the thread.

I am trying to show an ad after the first post of each page, and then an ad before the last post in each thread.

 

Screenshot 2018-04-29 06.41.55.png

Posted
1 hour ago, 33andrain said:

Would appreciate your assistance. Attached are my settings for the plugin now, however by going here, you can see I am still not seeing the ad after the last post in the thread.

You link goes to 24 page and Every page param unchecked. In this case advert will be displayed on the first page

  • 3 weeks later...
Posted
On 4/25/2018 at 7:24 AM, newbie LAC said:

Hello,

Yes

Great news, i guess you can mark the mod in marketplace as compatible for 4.3.x ?

This would make it more visible for members looking for working addons for this version

  • 2 months later...
Posted

It is not working with 4.3.5, when trying to install.

Error:

Sorry, there is a problem

The page you requested does not exist

Error code: 1S160/2

Posted
14 hours ago, wimg said:

It is not working with 4.3.5, when trying to install.

Error:

Sorry, there is a problem

The page you requested does not exist

Error code: 1S160/2

Hello,

I can't reproduce

widgets.thumb.jpg.faacaac30581146c44176bb107903a8c.jpg

version.jpg.5216407ee2cdfec2e2e7cec782bde454.jpg

  • 4 weeks later...
Posted

Hi,

Just bought this and trying to configure it

As per screenshot I am in the plugin options

Fore some reason I cannot untick all forums or tick reverse and everypage boxes

add-after-4th-post.thumb.png.3716f1223ff9417f7199b5b59bab6c05.png

  • 1 month later...
  • Recently Browsing   0 members

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