vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   help me to leave a gap (https://vborg.vbsupport.ru/showthread.php?t=152929)

websiteking532 07-21-2007 12:56 PM

help me to leave a gap
 
how can i leave some space between the ad and the "Welcome to the India Forums forums. " box

https://vborg.vbsupport.ru/external/2007/07/14.jpg

Yours Truly 07-21-2007 12:58 PM

Quote:

Originally Posted by websiteking532 (Post 1297339)
how can i leave some space between the ad and the "Welcome to the India Forums forums. " box

http://upload.bz/files/my5mnkbdmtxymtwqkjyd.jpg

Can you copy and paste your FORUMHOME template =]

websiteking532 07-21-2007 01:12 PM

PHP Code:

$stylevar[htmldoctype]
<
html dir="$stylevar[textdirection]lang="$stylevar[languagecode]">
<
head>
    <!-- 
no cache headers -->
    <
meta http-equiv="Pragma" content="no-cache" />
    <
meta http-equiv="Expires" content="-1" />
    <
meta http-equiv="Cache-Control" content="no-cache" />
    <!-- 
end no cache headers -->
    
$headinclude
    
<title><phrase 1="$vboptions[bbtitle]">$vbphrase[x_powered_by_vbulletin]</phrase></title>
</
head>
<
body>
$header
$navbar

<!-- main -->
<
table class="tborder" cellpadding="$stylevar[cellpadding]cellspacing="$stylevar[cellspacing]border="0" width="100%" align="center">

        

$forumbits
<tbody>
    <
tr>
        <
td class="tfoot" align="center" colspan="<if condition="$vboptions['showmoderatorcolumn']">6<else />5</if>"><div class="smallfont"><strong>
            <
a href="forumdisplay.php?$session[sessionurl]do=markread" rel="nofollow">$vbphrase[mark_forums_read]</a>
            <if 
condition="$vboptions['forumleaders']">&nbsp; &nbsp;
            <
a href="showgroups.php$session[sessionurl_q]rel="nofollow">$vbphrase[view_forum_leaders]</a></if>
        </
strong></div></td>
    </
tr>
</
tbody>
</
table>

$forumhome_markread_script


<!-- /main -->
<
br />
<!-- 
icons  -->

        <
table cellpadding="2" cellspacing="0" border="0" width="100%" align="center">
        <
tr>
            <
td align="right"><img src="$stylevar[imgdir_statusicon]/forum_new.gif" alt="$vbphrase[contains_new_posts]border="0" /></td>
            <
td class="smallfont" align="center"$vbphrase[forum_contains_new_posts] &nbsp;&nbsp;&nbsp;&nbsp;</td>
        
            <
td align="right"><img src="$stylevar[imgdir_statusicon]/forum_old.gif" alt="$vbphrase[contains_no_new_posts]border="0" /></td>
            <
td class="smallfont" align="center"$vbphrase[forum_contains_no_new_posts] &nbsp;&nbsp;&nbsp;&nbsp;</td>
        
        
            <
td align="right"><img src="$stylevar[imgdir_statusicon]/forum_old_lock.gif" alt="$vbphrase[a_closed_forum]border="0" /></td>
            <
td class="smallfont" align="center"$vbphrase[forum_is_closed_for_posting] &nbsp;&nbsp;&nbsp;&nbsp;</td>
        </
tr>
        </
table>

<!-- / 
icons  -->

<
br />

<!-- 
what's going on box -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<thead>
    <tr>
        <td class="tcat" colspan="2">$vbphrase[whats_going_on]</td>
    </tr>
</thead>
<if condition="$show['
loggedinusers']">
<!-- logged-in users -->
<tbody>
    <tr>
        <td class="thead" colspan="2">
            <a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('
forumhome_activeusers')"><img id="collapseimg_forumhome_activeusers" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_activeusers].gif" alt="" border="0" /></a>
            <a href="online.php$session[sessionurl_q]" rel="nofollow">$vbphrase[currently_active_users]</a>: $totalonline (<phrase 1="$numberregistered" 2="$numberguest">$vbphrase[x_members_and_y_guests]</phrase>)
        </td>
    </tr>
</tbody>
<tbody id="collapseobj_forumhome_activeusers" style="$vbcollapse[collapseobj_forumhome_activeusers]">
    <tr>
        <td class="alt2"><a href="online.php$session[sessionurl_q]" rel="nofollow"><img src="$stylevar[imgdir_misc]/whos_online.gif" alt="$vbphrase[view_whos_online]" border="0" /></a></td>
        <td class="alt1" width="100%">
            <div class="smallfont">
                <div style="white-space: nowrap"><phrase 1="$recordusers" 2="$recorddate" 3="$recordtime">$vbphrase[most_users_ever_online_was_x_y_at_z]</phrase></div>
                <div>$activeusers</div>
            </div>
        </td>
    </tr>
</tbody>
<!-- end logged-in users -->
</if>
<tbody>
    <tr>
        <td class="thead" colspan="2">
            <a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('
forumhome_stats')"><img id="collapseimg_forumhome_stats" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_stats].gif" alt="" border="0" /></a>
            <phrase 1="$vboptions[bbtitle]">$vbphrase[x_statistics]</phrase>
        </td>
    </tr>
</tbody>
<tbody id="collapseobj_forumhome_stats" style="$vbcollapse[collapseobj_forumhome_stats]">
    <tr>
        <td class="alt2"><img src="$stylevar[imgdir_misc]/stats.gif" alt="<phrase 1="$vboptions[bbtitle]">$vbphrase[x_statistics]</phrase>" border="0" /></td>
        <td class="alt1" width="100%">
        <div class="smallfont">
            <div>
                $vbphrase[threads]: $totalthreads,
                $vbphrase[posts]: $totalposts,
                $vbphrase[members]: $numbermembers<if condition="$show['
activemembers']">,
                    <span title="<phrase 1="$vboptions[activememberdays]">$vbphrase[within_the_last_x_days]</phrase>">$vbphrase[active_members]: $activemembers</span>
                </if>
            </div>
            <div><phrase 1="member.php?$session[sessionurl]u=$newuserid" 2="$newusername">$vbphrase[welcome_to_our_newest_member_x]</phrase></div>
        </div>
        </td>
    </tr>
</tbody>
<if condition="$show['
birthdays']">
<!-- today'
s birthdays -->
<
tbody>
    <
tr>
        <
td class="thead" colspan="2">
            <
a style="float:$stylevar[right]href="#top" onclick="return toggle_collapse('forumhome_birthdays')"><img id="collapseimg_forumhome_birthdays" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_birthdays].gif" alt="" border="0" /></a>
            
$vbphrase[todays_birthdays]
        </
td>
    </
tr>
</
tbody>
<
tbody id="collapseobj_forumhome_birthdays" style="$vbcollapse[collapseobj_forumhome_birthdays]">
    <
tr>
        <
td class="alt2"><a href="calendar.php?$session[sessionurl]do=getday&amp;day=$today&amp;sb=1"><img src="$stylevar[imgdir_misc]/birthday.gif" alt="$vbphrase[view_birthdays]border="0" /></a></td>
        <
td class="alt1" width="100%"><div class="smallfont">$birthdays</div></td>
    </
tr>
</
tbody>
<!-- 
end today's birthdays -->
</if>
<if condition="$show['
upcomingevents']">
<tbody>
    <tr>
        <td class="thead" colspan="2">
            <a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('
forumhome_events')"><img id="collapseimg_forumhome_events" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_events].gif" alt="" border="0" /></a>
            <if condition="$show['
todaysevents']">$vbphrase[todays_events]<else /><phrase 1="$vboptions[showevents]">$vbphrase[upcoming_events_for_the_next_x_days]</phrase></if>
        </td>
    </tr>
</tbody>
<tbody id="collapseobj_forumhome_events" style="$vbcollapse[collapseobj_forumhome_events]">
    <tr>
        <td class="alt2"><a href="calendar.php$session[sessionurl_q]"><img src="$stylevar[imgdir_misc]/calendar.gif" alt="$vbphrase[calendar]" border="0" /></a></td>
        <td class="alt1" width="100%"><div class="smallfont">$upcomingevents</div></td>
    </tr>
</tbody>
</if>
</table>
<br />
<!-- end what'
s going on box -->



$footer
</body>
</
html


Yours Truly 07-21-2007 01:14 PM

Quote:

Originally Posted by Yours Truly (Post 1297340)
Can you copy and paste your FORUMHOME template =]

What template did you add that advertisement to?

Can you post that template =]

websiteking532 07-21-2007 01:17 PM

i added the advertizement code to the header template

PHP Code:

<a name="top"></a>
<
table border="0" width="$stylevar[outertablewidth]cellpadding="0" cellspacing="0" align="center">
<
tr>
    <!-- 
logo --><td align="$stylevar[left]width="370"><a href="$vboptions[forumhome].php$session[sessionurl_q]"><img src="$stylevar[titleimage]border="0" alt="$vboptions[bbtitle]/></a></td><!-- /logo -->
    <
td align="center"><table class="nav_menu"><tr><td valign="middle" align="center">


<!-- 
nav buttons bar -->

    <
table cellpadding="$stylevar[cellpadding]cellspacing="0" border="0" width="100%" align="center">
    <
tr align="center">
        <
td><a href="faq.php$session[sessionurl_q]accesskey="5">$vbphrase[faq]</a></td>
        <
td><a href="memberlist.php$session[sessionurl_q]">$vbphrase[members_list]</a></td>
        <
td><a href="calendar.php$session[sessionurl_q]">$vbphrase[calendar]</a></td></tr>
<
tr align="center">
        <if 
condition="$show['popups']">        
            <if 
condition="$show['searchbuttons']">
                <if 
condition="$show['member']">
                <
td><a href="search.php?$session[sessionurl]do=getnew" accesskey="2">$vbphrase[new_posts_nav]</a></td>
                <else />
                <
td><a href="search.php?$session[sessionurl]do=getdaily" accesskey="2">$vbphrase[todays_posts]</a></td>
                </if>
                <
td id="navbar_search"><a href="search.php$session[sessionurl_q]accesskey="4" rel="nofollow">$vbphrase[search]</a> <script type="text/javascript"vbmenu_register("navbar_search"); </script></td>
            </if>
            <if 
condition="$show['member']">
                <
td id="usercptools"><a href="$show[nojs_link]#usercptools">$vbphrase[quick_links]</a> <script type="text/javascript"vbmenu_register("usercptools"); </script></td>        
            </if>
        <else />        
            <if 
condition="$show['searchbuttons']">
                <
td><a href="search.php$session[sessionurl_q]accesskey="4">$vbphrase[search]</a></td>
                <if 
condition="$show['member']">
                <
td><a href="search.php?$session[sessionurl]do=getnew" accesskey="2">$vbphrase[new_posts_nav]</a></td>
                <else />
                <
td><a href="search.php?$session[sessionurl]do=getdaily" accesskey="2">$vbphrase[todays_posts]</a></td>
                </if>
            </if>
            <if 
condition="$show['member']">            
                <
td><a href="#" onclick="window.open('misc.php?$session[sessionurl]do=buddylist&amp;focus=1','buddylist','statusbar=no,menubar=no,toolbar=no,scrollbars=yes,resizable=yes,width=250,height=300'); return false;">$vbphrase[open_buddy_list]</a></td>            
            </if>            
        </if>
        
    </
tr>
    </
table>

<!-- / 
nav buttons bar -->    

<!-- 
Site Links -->        
<
div align="center" <if condition="!$show['popups']"style="padding:3px;"</if><if condition="is_browser('opera')"style="padding:stylevar[opera_sitelinks]px;"</if>>
<
a href="index.php$session[sessionurl_q]"><img src="$stylevar[imgdir_misc]/top_portal.gif" hspace="2" border="0" alt="$vbphrase[portal]/></a>
<
a href="$vboptions[forumhome].php$session[sessionurl_q]"><img src="$stylevar[imgdir_misc]/top_home.gif" hspace="2" border="0" alt="$vboptions[bbtitle]/></a>
<
a href="../gallery/index.php$session[sessionurl_q]"><img src="$stylevar[imgdir_misc]/top_gallery.gif" hspace="2" border="0" alt="$vbphrase[gallery]/></a>
</
div>
<!-- / 
Site Links -->
    
</
td></tr></table>
    </
td>
</
tr>
</
table>


<
table border="0" width="$stylevar[outertablewidth]cellpadding="0" cellspacing="0" align="center">
<
tr>
<
td class="page" width="100%"> </td>
<
td align="$stylevar[right]width="14"><img src="$stylevar[imgdir_misc]/page_bg_tr.gif" border="0" alt="" /></td>
</
tr>
</
table>

<!-- 
content table -->
$spacer_open

$_phpinclude_output
<div style="text-align: center;">
<
script type="text/javascript"><!--
google_ad_client "pub-2525910147396207";
google_ad_width 728;
google_ad_height 90;
google_ad_format "728x90_as";
google_ad_type "image";
google_ad_channel "";
//-->
</script>
<
script type="text/javascript"
  
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</
script>
$welcomeheaders
</div


Yours Truly 07-21-2007 01:18 PM

PHP Code:

<a name="top"></a>
<
table border="0" width="$stylevar[outertablewidth]cellpadding="0" cellspacing="0" align="center">
<
tr>
    <!-- 
logo --><td align="$stylevar[left]width="370"><a href="$vboptions[forumhome].php$session[sessionurl_q]"><img src="$stylevar[titleimage]border="0" alt="$vboptions[bbtitle]/></a></td><!-- /logo -->
    <
td align="center"><table class="nav_menu"><tr><td valign="middle" align="center">


<!-- 
nav buttons bar -->

    <
table cellpadding="$stylevar[cellpadding]cellspacing="0" border="0" width="100%" align="center">
    <
tr align="center">
        <
td><a href="faq.php$session[sessionurl_q]accesskey="5">$vbphrase[faq]</a></td>
        <
td><a href="memberlist.php$session[sessionurl_q]">$vbphrase[members_list]</a></td>
        <
td><a href="calendar.php$session[sessionurl_q]">$vbphrase[calendar]</a></td></tr>
<
tr align="center">
        <if 
condition="$show['popups']">        
            <if 
condition="$show['searchbuttons']">
                <if 
condition="$show['member']">
                <
td><a href="search.php?$session[sessionurl]do=getnew" accesskey="2">$vbphrase[new_posts_nav]</a></td>
                <else />
                <
td><a href="search.php?$session[sessionurl]do=getdaily" accesskey="2">$vbphrase[todays_posts]</a></td>
                </if>
                <
td id="navbar_search"><a href="search.php$session[sessionurl_q]accesskey="4" rel="nofollow">$vbphrase[search]</a> <script type="text/javascript"vbmenu_register("navbar_search"); </script></td>
            </if>
            <if 
condition="$show['member']">
                <
td id="usercptools"><a href="$show[nojs_link]#usercptools">$vbphrase[quick_links]</a> <script type="text/javascript"vbmenu_register("usercptools"); </script></td>        
            </if>
        <else />        
            <if 
condition="$show['searchbuttons']">
                <
td><a href="search.php$session[sessionurl_q]accesskey="4">$vbphrase[search]</a></td>
                <if 
condition="$show['member']">
                <
td><a href="search.php?$session[sessionurl]do=getnew" accesskey="2">$vbphrase[new_posts_nav]</a></td>
                <else />
                <
td><a href="search.php?$session[sessionurl]do=getdaily" accesskey="2">$vbphrase[todays_posts]</a></td>
                </if>
            </if>
            <if 
condition="$show['member']">            
                <
td><a href="#" onclick="window.open('misc.php?$session[sessionurl]do=buddylist&amp;focus=1','buddylist','statusbar=no,menubar=no,toolbar=no,scrollbars=yes,resizable=yes,width=250,height=300'); return false;">$vbphrase[open_buddy_list]</a></td>            
            </if>            
        </if>
        
    </
tr>
    </
table>

<!-- / 
nav buttons bar -->    

<!-- 
Site Links -->        
<
div align="center" <if condition="!$show['popups']"style="padding:3px;"</if><if condition="is_browser('opera')"style="padding:stylevar[opera_sitelinks]px;"</if>>
<
a href="index.php$session[sessionurl_q]"><img src="$stylevar[imgdir_misc]/top_portal.gif" hspace="2" border="0" alt="$vbphrase[portal]/></a>
<
a href="$vboptions[forumhome].php$session[sessionurl_q]"><img src="$stylevar[imgdir_misc]/top_home.gif" hspace="2" border="0" alt="$vboptions[bbtitle]/></a>
<
a href="../gallery/index.php$session[sessionurl_q]"><img src="$stylevar[imgdir_misc]/top_gallery.gif" hspace="2" border="0" alt="$vbphrase[gallery]/></a>
</
div>
<!-- / 
Site Links -->
    
</
td></tr></table>
    </
td>
</
tr>
</
table>


<
table border="0" width="$stylevar[outertablewidth]cellpadding="0" cellspacing="0" align="center">
<
tr>
<
td class="page" width="100%"> </td>
<
td align="$stylevar[right]width="14"><img src="$stylevar[imgdir_misc]/page_bg_tr.gif" border="0" alt="" /></td>
</
tr>
</
table>

<!-- 
content table -->
$spacer_open

$_phpinclude_output
<div style="text-align: center;">
<
script type="text/javascript"><!--
google_ad_client "pub-2525910147396207";
google_ad_width 728;
google_ad_height 90;
google_ad_format "728x90_as";
google_ad_type "image";
google_ad_channel "";
//-->
</script>
<
script type="text/javascript"
  
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</
script>
<
br />
$welcomeheaders
</div

Try that =]

websiteking532 07-21-2007 01:22 PM

shall i replace the above code with the below one

Yours Truly 07-21-2007 01:24 PM

Yea use the one in my post :)

websiteking532 07-21-2007 01:35 PM

problem solved thanks

Yours Truly 07-21-2007 01:37 PM

Your welcome :)


All times are GMT. The time now is 10: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.01475 seconds
  • Memory Usage 1,974KB
  • 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_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete