vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   insert an ad on each post (https://vborg.vbsupport.ru/showthread.php?t=326200)

winky8300 03-13-2018 05:30 PM

insert an ad on each post
 
I want to insert a code of an advertisement to the right of all my posts (see capture).
can someone tell me or put the code, I think it's on the template (postbit_legacy)

Thanks for your help

here is a catch to be more explicit

https://vborg.vbsupport.ru/external/2018/03/8.png

scottkoz20 03-13-2018 06:04 PM

1 Attachment(s)
just from a user experience standpoint, i am not sure I would not do this. As a suggestion have a couple of slots that add ads after certain posts that appear below the posts

see the attached image

if you want to do this - build a plug-in off postbit_display_complete

Code:

global $ids;

$excluded = XX;  // for any usergroups to exclude

if (!is_member_of($vbulletin->userinfo, $excluded) AND $post['postid'] == $ids[POST NUMBER] AND THIS_SCRIPT !== 'private')
{
    $template_hook['postbit_end'] .= '<center>
AD CODE GOES HERE
}


if you think this can help you, use it.

winky8300 03-13-2018 06:19 PM

thanks a lot for your answer and help scottkoz20
but unfortunately it is not the place that suits me
I want the place as in the capture if it's possible
thanks again


All times are GMT. The time now is 12:01 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.01057 seconds
  • Memory Usage 1,711KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete