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

Reply
 
Thread Tools
Advertisement Inside First Post In A Thread Details »»
Advertisement Inside First Post In A Thread
Version: 1.00, by indiancinema indiancinema is offline
Developer Last Online: Jan 2014 Show Printable Version Email this Page

Category: Mini Mods - Version: 4.0.1 Rating:
Released: 02-02-2010 Last Update: Never Installs: 17
Template Edits
 
No support by the author.

Many People were asking for this Mod, This will add advertisement inside your first post

728 x 90 or 468 x 60 advertisement

Open Postbit or Postbit_legacy Template, which ever you are using

Look for this code

Code:
<vb:if condition="$show['postedited']">
Above it add this code

Code:
<vb:if condition="(THIS_SCRIPT == showthread) AND ($post[postcount] == '1')">
  <div class="body">
  <div style="width: 100%">

Your Advertisement Code here...

</div>
</div>
</vb:if>

Screenshots

File Type: jpg mod.jpg (46.4 KB, 0 views)

Show Your Support

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

Comments
  #2  
Old 02-03-2010, 02:19 AM
djbaxter djbaxter is offline
 
Join Date: Aug 2006
Location: Ottawa, Canada
Posts: 2,601
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is already a built-in option in 4.x.
Reply With Quote
  #3  
Old 02-03-2010, 03:53 AM
Alecsmith Alecsmith is offline
 
Join Date: Sep 2009
Location: Still On Earth
Posts: 217
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Tagged for my next forum
Reply With Quote
  #4  
Old 02-03-2010, 07:44 AM
trilOByte's Avatar
trilOByte trilOByte is offline
 
Join Date: Nov 2001
Location: England
Posts: 325
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by djbaxter View Post
This is already a built-in option in 4.x.
Where?
Reply With Quote
  #5  
Old 02-03-2010, 07:48 AM
trilOByte's Avatar
trilOByte trilOByte is offline
 
Join Date: Nov 2001
Location: England
Posts: 325
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is useful, thanks.

How would I modify the conditional to make this appear only in certain formid's?
Reply With Quote
  #6  
Old 02-03-2010, 01:10 PM
civil78's Avatar
civil78 civil78 is offline
 
Join Date: Nov 2005
Location: Greece
Posts: 64
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by trilOByte View Post
Where?
ADMINCP --> Advertising --> Add New Ad

and from dropdown Page select Thread

Quote:
Originally Posted by trilOByte View Post
This is useful, thanks.

How would I modify the conditional to make this appear only in certain formid's?
From VB4 Adv system you can set a lot of rules where and when something appears.
Reply With Quote
  #7  
Old 02-03-2010, 03:19 PM
djbaxter djbaxter is offline
 
Join Date: Aug 2006
Location: Ottawa, Canada
Posts: 2,601
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by djbaxter View Post
This is already a built-in option in 4.x.
Quote:
Originally Posted by trilOByte View Post
Where?
Quote:
Originally Posted by civil78 View Post
ADMINCP --> Advertising --> Add New Ad

and from dropdown Page select Thread
That or using the Ad templates introduced in version 3.8.
Reply With Quote
  #8  
Old 02-03-2010, 07:17 PM
indiancinema indiancinema is offline
 
Join Date: Feb 2006
Posts: 34
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by djbaxter View Post
That or using the Ad templates introduced in version 3.8.
I dont see anything where we can add the advertisement inside the first post, All You can add is after the first post.
Reply With Quote
  #9  
Old 02-04-2010, 12:56 AM
djbaxter djbaxter is offline
 
Join Date: Aug 2006
Location: Ottawa, Canada
Posts: 2,601
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by indiancinema View Post
I dont see anything where we can add the advertisement inside the first post, All You can add is after the first 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 =>
    • ad_showthread_firstpost_start
    • ad_thread_first_post_content
    • ad_showthread_firstpost_sig
Reply With Quote
  #10  
Old 02-06-2010, 07:13 AM
KevinGupta KevinGupta is offline
 
Join Date: Dec 2006
Posts: 143
Благодарил(а): 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
but when I ad any code using vB inbuilt option, e.g. Adbrite code it gives me an error at the top of the page:

Quote:
Parse error: syntax error, unexpected '[' in /home/public_html/--/forum/includes/class_core.php(4029) : eval()'d code on line 9
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 11:27 AM.


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.05727 seconds
  • Memory Usage 2,320KB
  • 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
  • (2)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
  • (2)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_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