PDA

View Full Version : How to add ads to posts?


Mikecp421
06-06-2008, 09:08 AM
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
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
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.

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..

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.