The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
$postbit[message]
Hi,
I am trying to include Infolinks ads in my website. In order to show the ads ONLY in the post content within a thread and NOT in post header, navbar, footer, etc. I was told to add infolinks "javascript" code in SHOWTHREAD template and add <!--INFOLINKS_ON--> and <!--INFOLINKS_OFF--> tags in postbit / postbit_legacy templates around $posbit[message] I am using vBulletin 4.2.1 and I don't see $postbit[message] in any of the postbit templates. What is the equivalent of it? Have anyone implemented Infolinks in vBulletin 4.2.1 ONLY within the post content? Please help. |
#2
|
|||
|
|||
Quote:
{vb:raw post.message} I hope it helps |
#3
|
|||
|
|||
Hi tbworld,
Thank you for your response. I tried wrapping it like this: <!-INFOLINKS_ON->{vb:raw post.message}<!-INFOLINKS_OFF-> I tried in both postbit and postbit_legacy template. But it didn't work!! The in-text ads do show-up in the navbits, footer, posthead, etc. Do you think including those tags above need some other formatting? Anyone implemented Infolinks? |
#4
|
|||
|
|||
If your site has info across the top of the post (like this site) you want to change postbit, if it's on the left you should change postbit_legacy.
Did you view the html source of the page after you added the changes? Check to see if the javascript is being included and if you see the <!–-INFOLINKS_ON–->. |
#5
|
|||
|
|||
Hi Kh99,
Thank you for your response. Like I said I tried adding in postbit template. Then did view source, but could find only the javascript included. Infolinks on / off isn't included. Similarly, I then tried adding in postbit_legacy template (removed from postbit) and did view source. It's the same, only javascript is seen to be included. I am not sure what you mean by "If your site has info across the top of the post (like this site)". Do you mean navbar, thread title/description and postbit head? If yes, I have those on the top of the site across the site. |
#6
|
|||
|
|||
I could not find 'Infolinks' JavaScript loaded on your forum page. Maybe you have it disabled at this point. PM me when you have it loaded and I will take a look at your page. I do not use 'Infolinks', nor do I have the instructions for it, but I am sure it works the way most of the advertisement packages work.
Nice site. |
#7
|
|||
|
|||
Hi Tbworld,
I have the javascript of Infolinks included in showthread template. So if you go to a thread page and do view source you should be able to see it (all the way at the bottom). Also, I have INFOLINKS_ON and INFOLINKS_OFF included in the postbit_legacy template. That I don't see in the view source!! Attaching here a view source (txt file) of one of the thread pages from my site. PS: Thank you for the compliments about my site |
#8
|
|||
|
|||
I reviewed your site again on the showthread page and noticed that the 'infolinks' are working with no JavaScript errors on the page.
|
#9
|
|||
|
|||
Yeah...it's working good. No issues there.
But my requirement is to control the display of ads ONLY within the post content. Not in Navbits, posthead, footer of the page, etc. "INFOLINKS_ON" and "INFOLINKS_OFF" included in postbit / postbit_legacy aren't working. I need help with that. |
#10
|
|||
|
|||
Sorry, I didn't quite understand the problem you were having, but I understand now.
I know that it is not working for you around the '<vb:raw post.message>', but are the infolink comments getting parsed anywhere else correctly? HTML Code:
<!--INFOLINKS_OFF--> <div>HTML that you do not want parsed by Infolinks</div> <!--INFOLINKS_ON--> |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|