vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Management Articles (https://vborg.vbsupport.ru/forumdisplay.php?f=217)
-   -   vBulletin Google Adsense Deep Integration Tutorial (https://vborg.vbsupport.ru/showthread.php?t=107965)

NeutralizeR 09-30-2006 10:43 PM

Quote:

Originally Posted by Smoothie
Ok, next easy question. Where in showthread template to add adsense directly after last post, attached to it, similar to the first post. I assume you would need a conditional to show this?

Open your SHOWTHREAD template,
Find:
Quote:

<!-- / start content table -->
Add below:
Quote:

<center>
<< adsense codes comes here >>
</center>
Save.

Smoothie 10-01-2006 04:32 AM

Quote:

Originally Posted by NeutralizeR
Open your SHOWTHREAD template,
Find:

Add below:

Save.

That didn't seem to work. There's a slight gap between the end of the postbit and the ad.

How do I combine these condtionals?

Code:

<if condition="!in_array($forum[forumid], array(14,19))">
<if condition="$post[islastshown]">


NeutralizeR 10-01-2006 04:56 AM

Quote:

Originally Posted by Smoothie
That didn't seem to work. There's a slight gap between the end of the postbit and the ad.

How do I combine these condtionals?

Code:

<if condition="!in_array($forum[forumid], array(14,19))">
<if condition="$post[islastshown]">


Check the first post, it's in the postbit template.

You need this conditional:
Quote:

<if condition="!$post['islastshown']">

</if>
This should work.

Smoothie 10-01-2006 04:59 AM

1 Attachment(s)
Quote:

Originally Posted by NeutralizeR
Open your SHOWTHREAD template,
Find:

Add below:

Save.

Found where to add it. Here's the bottom and top.

Smoothie 10-01-2006 05:01 AM

Quote:

Originally Posted by NeutralizeR
Check the first post, it's in the postbit template.

You need this conditional:


This should work.

Yes, but I need to combine them both into one, but not sure how to do that.

NeutralizeR 10-01-2006 05:03 AM

I think it should work that way, too.

Quote:

<if condition="!in_array($forum[forumid], array(14,19))">
<if condition="$post[islastshown]">
<<---ads--->>
</if>
</if>
Try this:
Quote:

<if condition="(!$post['islastshown']) and !in_array($forum[forumid], array(14,19))">
<<---ads--->>
</if>

lowlight 10-01-2006 05:30 PM

Is there an update for 3.6? The tables in my forum are shifted to the right now in thread view.

NeutralizeR 10-01-2006 06:41 PM

Quote:

Originally Posted by lowlight
Is there an update for 3.6? The tables in my forum are shifted to the right now in thread view.

Which template edit did you use and which code?

All edits should be ok with vBulletin 3.6 series.

Smoothie 10-02-2006 01:15 AM

Quote:

Originally Posted by NeutralizeR
I think it should work that way, too.



Try this:

Thanks!

rezapci 10-12-2006 07:07 AM

do we have any for yahoo publisher?


All times are GMT. The time now is 02:15 PM.

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.01398 seconds
  • Memory Usage 1,741KB
  • 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
  • (2)bbcode_code_printable
  • (12)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete