vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=155)
-   -   Adsense below the last thread (https://vborg.vbsupport.ru/showthread.php?t=102466)

Moparx 02-22-2006 04:15 PM

Quote:

Originally Posted by Keyser520
I did what you said, but the ads are not showing up anywhere. Here is my FORUMDISPLAY code

you added the code before </if> instead of after. If you fix that and it should work for you :)

Quote:

Originally Posted by Keyser520
also Where would I insert the code if I wanted to have it show after the LAST POST in a thread but BEFORE the footer?

depends on where you want it... you can put your adense code in two places :)
if you want it before the display options put it here:
PHP Code:

</table>
<!-- / 
controls below thread list -->
INSERT ADSENSE HERE 

if you want it RIGHT before the footer put it here:
PHP Code:

<!-- / forum rules forum jump -->
INSERT HERE
$footer 

Quote:

Originally Posted by Unexplained
I tend to agree with some of the other posters, the code simply doesn't work.

The code works perfectly on every single board i use it on (all using vb3.5.x). Thus, I am inclined to believe you did something wrong instead.

If you have nothing further to had have a nice day, however.. if you seek assistance in getting it working on you own forum I will gladly help you.

Keyser520 02-22-2006 06:45 PM

I modified the code slightly so that there are items in every field. The ones that usual say numbers now have "---" in them.

PHP Code:

<if condition="is_member_of($bbuserinfo, 1,2,3,4,5,6,7)">  
          <
tr
           <
td class="alt1"
             <
img src="$stylevar[imgdir_statusicon]/thread_moved.gif" alt="" border="" /> 
           </
td
           <
td class="alt2"><img src="images/icons/icon1.gif" alt="" border="0" /></td

            <
td class="alt1"
            <
div

            <
script type="text/javascript"><!--
            
google_ad_client "pub-8436755030314590";
            
google_ad_width 468;
            
google_ad_height 15;
            
google_ad_format "468x15_0ads_al_s";
            
google_ad_channel ="";
            
google_color_border "B4D0DC";
            
google_color_bg "ECF8FF";
            
google_color_link "0000CC";
            
google_color_url "008000";
            
google_color_text "6F6F6F";
            
//--></script>
            
<script type="text/javascript"
             
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
            </
script>

 
            </
div>         
            </
td
     
            <
td class="alt2 smallfont" align="center">Sponsored Link</td

           <
td class="alt1" align="center">---</td
           <
td class="alt2" align="center">---</td
           <if 
condition="$show['inlinemod']"><td class="alt1" align="center"></td></if> 

          </
tr
</if> 

Any idea on how to make this show up as the second spot rather than as the last one?

tbaleno 02-23-2006 12:22 AM

I just signed up with gooogle adsense. When I put this code in I see nothing except the icon and the "sponsored"

Unexplained.tv 02-23-2006 03:49 AM

When I tried it, and I did it 100% exactly as stated in the code in the first post- I never saw anything. Not trying to bring down the mod- I just found it not working.... I went with the random generated code instead.

Quote:

Originally Posted by Moparx
you added the code before </if> instead of after. If you fix that and it should work for you :)



depends on where you want it... you can put your adense code in two places :)
if you want it before the display options put it here:
PHP Code:

</table>
<!-- / 
controls below thread list -->
INSERT ADSENSE HERE 

if you want it RIGHT before the footer put it here:
PHP Code:

<!-- / forum rules forum jump -->
INSERT HERE
$footer 


The code works perfectly on every single board i use it on (all using vb3.5.x). Thus, I am inclined to believe you did something wrong instead.

If you have nothing further to had have a nice day, however.. if you seek assistance in getting it working on you own forum I will gladly help you.


Moparx 02-23-2006 04:18 AM

Quote:

Originally Posted by tbaleno
I just signed up with gooogle adsense. When I put this code in I see nothing except the icon and the "sponsored"

Are you using an ad blocker?

Quote:

Originally Posted by Unexplained
When I tried it, and I did it 100% exactly as stated in the code in the first post- I never saw anything. Not trying to bring down the mod- I just found it not working.... I went with the random generated code instead.

There is no random placement code released for the forumdisplay (if thats what you mean) that I am aware of. Are you sure you aren't thinking of the random placement in the postbit mod?

tbaleno 02-23-2006 04:51 AM

Quote:

Originally Posted by Moparx
Are you using an ad blocker?

Apparantly I was ;) Thanks. Mystery solved.

SIINSI 03-08-2006 03:30 AM

I'm pretty sure Adsense can be used on a search results page, care to post the code you were speaking of? :)

Thanks!

Miguel

Moparx 03-08-2006 06:23 PM

Quote:

Originally Posted by SIINSI
I'm pretty sure Adsense can be used on a search results page, care to post the code you were speaking of? :)

Thanks!

Miguel

someone else made it before I released mine.
i believe it is in the 'other modifications' forum

simonlorentsen 03-23-2006 06:54 AM

i am looking to have this come up as always the second post in all threads, how can i get this to work ?

appreciate any help :)

StarBuG 05-01-2006 12:31 PM

Is it possible to display the Ad after the Nth thread?

That would blend in much better.

And what about always displaying the current date instead of --- ?
Is that possible?

Help is appreciated


All times are GMT. The time now is 08:59 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.01148 seconds
  • Memory Usage 1,770KB
  • 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
  • (5)bbcode_php_printable
  • (8)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