01-01-2009, 06:22 PM
Hello, can you tell me how to create a news page. Basically I dont want the news displayed on the right column, I just want it on it's own page.
<?php
$news_page = 1;
require('includes/config.php');
require_once('includes/classes/template.php');
require_once('includes/functions.php');
require_once('includes/global.php');
require_once('includes/classes/tutorial.php');
echo template(CURRENT_STYLE_ID, 'header');
echo template(CURRENT_STYLE_ID, 'column_left_start');
echo bit_template(CURRENT_STYLE_ID, 'main_navbits');
echo template(CURRENT_STYLE_ID, 'column_left_end');
echo template(CURRENT_STYLE_ID, 'column_middle_start');
echo template(CURRENT_STYLE_ID, 'announcements_break');
echo bit_template(CURRENT_STYLE_ID, 'announcements_bit');
echo template(CURRENT_STYLE_ID, 'column_middle_end');
echo template(CURRENT_STYLE_ID, 'column_right_start');
echo template(CURRENT_STYLE_ID, 'site_statistics');
echo template(CURRENT_STYLE_ID, 'affiliates_break');
echo bit_template(CURRENT_STYLE_ID, 'affiliates_bit');
echo template(CURRENT_STYLE_ID, 'column_right_end');
echo template(CURRENT_STYLE_ID, 'footer');
?>echo template(CURRENT_STYLE_ID, 'announcements_break');
echo bit_template(CURRENT_STYLE_ID, 'announcements_bit');}elseif (isset($news_page)) {
$glob['title'] = COMPANY_NAME.' - News Feed';echo template(CURRENT_STYLE_ID, 'announcements_break');
echo bit_template(CURRENT_STYLE_ID, 'announcements_bit');<div id="columnmain">
</div>
<br />
<div>
<img src="http://www.newtuts.com/images/latestnews.jpg" alt="Announcements" style="margin-right:10px;" />
</div>
<div class="gencontainer"> <div class="rightrow1" style="white-space: normal;">
<strong><a href="http://www.newtuts.com">Switch</a></strong><br /><br />
<div style="padding-left: 5px;padding-right: 5px;" class="normaltext">
Hello, just wanted to let everyone know that we have completed switching hosts! If you find any bugs or missing pages, please report them to us. Thanks!
</div>
</div> <div class="rightrow2" style="white-space: normal;">
<strong><a href="http://www.newtuts.com">Problem Solved</a></strong><br /><br />
<div style="padding-left: 5px;padding-right: 5px;" class="normaltext">
Hello, I just wanted to let you know that we have solved the tutorial title problem! <b>So, if you experience any malfunctions at this site we ask that you please report them to us via the contact page.</b><br />
<br />
For those of you wondering, here is our current development plan for the next couple of weeks. Keep in mind we will probably not be able to stick to this schedule!<br />
1. Get footer links setup and working.<br />
2. Get our tutorial count to 100. (First major goal!)<br />
3. Find and approve affiliates. (If you want to become an affiliate, please apply!)<br />
4. Setup and integrate a forum system! (Another of our major goals)<br />
5. By this step we would like to have 200 tutorials indexed.<br />
6. Integrate ads :( (I know, I know, nobody likes ads, but at the rate of donations we are getting, ads might become a possibility)<br />
<br />
Well, thats about all we have planned for the next few weeks. I cannot gurantee that much will get done due to my hectic school schedule. But Thanksgiving is coming up soon, so hopefully I will be able to get a lot of work done then.<br />
<br />
Thanks for your cooperation and support!
</div>
</div> <div class="rightrow1" style="white-space: normal;border-bottom: 0;">
<strong><a href="http://www.newtuts.com">Great Progress!</a></strong><br /><br />
<div style="padding-left: 5px;padding-right: 5px;" class="normaltext">
I know it may seem like the site is dead, but we have been working on many backend features for our administrators! In addition to this, we also have been busy approving new tutorials! <br />
<br />
Please, do not report to us that the tutorial titles are missing, this is a coding error on our part, and we are working on the problem. Until then, be sure to check back often, and <b>SUBMIT MORE TUTORIALS</b>.<br />
<br />
Thanks!
</div>
</div> </div><div id="columnmain">
</div><div id="columnmain">
<br />
<div>
<img src="http://www.newtuts.com/images/latestnews.jpg" alt="Announcements" style="margin-right:10px;" />
</div>
<div class="gencontainer"> <div class="rightrow1" style="white-space: normal;">
<strong><a href="http://www.newtuts.com">Switch</a></strong><br /><br />
<div style="padding-left: 5px;padding-right: 5px;" class="normaltext">
Hello, just wanted to let everyone know that we have completed switching hosts! If you find any bugs or missing pages, please report them to us. Thanks!
</div>
</div> <div class="rightrow2" style="white-space: normal;">
<strong><a href="http://www.newtuts.com">Problem Solved</a></strong><br /><br />
<div style="padding-left: 5px;padding-right: 5px;" class="normaltext">
Hello, I just wanted to let you know that we have solved the tutorial title problem! <b>So, if you experience any malfunctions at this site we ask that you please report them to us via the contact page.</b><br />
<br />
For those of you wondering, here is our current development plan for the next couple of weeks. Keep in mind we will probably not be able to stick to this schedule!<br />
1. Get footer links setup and working.<br />
2. Get our tutorial count to 100. (First major goal!)<br />
3. Find and approve affiliates. (If you want to become an affiliate, please apply!)<br />
4. Setup and integrate a forum system! (Another of our major goals)<br />
5. By this step we would like to have 200 tutorials indexed.<br />
6. Integrate ads :( (I know, I know, nobody likes ads, but at the rate of donations we are getting, ads might become a possibility)<br />
<br />
Well, thats about all we have planned for the next few weeks. I cannot gurantee that much will get done due to my hectic school schedule. But Thanksgiving is coming up soon, so hopefully I will be able to get a lot of work done then.<br />
<br />
Thanks for your cooperation and support!
</div>
</div> <div class="rightrow1" style="white-space: normal;border-bottom: 0;">
<strong><a href="http://www.newtuts.com">Great Progress!</a></strong><br /><br />
<div style="padding-left: 5px;padding-right: 5px;" class="normaltext">
I know it may seem like the site is dead, but we have been working on many backend features for our administrators! In addition to this, we also have been busy approving new tutorials! <br />
<br />
Please, do not report to us that the tutorial titles are missing, this is a coding error on our part, and we are working on the problem. Until then, be sure to check back often, and <b>SUBMIT MORE TUTORIALS</b>.<br />
<br />
Thanks!
</div>
</div> </div>
</div>echo template(CURRENT_STYLE_ID, 'column_middle_start');
echo template(CURRENT_STYLE_ID, 'announcements_break');
echo bit_template(CURRENT_STYLE_ID, 'announcements_bit');
echo template(CURRENT_STYLE_ID, 'column_middle_end');