PDA

View Full Version : insert an ad on each post


winky8300
03-13-2018, 05:30 PM
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
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

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