Sorry about this, I've been using internet exploerer 9 to code in.
Housekeeping...
![]()
Sorry about this, I've been using internet exploerer 9 to code in.
Housekeeping...
![]()
What's with all the images of lakes..
It's my desktop backgrounds... (2nd monitor)...
Just do alt-prtsc on the window that you want to take a screen shot of. Alt-prtsc will take a screen of only the active window.
I quite like the design of this layout, checked it out and it seems great. Minor css bug in Firefox 9 though =]
Probably going to add the PHP coding on any day now. ^^
Began improving the PHP coding from the last source (also improving small HTML mistakes from the last source too).
Sessions have been created, just that I need to create a logout to destory the session because closing my browser and re-opening it is becoming a pain, seriously LOL.
Learnt something new today (trololol).
IE is so special they have their own .CSS function for them to use by themselves, so that was a good use.Code:<!--[if IE]> <style type="text/css"> #navigation { margin:22px 16px 27px 16px; clear:both; float:left; } </style> <![endif]-->
Hm, what have I improved from PHP coding apart from HTML/CSS.
The CMS supports more than one MYSQL version, it offers 4 versions. These versions are... Mysql 3.23, 4.0, 4.1 5.0+
Profiles are done, lolol. Improved the source from the old version. -winx
Content would be where the adverts/Top site links would go.
Nice snippets. Hopefully you start on the backend scripting soon. Good luck.
This looks good. THe design is habbo-like, but also is different.
Errors page (logged out and logged in).
If anyone could help me on how to do the maintenance page, that would be great. ^^
Maintenance can be done through the following:
1. Having an option in config, and parsing that
2. Having an enum/bool in your sql (`site_maintenance`) and parsing that
2 quickfire ways you could have maintenance. If the sql result returns true/1/w.e, you set up a redirect of some sort to the maintenance page.
I've also been thinking about making it simple, lol.
Add header(); die; into config.php to redirect to the maintenance page, or.
Use .htaccess to redirect it to the maintenance page via Apache #RewriteRule.
Learnt how to show alternating rows a better way from my previous version.
Oh and here's my function to show the articles.PHP Code:<?php
$result = listArticles(5);
$countRow = 0;
while($row = $db->sql_fetchrow($result))
{
$selectRow = ($countRow %2 == 0) ? 'list1' : 'list2';
?>
<li class="<?php echo $selectRow; ?>">
<a href="<?php echo ROOT; ?>/articles/<?php echo $row['ID']; ?>"><?php echo $row['Title']; ?> »</a>
</li>
<?php
$countRow++;
}
?>
PHP Code:function listArticles($number)
{
global $db;
return ($db->sql_query("SELECT ID,Title FROM articles ORDER BY ID DESC LIMIT $number"));
}