vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Adsense & Banner - Posbit (https://vborg.vbsupport.ru/showthread.php?t=101291)

jay007 11-23-2005 06:49 PM

Quote:

Originally Posted by MidNight_tr
if pluin not working

temporary solution

Go to your admin cp, then:
Styles & Templates -> Style Manager -> Current Template
[Edit Templates] -> Select 'postbit->postbit_legacy'

Find

Code:

<!-- / post #$post[postid] -->
After

Code:

<if condition="$vboptions[Adsense_Banner_setting_onoff]">
<if condition="$post[postcount] % $vboptions[maxposts] == 1">
$spacer_open
<div style="padding:0px 0px $stylevar[cellpadding]px 0px">

<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<if condition="$vboptions[Adsense_Banner_setting_caption_onoff]">
<tr>
    <td class="thead" align="left">$vboptions[Adsense_Banner_setting_caption]</td>
</tr>
</if>
<tr>
    <td class="alt1" align="center">
$vboptions[Adsense_Banner_setting_text]

</if>
    </td>
</tr>
</table>

</div>
$spacer_close
</if>
</if>



This worked , ADS now showing in Postbit,

But Still No ForumHome Ads.. :ermm:

NineToez 11-24-2005 05:25 PM

This just didn't work for me period. Nice in theory, but if anyone has any input to get this work, great.MidNight_tr's hack ended up giving me an error in /includes/adminfunctions_template.php

paulius 11-25-2005 01:31 PM

Quote:

Originally Posted by MidNight_tr
if pluin not working

temporary solution

Go to your admin cp, then:
Styles & Templates -> Style Manager -> Current Template
[Edit Templates] -> Select 'postbit->postbit_legacy'

Find

Code:

<!-- / post #$post[postid] -->
After

Code:

<if condition="$vboptions[Adsense_Banner_setting_onoff]">
<if condition="$post[postcount] % $vboptions[maxposts] == 1">
$spacer_open
<div style="padding:0px 0px $stylevar[cellpadding]px 0px">

<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<if condition="$vboptions[Adsense_Banner_setting_caption_onoff]">
<tr>
    <td class="thead" align="left">$vboptions[Adsense_Banner_setting_caption]</td>
</tr>
</if>
<tr>
    <td class="alt1" align="center">
$vboptions[Adsense_Banner_setting_text]

</if>
    </td>
</tr>
</table>

</div>
$spacer_close
</if>
</if>


Sorry dude, your fix doesn't work for me. It just results in my browser waiting for the page to update. Maybe some variables are wrong or something.

I'm really looking forward to a working version of this plugin!

Ferbull 11-26-2005 08:00 PM

Me too. I think that is a nice Idea.

saukwebsolution 11-27-2005 04:12 AM

wow how nice would this hack be! please fix this :)

Telegon80 11-30-2005 10:03 PM

ill subscribe but no install yet.

WhatChaMissin 12-01-2005 07:50 PM

Quote:

Originally Posted by MidNight_tr
if pluin not working

temporary solution

Go to your admin cp, then:
Styles & Templates -> Style Manager -> Current Template
[Edit Templates] -> Select 'postbit->postbit_legacy'

Find

Code:

<!-- / post #$post[postid] -->
After

Code:

<if condition="$vboptions[Adsense_Banner_setting_onoff]">
<if condition="$post[postcount] % $vboptions[maxposts] == 1">
$spacer_open
<div style="padding:0px 0px $stylevar[cellpadding]px 0px">

<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<if condition="$vboptions[Adsense_Banner_setting_caption_onoff]">
<tr>
    <td class="thead" align="left">$vboptions[Adsense_Banner_setting_caption]</td>
</tr>
</if>
<tr>
    <td class="alt1" align="center">
$vboptions[Adsense_Banner_setting_text]

</if>
    </td>
</tr>
</table>

</div>
$spacer_close
</if>
</if>



thanks that did the trick
*installs*

Snake 12-08-2005 04:15 PM

Will this work on 3.5.2?

paulius 12-14-2005 01:01 AM

Quote:

Originally Posted by paulius
Sorry dude, your fix doesn't work for me. It just results in my browser waiting for the page to update. Maybe some variables are wrong or something.

I'm really looking forward to a working version of this plugin!

Nevermind. It works now!

It's because there are TWO "<!-- / post #$post[postid] -->" strings and you have to paste in the code after the LAST one. Not the first one on the top!

Smiry Kin's 12-17-2005 01:42 PM

Yes it works with 3.5.2

but i get this lil problem nothing majour, just a misplacement.


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

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.01217 seconds
  • Memory Usage 1,745KB
  • 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
  • (6)bbcode_code_printable
  • (4)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