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
Mid Post AdsMid Post Advertisements (middle of the post) Details »»
Mid Post AdsMid Post Advertisements (middle of the post)
Version: 1.9, by YankForum YankForum is offline
Developer Last Online: Sep 2014 Show Printable Version Email this Page

Category: Add-On Releases - Version: 4.x.x Rating:
Released: 10-06-2010 Last Update: 08-08-2014 Installs: 147
Uses Plugins Auto-Templates
 
No support by the author.

Hello
i decided to share this mod with everybody else , this is a paid hack , i received several PMs asking to share it with everybody else , so i did all credits goes to original author SecondV
[hr]1[/hr]What does this hack do ?

This mod simply lets you put your desired ads or any other codes just in the middle of first post , in each page of a thread .
you can see a live demo here




[hr]1[/hr]Known Issues :
  • [s]you shouldn't edit your first post , that causes real problems , and you lose all the contents of first post.[/s] (this is solved in version 1.1)
  • sometimes it's not exactly in the middle of posts , that's because in logic sometimes there is no real half point , while some posts have even number of lines and some posts have odd number of lines . but it tries to put it to the nearest location to the mid point!
[hr]1[/hr]Try not to mention following things :
if you think it's against google TOS then don't install it but keep in mind you can also use it with other network ads , and keep in mind at no point google directly mentioned it's against their TOS to put adsense in between content , so do not insist
[hr]1[/hr]Installation :
Just Import the Prodcut and configure settings in admincp ( no template edits needed )
DONE
[hr]1[/hr]Updates
version 1.1 : first post editing bug FIXED
version 1.2 : option ADDED to hide copyright AND adsense input field integrated into mod's settings page
version 1.3 : option ADDED to limit ads to be visible to guests only as requested by jrwap
version 1.4 : The ads get applied to article comments as well on the CMS articles bug FIXED
version 1.5 : option ADDED to disable ads in certain forums ( as requested by wastemytime )
version 1.6 : unicode characters bug FIXED
version 1.7 : option for enabling ads in extra post ADDED
version 1.8 : changed the structure of while loop to maintain performance and speed
version 1.9 : first post image only (no text) bug FIXED
[hr]1[/hr]Enjoy and please please try not to forget to click as Installed if you liked it you can also Nominate it for MOTM , that's optional but clicking as installed is a must

Download Now

File Type: xml product-adfirstpost 1.9.xml (12.0 KB, 168 views)

Screenshots

File Type: jpg 1.jpg (101.5 KB, 0 views)
File Type: jpg 2.jpg (182.0 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
4 благодарности(ей) от:
eTiKeT?, gundamz, mapleleaffans, Naijasite

Comments
  #42  
Old 10-10-2010, 05:03 PM
egyptsons's Avatar
egyptsons egyptsons is offline
 
Join Date: Jan 2004
Location: Egypt
Posts: 250
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sound great !! thanks for sharing
can we specify a forum to be appear in ?
Reply With Quote
  #43  
Old 10-10-2010, 05:52 PM
YankForum's Avatar
YankForum YankForum is offline
 
Join Date: Mar 2010
Location: MY
Posts: 304
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by wastemytime View Post
This is really great! The only thing i would need - and maybe others - is an option for Forum Permissions. I do not want it to show it in specific Forums in that way.

Would you consider to add the Option to exclude specific Forums?
Quote:
Originally Posted by egyptsons View Post
Sound great !! thanks for sharing
can we specify a forum to be appear in ?
option added to disable ads in certain forums as requested , also please click INSTALL if you install it , tnx
Reply With Quote
  #44  
Old 10-10-2010, 09:23 PM
wastemytime wastemytime is offline
 
Join Date: Sep 2006
Posts: 76
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Wow, you are really fast with your support. Great, thank you very much!
Reply With Quote
  #45  
Old 10-10-2010, 10:14 PM
wastemytime wastemytime is offline
 
Join Date: Sep 2006
Posts: 76
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I also had this Error:

Code:
Warnung: preg_replace() [function.preg-replace]: Unknown modifier '2' in [path]/includes/class_postbit.php(321) : eval()'d code (Zeile 113)
But i think it could be the Problem with parsed URLs or a Language Problem. I have a German Forum and i try to retrieve Titles from URLs with vbSEO. I removed my wrong Link and it worked again on that same Page.

So maybe if there is no English Language or ASCII Code, your Hack gets confused...

In my Case, this was the Problem.
Reply With Quote
  #46  
Old 10-10-2010, 10:39 PM
egyptsons's Avatar
egyptsons egyptsons is offline
 
Join Date: Jan 2004
Location: Egypt
Posts: 250
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by YankForum View Post
option added to disable ads in certain forums as requested , also please click INSTALL if you install it , tnx
Thank you so much
Reply With Quote
  #47  
Old 10-10-2010, 11:04 PM
wastemytime wastemytime is offline
 
Join Date: Sep 2006
Posts: 76
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by wastemytime View Post
I also had this Error:

Code:
Warnung: preg_replace() [function.preg-replace]: Unknown modifier '2' in [path]/includes/class_postbit.php(321) : eval()'d code (Zeile 113)
But i think it could be the Problem with parsed URLs or a Language Problem. I have a German Forum and i try to retrieve Titles from URLs with vbSEO. I removed my wrong Link and it worked again on that same Page.

So maybe if there is no English Language or ASCII Code, your Hack gets confused...

In my Case, this was the Problem.
Hm, no it must be something else. I also have this error on other pages with no URLs or Special Characters.
Reply With Quote
  #48  
Old 10-11-2010, 02:36 AM
gosiah23's Avatar
gosiah23 gosiah23 is offline
 
Join Date: Jun 2009
Location: Morehead City NC
Posts: 28
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great mod and many thanks for releasing the free version! Marked Installed

However, on some posts I receive the error message below. But if I disable the mod then modify the post styling (brake the text info short paragraphs, remove some styling code) everything looks normal. Any idea what creates the conflict?

HTML Code:
Warning: preg_replace() [function.preg-replace]: Unknown modifier '8' in [path]/includes/class_postbit.php(321) : eval()'d code on line 22
Thanks,

Margaret
Reply With Quote
  #49  
Old 10-11-2010, 05:39 AM
snerd snerd is offline
 
Join Date: Apr 2007
Location: Oklahoma
Posts: 54
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by gosiah23 View Post
Great mod and many thanks for releasing the free version! Marked Installed

However, on some posts I receive the error message below. But if I disable the mod then modify the post styling (brake the text info short paragraphs, remove some styling code) everything looks normal. Any idea what creates the conflict?

HTML Code:
Warning: preg_replace() [function.preg-replace]: Unknown modifier '8' in [path]/includes/class_postbit.php(321) : eval()'d code on line 22
Thanks,

Margaret
I had this error and removed a semicolon ; in the title sentence of the post and it went away.
Reply With Quote
  #50  
Old 10-11-2010, 05:41 AM
YankForum's Avatar
YankForum YankForum is offline
 
Join Date: Mar 2010
Location: MY
Posts: 304
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

this issue will be fixed in next update ASAP
Reply With Quote
  #51  
Old 10-11-2010, 08:28 AM
YankForum's Avatar
YankForum YankForum is offline
 
Join Date: Mar 2010
Location: MY
Posts: 304
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

for non egnlish boards , or pages containing non english characters there was a minor bug which resulted in following error :
Code:
Warning: preg_replace() [function.preg-replace]: Unknown modifier
which is FIXED in version 1.6 , plz check to see if you still have this issue or not
if you are still having issues plz provide more details , tnx
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 11:32 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.11041 seconds
  • Memory Usage 2,356KB
  • 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
  • (3)bbcode_code
  • (2)bbcode_html
  • (5)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
  • (1)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (3)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