Page 1 of 1

Personal Log improvement

Posted: Sat May 26, 2007 2:09 am
by Richâ„¢
Possibly already been suggested, but i couldn't find it from a few searchs of this sub-forum

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

Posted: Thu May 31, 2007 9:02 pm
by ComputerGamerGeek
I agree with your suggestions.
The coding issues do make using the personal log more difficult.