| Author |
Message |
GUNZ
Sergeant


Joined: Sep 22, 2003
Posts: 106
Location: Ft. Rucker, Alabama
|
Posted:
Fri Sep 26, 2003 4:36 pm |
  |
My theme inserts a background image into all my blocks which is exactly what it's suppose to do. Very happy with it except for my clock block is hard to see. I am trying to figure out how to disable the img in just this one block.
I have read the numerous post on inserting an img or background color into just one block but couldn't find an answer to this.
Anyone have any ideas? |
_________________
Don't run...you'll only die tired. |
|
    |
 |
chatserv
General


Joined: Jan 12, 2003
Posts: 3128
Location: Puerto Rico
|
Posted:
Fri Sep 26, 2003 4:45 pm |
  |
Can you post the function themesidebox from theme.php and the blocks.html file (if one exists)? |
_________________ Feed a man a fish and you feed him for a day. Teach a man to fish and you feed him for a lifetime.
ScriptHeaven | NukeResources |
|
    |
 |
GUNZ
Sergeant


Joined: Sep 22, 2003
Posts: 106
Location: Ft. Rucker, Alabama
|
Posted:
Fri Sep 26, 2003 5:04 pm |
  |
Here is the themesidebox...
| Code: |
function themesidebox($title, $content) {
$tmpl_file = "themes/Labs/blocks.html";
$thefile = implode("", file($tmpl_file));
$thefile = addslashes($thefile);
$thefile = "\$r_file=\"".$thefile."\";";
eval($thefile);
print $r_file;
}
|
And here is the block.html...
| Code: |
<table width="10" border="0" cellspacing="0" cellpadding="0" height="10">
<tr>
<td><img src="themes/Labs/images/spacer.gif" width="7" height="7"></td>
<td background="themes/Labs/images/top_01.gif"><img src="themes/Labs/images/spacer.gif" width="10" height="10"></td>
<td><img src="themes/Labs/images/spacer.gif" width="7" height="7"></td>
</tr>
<tr>
<td background="themes/Labs/images/top_03.gif"><img src="themes/Labs/images/spacer.gif" width="10" height="10"></td>
<td>
<table cellspacing=0 cellpadding=0 width=181 border=0>
<tbody>
<tr>
<td class=tabled>
<table background=themes/Labs/images/block_02.gif cellspacing=0 cellpadding=0 width=181 border=0>
<tbody>
<tr>
<td height=24 colspan="3" align=center background="themes/Labs/images/block_01.gif"><font size="1" color="#000000" face="Verdana"><b> <font size="1" color="#000000"><b>$title</b></font>
</b></font>
<table width="100%" height=2 border="0" cellspacing="0" cellpadding="2">
<tr>
<td></td>
</tr>
</table>
</td>
</tr>
<tr>
<td height=5 valign=top colspan="3"></td>
</tr>
<tr>
<td width=7 valign=top></td>
<td valign=top width=160><span class="content">$content </span></td>
<td width=7 valign=top></td>
</tr>
<tr>
<td height=5 valign=top colspan="3"></td>
</tr>
<tr>
<td height=24 align=center colspan="3"><img src="themes/Labs/images/block_03.gif" width="181" height="24"></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</td>
<td background="themes/Labs/images/top_04.gif"><img src="themes/Labs/images/spacer.gif" width="10" height="10"></td>
</tr>
<tr>
<td><img src="themes/Labs/images/spacer.gif" width="7" height="7"></td>
<td background="themes/Labs/images/top_02.gif"><img src="themes/Labs/images/spacer.gif" width="10" height="10"></td>
<td><img src="themes/Labs/images/spacer.gif" width="7" height="7"></td>
</tr>
</table>
<br>
|
|
_________________
Don't run...you'll only die tired. |
|
    |
 |
chatserv
General


Joined: Jan 12, 2003
Posts: 3128
Location: Puerto Rico
|
Posted:
Fri Sep 26, 2003 5:32 pm |
  |
I have no real way of testing this since i don't have the theme you use nor the block so we'll have to go by trial & error, save a copy of your theme.php then in one copy change the function themesidebox to:
| Code: |
function themesidebox($title, $content) {
echo "<table width=\"10\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" height=\"10\"> "
. "<tr> "
. "<td><img src=\"themes/Labs/images/spacer.gif\" width=\"7\" height=\"7\"></td> "
. "<td background=\"themes/Labs/images/top_01.gif\"><img src=\"themes/Labs/images/spacer.gif\" width=\"10\" height=\"10\"></td> "
. "<td><img src=\"themes/Labs/images/spacer.gif\" width=\"7\" height=\"7\"></td> "
. "</tr> "
. "<tr> "
. "<td background=\"themes/Labs/images/top_03.gif\"><img src=\"themes/Labs/images/spacer.gif\" width=\"10\" height=\"10\"></td> "
. "<td> "
. "<table cellspacing=0 cellpadding=0 width=181 border=0> "
. "<tbody> "
. "<tr> "
. "<td class=tabled>";
If ($title == "Clock / Calendar")
{
echo "<table color=\"#000000\" cellspacing=0 cellpadding=0 width=181 border=0>";
}
else {
echo "<table background=themes/Labs/images/block_02.gif cellspacing=0 cellpadding=0 width=181 border=0>";
}
echo "<tbody> "
. "<tr> "
. "<td height=24 colspan=\"3\" align=center background=\"themes/Labs/images/block_01.gif\"><font size=\"1\" color=\"#000000\" face=\"Verdana\"><b> <font size=\"1\" color=\"#000000\"><b>$title</b></font> </b></font> "
. "<table width=\"100%\" height=2 border=\"0\" cellspacing=\"0\" cellpadding=\"2\"> "
. "<tr> "
. "<td></td> "
. "</tr> "
. "</table> "
. "</td> "
. "</tr> "
. "<tr> "
. "<td height=5 valign=top colspan=\"3\"></td> "
. "</tr> "
. "<tr> "
. "<td width=7 valign=top></td> "
. "<td valign=top width=160><span class=\"content\">$content </span></td> "
. "<td width=7 valign=top></td> "
. "</tr> "
. "<tr> "
. "<td height=5 valign=top colspan=\"3\"></td> "
. "</tr> "
. "<tr> "
. "<td height=24 align=center colspan=\"3\"><img src=\"themes/Labs/images/block_03.gif\" width=\"181\" height=\"24\"></td> "
. "</tr> "
. "</tbody> "
. "</table> "
. "</td> "
. "</tr> "
. "</tbody> "
. "</table> "
. "</td> "
. "<td background=\"themes/Labs/images/top_04.gif\"><img src=\"themes/Labs/images/spacer.gif\" width=\"10\" height=\"10\"></td> "
. "</tr> "
. "<tr> "
. "<td><img src=\"themes/Labs/images/spacer.gif\" width=\"7\" height=\"7\"></td> "
. "<td background=\"themes/Labs/images/top_02.gif\"><img src=\"themes/Labs/images/spacer.gif\" width=\"10\" height=\"10\"></td> "
. "<td><img src=\"themes/Labs/images/spacer.gif\" width=\"7\" height=\"7\"></td> "
. "</tr> "
. "</table> "
. "<br> ";
} |
If it fails we might need to duplicate the entire code which is what i'm trying to avoid with what i did. |
_________________ Feed a man a fish and you feed him for a day. Teach a man to fish and you feed him for a lifetime.
ScriptHeaven | NukeResources |
|
    |
 |
GUNZ
Sergeant


Joined: Sep 22, 2003
Posts: 106
Location: Ft. Rucker, Alabama
|
Posted:
Fri Sep 26, 2003 5:39 pm |
  |
Trying now... |
_________________
Don't run...you'll only die tired. |
|
    |
 |
GUNZ
Sergeant


Joined: Sep 22, 2003
Posts: 106
Location: Ft. Rucker, Alabama
|
Posted:
Fri Sep 26, 2003 5:51 pm |
  |
You my man are brilliant! Thanks...it looks great! You can see the clock lower left at my site www.flygunz.us.
Hey, do you have a 33x81 banner for your site? I'd like to give you props not only for helping me but for all the time you put in here (2,700 post!) |
_________________
Don't run...you'll only die tired. |
|
    |
 |
GUNZ
Sergeant


Joined: Sep 22, 2003
Posts: 106
Location: Ft. Rucker, Alabama
|
Posted:
Fri Sep 26, 2003 5:57 pm |
  |
Nevermind....I found your banners. Consider it done.  |
|
|
    |
 |
chatserv
General


Joined: Jan 12, 2003
Posts: 3128
Location: Puerto Rico
|
Posted:
Fri Sep 26, 2003 6:09 pm |
  |
Actually if we were to count my posts at nukeforums, nukeresources, nukefixes, the late phpnuke.org forums and a few other sites my posts would be around 10,000 but who's counting? I think i need to get a life  |
_________________ Feed a man a fish and you feed him for a day. Teach a man to fish and you feed him for a lifetime.
ScriptHeaven | NukeResources |
|
    |
 |
GUNZ
Sergeant


Joined: Sep 22, 2003
Posts: 106
Location: Ft. Rucker, Alabama
|
Posted:
Sun Sep 28, 2003 10:54 am |
  |
Hey chatserv....what's a good place on the net to learn/manipulate this code? I have a similar block question but..."teach a man to fish..." |
_________________
Don't run...you'll only die tired. |
|
    |
 |
|
|