Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Innovative Ads After First Post (Or any post!) Details »»
Innovative Ads After First Post (Or any post!)
Version: 1.00, by TheLastSuperman (Senior Member) TheLastSuperman is offline
Developer Last Online: Oct 2023 Show Printable Version Email this Page

Category: Show Thread Enhancements - Version: 4.2.x Rating:
Released: 08-24-2010 Last Update: 02-05-2014 Installs: 121
Supported Uses Plugins Auto-Templates
Translations  

Innovative Ads After First Post

By:


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 .

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!

Quote:
Originally Posted by TheLastSuperman
  • 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:
Code:
<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
http://www.innovationbyinstinct.com



Download Now

File Type: xml product-innovative_ads_after_firstpost.xml (5.0 KB, 167 views)
File Type: xml product-innovative_ads_after_firstpost-v2.xml (5.0 KB, 276 views)
File Type: xml product-innovative_ads_after_firstpost-v3.xml (5.0 KB, 173 views)
File Type: xml product-innovative_ads_after_firstpost-v4.xml (5.0 KB, 237 views)

Screenshots

File Type: png adsafterfirstpostmod.png (178.5 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
3 благодарности(ей) от:
mapleleaffans, ramesh_umk3, Sage Knight

Comments
  #62  
Old 03-19-2014, 12:29 AM
TheLastSuperman's Avatar
TheLastSuperman TheLastSuperman is offline
Senior Member
 
Join Date: Sep 2008
Location: North Carolina
Posts: 5,844
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Teascu Dorin View Post
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!
Quote:
Originally Posted by MYU View Post
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:
Code:
<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:
Code:
<vb:if condition="$show['guest'] OR $show['member']">
To show it only to guests make it this:
Code:
<vb:if condition="$show['guest']">
Reply With Quote
  #63  
Old 03-24-2014, 06:02 AM
venomx's Avatar
venomx venomx is offline
 
Join Date: Apr 2002
Location: Pennsylvania USA
Posts: 441
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #64  
Old 03-24-2014, 02:13 PM
ramesh_umk3 ramesh_umk3 is offline
 
Join Date: Jul 2010
Location: Earth
Posts: 194
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

for now you can refer this reply https://vborg.vbsupport.ru/showpost....8&postcount=74
Reply With Quote
Благодарность от:
TheLastSuperman
  #65  
Old 03-24-2014, 06:40 PM
venomx's Avatar
venomx venomx is offline
 
Join Date: Apr 2002
Location: Pennsylvania USA
Posts: 441
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks!
Reply With Quote
  #66  
Old 08-02-2014, 03:56 PM
cungchuctanxuan's Avatar
cungchuctanxuan cungchuctanxuan is offline
 
Join Date: Oct 2010
Posts: 38
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi,
How do I change the background color?
Reply With Quote
  #67  
Old 01-20-2015, 02:45 PM
markoroots markoroots is offline
 
Join Date: May 2013
Location: Italy
Posts: 275
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi SuperMan can you make a great thing for us all???
Superman never say no especially the last one.
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.

Reply With Quote
  #68  
Old 01-24-2015, 03:33 PM
Randhal007 Randhal007 is offline
 
Join Date: Sep 2012
Posts: 26
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Interesting mods
but I'm having problems when using on my site
Reply With Quote
  #69  
Old 01-24-2015, 04:59 PM
markoroots markoroots is offline
 
Join Date: May 2013
Location: Italy
Posts: 275
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is there a possibility to count clicks and impressions?
Reply With Quote
  #70  
Old 02-11-2015, 10:07 PM
markoroots markoroots is offline
 
Join Date: May 2013
Location: Italy
Posts: 275
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi there, please how can I add only one banner of 728x90 in the box?
Thanks in advance.
Reply With Quote
  #71  
Old 02-19-2015, 09:00 AM
markoroots markoroots is offline
 
Join Date: May 2013
Location: Italy
Posts: 275
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by markoroots View Post
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.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 04:12 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.06028 seconds
  • Memory Usage 2,366KB
  • Queries Executed 26 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (4)bbcode_code
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (4)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (2)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (5)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete