vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   $spacer_close problem (https://vborg.vbsupport.ru/showthread.php?t=103116)

Xplorer4x4 12-17-2005 08:05 AM

$spacer_close problem
 
I am working on a slight varation of an adsence display hack. However the only problem here is it isn't processing $spacer_close.

PHP Code:

<if condition="$post[postcount] == 1"

    
$spacer_open
  
<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>


</
div>
$spacer_close

</if> 

This should be a pretty easy fix shouldn;t it?

Xplorer4x4 12-18-2005 11:11 AM

bump. :)

Rich 12-18-2005 06:07 PM

Hello,

Put the "if condition" after the spacer close. Currently it will only close if the post count is 1 because you have it wrapped in the condition.

So it should look like this:

Code:

        $spacer_open

 <if condition="$post[postcount] == 1">


merk 12-18-2005 09:32 PM

Which template are you using for this code?

Xplorer4x4 12-19-2005 12:58 AM

Quote:

Originally Posted by iguanairs
Hello,

Put the "if condition" after the spacer close. Currently it will only close if the post count is 1 because you have it wrapped in the condition.

So it should look like this:

Code:

        $spacer_open

 <if condition="$post[postcount] == 1">


I moved $spacer_CLOSE and $spacer_open out of the if condition and that did not fix it. Besides the spacers worked perfectly fine inside the if condition using this:
PHP Code:

 <if condition="$post[postcount] == 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"
<
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 I was pretty sure that isn;t the problem.

merk 12-19-2005 02:47 AM

I cant help without knowing which template.

Xplorer4x4 12-19-2005 02:50 AM

My fault, postbit_legacy.

Note that the second template there was the old version, I am just looking for a nicer version.

Again this is the version I am atempting to use. I notice the AJAX edit works fine in the first post but stops working on any posts after that.
PHP Code:

<if condition="$post[postcount] == 1"

    
$spacer_open
  
<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>


</
div>
$spacer_close

</if> 



All times are GMT. The time now is 10:34 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.03057 seconds
  • Memory Usage 1,750KB
  • 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
  • (3)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete