SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Member
    Join Date
    Sep 2002
    Posts
    4
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Vbulletin rounded corners question

    I am upgrading my vb from 2.0.3 to 2.2.7. That's a story in it's self.

    But I had someone round my corners off on my old vb and put in an banner ad thing at the top. He used a header.php file where the code is for the top corners and a file call adblock.php for the banners. those files go in the root dir and he put include("header.php"); in the PHP parsed code: are. the header.php file has the include adblock in it to call the banners. and I think he use the footer in the cp of the vb

    My problem is this. before I figured out the above all I could find was his footer code in the cp and I copied to the new vb footer area. the bottom corners turned out fine. But I had no upper corners and there wasn't any code in the cp header. so as I said I figured out the top stuff and now I have the banner and the upper corners looking good and the lower corner are out of place.

    Not sure why the foot code worked before I install the headder.php and adbock.php in this new dir for this vb. Hope someone can understand this.

    The skill I have is pretty much a few years playing with stuff and altering other peoples code like hacks and html. but I really don't no this stuff.

    This I do know is a very easy fix. PLEASE HELP
    http://www.powerwashnetwork.com/forum/ take a look at the bottom


    Thanks

  2. #2
    Your Lord and Master, Foamy gold trophy Hierophant's Avatar
    Join Date
    Aug 1999
    Location
    Lancaster, Ca. USA
    Posts
    12,305
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Okay, I think you want two things here...

    1) Get rounded borders on your vBulletin. Similar to here correct?

    There is a tutorial on how to do this for vBulletin specifically at Pixel Junction. Here is the link: http://www.pixeljunction.com/tutorials/html/vbborders/

    2) Get the advertising back on your site. For this, I would have to know what is in your ad include file and I can help you so that it is easier to upgrade next time.
    Wayne Luke
    ------------


  3. #3
    SitePoint Member
    Join Date
    Sep 2002
    Posts
    4
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Here what I found. I have it figured out to the point I know it's in the header.php file..... Or I think it is. As I said above this guy design this using a header.php file instead of the header in the vB cp. But he did the footer in the vB cp.

    When I remove the header.php file from the forum root dir the corners in foot work. but when i upload the header.php file back to the root dir, the head corners work and the bottom does not. They are there but not in place. they are an inch or so high.

    Here is the code in the header.php file

    ------------------------------------------------------------------------------

    <?if ($bbuserid > 0) { $profileOrRegister = "<a href=\"usercp.php?s=$session[sessionhash]\"><img width=\"53\" height=\"25\" src=\"http://www.sitepointforums.com/images/top_profile.gif\" alt=\"Here you can view your subscribed threads, work with private messages and edit your profile and preferences\" border=\"0\"></a>";} else { $profileOrRegister = "<a href=\"register.php?s=$session[sessionhash]&action=signup\"><img width=\"53\" height=\"25\" src=\"http://www.sitepointforums.com/images/top_register.gif\" alt=\"Registration is free!\" border=\"0\"></a>";}



    include("adblock.php");



    $header="<center><table border=\"0\" width=\"100%\" cellpadding=\"0\" cellspacing=\"0\"><tr> <td width=10> </td> <td valign=\"top\" align=\"left\" background=\"http://www.sitepointforums.com/images/menu_background.gif\"><a href=\"index.php?s=$session[sessionhash]\"><img src=\"http://www.sitepointforums.com/images/spcommunity.gif\" border=\"0\" alt=\"$bbtitle\"></a> <br> <a href=\"http://www.zepmfg.com\"><img src=\"/sponsors/serviceof.gif\" border=0 width=\"264\" height=\"32\"></a> </td> <td valign=\"bottom\" align=\"right\" nowrap background=\"http://www.sitepointforums.com/images/menu_background.gif\"> <div style=\"margin-bottom: 5px;\"> <table border=0 cellspacing=0 cellpadding=0> <tr> <td> <a href=\"$adlink1\"><img border=\"0\" src=\"$adimage1\" width=\"400\" height=\"53\"></a> <!--img border=\"0\" src=\"sponsors/sponsor.gif\" width=\"14\" height=\"53\"--> </td> </tr> </table> </div> <!-- toplinks --> $profileOrRegister <a href=\"calendar.php?s=$session[sessionhash]\"><img width=\"53\" height=\"25\" src=\"http://www.sitepointforums.com/images/top_calendar.gif\" alt=\"Calendar\" border=\"0\"></a> <a href=\"memberlist.php?s=$session[sessionhash]\"><img width=\"53\" height=\"25\" src=\"http://www.sitepointforums.com/images/top_members.gif\" alt=\"Find other members\" border=\"0\"></a> <a href=\"vbgalleryindex.php?s=$session[sessionhash]\"><img width=\"53\" height=\"25\" src=\"http://www.sitepointforums.com/images/galleries.gif\" alt=\"Member galleries\" border=\"0\"></a> <a href=\"misc.php?s=$session[sessionhash]&action=faq\"><img width=\"53\" height=\"25\" src=\"http://www.sitepointforums.com/images/top_faq.gif\" alt=\"Frequently Asked Questions\" border=\"0\"></a> <a href=\"search.php?s=$session[sessionhash]\"><img width=\"53\" height=\"25\" src=\"http://www.sitepointforums.com/images/top_search.gif\" alt=\"Search\" border=\"0\"></a> <a href=\"index.php?s=$session[sessionhash]\"><img width=\"53\" height=\"25\" src=\"http://www.sitepointforums.com/images/top_home.gif\" alt=\"Home\" border=\"0\"></a> <!-- <a href=\"member.php?s=$session[sessionhash]&action=logout\"><img width=\"55\" height=\"25\" src=\"http://www.sitepointforums.com/images/top_logout.gif\" alt=\"Logout\" border=\"0\"></a> --> <!-- /toplinks --> </td></tr></table><!-- /logo and buttons --><!-- content table --><table bgcolor=\"#FFFFFF\" width=\"100%\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\"><tr> <td> <img src=\"/images/corner1_ul.gif\"></td> <td bgcolor=\"#ffffff\" width=100% style=\"font: 4pt arial;\"><img src=\"/headers/images/pixel.gif\" width=1 height=1></td> <td align=\"right\"> <img src=\"/images/corner1_ur.gif\"></td></tr><tr> <td width=4 style=\"font: 4pt arial;\"> </td> <td>";?>


    And this is the code in vB cp footer

    ----------------------------------------------------------------------------

    </table>
    <table border="0" width="100%" cellpadding="0" cellspacing="0"><tr>
    <td>
    <img src="/images/corner1_ll.gif"></td>
    <td bgcolor="#ffffff" width=100% style="font: 4pt arial;"><img src="/images/pixel.gif" width=1 height=1></td>
    <td align="right">
    <img src="/images/corner1_lr.gif"></td>
    </tr>
    </table>
    <!-- /content area table -->
    </center>

    <p align="center">
    <normalfont><font color=#ffffff><b>&lt; <a style="color:#ffffff;" href="$contactuslink">Contact Us</a> - <a style="color:#ffffff;" href="$homeurl">$hometitle</a>
    <!-- - <a href="$privacyurl">Privacy Statement</a> --> &gt;</b></font></normalfont>
    </p>

    <p align="center"><smallfont><font color=#ffffff>
    <!-- Do not remove this copyright notice -->
    TimberLand Pressure Wash /
    Powered by: vBulletin Version $templateversion<br>
    Copyright ©2000, 2002, Jelsoft Enterprises Limited.<br>
    <!-- Do not remove this copyright notice -->
    $copyrighttext


    Thanks


    __________________
    Last edited by Dan F; Sep 21, 2002 at 21:50.

  4. #4
    SitePoint Member
    Join Date
    Sep 2002
    Posts
    4
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Any idea with this code? I'm thinking it may be something were they divide!


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •