You are missing our premiere tool bar navigation system! Register and use it for FREE!

NukeCops  
•  Home •  Downloads •  Gallery •  Your Account •  Forums • 
Readme First
- Readme First! -

Read and follow the rules, otherwise your posts will be closed
Modules
· Home
· FAQ
· Buy a Theme
· Advertising
· AvantGo
· Bookmarks
· Columbia
· Community
· Donations
· Downloads
· Feedback
· Forums
· PHP-Nuke HOWTO
· Private Messages
· Search
· Statistics
· Stories Archive
· Submit News
· Surveys
· Theme Gallery
· Top
· Topics
· Your Account
Who's Online
There are currently, 42 guest(s) and 2 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - Exclude theme background img from 1 block only? [ ]
 Forum FAQ  •  Search  •   •  Memberlist  •  Usergroups   •  Register  •  Profile •    •  Log in to check your private messages  •  Log in

 
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
Author Message
GUNZ
Sergeant
Sergeant


Joined: Sep 22, 2003
Posts: 106

Location: Ft. Rucker, Alabama

PostPosted: Fri Sep 26, 2003 4:36 pm Reply with quoteBack to top

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?

_________________
Image
Don't run...you'll only die tired.
Find all posts by GUNZView user's profileSend private messageVisit poster's website
chatserv
General
General


Joined: Jan 12, 2003
Posts: 3128

Location: Puerto Rico

PostPosted: Fri Sep 26, 2003 4:45 pm Reply with quoteBack to top

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
Find all posts by chatservView user's profileSend private messageVisit poster's website
GUNZ
Sergeant
Sergeant


Joined: Sep 22, 2003
Posts: 106

Location: Ft. Rucker, Alabama

PostPosted: Fri Sep 26, 2003 5:04 pm Reply with quoteBack to top

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>&nbsp;<font size="1" color="#000000"><b>$title</b></font>&nbsp;
                  </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>

_________________
Image
Don't run...you'll only die tired.
Find all posts by GUNZView user's profileSend private messageVisit poster's website
chatserv
General
General


Joined: Jan 12, 2003
Posts: 3128

Location: Puerto Rico

PostPosted: Fri Sep 26, 2003 5:32 pm Reply with quoteBack to top

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>&nbsp;<font size=\"1\" color=\"#000000\"><b>$title</b></font>&nbsp;</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
Find all posts by chatservView user's profileSend private messageVisit poster's website
GUNZ
Sergeant
Sergeant


Joined: Sep 22, 2003
Posts: 106

Location: Ft. Rucker, Alabama

PostPosted: Fri Sep 26, 2003 5:39 pm Reply with quoteBack to top

Trying now...

_________________
Image
Don't run...you'll only die tired.
Find all posts by GUNZView user's profileSend private messageVisit poster's website
GUNZ
Sergeant
Sergeant


Joined: Sep 22, 2003
Posts: 106

Location: Ft. Rucker, Alabama

PostPosted: Fri Sep 26, 2003 5:51 pm Reply with quoteBack to top

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!)

_________________
Image
Don't run...you'll only die tired.
Find all posts by GUNZView user's profileSend private messageVisit poster's website
GUNZ
Sergeant
Sergeant


Joined: Sep 22, 2003
Posts: 106

Location: Ft. Rucker, Alabama

PostPosted: Fri Sep 26, 2003 5:57 pm Reply with quoteBack to top

Nevermind....I found your banners. Consider it done. Cool
Find all posts by GUNZView user's profileSend private messageVisit poster's website
chatserv
General
General


Joined: Jan 12, 2003
Posts: 3128

Location: Puerto Rico

PostPosted: Fri Sep 26, 2003 6:09 pm Reply with quoteBack to top

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 Razz

_________________
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
Find all posts by chatservView user's profileSend private messageVisit poster's website
GUNZ
Sergeant
Sergeant


Joined: Sep 22, 2003
Posts: 106

Location: Ft. Rucker, Alabama

PostPosted: Sun Sep 28, 2003 10:54 am Reply with quoteBack to top

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..."

_________________
Image
Don't run...you'll only die tired.
Find all posts by GUNZView user's profileSend private messageVisit poster's website
Display posts from previous:      
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



Powered by phpBB © 2001, 2005 phpBB Group

Ported by Nuke Cops © 2003 www.nukecops.com
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::
Powered by · TOGETHER TEAM srl ITALY http://www.togetherteam.it · DONDELEO E-COMMERCE http://www.DonDeLeo.com
Web site engine's code is Copyright © 2002 by PHP-Nuke. All Rights Reserved. PHP-Nuke is Free Software released under the GNU/GPL license.
Page Generation: 0.226 Seconds - 314 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::