Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Template Modifications

Reply
 
Thread Tools
Add Google ads in first post Details »»
Add Google ads in first post
Version: 1.00, by yosri yosri is offline
Developer Last Online: Dec 2014 Show Printable Version Email this Page

Category: Show Thread Enhancements - Version: 4.0.1 Rating:
Released: 02-02-2010 Last Update: Never Installs: 7
Template Edits
Translations  
No support by the author.

hi
بسم الله الرحمان الرحيم
how to Add Google ads in first post
Go to the Template
postbit_legacy


And search for the code
<vb:if condition="$show['attachments']">


And add below it
<div align="left">
<script type="text/javascript"> <! --
google_ad_client = "pub-0000000000";
/ * 300x250, created 2/3/10 * /
google_ad_slot = "2589394097";
google_ad_width = 300;
google_ad_height = 250;
//-->
</ script>
<script type = "text / javascript"
src = "http://pagead2.googlesyndication.com/pagead/show_ads.js">
</ script>

</ div>
and thin click save
note : the red color the code of google ads
Work conservation and enjoyment of
Is dedicated to brother Abu Rashid and for all

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 02-03-2010, 10:10 AM
Forum Lover Forum Lover is offline
 
Join Date: Jun 2007
Location: Sydney
Posts: 503
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Isn't that already there by default?
Reply With Quote
  #3  
Old 02-03-2010, 03:17 PM
djbaxter djbaxter is offline
 
Join Date: Aug 2006
Location: Ottawa, Canada
Posts: 2,601
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Forum Lover View Post
Isn't that already there by default?
Yes, it is. We're suddenly seeing a rash of these "add-ons" for 4.x and they're totally unnecessary. All of this can already be done from either the ad templates or from the new "Advertising" options in the 4.x Admin CP.
Reply With Quote
  #4  
Old 02-04-2010, 03:21 AM
G-man's Avatar
G-man G-man is offline
 
Join Date: Jun 2002
Posts: 47
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes but what if you don't want to place your GOOGLE ads in those 4 places?
Reply With Quote
  #5  
Old 02-04-2010, 03:48 AM
Cableguy69 Cableguy69 is offline
 
Join Date: Apr 2008
Posts: 150
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Do you have a screenshot please?
Reply With Quote
  #6  
Old 02-04-2010, 04:23 AM
djbaxter djbaxter is offline
 
Join Date: Aug 2006
Location: Ottawa, Canada
Posts: 2,601
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

  1. Admin CP | Advertising | Manage Ads => Thread
    • Choice of inside first post or second post or both.


  2. Admin CP | Styles & Templates | Edit Templates =>
    • test ad_showthread_firstpost_start
    • test ad_thread_first_post_content
    • test ad_showthread_firstpost_sig
Reply With Quote
  #7  
Old 02-05-2010, 05:22 AM
yosri yosri is offline
 
Join Date: Oct 2005
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Cableguy69 View Post
Do you have a screenshot please?


this
Attached Images
File Type: jpg untitled.jpg (89.1 KB, 0 views)
Reply With Quote
  #8  
Old 02-07-2010, 10:37 AM
n_only n_only is offline
 
Join Date: Oct 2003
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by djbaxter View Post
  1. Admin CP | Advertising | Manage Ads => Thread
    • Choice of inside first post or second post or both.

  2. Admin CP | Styles & Templates | Edit Templates =>
    • test ad_showthread_firstpost_start
    • test ad_thread_first_post_content
    • test ad_showthread_firstpost_sig
:up:

it's already there

in scand lang. " موجودة يالحبيب في خيارات الدعاية بلوحة التحكم "
Reply With Quote
  #9  
Old 02-08-2010, 11:31 PM
Cableguy69 Cableguy69 is offline
 
Join Date: Apr 2008
Posts: 150
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by n_only View Post
:up:

it's already there

in scand lang. " موجودة يالحبيب في خيارات الدعاية بلوحة التحكم "
I can't see any default options in the ACP to place ads within posts.

Yosri thanks for this installed and rated 5 :up:
Reply With Quote
  #10  
Old 02-17-2010, 07:00 AM
haXan haXan is offline
 
Join Date: Jul 2008
Posts: 32
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How can I put Google Adsense message to users messages in showthread ?

Like this;



Note:
This forum system is not vBulletin. This is My Bulletin. But I want to do same thing...
Reply With Quote
Reply

Thread Tools

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:59 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.06328 seconds
  • Memory Usage 2,311KB
  • Queries Executed 24 (?)
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_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
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (1)postbit_attachment
  • (10)postbit_onlinestatus
  • (10)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
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • postbit_attachment
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete