Fork me on GitHub

Announce article formating block removal & block text  Bottom

  • Ok, I'm stuck again. icon_rolleyes

    http://drazan.org/
    you will see my gell graphic block style around the announcement article in the center. I don't want the graphics, I do want the CSS border I placed on the outside. Just like the news posting.

    This is based off the PostNukeSilver, though I have been heavily modifing it.

    Is this the Code in question?:

    Code

    function themeindex ($_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $info, $links, $preformat)
    {
        $anonymous = pnConfigGetVar('anonymous');
        $tipath = pnConfigGetVar('tipath');
        // in this function and in the themearticle() we are going to use some of the Rogue defined api
        // as per the article by J.Cox
        // http://postnuke.com/modules.php?op=modload&name=News&file=article&sid=1260
        OpenTable();
        echo '<table border="0" cellspacing="1" cellpadding="0" width="100%"><tr>' .
             '<td class="article-table" align="left">' . '' . $preformat['catandtitle'] .
             '' . '</td></tr>' . '<tr><td class="article-table">' .
             '' . $preformat['searchtopic'] . '' .
             '' . $info['hometext'] . '' .
             '<br><br>' . '' . $preformat['notes'] . '' .
             '</td>' . '</tr>' . '</table>' .
             '<table border="0" width="100%" cellspacing="2" cellpadding="0">' .
             '<tr><td class="article-table" width="80" align="left">' . $info['counter'] .
             '&nbsp;' . _READS . '' . '</td><td class="article-table" align="right">' .
             $preformat['more'] . '' . '</td></tr>' . '</table>';
        CloseTable();
    }

    function themearticle ($_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $info, $links, $preformat)
    {
        OpenTable();
        echo '<table border="0" cellspacing="2" cellpadding="3" width="100%"><tr>' .
             '<td class="article-table" align="left">' . '' . $preformat['catandtitle'] .
             '' . '</td>' . '<td class="article-table" align="right">' . '' . _POSTEDBY .
             ': ' . $info['informant'] . '&nbsp;';
        // lets see if we can edit and delete article from this view
        if (pnSecAuthAction(0, 'Stories::Story', "$info[aid]:$info[cattitle]:$info[sid]", ACCESS_EDIT)) {
            echo '[ <a href="admin.php?module=NS-AddStory&amp;op=EditStory&amp;sid=' . $info['sid'] . '">' . _EDIT . '</a> ]';
            if (pnSecAuthAction(0, 'Stories::Story', "$info[aid]:$info[cattitle]:$info[sid]", ACCESS_DELETE)) {
                echo ' [ <a href="admin.php?module=NS-AddStory&amp;op=RemoveStory&amp;sid=' . $info['sid'] . '">' . _DELETE . '</a> ]';
            }
        }
        echo '</td>' . '</tr>' . '</table>' .
             '<table border="0" cellspacing="2" cellpadding="3" width="100%">' .
             '<tr>' . '<td class="article-table" align="left">' .
             '<span class="article-table-topic">' . $preformat['searchtopic'] .
             '</span>' . '<span class="article-table-text">' . $preformat['fulltext'] .
             '</span>' . '</td>' . '</tr>' . '</table>';
        CloseTable();
    }

    function themesidebox($block)
    {
        echo '<table width="100%" border="0" cellspacing="0" cellpadding="0">' .
             '<tr>' .
             '<td class="box_top_left"></td>' .
             '<td class="box_top_mid">' . $block['title'] . '</td>' .
             '<td class="box_top_right"></td>' .
             '</tr>' .
             '<tr>' .
             '<td class="box_mid_left"></td>' .
             '<td class="box_mid_mid">' . $block['content'] . '</td>' .
             '<td class="box_mid_right"></td>' .
             '</tr>' .
             '<tr>' .
             '<td class="box_bottom_left"></td>' .
             '<td class="box_bottom_mid"></td>' .
             '<td class="box_bottom_right"></td>' .
             '</tr>' .'</table>';
    }

    ?>

    and link to my CSS (not totally cleaned up yet)
    http://drazan.org/themes/Etherial/style/style.css

    Articles I've read on search include
    This one from the theme tips sticky which I kinda get, but not sure if it applies to what I'm doing.

    And this one which is useful, but not quite what I want either.

    So could someone point me in the right direction? Do I need to hard code something in the other files?

    The other little thing is on my blocks. You can see the red text and menu title. I have tried to change this in my code. It *should* be controlled by my .box_mid CSS style, as in the green titles on the other blocks. But there seemes to be another set of CSS where I do not find in the themes.php.

    This controls the text over on the left "Poll" block, bright green for the moment.

    Code

    .box_top_mid    /* controls the images elements for the box */
        {
          color: #00ff00;
          font-weight: bold;
          padding-bottom: 13px;
          background-image: url(../images/box_top_mid.jpg);
          background-repeat: repeat-x;
          height:45px;
        }



    This controls the red text in the right "menu" block.

    Code

    .menu-middle-left td
    {
        color: #ff0000;
        text-decoration: none;
        font-family: tahoma, verdana, helvetica, arial, sans-serif;
        font-weight: normal;
        font-size: 10px;
        padding-bottom: 13px;
    }

    This confuses my greatly, as my block title should be controlled by .box_top_mid and my text by .box_mid_mid .

    So where might I find the code to fix the right hand block text?

    Thanks!
    =)
    Jade
  • okiee dokiee that took me long enough.

    I found my solution to the font problem in my blocks. Since I rewrote the code for the blocks I dropped some of the original CSS tags and replaced with my own, PN was still looking for them in the actual menu code and wouldn't pick mine up. So it was inherently reading the stylesNN.css. Since that particular file is for NN4 (according to the header), I figured that it is pretty much obsolete and I disabled that particular file. It's nice to be backward compatible, but NN4 is a difficult monster to manage on the best of days. And considering that platform went down the byways a good 5 years ago I could safely make that file go *poof* for my own interests.

    So menus/blocks are happy.

    I still haven't dug into the code for the center announcement block. I've done a few more searches and haven't come up with anything. I'm going to assume that this is a hard code issue, and procede from there.

    =)
    Jade
  • Just to let you know, I found a wiley padding 3px; in the CSS for message-center. Ofcourse I couldn't see that last time. *g* I also took out the OpenTable and CloseTable in the theme.php around that particular element. It's not exactly what I wanted to do, but it works well enough.

    It's a Good Thing to come back after a couple days to give it a go with clear eyes.

    Cheers! til next time,
    =)
    Jade
  • 0 users

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