vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   How to add ads to posts? (https://vborg.vbsupport.ru/showthread.php?t=181675)

Mikecp421 06-06-2008 09:08 AM

How to add ads to posts?
 
I want to add some ads that will basically highlight the text posted by everyone on the forum, by adding two little green lines under the word, then when you hover over it, an ad pops up. What template do I need to add the code to?

Dismounted 06-06-2008 09:44 AM

You will need to find an ad program that does it (ie. AdSense is an ad program, but I don't think it does this). When you find an ad program, it will tell you what code to add.

Princeton 06-06-2008 12:10 PM

not sure what you are referring to

however, Kontera (in-text advertisement) does this..
the code that they provide will need to be added to the footer template

Mikecp421 06-07-2008 11:30 AM

I have the ad code, and it needs to be added to wherever I want. The problem is, I want the code to affect the written posts? not the default site text. So for instance, when I put the code in showthread.php it adds the ads to the word provate message and the titles of the specific thread, I don't want that. I want it to affect when a post is made the text in that post.

Yogesh Sarkar 06-07-2008 11:49 AM

You need to edit postbit legacy or postbit template (depending on what you are using) and add section targeting there (kontera allows that).

Dismounted 06-07-2008 12:18 PM

Quote:

Originally Posted by Mikecp421 (Post 1543062)
I have the ad code, and it needs to be added to wherever I want. The problem is, I want the code to affect the written posts? not the default site text. So for instance, when I put the code in showthread.php it adds the ads to the word provate message and the titles of the specific thread, I don't want that. I want it to affect when a post is made the text in that post.

It is the JavaScript that your ad provider gives you that controls it. Ask your ad provider.

Mikecp421 06-13-2008 07:23 PM

I understand its their JV that controls it but I want to know which template to put it into, to affect that text? Right now its affecting the site text, not the posted text.

James Desalus 06-14-2008 12:28 AM

Quote:

Originally Posted by Mikecp421 (Post 1548656)
I understand its their JV that controls it but I want to know which template to put it into, to affect that text? Right now its affecting the site text, not the posted text.

I think someone above mentioned putting it in the postbit template.


EDIT:

Yep, someone did.

Quote:

Originally Posted by Yogesh Sarkar (Post 1543070)
You need to edit postbit legacy or postbit template (depending on what you are using) and add section targeting there (kontera allows that).


Mikecp421 06-15-2008 11:14 PM

yes, and I meant to mention it too doesn't work there

sava700 07-02-2008 11:07 PM

yeah I'd love to know what the answer to this is. I've sent Kontera a tech support question on it to see what they say. But I'm rather surprised that nobody has replied back about it.

Dismounted 07-03-2008 07:53 AM

Putting it in the footer should work. It will affect any text that appears on the site - this is controlled by your ad provider's code, and you should ask them about that.

sava700 07-03-2008 05:32 PM

Here is the reply from Kontera support which should answer everyones question on How to..

Quote:

In vBulletin, if you want the links to appear in posted messages, you need to add the Kontera code before the BODY and HTML end tags in two
templates: SHOWTHREAD and SHOWTHREAD_SHOWPOST

You can find these templates in the Admin CP by going to the Styles & Templates area, choosing the Search in Templates option, and then searching for SHOWTHREAD and SHOWTHREAD_SHOWPOST. Choose the "Search Titles Only" option (it's a radio box).
I hope that helps anyone else as this is the proper location for the code to ONLY show up in thread posts and not site text or header titles etc.. I've tested it and it works perfect!

FYI: the code is all the way to the bottom of those templates above the /body coding.


All times are GMT. The time now is 03:28 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.01111 seconds
  • Memory Usage 1,733KB
  • 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
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (12)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