
Originally Posted by
Sparkly
A few advices, if you haven't done this yet;
http://foskett.ws/foskettcms/img/editaccount.png
On that image I see you're using the HTML <br> tag in order to produce a new line.
You should use the nl2br function. Usually while pressing enter on a form field that has data being sent to the database, that enter is saved as line break on the database, but when reading it's just straight text. Using the nl2br function you can identify those line breaks. So, when getting the data from the database , use it , it's very handy.
That function has been put into affect, but thank you for the good eye.
The picture you're looking at is from version 0.0.4.

Originally Posted by
Sparkly
An extra, if you wish your users to use some sort of text decoration (bold, italic, etc), you should start up with BBCode. I'm not very experienced on using it, but when I do, I simply set 2 arrays (one with the HTML code, the other with the BB version) and use the str_replace function. You can find other ways tho ;)
Thank-you, I was thinking of implementing something like that. Kind of how PHP a word censor script works. It takes the word, and replaces it with something else.
EDIT:
Okay, I coded a basic bbcode script with the help of a tutorial:
PHP Code:
<?php
function censor($string)
{
if ($string)
{
$bbcodearray = array("[b]", "[/b]");
$replacearray = array("<strong>", "</strong>");
$newstring = str_ireplace($bbcodearray, $replacearray, $string);
return $newstring;
}
}
if($_POST['submit'])
{
echo censor($_POST['text']);
}
?>
<form method='POST'>
<textarea name='text'></textarea><br />
<input type='submit' name='submit' value='Submit'>
</form>
I still have to work on it a bit, and then I'll implement it into the site.

Originally Posted by
s-p-n
I made 2 test accounts and can't seem to login to either of them..
I found out the problem, for some reasons the varchar in the database was set to max 10 chars. It's set to 30 now, and later I'll set all the fields to a max length.

Originally Posted by
s-p-n
Also, do you have an admin account we can use to test the demo?
Like username: admin, Password: demo
And for user-side testing, user: user, pass: demo?
At the moment, it wouldn't even be worth making an admin account, as I have barely coded anything for the Admin CP. But once it's somewhat worthy of showing, I'll make an admin account for everyone.