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 after first post (https://vborg.vbsupport.ru/showthread.php?t=96249)

dsotmoon 10-09-2005 04:23 PM

i have confirmed now too that the following code hangs in firefox using the quick reply, anyone know a way to fix it?

Code:

<if condition="!is_member_of($bbuserinfo, 6, 7, 17, 18) AND !$GLOBALS['FIRSTPOSTID']">

$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">
<tr>
        <td class="thead" align="left">Sponsored Links</td>
</tr>
<tr>
        <td class="alt1" align="center">
                ADSENSE CODE HERE        </td>
</tr>
</table>

</div>
$spacer_close

</if>


Funchiestz 10-10-2005 03:48 PM

Quote:

Originally Posted by dsotmoon
i have confirmed now too that the following code hangs in firefox using the quick reply, anyone know a way to fix it?

Code:

<if condition="!is_member_of($bbuserinfo, 6, 7, 17, 18) AND !$GLOBALS['FIRSTPOSTID']">

$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">
<tr>
        <td class="thead" align="left">Sponsored Links</td>
</tr>
<tr>
        <td class="alt1" align="center">
                ADSENSE CODE HERE        </td>
</tr>
</table>

</div>
$spacer_close

</if>


so do i can not work... nothing changes, thanx anyway

UK Jimbo 10-10-2005 06:09 PM

Similar hack but does random positioning
https://vborg.vbsupport.ru/showthread.php?t=98057

Aaron RV 10-12-2005 07:02 AM

not work. :disappointed:

nobita 10-12-2005 11:55 AM

Quote:

Originally Posted by Aaron RV
not work. :disappointed:

it works very good :)>-

Demo: http://www.vimaru.org/forum/showthre...7120#post27120

jluerken 10-12-2005 12:58 PM

Hi,

I agree to Funchiestz and dsotmoon, Quick Reply is not working after the adsense for all usergroups who 'must' see it :D
In the first post its working fine, the ads quick reply stops working.

I removed the adsense code to test if it has something to do with this but it has not.

I tested with IE and Firefox and in both Quick Reply is not working after the first post.

Must have something to do with:

PHP Code:

<if condition="!is_member_of($bbuserinfo, 5,6,7) AND !$GLOBALS['FIRSTPOSTID']"

I will ask KirbyDE if he can help. He is a genius in vB Coding.

Andreas 10-12-2005 01:13 PM

Untested, but what about
Code:

<if condition="!is_member_of($bbuserinfo, 5,6,7) AND !$GLOBALS['FIRSTPOSTID'] AND !$_POST['ajax']">

jluerken 10-12-2005 03:18 PM

Quote:

Originally Posted by KirbyDE
Untested, but what about
Code:

<if condition="!is_member_of($bbuserinfo, 5,6,7) AND !$GLOBALS['FIRSTPOSTID'] AND !$_POST['ajax']">

No that did not solve the problem.
I deleted the whole IF statement and only entered a simple text line.
Even then then quick reply is not working anymore after the first post.

Seems to be deeper in vBulletin

jluerken 10-12-2005 03:28 PM

Ok its working for me now.

It seems that it had something to do with the <div> Tags.

Here my solution:

At the end of the postbit template at:

HTML Code:

<!-- ADs after first forum post -->
<if condition="!is_member_of($bbuserinfo, 5,7) AND !$GLOBALS['FIRSTPOSTID']"> 
<if condition="$show['spacer']">
        <div>
        $spacer_open
</if>
  <table class="tborder" id="post$post[postid]" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
    <tr>
<td class="alt2" width="17%" nowrap>
$vbphrase[google_ads_hint]
</td>
<td class="alt2" width="83%">
<center>

YOUR AD HERE

</center>
</td></tr></table>

<if condition="$show['spacer']">
        </div>
        $spacer_close
</if>
</if>

Create a global phrase called "google_ads_hint" to get some text beside your ads like on my screenshot.
Remove the whole TD tag if you don't want this.

cedced 10-12-2005 04:28 PM

have version for vbb 3.03 ?


All times are GMT. The time now is 09:15 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.01256 seconds
  • Memory Usage 1,752KB
  • 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
  • (4)bbcode_code_printable
  • (1)bbcode_html_printable
  • (1)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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