home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
MediaPortal 1 Plugins
Webinterface plugin
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="MikaXS" data-source="post: 184435" data-attributes="member: 56891"><p><strong>Guide + Details</strong></p><p></p><p>Since my friend (this is his Account) wanted the webinterface to work on his playstation 3</p><p>we changed the code of it a bit, discovering the error in the guide + details mentioned a few sites before...</p><p></p><p>It happens that certain TV-Show-Names contain chars that kill the layout of the guide...</p><p></p><p>However, here's a quick and i suppose dirty fix:</p><p></p><p><strong><p style="text-align: center"><span style="font-size: 18px">sql.php</span></p><p></strong>[CODE]</p><p>function sqlquery($sql, $type="multi")</p><p>// A general SQL-Query returning multiple rows.</p><p>{</p><p></p><p>[...]</p><p></p><p>// Check if there is something returned, if not, set to 0.</p><p>if ($result > 0)</p><p> //return $result;</p><p> //Skip:FIX for false Names</p><p> return CheckForFalseNames($result);</p><p> //=>Skip:FIX for false Names </p><p>else </p><p> return 0; </p><p>}</p><p></p><p></p><p>[...]</p><p></p><p></p><p>function genreSearch ($idGenre)</p><p> // Search the epg-data by genre.</p><p> // Returns multiple arrays.</p><p> {</p><p> return sqlquery("SELECT * FROM TblPrograms WHERE idGenre = ".$idGenre." AND iStartTime >= ".date("Ymdhis")." ORDER BY iStartTime,idChannel","multi");</p><p> }</p><p></p><p>//Skip:FIX for false Names </p><p>function CheckForFalseNames ($temp)</p><p>{</p><p> $filter = array("","\"");</p><p> for($count = 0; $count < count($temp); $count++)</p><p> {</p><p> if($temp[$count]!="")</p><p> $temp[$count] = str_replace($filter," ",$temp[$count]);</p><p> }</p><p> return $temp;</p><p>}</p><p>//=>Skip:FIX for false Names</p><p>?>[/CODE]</p><p></p><p>that's it <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite8" alt=":D" title="Big Grin :D" loading="lazy" data-shortname=":D" /> </p><p></p><p>Skip</p></blockquote><p></p>
[QUOTE="MikaXS, post: 184435, member: 56891"] [b]Guide + Details[/b] Since my friend (this is his Account) wanted the webinterface to work on his playstation 3 we changed the code of it a bit, discovering the error in the guide + details mentioned a few sites before... It happens that certain TV-Show-Names contain chars that kill the layout of the guide... However, here's a quick and i suppose dirty fix: [B][CENTER][SIZE="5"]sql.php[/SIZE][/CENTER][/B] [CODE] function sqlquery($sql, $type="multi") // A general SQL-Query returning multiple rows. { [...] // Check if there is something returned, if not, set to 0. if ($result > 0) //return $result; //Skip:FIX for false Names return CheckForFalseNames($result); //=>Skip:FIX for false Names else return 0; } [...] function genreSearch ($idGenre) // Search the epg-data by genre. // Returns multiple arrays. { return sqlquery("SELECT * FROM TblPrograms WHERE idGenre = ".$idGenre." AND iStartTime >= ".date("Ymdhis")." ORDER BY iStartTime,idChannel","multi"); } //Skip:FIX for false Names function CheckForFalseNames ($temp) { $filter = array("","\""); for($count = 0; $count < count($temp); $count++) { if($temp[$count]!="") $temp[$count] = str_replace($filter," ",$temp[$count]); } return $temp; } //=>Skip:FIX for false Names ?>[/CODE] that's it :D Skip [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
MediaPortal 1 Plugins
Webinterface plugin
Contact us
RSS
Top
Bottom