Journal-Script

Hey crossfire-community,

i don't know how to discribe, what i need, i'll try anyway.

I'm looking for some "software", php-script, whatever, which has the function like the journalfunction on this site. Very simple usermanagement, every user should have the possibility to open a journal and comment to every other, not more, just like you do on cf.

Opensource solution would be the best.

No advices like "Code the script on your own", cba to do that.

Regards
Comments
11
Code the script on your own
Code the script on your own
So you are too lazy to make one? Ill make one for you then, wait a sec.
Quote
<form action="<?php print $_SERVER['PHP_SELF'] ?>" method="post" >
<br><table width="90%" border="0" cellspacing="0" cellpadding="3" align="center">
<tr>
<td>
<strong>Geschreven door <input value="Typ hier uw naam" type="text" name="door"></strong>
| <?php echo date("d-m-Y H:i:s", time()); ?>
</td>
</tr>
<tr>
<td>
<textarea name="bericht" rows="8" cols="50">Typ hier uw bericht!</textarea><br>
<input type="submit" value="Bericht plaatsen!">
</td>
</tr>
</table>
<?php
mysql_connect("localhost",USER,WACHTWOORD); // zelf in te vullen
mysql_select_db(DATABASE); // zelf in te vullen

if(isset($_POST['door']) and isset($_POST['bericht']) and $_POST['door']!='Typ hier uw naam' and $_POST['bericht']!='Typ hier uw bericht!' ) {
$bericht = $_POST['bericht'];
$door = $_POST['door'];
$datum = date("d-m-Y H:i:s", time());

$bericht = str_replace("\n", "<br>", $bericht);

$query = "INSERT INTO gastenboek(bericht, door , datum) VALUES ('".$bericht."', '".$door."', '".$datum."')";
$sql=mysql_query($query) or die (mysql_error());
}

$query = "SELECT * FROM gastenboek ORDER BY id DESC";
$sql=mysql_query($query) or die (mysql_error());

while ($obj=mysql_fetch_object($sql)) {
$door = $obj->door;
$datum = $obj->datum;
$bericht = $obj->bericht;
?>

<br><table width="90%" border="0" cellspacing="0" cellpadding="3" align="center">
<tr>
<td >
<strong>Geschreven door <?php echo $door; ?></strong>
| <?php echo $datum ?>
</td>
</tr>
<tr>
<td >
<?php echo $bericht; ?>
</td>
</tr>
</table>

<?php }
?>


If you have more jobs, just pm me, ive got no life and im willing to help you.
if u would have at least a bit brains, u would write it in english, not that u just copy paste :P
Parent
why would i put more effort in it then google > copy&paste :DD
Parent
bb database :D
Parent
My story: "Oh', 'owned', '01-01-01 01:01:01' ); DELETE TABLE gastenboek;"
(unless GPC_MAGIC_QUOTES is on)
Parent
Maybe with Joomla ?
Back to top