Kodi Community Forum
MediaFrontPage - Web interface with widget type architecture to control multiple apps - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Supplementary Tools for Kodi (https://forum.kodi.tv/forumdisplay.php?fid=116)
+--- Thread: MediaFrontPage - Web interface with widget type architecture to control multiple apps (/showthread.php?tid=83304)



- rflores2323 - 2011-08-17

Any progess on mobile version?


- DejaVu - 2011-08-17

The mobile version has not been updated lately due to commitments to the full version. I think, once the full version is properly functional, we shall look into improving the mobile version.

It should be pretty simple as it pulls the same information used from the full version.


- Mar2zz - 2011-08-17

RaNaMaster Wrote:https://github.com/xbmcfreak/xbmc-remote-php

php remote for xbmc

Installed it. Functional, but needs eyecandy. Great if this could be integrated in mediafrontpage.


- DejaVu - 2011-08-17

Couple of updates from me today,

I've added the jDownloader widget and and Navigation drop down.
Settings now has a 'Program Check' that looks for the programs once you have set them up. You will need to refresh the page to make sure they have been found.

Having a few problems checking -

http://localhost/transmission/web/images/graphics/logo.png

Code:
<td width="80" align="center"><?php
                          if( fopen(''.$transmission_web.'/images/graphics/logo.png', 'r')) {
                                echo "<img src='media/green-tick.png' height='15px' Title='Found.'>" ;
                            } else {
                                echo "<img src='media/red-cross.png' height='15px' Title='Unavailable'>"; } ?></td>

for some reason. It still shows as invalid, but I know it exists. Is this to do with verification?

EDIT -
I'm also have problems with the transmission widget. Even though the right details in Settings exist, and I can get to it from the menu. I'm getting "ERROR" from the widget.

I've also added the initial commit number to the default-config.ini. This means an update is required after initial install, this is to deal with comparison check I've added. But this is hopefully going to change once I work out how to add the correct commit number at servercheck.


- Archigos - 2011-08-18

Sorry I haven't been around, I lost all the work I had done on the mobile interface (freakin' hard drive died) but I can attempt to start that over. If I do, for ease, I'll probably work off the official or gugahoi's branch.

I know it wasn't much, but I updated the Repo's wiki to fix a couple small formatting errors and fix the screenshots for the CSS Skins (just the ones that had a small screenshot included in official repo)

If I get around to it, when I do the reinstall of Windows on my laptop I can install Uniform Server and do a write up for that as well like I did for IIS.

Any suggestions feel free to PM... I was thinking of expanding one of the wikis on my company domain to encompass all sorts of XBMC stuff... MFP, the apps it uses, Constellation, etc.

--Edit--
PS. Haven't kept up with the thread for a bit, but is it just me or did Firefox 6 screw a bunch of the CSS for MFP, SB, etc.? I can no longer expand/collapse widgets on the main page, so anything I had hidden needs a manual edit of layout to 'fix'. Sad


- _Mikie_ - 2011-08-18

Is it possible to localize the stuff collected from the google api?


- DejaVu - 2011-08-18

Firefox seems to be the centre of attention at the moment, it's not doing quite a few things it used. One huge one is the history.back() in javascript seems to be screwed too.


- Archigos - 2011-08-19

DejaVu Wrote:Firefox seems to be the centre of attention at the moment, it's not doing quite a few things it used. One huge one is the history.back() in javascript seems to be screwed too.

When it rains, it pours... as I mentioned in my last post one of the hard drives died... well today, I hit the power button on my TV and for whatever dumb reason said "Give it life..." in kind of the old Frankenstein way... my TV responded "F-You, I'm dead" Sad Sad To damn broke to get a new one and don't have a spare, so now I'm stuck running everything (including normal TV) through my laptop screen (1366x768)....

Can this week get any worse?


- DejaVu - 2011-08-19

lunias Wrote:I believe I found the cause of this issue and fixed it on my local copy.

Code:
if(!empty($_GET["display"])) {
  include_once "../config.php";

[b]  $html = getComingSoon($sickbeardcomingepisodes);
  $body = stripBody($html);
  $body = stripInnerWrapper($body);[/b]

  $urldata = @parse_url($sickbeardcomingepisodes);

I'm more or less lost when it comes to PHP so this messed me up for awhile, but there is one call to displayComingSoon() which should perhaps be deprecated because it is never executed for me? Instead the above code is run and as it stands in the latest commit of DejaVu's repo there is no stripping of the body or the inner wrapper. Once you add them in the errors cease and everything is much more responsive. I also modified stripInnerWrapper() to strip starting at <h1 class="day">, but this is probably unecessary.

lunias

I officially declare this POST OF THE WEEK.

He is bang on and for someone that is 'more or less lost when it comes to PHP' has done a cracking job here. I recommend this on all repo's. ComingEpisodes loading slow, IMO has been fixed by Lunias! Nice one.


- Archigos - 2011-08-19

Ok, so over a month ago I mentioned that dr.energy and I were going to do a little joint venture write up on installing MFP, SB, CP, etc. on a Windows system running IIS. Well, after talking with him for a few days I had more of my medical issues to deal with and that's why this hasn't progressed much yet.

My gameplan was always to expand the site I hosted the tutorials on to include a lot of MFP related things (Linux, Mac, etc) and some general XBMC stuff as well, so I'm curious... users of MFP, which do you think would be more beneficial to read:
  • Wordpress style blog with tutorials
  • Wiki site
In either case, the site will be viewable by anyone, but will be locked down to specific editors (no new user signup) to help prevent vandalism or constant changes that may be irrelevant based on version. Nick, gugahoi, Deja will all have accounts from the start as well as say in any new editors that get their 'nod of approval'.

I'm not sure if the guys would be interested in helping with this, or even have the time, but I think it could be beneficial to most in the end (and Github's Wiki is a pain in my ass, not hard, just shitty syntax)

Instead of flooding this (already) long thread with 'votes', please PM me which method you think would be the best and/or if you have interest in helping out with the project. The software back-end choices are:
  • Wordpress (w/ unicode)
  • DokuWiki
  • MediaWiki
DNS should finish propagating for the sub-domain by the time I get the first response, so no one has to worry about that crap.

Archigos Wrote:Click the little arrow in the line above for original post

--Edit--
PS, a graphics person would be great to help out too Wink


- _Mikie_ - 2011-08-19

DejaVu Wrote:I officially declare this POST OF THE WEEK.

He is bang on and for someone that is 'more or less lost when it comes to PHP' has done a cracking job here. I recommend this on all repo's. ComingEpisodes loading slow, IMO has been fixed by Lunias! Nice one.

Are we just adding those 3 lines in the middle there?

$html = getComingSoon($sickbeardcomingepisodes);
$body = stripBody($html);
$body = stripInnerWrapper($body);

And remove the one function.

EDIT: Just looked at your repo and copied you Big Grin Sent a pull request to master. I think its all right Smile


- DejaVu - 2011-08-19

I shall merge that request. Wink

EDIT -
It's broke ATM.

EDIT2 -
It's merged. Smile


- DejaVu - 2011-08-19

@Archigos,

Sounds like your having a time with things atm mate.
Anything you can do to improve the wiki is welcome, I'm going to try a throw some time into updating some bits this weekend.

Anyone else comfortable with MFP is also welcome to help if they so wish! Wink

We need a lot of information added to help others out!


- lunias - 2011-08-20

DejaVu Wrote:I officially declare this POST OF THE WEEK.

Thanks Laugh. Glad I could help out! My mfp is coming along, keep up the good work guys. I'm loving it!

I think the only thing that still isn't working for me is the wMessage widget... I always get a "failed sending message" error. Not even sure how to start debugging that one though... Huh

lunias

Edit: If anyone has any tips on debugging PHP I'd appreciate it. I write code in Emacs and I'm used to just printing to the console. What's common practice for inspecting variables and stuff?


- DejaVu - 2011-08-20

Message Widget - Are your IP's and Ports set correctly in the settings? I have no problem sending messages to 4 XBMC enable machines in my place (Static IP Addresses).

Common practice, I have found unfortunately is, trial and error. I am almost clueless with PHP, but know enough to blag a Repo on Github - Go figure!

I am in a constant state of learning and would most definitely blame Gugahoi for my recent fascination with PHP Coding (there is a lot to learn!). All credit to him for the major additions to MFP lately BTW!! Not forgetting the likes of others who have contributed their time and effort into improvements.

Without MediaFrontPage I would certainly be at a lower standard than yourself. From your 'POST OF THE WEEK' you do have some sort of understanding of it or perhaps even just a knack for it.

The best place to start learning PHP IMO is W3C - http://www.w3schools.com/php/. It starts as an Idiot's guide and once you start understanding, tends to get more technical, make sure, when you are ready to start, that you have no distractions, because it can get involved. A household with 3 kids (at my end) tends to make this a little difficult!

It is also a good idea to have secure knowledge of HTML and perhaps a little Javascript (JQuery is where it's all happening at the moment though!)

The good thing about it is, someone you have never met in person, is always willing to help, in all sorts of places. Got to love the internet!

Once you realise you have the basics and your willing to get going, you can use this to get your 'syntax' correct - http://tools.sopili.net/php-syntax-check/

And those are most of 'my little secrets'. Wink