Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 Programming Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 11-25-2013, 05:55 AM
induslady induslady is offline
 
Join Date: Jul 2006
Posts: 224
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default $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.
Reply With Quote
  #2  
Old 11-25-2013, 06:30 AM
tbworld tbworld is offline
 
Join Date: Oct 2008
Posts: 2,126
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by induslady View Post
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?
postbit_legacy (Line #101)
{vb:raw post.message}

I hope it helps
Reply With Quote
  #3  
Old 11-25-2013, 04:36 PM
induslady induslady is offline
 
Join Date: Jul 2006
Posts: 224
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #4  
Old 11-25-2013, 05:17 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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–->.
Reply With Quote
  #5  
Old 11-25-2013, 07:19 PM
induslady induslady is offline
 
Join Date: Jul 2006
Posts: 224
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #6  
Old 11-26-2013, 01:13 AM
tbworld tbworld is offline
 
Join Date: Oct 2008
Posts: 2,126
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #7  
Old 11-26-2013, 01:56 AM
induslady induslady is offline
 
Join Date: Jul 2006
Posts: 224
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Attached Files
File Type: txt 237114-buddies-required-lose-3kgs-nov-15.txt (180.5 KB, 3 views)
Reply With Quote
  #8  
Old 11-26-2013, 01:08 PM
tbworld tbworld is offline
 
Join Date: Oct 2008
Posts: 2,126
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I reviewed your site again on the showthread page and noticed that the 'infolinks' are working with no JavaScript errors on the page.
Reply With Quote
  #9  
Old 11-26-2013, 05:17 PM
induslady induslady is offline
 
Join Date: Jul 2006
Posts: 224
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #10  
Old 11-27-2013, 09:16 AM
tbworld tbworld is offline
 
Join Date: Oct 2008
Posts: 2,126
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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-->
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 09:44 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04207 seconds
  • Memory Usage 2,271KB
  • Queries Executed 12 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_html
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (1)postbit_attachment
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • postbit_attachment
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete