Personal Log Improvements
Firstly, when you use the return character (new line) and submit, it converts it into HTML new line (<br />), when you then edit this, the <br /> stays and doesn't go back to a new line feed, which makes editing personal log 'cleaner' since you dont need to see these, since they will be re added after you save / update it
Code: Select all
str_replace("\n", "<br />", $_POST["log"]); //on submitting
str_replace("<br />", "\n", $row["datbase_fieldname"]); // when editing (for the form)should suffice.
............
Auto linking, if you enter a link in personal log, it can auto link, much like on these forums or in m/s word etc..
e.g atm if i entered 'http://www.stargatewars.com/stats.php?id=1908612' and saved, it would just show the link, but not be wrapped in an anchor tag (<a>)
Can supply code if needed for this too.
These dont affect gameplay, just make personal log a bit better and easier IMO
