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)
-   -   Advertisements Enhancer + TOS Compatibility (https://vborg.vbsupport.ru/showthread.php?t=110701)

Nuguru 08-12-2006 01:53 AM

Hello Everyone,

I don't know if this is a "Advertisements Enhancer" question or a ibProArade question, but I will ask anyways because I am having no problems with my Aracde sizing until this install.

It looks like this script is working really good in everything template than the ones from the arade. When this script is shown in all the ibProArade templates, it shows wide. See attachment "wide". I am wanting it to show up like it does in every other template, see the "properly-lined" attachment.

Is anyone else having this problem? Does anyone know how to correct this?

Thank You,


Nuguru :)

RsX 08-30-2006 02:48 PM

Quote:

Originally Posted by Dumi
The bottom banner I am unable to collapse. I used the same code as the top. I put the code at the very top.

http://www.prisonbreakscene.com

Code:

<if condition="!(
(THIS_SCRIPT == 'login') OR
(THIS_SCRIPT == 'register') OR
(THIS_SCRIPT == 'usercp') OR
(THIS_SCRIPT == 'private') OR
(THIS_SCRIPT == 'subscription') OR
(THIS_SCRIPT == 'payments') OR
(THIS_SCRIPT == 'invites') OR
(THIS_SCRIPT == 'memberlist') OR
(THIS_SCRIPT == 'online') OR
(THIS_SCRIPT == 'member') OR
(THIS_SCRIPT == 'spiders') OR
(THIS_SCRIPT == 'psistats') OR
(THIS_SCRIPT == 'profile') OR
(THIS_SCRIPT == 'faq') OR
(THIS_SCRIPT == 'sendmessage') OR
(THIS_SCRIPT == 'CybPayPal') OR
(THIS_SCRIPT == 'calendar') OR
((THIS_SCRIPT == 'calendar') AND $_REQUEST['do'] == 'add') OR
((THIS_SCRIPT == 'misc') AND $_REQUEST['moderator_stats'] == '') OR
((THIS_SCRIPT == 'search') AND $_REQUEST['searchid'] == '') OR
((THIS_SCRIPT == 'gallery_search') AND $_REQUEST['searchid'] == '') OR
(THIS_SCRIPT == 'gallery_upload') OR
(THIS_SCRIPT == 'THIS_SCRIPT')
)">

<br />

<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr><td align="left" width="728" class="thead" colspan="2">
<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('ad_head')"><img id="collapseimg_ad_head" src="$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_ad_head].gif" alt="" border="0" /></a>
Sponsored Links</td></tr>
<tbody id="collapseobj_ad_head" style="$vbcollapse[collapseobj_ad_head]">
<tr><td class="alt1" colspan="2" ><span class="smallfont"><center>

<script type="text/javascript"><!--
google_ad_client = "pub-9433563858228418";
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = "728x90_as";
google_ad_type = "text_image";
google_ad_channel ="";
google_color_border = "AC5B22";
google_color_bg = "F6DFCE";
google_color_link = "AC5B22";
google_color_text = "AC5B22";
google_color_url = "AC5B22";
//--></script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>

</center></span></td></tr>
</tbody>
</table>

<br />

<else />

</if>

<br />
<div class="smallfont" align="center">$vbphrase[all_times_are_gmt_x_time_now_is_y]</div>
<br />

$spacer_close
<!-- /content area table -->

<form action="$vboptions[forumhome].php" method="get">
   
<table cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="$stylevar[outertablewidth]" class="page" align="center">
<tr>
    <if condition="$show['quickchooser']">
        <td>
            <select name="styleid" onchange="switch_id(this, 'style')">
                <optgroup label="$vbphrase[quick_style_chooser]">
                    $quickchooserbits
                </optgroup>
            </select>
        </td>
    </if>
    <if condition="$show['languagechooser']">
        <td>
            <select name="langid" onchange="switch_id(this, 'lang')">
                <optgroup label="$vbphrase[quick_language_chooser]">
                    $languagechooserbits
                </optgroup>
            </select>
        </td>
    </if>
    <td align="$stylevar[right]" width="100%">
        <div class="smallfont">
            <strong>
                <if condition="$show['contactus']"><a href="$vboptions[contactuslink]" rel="nofollow">$vbphrase[contact_us]</a> -</if>
                <a href="$vboptions[homeurl]">$vboptions[hometitle]</a> -
                <if condition="$show['admincplink']"><a href="$admincpdir/index.php$session[sessionurl_q]">$vbphrase[admin]</a> -</if>
                <if condition="$show['modcplink']"><a href="$modcpdir/index.php$session[sessionurl_q]">$vbphrase[mod]</a> -</if>
                <if condition="$vboptions['archiveenabled']"><a href="archive/index.php">$vbphrase[archive]</a> -</if>
                <if condition="$vboptions[privacyurl]"><a href="$vboptions[privacyurl]">$vbphrase[privacy_statement]</a> -</if>
                <a href="#top" onclick="self.scrollTo(0, 0); return false;">$vbphrase[top]</a>
            </strong>
        </div>
    </td>
</tr>
</table>
</form>

</td><td width="84" background="$stylevar[imgdir_misc]/br.gif">
    <img src="$stylevar[imgdir_misc]/br.gif" width="84" height="2" align="right"></td>
</table>

<div align="justify">
    <table cellSpacing="0" cellPadding="0" align="center">
        <tr>
            <td><img src="$stylevar[imgdir_misc]/footer1.gif"></td>
        </tr>
    </table>
</div>
<div align="justify">
    <table height="60" cellSpacing="0" cellPadding="0" width="1000" background="$stylevar[imgdir_misc]/footer2.gif" align="center">
        <tr>
            <td align="middle" background="$stylevar[imgdir_misc]/footer2.gif">
                <div class="smallfont" align="center">
            <a style="text-decoration: none; color: #AC5B22" href="http://www.starpages.net/cgi-bin/star.pl?VID=1152650057">
            Vote For Our Site
                <br />
    <!-- Do not remove this copyright notice -->
    $vbphrase[powered_by_vbulletin]
    <!-- Do not remove this copyright notice -->
    </div>
        <div class="smallfont" align="center">
    <!-- Do not remove $cronimage or your scheduled tasks will cease to function -->
    $cronimage
    <!-- Do not remove $cronimage or your scheduled tasks will cease to function -->
   
    $vboptions[copyrighttext]</div></td>
        </tr>
    </table>
    <table class="smalltxt" height="56" cellSpacing="0" cellPadding="0" width="1000" background="$stylevar[imgdir_misc]/footer3.gif" align="center">
        <tr>
            <td vAlign="top" align="right" width="435"></td>
            <td vAlign="top" align="left" width="364"></td>
        </tr>
    </table>
</div>
</center>
<if condition="$show['dst_correction']">
<!-- auto DST correction code -->
<form action="profile.php" method="post" name="dstform">
    <input type="hidden" name="s" value="$session[sessionhash]" />
    <input type="hidden" name="do" value="dst" />
</form>
<script type="text/javascript">
<!--
    var tzOffset = $bbuserinfo[timezoneoffset] + $bbuserinfo[dstonoff];
    var utcOffset = new Date().getTimezoneOffset() / 60;
    if (Math.abs(tzOffset + utcOffset) == 1)
    {    // Dst offset is 1 so its changed
        document.forms.dstform.submit();
    }
//-->
</script>
<!-- / auto DST correction code -->

</if>
<script type="text/javascript">
<!--
    // Main vBulletin Javascript Initialization
    vBulletin_init();
//-->
</script>





The problem with this is that every collapse on one page contains an ID for itself, and because you have 2 of the same collapse ID's on the same page it creates bugs.

Keep the current code you have for the header , but change the footer to this:
Code:

<if condition="!(
(THIS_SCRIPT == 'login') OR
(THIS_SCRIPT == 'register') OR
(THIS_SCRIPT == 'usercp') OR
(THIS_SCRIPT == 'private') OR
(THIS_SCRIPT == 'subscription') OR
(THIS_SCRIPT == 'payments') OR
(THIS_SCRIPT == 'invites') OR
(THIS_SCRIPT == 'memberlist') OR
(THIS_SCRIPT == 'online') OR
(THIS_SCRIPT == 'member') OR
(THIS_SCRIPT == 'spiders') OR
(THIS_SCRIPT == 'psistats') OR
(THIS_SCRIPT == 'profile') OR
(THIS_SCRIPT == 'faq') OR
(THIS_SCRIPT == 'sendmessage') OR
(THIS_SCRIPT == 'CybPayPal') OR
(THIS_SCRIPT == 'calendar') OR
((THIS_SCRIPT == 'calendar') AND $_REQUEST['do'] == 'add') OR
((THIS_SCRIPT == 'misc') AND $_REQUEST['moderator_stats'] == '') OR
((THIS_SCRIPT == 'search') AND $_REQUEST['searchid'] == '') OR
((THIS_SCRIPT == 'gallery_search') AND $_REQUEST['searchid'] == '') OR
(THIS_SCRIPT == 'gallery_upload') OR
(THIS_SCRIPT == 'THIS_SCRIPT')
)">

<br />

<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr><td align="left" width="728" class="thead" colspan="2">
<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('ad_foot')"><img id="collapseimg_ad_foot" src="$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_ad_foot].gif" alt="" border="0" /></a>
Sponsored Links</td></tr>
<tbody id="collapseobj_ad_foot" style="$vbcollapse[collapseobj_ad_foot]">
<tr><td class="alt1" colspan="2" ><span class="smallfont"><center>

<!-- CODE HERE -->

</center></span></td></tr>
</tbody>
</table>

<br />

<else />

</if>


RsX 08-30-2006 02:50 PM

Quote:

Originally Posted by Nuguru
Hello Everyone,

I don't know if this is a "Advertisements Enhancer" question or a ibProArade question, but I will ask anyways because I am having no problems with my Aracde sizing until this install.

It looks like this script is working really good in everything template than the ones from the arade. When this script is shown in all the ibProArade templates, it shows wide. See attachment "wide". I am wanting it to show up like it does in every other template, see the "properly-lined" attachment.

Is anyone else having this problem? Does anyone know how to correct this?

Thank You,


Nuguru :)

Replace your current code with this and let me know if it helps :)

Code:

<if condition="!(
(THIS_SCRIPT == 'login') OR
(THIS_SCRIPT == 'register') OR
(THIS_SCRIPT == 'usercp') OR
(THIS_SCRIPT == 'private') OR
(THIS_SCRIPT == 'subscription') OR
(THIS_SCRIPT == 'payments') OR
(THIS_SCRIPT == 'invites') OR
(THIS_SCRIPT == 'memberlist') OR
(THIS_SCRIPT == 'online') OR
(THIS_SCRIPT == 'member') OR
(THIS_SCRIPT == 'spiders') OR
(THIS_SCRIPT == 'psistats') OR
(THIS_SCRIPT == 'profile') OR
(THIS_SCRIPT == 'faq') OR
(THIS_SCRIPT == 'sendmessage') OR
(THIS_SCRIPT == 'CybPayPal') OR
(THIS_SCRIPT == 'calendar') OR
((THIS_SCRIPT == 'calendar') AND $_REQUEST['do'] == 'add') OR
((THIS_SCRIPT == 'misc') AND $_REQUEST['moderator_stats'] == '') OR
((THIS_SCRIPT == 'search') AND $_REQUEST['searchid'] == '') OR
((THIS_SCRIPT == 'gallery_search') AND $_REQUEST['searchid'] == '') OR
(THIS_SCRIPT == 'gallery_upload') OR
(THIS_SCRIPT == 'THIS_SCRIPT')
)">

<br />

<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr><td align="left" width="600" class="thead" colspan="2">
<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('ad_head')"><img id="collapseimg_ad_head" src="$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_ad_head].gif" alt="" border="0" /></a>
Sponsored Links</td></tr>
<tbody id="collapseobj_ad_head" style="$vbcollapse[collapseobj_ad_head]">
<tr><td class="alt1" colspan="2" ><span class="smallfont"><center>

<!-- CODE HERE -->

</center></span></td></tr>
</tbody>
</table>

<br />

<else />

</if>


Nuguru 08-07-2008 07:36 AM

How to do make this window closed by default when you visit the page?

Thank You


All times are GMT. The time now is 02:26 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.01120 seconds
  • Memory Usage 1,790KB
  • 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
  • (3)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)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