Jump to content

Another Skin Question


piper338

Recommended Posts

well, I kind of solved my problem.... not the way I would have liked.  I have to copy each tpl file into my skin and then put this around the tpl code

is there another way to do this?

  <div id="page">

    <!-- #columns: holds the columns of the page -->

    <div id="columns" class="widthPad">

      <!-- Left column -->

      <div class="floatLeft width73">   

**** .tpl stuff here****

<div id="sidebar">

</div>

      </div>

      <!-- Left column end -->

      <!-- Right link column -->

<?php

if($_GET['module'] == 'frontpage')

{

?>

      <div class="floatRight width25 lightBlueBg horzPad">

<h3>Recent Reports</h3>

<?php MainController::Run('PIREPS', 'RecentFrontPage', 5); ?>

<h3>Newest Pilots</h3>

<?php MainController::Run('Pilots', 'RecentFrontPage', 5); ?>

       

      </div>

<?php

}

?>

      <!-- Right links column end -->

    </div>

    <!-- #columns end -->

  </div>

  <!-- #page end -->

  <div style="clear:both;"></div>

</div>

<!-- #content end -->

Link to comment
Share on other sites

Here is some replacement code for your $_GET module statement.... just run this with the appropriate module name replaced in all caps to insure it runs. Run else statements to make default views just in case you don't want to do a module by module sidebar view.


<!--Check what module the system is currently on and then display the data that corresponds with that module!-->


                
<!--Check to see if we are on the frontpage( Modules/Frontpage )!-->
       
<?php $module = Config::Get('RUN_MODULE'); ?>
<?php if($module == 'FRONTPAGE') { ?>

<!--Run your conditional data here!-->

<?php } ?>

Link to comment
Share on other sites

Thanks for that, but any idea on how I could have the pages format correctly without have to make a copy of every single .tpl and put it in the skin folder and surround the .tpl code with those divs?

Right now if I don't edit every .tpl the content sits on top of the footer and some of it is outside the content area.

*here is an example of what happens if I don't edit each individual .tpl

http://projectchad.com/index.php/Schedules

Link to comment
Share on other sites

That my friend is a CSS issue in its purest form. Read up on classing and page divisions....it looks like your using a free css template...so I advise you read and interpret the code in order to gain a better knowledge on how everything functions.

I personally use a ContentWrapper...

header.tpl


<div id="ContentWrapper">
<!--This is where your system generated content will go ( Schedules etc.)!-->

footer.tpl

</div>
<!--That ends your content wrapper division!-->

stylesheet


#ContentWrapper{ width:WIDTH OF YOUR SITE; height HEIGHT OF YOUR SITE; margin-left:auto; margin-right:auto;}

Those margins center the content region...

*If you want a custom skin contact me and I can create one for you

Link to comment
Share on other sites

  • Administrators

Don't copy it into every .tpl file, just include it into your header/footer.tpl

So in header.tpl add

  <div id="page">
    <!-- #columns: holds the columns of the page -->
    <div id="columns" class="widthPad">
      <!-- Left column -->
      <div class="floatLeft width73">  

Then in footer, add the corresponding 'end' peices you need.

I do it as Jake does it, I've starting using 960.gs for all that

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