Hallo cpers.
Ik ben weer terug, weet niet of iemand dat is opgemerkt. dat maakt ook niet uit :sst:
Ik begin weer aan mijn maffia game te werken, zo als gewoonlijk bouw ik hem op vanaf 0.
Ik ben nu bezig met de profiel pagina edit te maken.
Hier alvast een voorbeeld.
PHP
<?php
/*
* Copyright Crimini Web game
* Game version 1.0
* Filename: changeprofile.php
*/
include($_SERVER['DOCUMENT_ROOT']. "/includes/config.inc");
include($_SERVER['DOCUMENT_ROOT']. "/includes/functions/ubb.inc");
// include($_SERVER['DOCUMENT_ROOT']. "/includes/functions/login.inc");
// login();
// logincheck, not done yet
// do not watch the html, its a little bit messy
echo "<html>
<head>
<script language=\"JavaScript\" type=\"text/javascript\">
function setemoticon(which)
{
document.form1.message.value = document.message.bericht.value + which;
}
</script>
</head>
<body>";
if($_SERVER['REQUEST_METHOD'] == "POST")
{
echo "Profiel pagina geupdate";
mysql_query("UPDATE members SET profile='" .addslashes($_POST['message']). "' WHERE username='" .$data['username']. "'");
header("Refresh: 5; url=changeprofile.php");
}
else
{
echo "<form method=\"post\">
Verander hier je profiel informatie.
<br>
<br>
<a href=\"javascript:setemoticon(\":D\")\" onfocus=\"filter:blur()\">" .$_SERVER['DOCUMENT_ROOT']. "<img src=\"/static/layout/images/emoticons/icon_biggrin.gif\" alt=\":D\"></a>
<br>
<a href=\"javascript:setemoticon(\":S\")\" onfocus=\"filter:blur()\">" .$_SERVER['DOCUMENT_ROOT']. "<img src=\"/static/layout/images/emoticons/icon_confused.gif\" alt=\":S\"></a>
<br>
<a href=\"javascript:setemoticon(\":P\")\" onfocus=\"filter:blur()\">" .$_SERVER['DOCUMENT_ROOT']. "<img src=\"/static/layout/images/emoticons/icon_razz.gif\" alt=\":P\"></a>
<br>
<a href=\"javascript:setemoticon(\":O\")\" onfocus=\"filter:blur()\">" .$_SERVER['DOCUMENT_ROOT']. "<img src=\"/static/layout/images/emoticons/icon_surprised.gif\" alt=\":O\"></a>
<br>
<a href=\"javascript:setemoticon(\"(H)\")\" onfocus=\"filter:blur()\">" .$_SERVER['DOCUMENT_ROOT']. "<img src=\"/static/layout/images/emoticons/icon_cool.gif\" alt=\"(H)\"></a>
<br>
<a href=\"javascript:setemoticon(\"(6)\")\" onfocus=\"filter:blur()\">" .$_SERVER['DOCUMENT_ROOT']. "<img src=\"/static/layout/images/emoticons/icon_twisted.gif\" alt=\"(6)\"></a>
<br>
<a href=\"javascript:setemoticon(\":)\")\" onfocus=\"filter:blur()\">" .$_SERVER['DOCUMENT_ROOT']. "<img src=\"/static/layout/images/emoticons/:).gif\" alt=\":)\"></a>
<br>
<a href=\"javascript:setemoticon(\":(\")\" onfocus=\"filter:blur()\">" .$_SERVER['DOCUMENT_ROOT']. "<img src=\"/static/layout/images/emoticons/icon_frown.gif\" alt=\":(\"></a>
<br>
<a href=\"javascript:setemoticon(\";)\")\" onfocus=\"filter:blur()\">" .$_SERVER['DOCUMENT_ROOT']. "<img src=\"/static/layout/images/emoticons/icon_wink.gif\" alt=\";)\"></a>
<br>
<a href=\"javascript:setemoticon(\":|\")\" onfocus=\"filter:blur()\">" .$_SERVER['DOCUMENT_ROOT']. "<img src=\"/static/layout/images/emoticons/icon_neutral.gif\" alt=\":|\"></a>
<br>
<a href=\"javascript:setemoticon(\":$\")\" onfocus=\"filter:blur()\">" .$_SERVER['DOCUMENT_ROOT']. "<img src=\"/static/layout/images/emoticons/icon_redface.gif\" alt=\":$\"></a>
<br>
<a href=\"javascript:setemoticon(\":'(\")\" onfocus=\"filter:blur()\">" .$_SERVER['DOCUMENT_ROOT']. "<img src=\"/static/layout/images/emoticons/icon_cry.gif\" alt=\":'(\"></a>
<br>
<a href=\"javascript:setemoticon(\"8o|\")\" onfocus=\"filter:blur()\">" .$_SERVER['DOCUMENT_ROOT']. "<img src=\"/static/layout/images/emoticons/icon_mad.gif\" alt=\"8o|\"></a>
<br>
<br>
<textarea name=\"message\" cols=\"60\" rows=\"10\">" .ubb($data['profile']). "</textarea>
<br>
<br>
<input type=\"submit\" value=\"Update\">
</form>";
}
echo "</body></html>";
?>
Toon Meer
Ik wil er mischien een open source van maken.
Als je er iets over hebt te zeggen, zeg het dan.
Ik zoek nog een designer voor een layout.
Ben jij diegene PM me maar.
Greetz