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'] .
' ' . _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'] . ' ';
// 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&op=EditStory&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&op=RemoveStory&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>';
}
?>
{
$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'] .
' ' . _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'] . ' ';
// 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&op=EditStory&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&op=RemoveStory&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;
}
{
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;
}
{
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
