Nukemods Forum  
» Log in
User Name:

Password:

Not a member yet?
Register Now!
» Online Users: 50
1 members and 49 guests
goe9dkfq42here
Most users ever online was 611, 03-21-2008 at 10:10 PM.
» .::.
» .:.

Go Back   Nukemods Forum > General > Open topics

Reply
 
LinkBack Thread Tools Display Modes
Customizing content table
Old
  (#1 (permalink))
Junior Member
 
Status: Offline
Posts: 31
Join Date: May 2003
Customizing content table - 07-11-2003, 06:28 PM

Hi all, Im customizing my theme and I cant seem to get my content tables customized. Lemme try to explain what Im doing, I want the content table to consist of 3 row (top row- with a image background, middle row solid color and bottom row a background image) Ive done this with no problem for my blocks, story home and story page tables but am having real probs with the content tables Any help would be greatly appreciated. Thanks
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#2 (permalink))
Junior Member
 
Status: Offline
Posts: 31
Join Date: May 2003
07-12-2003, 05:48 PM

bumping up in hopes of a reply
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#3 (permalink))
Moderator
 
Status: Offline
Posts: 957
Join Date: Nov 2002
Location: Belgium
07-13-2003, 04:14 AM

edit the tables.php in your theme folder. It seems you know some html so you wll understand the coding there


Yannick R. aka Mighty_Y
http://support.code-area51.com
http://www.code-area51.com

Search before asking makes my life easier!
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#4 (permalink))
Junior Member
 
Status: Offline
Posts: 31
Join Date: May 2003
07-17-2003, 10:14 PM

yea I understand html but dont understand tables.php it has like 7 tables in there and I cant tell when table contains the content etc. I just need to convert that to a 3 row table can someone make a dummie file with the html code for a 3 row table and Ill customize it from there?
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#5 (permalink))
Junior Member
 
Status: Offline
Posts: 31
Join Date: May 2003
07-19-2003, 11:17 PM

:cry:
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#6 (permalink))
Moderator
 
Status: Offline
Posts: 957
Join Date: Nov 2002
Location: Belgium
07-20-2003, 03:17 AM

let me explain, but modifications are for you I don't have time for that
Code:
function OpenTable() {
    global $bgcolor1, $bgcolor2;
    echo "<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"7\">";
  echo "<tr>";
    echo"<td><table width=\"100%\" border=\"0\" cellpadding=\"2\" cellspacing=\"0\" bgcolor=\"363636\">
        <tr>
          <td><table width=\"100%\" border=\"0\" cellpadding=\"1\" cellspacing=\"0\" bgcolor=\"000000\">
              <tr>
                <td><table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">
                    <tr>
                      <td bgcolor=\"#000000\"><table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"4\">
                          <tr>
                            <td>";
}
after this code you get the content and after the content all the tables get closed by this
Code:
function CloseTable() {
    echo "</td>
                          </tr>
                        </table></td>
                    </tr> 
                  </table></td>
              </tr>
            </table></td>
        </tr>
      </table></td>
  </tr>
</table>";
}
So if you want to mod the table you'll have to adjust these two functions, they are html so it shouldn't be to difficult to adjust it


Yannick R. aka Mighty_Y
http://support.code-area51.com
http://www.code-area51.com

Search before asking makes my life easier!
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#7 (permalink))
Junior Member
 
Status: Offline
Posts: 31
Join Date: May 2003
07-20-2003, 10:47 PM

I tried a million times and just cant get it. heres the html of the content table I want if someone could cut and paste into a working tables.php I would be greatly appreciated.
Code:
<table border="0" cellpadding="0" cellspacing="0" width="100%">
  <tr>
    <td background="http://www.mysite.com/top.gif" height="37"></td>
  </tr>
  <tr>
    <td bgcolor="#B7B7B7">CONTENT TO GO HERE</td>
  </tr>
  <tr>
    <td background="http://www.mysite.com/bottom.gif" height="43"></td>
  </tr>
</table>
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#8 (permalink))
Junior Member
 
Status: Offline
Posts: 81
Join Date: Apr 2003
07-21-2003, 12:57 AM

tested and working

Code:
function OpenTable() {
    global $bgcolor1, $bgcolor2;
?>
<table border="0" cellpadding="0" cellspacing="0" width="100%"> 
  <tr> 
    <td background="http://www.mysite.com/top.gif" height="37"></td> 
  </tr> 
  <tr> 
    <td bgcolor="#B7B7B7">
<?
}
Code:
function CloseTable() {
?>
    </td> 
  </tr> 
  <tr> 
    <td background="http://www.mysite.com/bottom.gif" height="43"></td> 
  </tr> 
</table>
<?
}


Think all nukes look the same?
=) Think again. www.mtechnik.net
Public / commercial themes
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#9 (permalink))
Junior Member
 
Status: Offline
Posts: 31
Join Date: May 2003
07-21-2003, 01:54 AM

thanks Mtechnik
one last q though, sorry to bug but theres no border between the content table and modules (view screenshot) how can I get one there? thanks tons!

   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#10 (permalink))
Junior Member
 
Status: Offline
Posts: 81
Join Date: Apr 2003
07-21-2003, 02:08 AM

in your style.css you can always add a td class, example

Code:
TD.contentbox {
	border: 1px solid; 
border-color:#FFFFFF #949494 #949494 #FFFFFF; 
}
then in your opentable you would just add the class like

Code:
function OpenTable() { 
    global $bgcolor1, $bgcolor2; 
?> 
<table border="0" cellpadding="0" cellspacing="0" width="100%"> 
  <tr> 
    <td background="http://www.mysite.com/top.gif" height="37"></td> 
  </tr> 
  <tr> 
    <td  class="contenbox" bgcolor="#B7B7B7"> 
<? 
}


Think all nukes look the same?
=) Think again. www.mtechnik.net
Public / commercial themes
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with adding content via Content Manager Cypher_489 Nuke 7.x - General 1 10-04-2005 11:39 AM
customizing the news module homotron Nuke 7.x - Modules 2 11-14-2004 11:12 AM
Customizing new user Registration XtraX Site design 1 05-02-2003 12:28 AM
HOw to: Link one content page to another content page? IACOJ Purged Topics 5 02-12-2003 02:58 PM
How to add a table? zlaxzzor Purged Topics 3 11-21-2002 07:59 PM




vBulletin Skin developed by: vBStyles.com


LinkBacks Enabled by vBSEO 3.3.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31