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
  #22  
Old 10-08-2010, 12:37 PM
MOGmartin MOGmartin is offline
 
Join Date: Feb 2008
Location: London
Posts: 250
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

installed, and thank you for sharing.

I recently moved my adsense to the above first post template area, having it within the first post will be interested as a CTR experiment.
Reply With Quote
  #23  
Old 10-08-2010, 03:24 PM
jrwap's Avatar
jrwap jrwap is offline
 
Join Date: Oct 2001
Posts: 57
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great mod.... one quick question...

Can it be made to only show ads to unregistered/guests? I have eliminated all ads for members on my site.

Thanks,

-JRW
Reply With Quote
  #24  
Old 10-08-2010, 04:07 PM
YankForum's Avatar
YankForum YankForum is offline
 
Join Date: Mar 2010
Location: MY
Posts: 304
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by jrwap View Post
Great mod.... one quick question...

Can it be made to only show ads to unregistered/guests? I have eliminated all ads for members on my site.

Thanks,

-JRW
of course it's possible , i had lots of work today , hopefully i'll try to put some options to restrict ads to specific usergroups

Quote:
installed, and thank you for sharing.

I recently moved my adsense to the above first post template area, having it within the first post will be interested as a CTR experiment.
i'm glad to hear u liked it , hope it works best for u
Reply With Quote
  #25  
Old 10-08-2010, 04:17 PM
NBL4277 NBL4277 is offline
 
Join Date: Jul 2010
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Looks interesting. I'll give it a try!
Reply With Quote
  #26  
Old 10-08-2010, 04:58 PM
YankForum's Avatar
YankForum YankForum is offline
 
Join Date: Mar 2010
Location: MY
Posts: 304
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

option added (limit ads to guests only) as requested by jrwap
---------
sorry to bother u guys with multiple updates , i'm just trying to make it perfect for u
Reply With Quote
  #27  
Old 10-08-2010, 07:11 PM
jrwap's Avatar
jrwap jrwap is offline
 
Join Date: Oct 2001
Posts: 57
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by YankForum View Post
option added (limit ads to guests only) as requested by jrwap
---------
sorry to bother u guys with multiple updates , i'm just trying to make it perfect for u
Wow, thanks... just installed it.

One little issue... I am getting the following error on some pages: Warning: preg_replace() [function.preg-replace]: Unknown modifier 'p' in [path]/includes/class_postbit.php(321) : eval()'d code on line 62

Example: http://www.club-tc.com/forums/member...log-1-a-4.html

It looks like the mod is having problems with a quote as the first part of the post.

Any ideas?

-JRW
Reply With Quote
  #28  
Old 10-08-2010, 07:31 PM
YankForum's Avatar
YankForum YankForum is offline
 
Join Date: Mar 2010
Location: MY
Posts: 304
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by jrwap View Post
Wow, thanks... just installed it.

One little issue... I am getting the following error on some pages: Warning: preg_replace() [function.preg-replace]: Unknown modifier 'p' in [path]/includes/class_postbit.php(321) : eval()'d code on line 62

Example: http://www.club-tc.com/forums/member...log-1-a-4.html

It looks like the mod is having problems with a quote as the first part of the post.

Any ideas?

-JRW
tnx for feedback , no , first post starting by quote won't cause any issue , i tried it , i don't know what's wrong with this mod in your boards but i'll be looking forward to find it out , also please click as installed if you installed it , tnx again
Reply With Quote
  #29  
Old 10-08-2010, 07:52 PM
nukeleo nukeleo is offline
 
Join Date: Sep 2007
Posts: 15
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Code:
Warning: preg_replace() [function.preg-replace]: Unknown modifier 'f' in [path]/includes/class_postbit.php(321) : eval()'d code on line 87
this message appeared top of the forum page
Reply With Quote
  #30  
Old 10-08-2010, 08:44 PM
aseer_al7ob's Avatar
aseer_al7ob aseer_al7ob is offline
 
Join Date: May 2007
Location: Here
Posts: 27
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great work

But there is a problem I am encountering

When you activate the MOD works fine, but if any subject was the beginning of an image does not display content of the topic

I hope to solve this problem

Thank you
Reply With Quote
  #31  
Old 10-09-2010, 05:19 AM
YankForum's Avatar
YankForum YankForum is offline
 
Join Date: Mar 2010
Location: MY
Posts: 304
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by aseer_al7ob View Post
Great work

But there is a problem I am encountering

When you activate the MOD works fine, but if any subject was the beginning of an image does not display content of the topic

I hope to solve this problem

Thank you
i can't understand what exactly is the problem , can u provide me a link to what you say or explain a bit more ? mayb it's one of your mods conflicting with this one ?
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 06:39 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.04851 seconds
  • Memory Usage 2,347KB
  • 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
  • (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
  • (1)pagenav_pagelinkrel
  • (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