ive had nothing but headache with shoutbox and the stupid iframe, replying is working - the form is like you suggest
but passing the username into the message itself
but if the message does not say @storrents its just as easy to post new shout its the $_POST['message'] its trying to post @$username/$message it should be $message so its just null
For that mod propaganda and every other old TT shoutbox mod is not possible in a controller due to the iframe
because the iframe it reads the full controller (you cant use methods/functions) so you would need maybe 5 shoutbox controllers
i might go back to it but its not a priority i might replace it in future or try put all methods wrapped in a get request
but passing the username into the message itself
but if the message does not say @storrents its just as easy to post new shout its the $_POST['message'] its trying to post @$username/$message it should be $message so its just null
$result = DB::run("SELECT user FROM shoutbox WHERE msgid=?", [$reply])->fetchColumn();
?>
<td width='75%' align='center'>
<input type="text" name="reply" class='shoutbox_msgbox' value="@<?php echo $result;?>" /><?phpFor that mod propaganda and every other old TT shoutbox mod is not possible in a controller due to the iframe
because the iframe it reads the full controller (you cant use methods/functions) so you would need maybe 5 shoutbox controllers
i might go back to it but its not a priority i might replace it in future or try put all methods wrapped in a get request
public function index()
{}
public function main()
{
// Get Page from url
$main = isset($_GET['main']) ? $_GET['main'] : null;
if ($main){
// code
}
}
public function edit()
{
// Get Page from url
$edit = isset($_GET['edit']) ? $_GET['edit'] : null;
if ($edit){
// code
}
}
public function staff()
{
// Get Page from url
$staff = isset($_GET['staff']) ? $_GET['staff'] : null;
if ($staff){
// code
}
}
