Announcement

Collapse
No announcement yet.

Please someone HELP! Banner Placement Issue

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Please someone HELP! Banner Placement Issue

    OK... Here is my delima, I'm using phpadnew and that part is working great; however I can not for the life of me determine how to get the banners phpadnew is placing to go directly above the control buttons in the header on the right..... Like on the top of this page... See the vBulletin 3.0.0 Beta 7 logo?... That is where I want these banners to be placed.

    I have included my entire "header" section.

    Currently, the banner placement will go right in the middle of the logo on the left and the control panel buttons on the right. I need it to be above the control buttons on the right.

    See... www.thecleanernetwork.com and you will see what I mean.

    Thanks,

    Ty Carter


    <!-- logo and buttons -->
    <a name="top"></a>
    <table border="0" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center">
    <tr valign="bottom">
    <td align="$stylevar[left]" style="background-image: url($stylevar[imgdir_misc]/menu_background.gif);"><a href="$vboptions[forumhome].php?$session[sessionurl]"><img src="$stylevar[titleimage]" border="0" alt="$vboptions[bbtitle]" /></a></td>
    <td align="$stylevar[right]" style="background-image: url($stylevar[imgdir_misc]/menu_background.gif);" nowrap="nowrap">
    <!-- Start Banner Script Here -->
    <script language='JavaScript' type='text/javascript'>
    <!--
    if (!document.phpAds_used) document.phpAds_used = ',';
    phpAds_random = new String (Math.random()); phpAds_random = phpAds_random.substring(2,11);

    document.write ("<" + "script language='JavaScript' type='text/javascript' src='");
    document.write ("
    http://www.thecleanernetwork.com/phpads/adjs.php?n=" + phpAds_random);
    document.write ("&amp;clientid=4");
    document.write ("&amp;exclude=" + document.phpAds_used);
    if (document.referer)
    document.write ("&amp;referer=" + escape(document.referer));
    document.write ("'><" + "/script>");
    //-->
    </script><noscript><a href='http://www.thecleanernetwork.com/phpads/adclick.php?n=a81b7ecc' target='_blank'><img src='http://www.thecleanernetwork.com/phpads/adview.php?clientid=4&amp;n=a81b7ecc' border='50' alt=''></a></noscript>
    <!-- /End Banner Script Here -->

    <if condition="$bbuserinfo[userid]"><a href="usercp.php?$session[sessionurl]"><img src="$stylevar[imgdir_button]/top_profile.gif" alt="top_profile.gif" title="Here you can view your subscribed threads, work with private messages and edit your profile and preferences" border="0" vspace="8" /></a></if>
    <if condition="$vboptions[allowregistration] and (!$bbuserinfo[userid] or $vboptions[allowmultiregs])"><a href="register.php?$session[sessionurl]do=signup"><img src="$stylevar[imgdir_button]/top_register.gif" alt="top_register.gif" title="Registration is free!" border="0" vspace="8" /></a></if>
    <a href="calendar.php?$session[sessionurl]"><img src="$stylevar[imgdir_button]/top_calendar.gif" alt="top_calendar.gif" title="Calendar" border="0" vspace="8" /></a>
    <a href="memberlist.php?$session[sessionurl]"><img src="$stylevar[imgdir_button]/top_members.gif" alt="top_members.gif" title="Find other members" border="0" vspace="8" /></a>
    <a href="faq.php?$session[sessionurl]"><img src="$stylevar[imgdir_button]/top_faq.gif" alt="top_faq.gif" title="Frequently Asked Questions" border="0" vspace="8" /></a>
    <a href="search.php?$session[sessionurl]"><img src="$stylevar[imgdir_button]/top_search.gif" alt="top_search.gif" title="Search" border="0" vspace="8" /></a>
    <a href="$vboptions[forumhome].php?$session[sessionurl]"><img src="$stylevar[imgdir_button]/top_home.gif" alt="top_home.gif" title="Home" border="0" vspace="8" /></a>
    &nbsp; &nbsp;
    </td>
    </tr>
    </table>
    <!-- /logo and buttons -->

    <!-- content table -->
    <table width="$stylevar[outertablewidth]" cellpadding="$stylevar[spacersize]" cellspacing="0" border="0" align="center" class="page">
    <tr>
    <td>

  • #2
    Have you tried putting a < BR /> directly after your javascript? Just above the first "if" statement?

    I actually use phpadsnew, but have hacked the code to include a var where I want it....

    Cheers
    vBulletin Owner since 2002!

    Comment


    • #3
      Originally posted by speedway
      Have you tried putting a < BR /> directly after your javascript? Just above the first "if" statement?

      I actually use phpadsnew, but have hacked the code to include a var where I want it....

      Cheers
      Speedway! Thanks! That did the trick! My hat is off to you!

      You were the only one that gave me solid advice with out sarcasism and I really appreciate that.

      Thanks again!

      Comment


      • #4
        Right Corner Banner Problem

        I have been fighting with PHPadnews for a few days now. I think I finnally have the zone thing figured out, but I have made the changes that seem logical and I still can't seem to get the bannr to show up in my top right corner? Can someone please tell me what I am doing wrong here?

        I am new to Adsnew and to VB, thanks again!

        Robin


        <script language='JavaScript' type='text/javascript' src='http://thewomenofcoloradosprings.com/banners/adx.js'></script>
        <script language='JavaScript' type='text/javascript'>
        <!-- < BR />
        if (!document.phpAds_used) document.phpAds_used = ',';
        phpAds_random = new String (Math.random()); phpAds_random = phpAds_random.substring(2,11);
        document.write ("<" + "script language='JavaScript' type='text/javascript' src='");
        document.write ("http://thewomenofcoloradosprings.com/banners/adjs.php?n=" + phpAds_random);
        document.write ("&amp;what=zone:1&amp;source=frontpage&amp;target=_blank");
        document.write ("&amp;exclude=" + document.phpAds_used);
        if (document.referrer)
        document.write ("&amp;referer=" + escape(document.referrer));
        document.write ("'><" + "/script>");
        //-->
        </script><noscript><a href='http://thewomenofcoloradosprings.com/banners/adclick.php?n=a155b02a' target='_blank'><img src='http://thewomenofcoloradosprings.com/banners/adview.php?what=zone:1&amp;source=frontpage&amp;n=a155b02a' border='0' alt=''></a></noscript>
        <td class="thead" align="right">< <td class="thead" align="right">
        <!-- designed by [email protected]/[email protected] for forumtemplates.com -->
        <a name="top"></a>
        <table width="90%" border="0" align="center" cellpadding="0" cellspacing="0" style="height:100%;">
        <tr>
        <td class="rightbdr">&nbsp;</td>
        <td valign="right" class="centerwrap"><table width="100%" border="0" cellspacing="0" cellpadding="0" style="height:100%;">
        <tr>
        <td class="headerwrap"><table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
        <td class="topbg">&nbsp;</td>
        </tr>
        <tr>
        <td class="headerlogowrap"><div align="center"><a href="$vboptions[forumhome].php$session[sessionurl_q]"><img src="images/girltalk3/girltalk3_headerlogo.gif" alt="$vboptions[bbtitle]" width="629" height="69" border="0"></a></div></td>
        </tr>
        </table></td>
        </tr>

        <tr>
        <td class="navwrap"><div align="right" id="navstyle"><!-- nav buttons bar -->
        <div align="right">
        <table cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="100%" align="right" style="border-top-width:0px">
        <tr align="right">
        <if condition="$show['member']">
        <td ><a href="usercp.php$session[sessionurl_q]">$vbphrase[user_cp]</a></td>
        </if>
        <if condition="$show['registerbutton']">
        <td ><a href="register.php$session[sessionurl_q]" rel="nofollow">$vbphrase[register]</a></td>
        </if>
        <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>
        <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>
        <td ><a href="forumdisplay.php?$session[sessionurl]do=markread" rel="nofollow">$vbphrase[mark_forums_read]</a></td>
        <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,r esizable=yes,width=250,height=300'); return false;">$vbphrase[open_buddy_list]</a></td>
        </if>
        </if>
        <if condition="$show['member']">
        <td ><a href="login.php?$session[sessionurl]do=logout&amp;logouthash=$bbuserinfo[logouthash]" onclick="return log_out()">$vbphrase[log_out]</a></td>
        </if>
        </tr>
        </table>
        </div>
        <!-- / nav buttons bar --></div></td>
        </tr>
        <tr>
        <td valign="top" class="cwrap">
        <!-- /end header part -->
        <!-- content table -->
        $spacer_open
        $_phpinclude_output

        Comment

        widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
        Working...
        X