PDA

View Full Version : Show Thread Enhancements - Innovative Ads After First Post (Or any post!)


TheLastSuperman
08-24-2010, 10:00 PM
Innovative Ads After First Post

By:
https://vborg.vbsupport.ru/external/2010/08/16.png


I decided to make this while creating another modification as I have seen this requested many times, I Google'd it finding details on what template to edit plus I searched here on vbulletin.org and only found old "modifications" which were actually just tutorials and none were actual products that did most of the work for you :p.

Description:

Ad after first post on very page or as some describe it, Ad after first post in a thread - This modification places two ads in a post like container below the first post on every page in a thread. Fully customizable to allow all sorts of ad codes such as Google Adsense, OpenX Ads, and various others along with the possibility for the user to design his own images and link them to the appropriate content. Users can also customize CSS or remove the DIV codes to use show only one ad or any sort of advertisement and display any form of content other than ads!


Please see post #'s 6 & 7 for codes to display this after a certain post on each page not simply after the first post!
More information on vB4 Conditionals can be found here: https://vborg.vbsupport.ru/showthread.php?t=231525 Special thanks should go to BBR-APBT for taking the time to write that article.


Features:

Enable or Disable via Settings in vBulletin Options.
Fully Customizable.
Auto-template.


Required Changes:
(Manual i.e. "To Do")

Edit the new template postbit_legacy_ads_after_firstpost and simply add in your scripts or codes to show them which is very simple as I included commented out code to show you exactly where to place it. *This shows in Postbit AND Postbit_Legacy depending on what you have enabled.

(Optional i.e. If you need to adjust the css to make it match your style better if using a custom Fixed width etc.)

Edit the new template adsafterfirstpost.css and adjust the css as desired!


(Automatic)

Templates to add: 2 ('postbit_legacy_ads_after_firstpost','adsafterfir stpost.css')
Phrases to add: 3


Difficulty:
Easy, Time to install: Around 1 Minute - Installer is included simply import the product;
AdminCP > Plugins & Products > Manage Products > *Now click the [ADD/IMPORT PRODUCT] link to import from your computer (download below). Adding in your own codes and customizing if you see fit takes a few more minutes.

History:
8.24.2010: Version 1.0 Created

IMPORTANT:
In the postbit_legacy_ads_after_firstpost template please find:
<div id="innovativeadleft">
<vb:comment> Left Ad Code Below this Commented out line </vb:comment>
Left Ad Image/Code 1 needs to be placed here, no larger than 260 pixels in height.
<vb:comment> Left Ad Code Above this Commented out line </vb:comment>
</div>
<div id="innovativeadright">
<vb:comment> Right Ad Code Below this Commented out line </vb:comment>
Right Ad Image/Code 2 needs to be placed here, no larger than 260 pixels in height.
<vb:comment> Right Ad Code Above this Commented out line </vb:comment>
</div>
As you can see I have added in commented code to let you know where your custom ads codes need to be placed, very simple.

*Remember to enable the mod after installing otherwise it won't show!
AdminCP > Settings > Options > Innovative Ads After First Post and set to Yes.
*Attention- Please view the first page as the 2nd and 3rd (Added: Post #'s 6 & 7 also contain info on how to customize!) posts were reserved and contain additional information to help you customize this in various ways.

What can you expect in the next version?

No template edits, Ads codes will be entered into the admin control panel area where the mod is currently enabled/disabled. If you have a custom style CSS changes will still be required if you notice any position issues etc.


TheLastSuperman :rolleyes:
http://www.innovationbyinstinct.com

https://vborg.vbsupport.ru/external/2010/08/17.png

https://vborg.vbsupport.ru/external/2014/06/21.png

TheLastSuperman
08-25-2010, 02:21 AM
How to Customize the Template:
I will update this as questions are posted.

Currently the mod shows these Ads to Guest and Members, to show this only to Members OR Guest edit the template postbit_legacy_ads_after_firstpost and find:

<vb:if condition="$show['guest'] OR $show['member']">

Remove the $show['guest'] and the OR to show this to Members only.
Remove the OR and the $show['member'] to show this to Guest only.

Currently the mod has a link to REGISTER on your site as the post title per say, to change this link if your NOT showing this to Guest Only edit the same template as above and find:

<span class="innovativetitle"><a href="register.php">Register to remove these Ads!</a></span>

Replace the <a href="register.php">Register to remove these Ads!</a> with your link OR text.

Please see post #'s 6 & 7 for codes to display this after a certain post on each page not simply after the first post!
More information on vB4 Conditionals can be found here: https://vborg.vbsupport.ru/showthread.php?t=231525 Special thanks should go to BBR-APBT for taking the time to write that article.

How to locate the templates:

AdminCP > Styles & Templates > Style Manager > *Select Edit Templates in the drop-down for your style. While scrolling through the templates some are titles for a group of templates so we have added two new templates by installing this mod and they are located within the CSS Templates and the Posbit Templates "Families".

In the Postbit Templates find the template postbit_legacy_ads_after_firstpost to paste your AD codes or well.. anything!
In CSS Templates find the template adsafterfirstpost.css to adjust the CSS as desired.

Additional Info to add these ads after any post or before the last

Good stuffs, Clark. Can it be set so as you can choose which post # the ads go to? i.e. atm, they're forced after post #1... but What if I wanted it to be on post #9 instead?

Hmm you should be able to, open the template postbit_legacy_ads_after_firstpost and find:

<vb:if condition="!$GLOBALS['FIRSTPOSTID']">

Replace with:

<vb:if condition="$post['postcount'] % $vboptions['maxposts'] == ?">

Replace the ? mark with the post number you want the Ads to show after and DO NOT include a trailing </vb:if> as it's already near the bottom ;).

Let me know if that works :D.

Oooooor, I might want it so it's always the 'last but one' post..?

Well that depends on your post per page settings:

AdminCP > settings > Options > Thread Display Options (showthread) > Maximum Displayed Posts Before Page Split



So if you have that set to 20 posts per page before the split simply use the code I just posted above and change the ? mark to 19 ;).

Example:

<vb:if condition="$post['postcount'] % $vboptions['maxposts'] == 19">

TheLastSuperman
08-25-2010, 02:24 AM
How to Customize the CSS:
I will update this as questions are posted.

In CSS Templates find the template adsafterfirstpost.css to adjust the CSS as desired.

*The Height and Width of the Ad container and the inner Left and Right Ad containers even though it shows in the screenshot and says max height of 260, can all be adjusted in the CSS template ;).
*You can fully customize the template to show something other than ads, be creative and post if you have questions!

karlm
08-25-2010, 03:06 AM
Good stuffs, Clark. Can it be set so as you can choose which post # the ads go to? i.e. atm, they're forced after post #1... but What if I wanted it to be on post #9 instead?

karlm
08-25-2010, 03:07 AM
Oooooor, I might want it so it's always the 'last but one' post..?

TheLastSuperman
08-25-2010, 03:11 AM
Good stuffs, Clark. Can it be set so as you can choose which post # the ads go to? i.e. atm, they're forced after post #1... but What if I wanted it to be on post #9 instead?

Hmm you should be able to, open the template postbit_legacy_ads_after_firstpost and find:

<vb:if condition="!$GLOBALS['FIRSTPOSTID']">

Replace with:

<vb:if condition="$post['postcount'] % $vboptions['maxposts'] == ?">

Replace the ? mark with the post number you want the Ads to show after and DO NOT include a trailing </vb:if> as it's already near the bottom ;).

Let me know if that works :D.

TheLastSuperman
08-25-2010, 03:15 AM
Oooooor, I might want it so it's always the 'last but one' post..?

Well that depends on your post per page settings:

AdminCP > settings > Options > Thread Display Options (showthread) > Maximum Displayed Posts Before Page Split

Maximum Displayed Posts Before Page Split
The number of posts to display on a thread page in linear or hybrid mode before splitting it over multiple pages.

Note: This number must be at least 1.

So if you have that set to 20 posts per page before the split simply use the code I just posted above and change the ? mark to 19 ;).

Example:

<vb:if condition="$post['postcount'] % $vboptions['maxposts'] == 19">

hardfm
08-25-2010, 09:06 AM
and if I wish to have this every 2 posts? so after 2nd, 4th and 6th and so on?

karlm
08-25-2010, 09:54 AM
and if I wish to have this every 2 posts? so after 2nd, 4th and 6th and so on?
You'd get a lot of very annoyed viewers...

TheLastSuperman
08-25-2010, 10:03 AM
and if I wish to have this every 2 posts? so after 2nd, 4th and 6th and so on?

Then do the same thing I posted above i.e.

Hmm you should be able to, open the template postbit_legacy_ads_after_firstpost and find:

<vb:if condition="!$GLOBALS['FIRSTPOSTID']">

Replace with:

<vb:if condition="$post['postcount'] % $vboptions['maxposts'] == ?">

Replace the ? mark with the post number you want the Ads to show after and DO NOT include a trailing </vb:if> as it's already near the bottom ;).

Let me know if that works :D.

If you meant show the ads after the 2nd, 4th, and 6th then karlm is speaking the truth imo, they will spite you most likely and tbo if I ever go to a site with ads after the post 2, 4, 6, 8, 10, 12 I'll never register in fact I'll run away from that site in the opposite direction as fast as humanly possible :p. If you MARK AS INSTALLED I'll be happy to provide the code but head our "warnings" per say and make an informed decision ;).

You'd get a lot of very annoyed viewers...

I think you're correct here but to each his own so if anyone wants something custom simply mark as installed!

karlm
08-27-2010, 02:05 AM
So if you have that set to 20 posts per page before the split simply use the code I just posted above and change the ? mark to 19 ;).


I don't believe this would work - it would be the last but one on a full page, but it would not show as last but one on a page with 18 replies... I haven't downloaded/installed as yet because I currently do not feel any pressing need, however, I do recognize it's potential and think it's a great assistant for those who may want help.

TheLastSuperman
08-28-2010, 05:17 PM
I don't believe this would work - it would be the last but one on a full page, but it would not show as last but one on a page with 18 replies... I haven't downloaded/installed as yet because I currently do not feel any pressing need, however, I do recognize it's potential and think it's a great assistant for those who may want help.

Well in that case you could simply add in a <vb:elseif condition= to accommodate, remember with the mod you released that's template edits similar to this for vB3, elseif was not available but in vB4 it is ;).

halkum
08-30-2010, 06:53 AM
You'd get a lot of very annoyed viewers...

Not to mention a ton of the ad companies do not allow multiple placements on one page, and can even dock your payout, or suspend the account. Others don't even count the click and views.

Nice mod :)

TheLastSuperman
08-30-2010, 07:10 AM
Not to mention a ton of the ad companies do not allow multiple placements on one page, and can even dock your payout, or suspend the account. Others don't even count the click and views.

Nice mod :)

Best bet is to check their TOS or other related information for all the details and make sure your not violating any sort of rule etc.

TY, simple enough ;).

Aramist
02-08-2011, 06:04 PM
It's not compatible with vb 4.1 =/

can't proceed with the installation =/

deverill2010
02-22-2011, 04:25 PM
What this doesn't work on 4.1.2 at all?

TheLastSuperman
02-23-2011, 06:26 PM
It's not compatible with vb 4.1 =/

can't proceed with the installation =/

What this doesn't work on 4.1.2 at all?

You both sound so surprised? Normally it's one quick file edit for the version compatibility however in 4.1 etc something has changed I'll have an update out soon bear with me :cool: or not :p.

TheLastSuperman
02-23-2011, 06:39 PM
It's not compatible with vb 4.1 =/

can't proceed with the installation =/

What this doesn't work on 4.1.2 at all?

And done! Anyone using 4.1+ download the v2 .xml, it is not currentl compatible with 4.2 i.e. it's maxed out currently at 4.1.9 however once 4.2 comes out I'll update it then.

Sincerely,

Mike

deverill2010
02-24-2011, 06:21 AM
Thank you! When I can't a chance I'll get this installed :D

azcs bryan
02-26-2011, 05:07 PM
How to Customize the CSS:
I will update this as questions are posted.

In CSS Templates find the template adsafterfirstpost.css to adjust the CSS as desired.

*The Height and Width of the Ad container and the inner Left and Right Ad containers even though it shows in the screenshot and says max height of 260, can all be adjusted in the CSS template ;).
*You can fully customize the template to show something other than ads, be creative and post if you have questions!

First off, thank you for taking something that required a whole ton of editing, and simplifying it for us "common folk" ;)

I edited the adsafterfirstpost.css to read:

height: 200px;


rather than 260px, because I love the location and placing, however I would like to make it shorter in display. It hasnt reflected any changes tho, and is still displaying the 260px box/container. Am I doing something wrong?

thanks again!

TheLastSuperman
02-27-2011, 01:41 AM
First off, thank you for taking something that required a whole ton of editing, and simplifying it for us "common folk" ;)

I edited the adsafterfirstpost.css to read:

height: 200px;


rather than 260px, because I love the location and placing, however I would like to make it shorter in display. It hasnt reflected any changes tho, and is still displaying the 260px box/container. Am I doing something wrong?

thanks again!

In there are three definitions related to the height check it out:

#innovativeadspan {
width: 100%;
height: 260px;
margin-right: auto;
margin-left: auto;
}
#innovativeadleft {
width: 45%;
height: 260px;
float: left;
margin-left: 15px;
}
#innovativeadright {
width: 45%;
height: 260px;
float: right;
margin-right: 15px;
}

The innovativeadspan is the "Container" then innovativeadleft and right are for those sides respectively. If you change the left or right height to 200 then also change the innovativeadspan as well however the span should control the overall height regardless simply tinker to see the results but the span is the master value per say ;).

azcs bryan
02-28-2011, 12:20 AM
In there are three definitions related to the height check it out:

The innovativeadspan is the "Container" then innovativeadleft and right are for those sides respectively. If you change the left or right height to 200 then also change the innovativeadspan as well however the span should control the overall height regardless simply tinker to see the results but the span is the master value per say ;).

I tried and tried but to no avail, with editing the css. I was however successful when i edited the postbit_legacy_ads_after_firstpost

the section here:


<div class="postdetails" style="height:220px;">
<div style="margin-top:10px;"></div>


Originally the height:220px was set to 320px, as well as the margin-top:10px was set to 20px. Either way, that was successful!

Thank you for this awesome addon, and I will be eagerly awaiting the next version with Admin CP editing of the ads! :D127017

abdicar
03-03-2011, 01:50 AM
Hello developer, this is very important and cool mod.

I just want to ask you, why it is not compatible by default with lasts versions? Because we see mods that works with a lot of versions in the future and well looks like each new version break this mod.

Thank you for your feedback

TheLastSuperman
03-05-2011, 03:44 AM
Hello developer, this is very important and cool mod.

I just want to ask you, why it is not compatible by default with lasts versions? Because we see mods that works with a lot of versions in the future and well looks like each new version break this mod.

Thank you for your feedback

This is supposed to be default functionality, last time I checked it was still not working i.e. a bug so I added a version dependency to the code. When it's fixed this mod will no longer be required and some max out the version simply not knowing what's on the way... I hope those making modifications in regards to the editor are not as a change is in store there as well ;).

sweetguy2004
03-06-2011, 06:38 AM
nice script make it more admin friendly i will wait for next version coz i dnt like to edit templates.

LbR
03-13-2011, 02:04 PM
Brilliant product man!!! thanks

Teascu Dorin
03-13-2011, 11:01 PM
This product is great but it seems is appearing for registered users and me as administrator also. Shouldn't be seen only by visitors /unregistered?

Thank you!

flaguns
03-17-2011, 05:52 AM
Very nice!! Thanks a ton, I really like this.

I changed the height as mentioned above, and changed the margin to a 10px 10px 10px 10px instead of just the 20px top and I really think it looks great! :up:

Luca_000
03-20-2011, 12:36 PM
hello,
if i would like to put the post after the first one of each page and after the sixth message (if present), how i can do?
thank you

denman75
03-20-2011, 02:04 PM
would be great if u can insert your own adverts ,and leave google ads out

ninadbe
03-22-2011, 11:44 AM
Is it possible to show customized PHP code in AD box instead of ADS?
I mean I want to show related images extracted from remote server in a box.

below are some lines of my code

$dbh=mysql_connect("remote_server_ip:3306", "username", "password") or die
('I cannot connect to the database because: ' . mysql_error());

mysql_select_db ("db_name", $dbh);

--php code here for extracting and displaying images--

karlm
04-04-2011, 06:32 AM
I second the above post... I returned to this thread as I've got another forum I'm setting up and wish to use this (or similar) to extract data either from a text-file or a database..

Once I can do that, I'll be implementing this product on my new site.

Breakpoint
04-27-2011, 01:49 AM
Great product, hope you can implement the mod to integrate more into the Admin CP

mdreamer
05-14-2011, 08:38 AM
Hi,

First of all thank you for this nice mod :) its really simple and helpful

just one question:

Well in that case you could simply add in a <vb:elseif condition= to accommodate, remember with the mod you released that's template edits similar to this for vB3, elseif was not available but in vB4 it is ;).

can you help my out with the elseif condition? i would like it to appear before the last post of each thread if it has 2 posts or couple of tens of posts spared in couple of pages

Thanks again.

Maayan

el-Turki
05-20-2011, 05:22 AM
What would be the code to have several banners (with different links) rotating?

TheLastSuperman
05-23-2011, 05:47 AM
Hi,

First of all thank you for this nice mod :) its really simple and helpful

just one question:



can you help my out with the elseif condition? i would like it to appear before the last post of each thread if it has 2 posts or couple of tens of posts spared in couple of pages

Thanks again.

Maayan

https://vborg.vbsupport.ru/showthread.php?t=231525

Scroll to the very bottom and reference the elseif, then adjust using the conditionals we have been discussing in this thread and in the description :cool:.

What would be the code to have several banners (with different links) rotating?

You could use something along the lines of:

<script type="text/javascript"><!--
showbanner = new Array(3);

showbanner[0] = "<a href='http://www.yoursite.com/index.php'><img src="images/banner1.png" alt="My text here"/></a>";

showbanner[1] = "<a href='http://www.yoursite.com/index.php'><img src="images/banner1.png" alt="My text here"/></a>";

showbanner[2] = "<vb:if condition="$show['guest']"><a href='register.php{vb:raw session.sessionurl}'>Become a member &amp; get full access, additional privileges, and more</a><vb:else /><a href='http://www.yoursite.com/index.php'><img src="images/banner1.png" alt="My text here"/></a></vb:if>";

index = Math.floor(Math.random() * showbanner.length);
document.write(showbanner[index]);
//End
// --></script>

And as you can see conditionals work fine as well, used in the last one.

mdreamer
06-02-2011, 10:05 AM
thanks :)

maryx
06-03-2011, 02:12 PM
Can anyone suggest how to make a widget show up in this ad space in the forum? I have tried this -

1) putting the widget title in the space for the ad in the postbit_legacy_ads_after_firstpost template. The widget title shows up on the correct area of the page, but not the widget itself.

2) I put in the widget code in the right spot, but it doesn't show up at all.

Would love to be able to do this! Thanks!

bderen
02-22-2012, 01:48 AM
how about vb 3.8.2?

twista46
03-06-2012, 02:06 PM
4.1.11 not kompatibel. (Kompatibel ab 4.0.0 Beta 3

michaelbang
04-25-2012, 08:16 PM
Does this work in 4.1.11?

Thanks.

TheLastSuperman
04-25-2012, 08:42 PM
And done! Anyone using 4.1+ download the v2 .xml, it is not currentl compatible with 4.2 i.e. it's maxed out currently at 4.1.9 however once 4.2 comes out I'll update it then.

Sincerely,

Mike

how about vb 3.8.2?

Unfortunately no however you can do a simple template edit in 3.8.x and also use conditional to achieve the same thing ;).

4.1.11 not kompatibel. (Kompatibel ab 4.0.0 Beta 3

Minimum required version is 4.0.0 Beta 3 but max was topped at 4.1.9 why? Because this was supposed to be default long ago there was no need to have some installing something if it was fixed/default in a newer version.

Does this work in 4.1.11?

Thanks.

It does now please download and try the file product-innovative_ads_after_firstpost-v3.xml for use on any version past 4.1.9! :cool:

michaelbang
04-30-2012, 06:04 PM
Can I combine this mod with a mod/script that will allow me to have banners rotating? Besides Google Adsense of course. I want to run my own ads on my site.

But right now, with the standard mod, I can only have two banners at a time. One left and one right. I want maybe 10 different banners rotating in the two places after the first post.

BTW - great mod! Thanks.

michaelbang
04-30-2012, 09:46 PM
I'm using a solution for my ads called SimpleAds, but when I paste my ad-codes in your mod, nothing shows up. Can you tell from this code, if anything's wrong with my ad-code? Maybe it's not compatible? Or I'm using a wrong type of code?

I've tried different advertisers just to check, and they work just fine. E.g. Google Adsense. So it must be the code below.

<?php /* PMC 2012 */ chdir("/home/www/mysite.com/mysimpleads"); include_once("/home/www/mysite.com/mysimpleads/mysimpleads.php");show_ad(1); ?>

Thanks a million!

TheLastSuperman
05-01-2012, 02:42 AM
Can I combine this mod with a mod/script that will allow me to have banners rotating? Besides Google Adsense of course. I want to run my own ads on my site.

But right now, with the standard mod, I can only have two banners at a time. One left and one right. I want maybe 10 different banners rotating in the two places after the first post.

BTW - great mod! Thanks.

I've used this with it before, works rather well - https://vborg.vbsupport.ru/showthread.php?t=188328 although two on the same page could produce missiong images every so often so perhaps find another similar style script and use one on one side, one on the other ;).

I'm using a solution for my ads called SimpleAds, but when I paste my ad-codes in your mod, nothing shows up. Can you tell from this code, if anything's wrong with my ad-code? Maybe it's not compatible? Or I'm using a wrong type of code?

I've tried different advertisers just to check, and they work just fine. E.g. Google Adsense. So it must be the code below.

<?php /* PMC 2012 */ chdir("/home/www/mysite.com/mysimpleads"); include_once("/home/www/mysite.com/mysimpleads/mysimpleads.php");show_ad(1); ?>

Thanks a million!

Yes it's the code, see the <?php beginning and end? vBulletin itself will not even let you paste that into a template so in other words you'll have to whip something custom up to accommodate or see if they have some alternative version (javascript or other) that will easily show when pasted into the template :cool:.

RedPoint
05-04-2012, 06:56 PM
I use idevSpot-TextAds 3.0 for my textads.
The code for ads is a PHP but the "support team" from idevSpot not offer support for own clients - be my last buy from this company :mad:

The code show this:
<?php $boxid=1; ?><?php include "/var/www/vhosts/domain/httpdocs/advertiser/adbox/adbox.php" ; ?>

Give a update for your addon to can use this realy dumb idev-textad?

datoneer
06-08-2012, 03:26 PM
Great mod! Installed and nominated!

datoneer
06-08-2012, 07:52 PM
I want to know one thing. I've notice when adblock plugin is enabled the ads area is still there(just without ads)
example: http://www.imspot.org/content-creation/1567-quality-content.html#post7501

It looks bad, can i do something to disappear totally?

datoneer
07-13-2012, 05:46 PM
Amazing Mod! Rated, installed, +++++++

princesspepper
07-15-2012, 10:17 AM
It does now please download and try the file product-innovative_ads_after_firstpost-v3.xml for use on any version past 4.1.9! :cool:
I am running V4.2 PL2 and V3 will not install for me... it says it's not compatible. Is this just a case of the version number in the product file needs editing, or is it really not compatible?

princesspepper
07-19-2012, 01:43 PM
I take it no one's supporting this anymore...? It's been over 2 months since the last reply from the developer...

mollila
07-25-2012, 09:48 AM
I am running V4.2 PL2 and V3 will not install for me... it says it's not compatible. Is this just a case of the version number in the product file needs editing, or is it really not compatible?
I tried that, and got it to work.

Same thing happened to me. When trying to import while running VB 4.2.0, the import failed with error message that this plugin is not compatible.

I opened the XML file in Notepad and edited the maxversion number to be 4.2.1 instead of 4.2.0 and it installed fine, and seems to be running fine on a live site (http://www.rakeback.com/poker-forum/threads/11163-KK-Overpair-at-25NL).

From:
<dependency dependencytype="vbulletin" minversion="4.0.0 Beta 3" maxversion="4.2.0" />

To:
<dependency dependencytype="vbulletin" minversion="4.0.0 Beta 3" maxversion="4.2.1" />

Nirjonadda
11-24-2012, 02:18 PM
Can you update this mod work on without manual template edit ?

planetMitch
03-01-2013, 07:41 PM
I tried that, and got it to work.

Same thing happened to me. When trying to import while running VB 4.2.0, the import failed with error message that this plugin is not compatible.

I opened the XML file in Notepad and edited the maxversion number to be 4.2.1 instead of 4.2.0 and it installed fine, and seems to be running fine on a live site (http://www.rakeback.com/poker-forum/threads/11163-KK-Overpair-at-25NL).

From:
<dependency dependencytype="vbulletin" minversion="4.0.0 Beta 3" maxversion="4.2.0" />

To:
<dependency dependencytype="vbulletin" minversion="4.0.0 Beta 3" maxversion="4.2.1" />

Thanks for posting this -- I'm testing now on 4.2 - much appreciated.

and - if you saw this post before I edited it (removing the goof), I found the code to add the add after the 4th post... nevermind! ;)

mostafa10601
02-06-2014, 03:59 AM
update this mod plz....

can not import for vb 4.2.2

TheLastSuperman
02-06-2014, 06:18 AM
update this mod plz....

can not import for vb 4.2.2

Done! Download the file product-innovative_ads_after_firstpost-v4.xml

Edit: Revision pending for this mod, it works fine as-is but I'm going to re-write it so there are options to display one large ad or two side-by-side ;).

Zilvia
02-26-2014, 05:18 PM
Could I pay you to make this work in 3.8.x?

TheLastSuperman
02-27-2014, 06:59 AM
Could I pay you to make this work in 3.8.x?

Erm not supposed to talk about stuff like that in modification threads but try this out for now:
http://www.vbulletin.com/forum/forum/vbulletin-3-8/vbulletin-3-8-questions-problems-and-troubleshooting/vbulletin-quick-tips-and-customizations/203766-how-to-show-a-banner-after-the-first-post-in-a-thread

^ That will serve the purpose just the same, I'll see about updating this for 3.x at a later date, already had my fill for the night (work :p).

DemOnstar
02-27-2014, 01:51 PM
live site (http://www.rakeback.com/poker-forum/threads/11163-KK-Overpair-at-25NL).


I followed the url above and got this from Avast.

Relax, your avast! just saved you from a virus.
Protect yourself against other types of threats by upgrading now.

URL: http://sharkypro.synology.me/VB4/includes/middle.php...
Infection: HTML:Agent-IS [Trj]

MYU
03-15-2014, 11:47 PM
This product is great but it seems is appearing for registered users and me as administrator also. Shouldn't be seen only by visitors /unregistered?

Thank you!

Same here, members do not see it but the mods/admin still do. I've tried my own code which works for other ad placements, it still shows for mods/admins?

Really good mod but it's starting to do my head in now. :(

TheLastSuperman
03-19-2014, 12:29 AM
This product is great but it seems is appearing for registered users and me as administrator also. Shouldn't be seen only by visitors /unregistered?

Thank you!

Same here, members do not see it but the mods/admin still do. I've tried my own code which works for other ad placements, it still shows for mods/admins?

Really good mod but it's starting to do my head in now. :(

The mod uses a template, in that template you define the <vb:if codes>

Here is the template:
<vb:comment>Start of Innovative Ads After First Post</vb:comment>
<vb:if condition="$show['guest'] OR $show['member']">
<vb:if condition="!$GLOBALS['FIRSTPOSTID']">
<li class="postbitlegacy postbitim postcontainer" id="post_{vb:raw post.postid}">
<div class="posthead" style="height:15px;"><span class="innovativetitle"><a href="register.php">Register to remove these Ads!</a></span>
</div>
<div class="postdetails" style="height:320px;">
<div style="margin-top:20px;"></div>
<div id="innovativeadspan">
<div id="innovativeadleft">
<vb:comment> Left Ad Code Below this Commented out line </vb:comment>
Left Ad Image/Code 1 needs to be placed here, no larger than 260 pixels in height.
<vb:comment> Left Ad Code Above this Commented out line </vb:comment>
</div>
<div id="innovativeadright">
<vb:comment> Right Ad Code Below this Commented out line </vb:comment>
Right Ad Image/Code 2 needs to be placed here, no larger than 260 pixels in height.
<vb:comment> Right Ad Code Above this Commented out line </vb:comment>
</div>
</div>
</div>
</li>
</vb:if>
</vb:if>
<vb:comment>End of Ads After First Post</vb:comment>

What would you modify to make a change? This line:
<vb:if condition="$show['guest'] OR $show['member']">

To show it only to guests make it this:
<vb:if condition="$show['guest']">

:cool:

venomx
03-24-2014, 06:02 AM
Getting ready to set up a vB site again. Would be great if this would only show if there was more than 2 posts in a thread..

I use to know how to do this... Guess I am going to have to learn all over again.

ramesh_umk3
03-24-2014, 02:13 PM
for now you can refer this reply https://vborg.vbsupport.ru/showpost.php?p=2487868&postcount=74

venomx
03-24-2014, 06:40 PM
Thanks!

cungchuctanxuan
08-02-2014, 03:56 PM
Hi,
How do I change the background color?

markoroots
01-20-2015, 02:45 PM
Hi SuperMan :) can you make a great thing for us all???
Superman never say no :) especially the last one. :D ;)
If you make a graphic interface to integrate the use of this plugin from the Admincp and add the possibility to decide where to add the banners, after the first post, after the second or the third, or each 3 posts more better...
I think you make one of the best mod on vb.org ;)

Know that be making this, will be a really great mod. ;)

Thanks for reading and blesses for you, others more if you do these implementations for us. :)

;)

Randhal007
01-24-2015, 03:33 PM
Interesting mods
but I'm having problems when using on my site

markoroots
01-24-2015, 04:59 PM
Is there a possibility to count clicks and impressions?

markoroots
02-11-2015, 10:07 PM
Hi there, please how can I add only one banner of 728x90 in the box?
Thanks in advance.

markoroots
02-19-2015, 09:00 AM
Hi there, please how can I add only one banner of 728x90 in the box?
Thanks in advance.

Sorry...
I have found the answer in this thread. ;)

Only one thing...
I add this code like was explained:

<vb:comment>Start of Innovative Ads After First Post</vb:comment>
<vb:if condition="$post[postcount] == 1 OR $post[postcount] % 11 == 0">

<div class="postbit">
<h3 style="color: rgb(189, 189, 189); font-weight: bold;" class="posthead">&nbsp;&nbsp;Sponsored Links</h3>

<div align="center" style="padding:3px;" class="postbody">
<!-- Begin CigClick Network Code -->
<div style="text-align:center">
<script language="javascript"><!--//
var server_client_id = 1189;
var server_ad_channel = 1;
var server_publisher_channels = "";
var server_media_types = "hybrid";
var server_integrate_media_types = 0;
var server_ad_width = 728;
var server_ad_height = 90;
var server_ad_style = "728x90_as";
var server_code_version = "4";
var server_ad_color_border = "7E8AA2";
var server_ad_color_background = "F7FAE0";
var server_ad_color_headline = "7E8AA2";
var server_ad_color_body = "000000";
var server_ad_color_url = "666EBA";
var server_ad_random = 1;
//--></script>
<script type="text/javascript" src="http://adsby.cigclick.com/ads/display_ads.php">
</script>
<!-- End CigClick Network Code -->

</div>

</vb:if>
<vb:comment>End of Ads After First Post</vb:comment>


but in this way all the posts after the first are all visualized in a wrong way,
so I think that I make wrong something in the code.

Can someone help me please?

Thanks in advance.

markoroots
02-25-2015, 05:51 PM
no one?

TheLastSuperman
02-25-2015, 09:24 PM
Hi SuperMan :) can you make a great thing for us all???
Superman never say no :) especially the last one. :D ;)
If you make a graphic interface to integrate the use of this plugin from the Admincp and add the possibility to decide where to add the banners, after the first post, after the second or the third, or each 3 posts more better...
I think you make one of the best mod on vb.org ;)

Know that be making this, will be a really great mod. ;)

Thanks for reading and blesses for you, others more if you do these implementations for us. :)

;)

I do need to do that, in fact meant to a loooooooong time ago then simply forgot so thanks for the reminder and of course when time permits :cool:.

Interesting mods
but I'm having problems when using on my site

For example? ;) :cool:

Sorry...
I have found the answer in this thread. ;)

Only one thing...
I add this code like was explained:

<vb:comment>Start of Innovative Ads After First Post</vb:comment>
<vb:if condition="$post[postcount] == 1 OR $post[postcount] % 11 == 0">

<div class="postbit">
<h3 style="color: rgb(189, 189, 189); font-weight: bold;" class="posthead">&nbsp;&nbsp;Sponsored Links</h3>

<div align="center" style="padding:3px;" class="postbody">
<!-- Begin CigClick Network Code -->
<div style="text-align:center">
<script language="javascript"><!--//
var server_client_id = 1189;
var server_ad_channel = 1;
var server_publisher_channels = "";
var server_media_types = "hybrid";
var server_integrate_media_types = 0;
var server_ad_width = 728;
var server_ad_height = 90;
var server_ad_style = "728x90_as";
var server_code_version = "4";
var server_ad_color_border = "7E8AA2";
var server_ad_color_background = "F7FAE0";
var server_ad_color_headline = "7E8AA2";
var server_ad_color_body = "000000";
var server_ad_color_url = "666EBA";
var server_ad_random = 1;
//--></script>
<script type="text/javascript" src="http://adsby.cigclick.com/ads/display_ads.php">
</script>
<!-- End CigClick Network Code -->

</div>

</vb:if>
<vb:comment>End of Ads After First Post</vb:comment>


but in this way all the posts after the first are all visualized in a wrong way,
so I think that I make wrong something in the code.

Can someone help me please?

Thanks in advance.

Hmm seems as if you're trying to include a php script yet not so much... the script tags should work fine perhaps try using vb literal tags around your code, example:

<vb:literal>
ALL YOUR CODE HERE
</vb:literal>

As shown:

<div align="center" style="padding:3px;" class="postbody">
<vb:literal>
<!-- Begin CigClick Network Code -->
<div style="text-align:center">
<script language="javascript"><!--//
var server_client_id = 1189;
var server_ad_channel = 1;
var server_publisher_channels = "";
var server_media_types = "hybrid";
var server_integrate_media_types = 0;
var server_ad_width = 728;
var server_ad_height = 90;
var server_ad_style = "728x90_as";
var server_code_version = "4";
var server_ad_color_border = "7E8AA2";
var server_ad_color_background = "F7FAE0";
var server_ad_color_headline = "7E8AA2";
var server_ad_color_body = "000000";
var server_ad_color_url = "666EBA";
var server_ad_random = 1;
//--></script>
</vb:literal>
<script type="text/javascript" src="http://adsby.cigclick.com/ads/display_ads.php">
</script>
<!-- End CigClick Network Code -->
</div>

It would more than likely be best to have your code in a plugin, then have it insert the code instead of trying to insert into another mods template imo.

markoroots
03-01-2015, 10:49 PM
Wow! :) Great bro, it work great.
Really many thanks for the mod and for your support.
It's a Great Mod, very very useful, so I have installed it and nominated.
So we are waiting for a better development of this wonderful plugin. :)
A very good thing would be also if is possible, to add also a counter for the click and for the visualizations recived, from each banner shown.
So please don't forget us and don't forget t develop this magic mod. ;)


All the best

e24h
03-02-2015, 01:02 AM
Great mod! Installed and nominated!

