Fork me on GitHub

Border around all center blocks??  Bottom

  • Howdy-

    Done the search but haven't come across what I need.

    On my site Http://www.binaryoven.com I have several center blocks above the story boxes. At the moment I have "admin message" "gallery random" and "ephederms" all of which are fantastic. Well almost fantastic. Because these block have no borders around them it looks a bit messy and the contents of one block is hard to distinguish from another.

    How can I, either in theme.php or elsewhere create a border around the centerblock. And for that matter is there a way to create a centerbock.htm in the fashion of rightblock.htm where I can include graphics and have it apply to all centerblocks?

    Thank you.
  • Is this an AutoTheme?
  • Watcanz

    Is this an AutoTheme?


    No it's not, it's a theme I hacked up.
  • Looks like you solved you problem? Anyway nice theme :)

    Oh from reading the article about "age and acheivement" it sounds to me like you need a good dose of the sunscreen song ;) - I always listen to it when I'm feeling down about my acheivements to date ;)

    --
    -Lobos
    Professional PHP Framework Services: Concept, Development and Deployment
  • hmmm. would you mind telling us how you did it? i'm using an auto theme right now and having the same issue. All my admin messages just seem to blend into one another. I've resorted to using cheesy "====" lines to separate the messages :(
  • @Lobos

    Haha, I guess it was just one of those days, feeling a bit crummy. But there's no better cure than successfully chopping up a bunch of PHP to make one feel better-HA! And thanks, I tried hard to give my theme a unique look.


    @Arkangel

    Hello. Keep in mind I am not using an AutoTheme, I just use PHP themes(I guess I'm a masochist) so I cannot guarantee this will work for you.

    I added this little bit of code to my theme.php

    Code

    //Begin Center Block
    if ($block['position'] == "c") {
       echo '<table width="100%" bordercolor="#000000" border=\"1\"><tr><td>'
       .$block['content'].'</td></tr>'
       
         ."<br />";
         }


    Or you could call a background image:

    Code

    //Begin Center Block
    if ($block['position'] == "c") {
       echo '<table width="100%"  background="/images/BackgroundImage.jpg" border=\"1\"><tr><td>'
       .$block['content'].'</td></tr>'
       
         ."<br />";
         }


    You could for instance set the background of the table like so:

    Code

    //Begin Center Block
    if ($block['position'] == "c") {
       echo '<table width="100%" bgcolor="#EAE6D1" border=\"1\"><tr><td>'
       .$block['content'].'</td></tr>'
       
         ."<br />";
         }


    If you have some experience with basic HTML then all this is redudundant and very easily understood...
    Good luck
  • :( nope...didn't work for me. I've seen this done on others sites too. just need to find out how they did it
  • I too am in serch of a way to do this while using AutoThemes.

    So much to learn and only 24 hours in a day... wink

    edited: poor typing skills
  • Help them Lobos! :)

    -Shawn

    --
    Get the Revolutionary AutoTheme HTML Theme System! Currently for Zikula, PHP-Nuke, CRE Loaded, osCommerce and Wordpress!
  • Help me Lobos! lol

    puh-leeeeze :)

This list is based on users active over the last 60 minutes.