2011-05-15, 05:18
OMG - Lighthouse is doing my nut in. Posting over there is completely different and a pain in the arse.
Hence - Here I am.
I've made a XBMC Remote Message Widget that needs a little input from others as my coding skills are now all been used up -
wMessage.php
Add it in, tell me what you think. The Page loading to the 'OK' page needs suppressing or the response put into the widget would be cool.
Still in WIP and instead of messing up Lighthouse any further til I learn how to use it...!
I too have been playing around with the themes/css settings. Tell me what you think -
It's amazing how much can change with the smallest of edits.
Hence - Here I am.
I've made a XBMC Remote Message Widget that needs a little input from others as my coding skills are now all been used up -
wMessage.php
Code:
<?php
$wdgtMessage = array("name" => "Message XBMC", "type" => "inline", "function" => "widgetMessage();");
$wIndex["wMessage"] = $wdgtMessage;
if($_SERVER['REQUEST_METHOD'] == "POST"){
if(!empty($_POST['keyword'])){
$wMessage = 'http://xbmclive:8082/xbmcCmds/xbmcHttp?command=ExecBuiltIn(Notification(NOTICE!,' . $_POST['keyword'] . ',20000))';
header("Location: " . $wMessage);
exit;
}
}
function widgetMessage() {
$self_post = $_SERVER['PHP_SELF'];
echo "<form method='post' action='".$self_post."'>";
echo "<div align='center'>Send <b>Notice!</b> <input type='text' style='border : 1px; background : #3D3D3D; color:white' name='keyword' id='keyword' />to XBMC.<input type='submit' value='Submit' style='visibility:hidden'></div>";
echo "</form>";
}
?>
Still in WIP and instead of messing up Lighthouse any further til I learn how to use it...!
I too have been playing around with the themes/css settings. Tell me what you think -
It's amazing how much can change with the smallest of edits.