markoroots
03-02-2015, 05:31 PM
:( I didn't see good the whole thread... :(
The banner is shown good, but the posts after the ads continue to be visualized in a wrong way. :(
What can I do?

markoroots
03-07-2015, 11:33 AM
Any tip? :(

keyla31
03-08-2015, 04:04 PM
love it

keyla31
03-08-2015, 06:35 PM
It's not compatible with vb 4.1 =/

can't proceed with the installation =/

Working fine on 4.2.2 maybe update your script

TheLastSuperman
03-08-2015, 07:33 PM
^ Use v4 of the script, it will work on 4.2.2:

<dependency dependencytype="vbulletin" minversion="4.0.0 Beta 3" maxversion="4.2.3" />

Alternatively, you can use (Google it, its not windows notepad its actually named NotePad++ ) Notepad++ to edit any of the other three versions, you'll see a snippet of code at the top like I posted above but the Max version will be lower, edit and remove the old max version and type in 4.2.2, save the file, now install the mod and it won't stop you.

markoroots
03-11-2015, 04:01 PM
Ok many thanks, I fix it. :)

mapleleaffans
06-27-2015, 09:54 PM
Nice mod addition, thank you!

markoroots
11-23-2015, 09:19 AM
Hi guys,
please is there some one that can tell me what is wrong in this code?
Thanks in advance.

<vb:comment>Start of Innovative Ads After First Post</vb:comment>
<vb:if condition="$show['guest'] OR $show['member']">
<vb:if condition="$post['postcount'] % $vboptions['maxposts'] == 1">
<li class="postbitlegacy postbitim postcontainer" id="post_{vb:raw post.postid}">
<div class="posthead" style="height:15px;"><span class="innovativetitle"><a href="http://www.sigarettaelettronicaforum.com/regolamento-rivenditori/regolamento-rivenditori-404/">ADS</a></span>
</div>
<vb:literal>
<div style="text-align:center">
<span><a class="newWindow" target="_blank" href="" title="Vai al sito"><img style="border:0" src="images/banner/Banner1 SEF 728x90.png" alt="Spazio Banner 728x90" /></a></span><span>&nbsp;
</div>
</vb:literal>
</vb:if>
</vb:if>

<vb:if condition="$show['guest'] OR $show['member']">
<vb:if condition="$post['postcount'] % $vboptions['maxposts'] == 5">
<li class="postbitlegacy postbitim postcontainer" id="post_{vb:raw post.postid}">
<div class="posthead" style="height:15px;"><span class="innovativetitle"><a href="http://www.sigarettaelettronicaforum.com/regolamento-rivenditori/regolamento-rivenditori-404/">ADS</a></span>
</div>
<vb:literal>
<div style="text-align:center">
<span><a class="newWindow" target="_blank" href="" title="Vai al sito"><img style="border:0" src="images/banner/Banner1 SEF 728x90.png" alt="Spazio Banner 728x90" /></a></span><span>&nbsp;
</div>
</vb:literal>
</div>
</vb:if>
</vb:if>

<vb:if condition="$show['guest'] OR $show['member']">
<vb:if condition="$post['postcount'] % $vboptions['maxposts'] == 9">
<li class="postbitlegacy postbitim postcontainer" id="post_{vb:raw post.postid}">
<div class="posthead" style="height:15px;"><span class="innovativetitle"><a href="http://www.sigarettaelettronicaforum.com/regolamento-rivenditori/regolamento-rivenditori-404/">ADS</a></span>
</div>
<vb:literal>
<div style="text-align:center">
<span><a class="newWindow" target="_blank" href="" title="Vai al sito"><img style="border:0" src="images/banner/Banner1 SEF 728x90.png" alt="Spazio Banner 728x90" /></a></span><span>&nbsp;
</div>
</vb:literal>
</div>
</vb:if>
</vb:if>



<vb:comment>End of Ads After First Post</vb:comment>

markoroots
11-26-2015, 09:38 AM
No one? :(

markoroots
12-04-2015, 10:12 AM
Solved

Pardeep Bagga
02-07-2017, 04:56 AM
This product is not compatible with version 4.2.3 of vBulletin. (Compatible starting with 4.0.0 Beta 3 / Incompatible with 4.2.3 and greater)

eroyka
06-08-2017, 11:50 AM
Hello! I'm from Italy...
Help me. With a simple banner the mod run perfectly but whith any google advertising I recive this alert: The following error occurred when attempting to evaluate this template:
Unclosed Curly Brace Expression
This is likely caused by a malformed conditional statement. It is highly recommended that you fix this error before continuing, but you may continue as-is if you wish.

Can you help me? Thanks!
Roy

eroyka
06-12-2017, 10:02 AM
For insert the ads in last post, open the template postbit_legacy_ads_after_firstpost and find:

<vb:if condition="!$GLOBALS['FIRSTPOSTID']">

Replace with:

<vb:if condition="$post['islastshown']">

That's all!
Roy

markoroots
02-06-2020, 02:29 PM
This product is not compatible with version 4.2.3 of vBulletin. (Compatible starting with 4.0.0 Beta 3 / Incompatible with 4.2.3 and greater)

Yes it work also with the 4.2.5 version.

Download and open the file product-innovative_ads_after_firstpost-v4

and replace the line number "10" with this code:

<dependency dependencytype="vbulletin" minversion="4.2.5" maxversion="4.2.6" />

TheLastSuperman please don't forghet what you have promise us some years ago. :) We are still waiting. :)


What can you expect in the next version?

No template edits, Ads codes will be entered into the admin control panel area where the mod is currently enabled/disabled. If you have a custom style CSS changes will still be required if you notice any position issues etc.

Great Mod. Thanks ;)