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
  #12  
Old 08-27-2010, 02:05 AM
karlm's Avatar
karlm karlm is offline
 
Join Date: Jul 2006
Location: England
Posts: 447
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by TheLastSuperman View Post
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.
Reply With Quote
  #13  
Old 08-28-2010, 05:17 PM
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 karlm View Post
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 .
Reply With Quote
  #14  
Old 08-30-2010, 06:53 AM
halkum halkum is offline
 
Join Date: Feb 2006
Posts: 125
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by karlm View Post
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
Reply With Quote
  #15  
Old 08-30-2010, 07:10 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 halkum View Post
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 .
Reply With Quote
  #16  
Old 02-08-2011, 06:04 PM
Aramist Aramist is offline
 
Join Date: Apr 2006
Posts: 127
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It's not compatible with vb 4.1 =/

can't proceed with the installation =/
Reply With Quote
  #17  
Old 02-22-2011, 04:25 PM
deverill2010 deverill2010 is offline
 
Join Date: Jan 2011
Posts: 412
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What this doesn't work on 4.1.2 at all?
Reply With Quote
  #18  
Old 02-23-2011, 06:26 PM
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 Aramist View Post
It's not compatible with vb 4.1 =/

can't proceed with the installation =/
Quote:
Originally Posted by deverill2010 View Post
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 or not .
Reply With Quote
  #19  
Old 02-23-2011, 06:39 PM
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 Aramist View Post
It's not compatible with vb 4.1 =/

can't proceed with the installation =/
Quote:
Originally Posted by deverill2010 View Post
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
Reply With Quote
  #20  
Old 02-24-2011, 06:21 AM
deverill2010 deverill2010 is offline
 
Join Date: Jan 2011
Posts: 412
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you! When I can't a chance I'll get this installed
Reply With Quote
  #21  
Old 02-26-2011, 05:07 PM
azcs bryan azcs bryan is offline
 
Join Date: Jan 2011
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by TheLastSuperman View Post
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!
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 10:19 AM.


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.04970 seconds
  • Memory Usage 2,362KB
  • 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
  • (1)bbcode_code
  • (10)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
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (3)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)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