Jump to content

Skinning


PhatZilla

Recommended Posts

I may just be dense, but I can't for the life of me figure out how to change my site's appearance effectively. I have managed changing the images and colors and such, but as far as the actual layout and placement of things, all I have managed to do is move crap around in a non productive fashion. I made a file called test.php. In it I have <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<title><?php echo $title ?></title>

<?php

  Template::Show('core_htmlhead.tpl');

?>

</head>

<body>

<p>

  <?php

  Template::Show('core_htmlreq.tpl');

?>

</p>

<p>  </p>

      <div id="mycontent">

      <table width="993" border="1">

  <tr>

    <td width="868" height="57" align="left">

<?php

Template::Show('frontpage_main.tpl');

?>

</td>

    <td width="109" align="left"><p><strong>Newest Pilots</strong></p>

      <p>

        <?php

Template::Show('frontpage_recentpilots.tpl');

?>

      </p></td>

  </tr>

  <tr>

    <td height="46"> </td>

    <td align="left"><p><strong>Newest Pireps</strong></p>

      <p>

            <?php

Template::Show('frontpage_reports.tpl');

?>

</p></td>

  </tr>

  <tr>

    <td height="59"> </td>

    <td> </td>

  </tr>

</table>

</div>

</body>

</html>

I tried it w/o the htmlreq and html head tpl's as they are in header.tpl. I'm so confused, I just want it to look like it does in Dreamweaver and I have not coded in PHP in a very long time, and this would be over my head anyhow. Do I have to copy every .tpl file i reference into my skin folder? How does it know what HTML file is my template file? I'm so lost and I've read the tutorial like ten times and lost my patients. I called the div mycontent in the head and it still hates me. any ideas?

Link to comment
Share on other sites

Ok I didn't realize I needed to copy all of the tpl's to the skin dir. I did this and am editing the frontpage_main.tpl, it now looks like:

      <div id="mycontent">

       <table width="993" border="1">

  <tr>

    <td width="868" height="57" align="left">

    <?php

// Show the News module, call the function ShowNewsFront

// This is in the modules/Frontpage folder

News::ShowNewsFront(5);

?>

    </td>

    <td width="109" align="left"><p><strong>Newest Pilots</strong></p>

      <p>

        <?php

Template::Show('frontpage_recentpilots.tpl');

?>

      </p></td>

  </tr>

  <tr>

    <td height="46"> </td>

    <td align="left"><p><strong>Newest Pireps</strong></p>

      <p>

             <?php

Template::Show('frontpage_reports.tpl');

?>

</p></td>

  </tr>

  <tr>

    <td height="59"> </td>

    <td> </td>

  </tr>

</table>

</div>

But the recent pilots didnt populate...

**EDIT**

Still making progress, but some things still wont populate. www.westairregional.org/phpvms

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...