piper338 Posted July 25, 2009 Report Posted July 25, 2009 Howdy, I'm just messing around with phpVMS now and I love it, could someone help me figure out with all the content is aligned at the bottom of my page? Does it have something to do with the mainbox? I'm going to keep playing with it myself but I am new to this stuff. http://projectchad.com Thanks, Chad C. Quote
piper338 Posted July 25, 2009 Author Report Posted July 25, 2009 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 --> Quote
Leiserson Posted July 25, 2009 Report Posted July 25, 2009 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 } ?> Quote
piper338 Posted July 26, 2009 Author Report Posted July 26, 2009 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 Quote
Leiserson Posted July 26, 2009 Report Posted July 26, 2009 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 Quote
Administrators Nabeel Posted July 30, 2009 Administrators Report Posted July 30, 2009 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 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.