Please find attached a patch against 1.18 svn r783, which :
1. Updates the Dutch (nl) translation ; 2. Introduces a new option, 'Font Width Multiplier" ; 3. Adds a new option in the main menu : "Browse Web".
(2) allows you to define a multiplier, which allows the SC menu entries to be completely filled with text (instead of capping after approx. 26 characters). 1.0 is standard behaviour , 2.2 allows for a complete fill. This parameter is defined in the new Config entry : Advanced Options > Miscellaneous.
(3) lets you browse the web (e.g. daily comics, newspaper headlines, links to your local MythTV, deep-linking, etc.). The content is created just like the Radio Bookmarks module : IE-style .url files, and a Media Location with the new Media Type "Web".
Note : I finished the patch while 1.18 was being released. As such, the database modification which is now included in database/update_118.sql needs to be manually applied (or wait for a future SC release, if Rob approves of the patch).
| | The administrator has disabled public write access.
admin
Admin
Posts: 1542
Re: Browse Web - 2007/05/31 04:42Didier,
Please could you send me a zipfile with the actual files in - for some reason TortoiseSVN refuses to apply your patch to my working copy
Rob Player : Pinnacle Showcenter 200 and 1000 (wired ethernet) Server : Windows XP Pro running on an Athlon XP 2200, 768 Mb RAM, 1.8 Tb storage.
| | The administrator has disabled public write access.
didierm
User
Posts: 58
Re: Browse Web - 2007/05/31 07:40Hi Rob,
admin wrote: Please could you send me a zipfile with the actual files in - for some reason TortoiseSVN refuses to apply your patch to my working copy
Rob
Strange ; the diff was generated with the Eclipse Subclipse plugin.
Sidenote : I wonder whether anyone uses Eclipse (with Subclipse SVN) + PDT (PHP Development Tool) : it is fully cross-platform, and it now supports the Xdebug protocol too. Additionally, it supposedly allows one to debug directly from within Firefox (see also the Xdebug helper extension). There is a Trac connector for the Mylar plugin too ...
I noticed you already included most of the patches in r788.
Please find the remaining patched files included in the attachment (config/config_misc.php , config/index.php, lang/en/en.txt, lang/en/nl.txt). The only new file is config_misc.php, the others are slight modifications.
Please note : in /index.php, I deliberately did not include the internet_available() check for BROWSE_WEB, in order to allow local intranet browsing should an internet connection not be available. I guess this is quite a superficial situation anyway, so completely at your sole discretion.
| | The administrator has disabled public write access.
admin
Admin
Posts: 1542
Re: Browse Web - 2007/05/31 07:59Strange ; the diff was generated with the Eclipse Subclipse plugin.
I'm not sure which is to blame - the fact that Subclipse included absolute references to your files (instead of relative to the repository) or that tortoise was unable to apply it.
I noticed you already included most of the patches in r788.
I loaded the .patch file into textpad and manually hacked it
Sidenote : I wonder whether anyone uses Eclipse (with Subclipse SVN) + PDT (PHP Development Tool) : it is fully cross-platform, and it now supports the Xdebug protocol too. Additionally, it supposedly allows one to debug directly from within Firefox (see also the Xdebug helper extension). There is a Trac connector for the Mylar plugin too ...
Sounds interesting, You don't know of any tools that allow you to do refactoring in PHP do you? I really need to do some cleaning up of the swisscenter source
In /index.php, I deliberately did not include the internet_available() check for BROWSE_WEB, in order to allow local intranet browsing
I did consider this, but then I thought, well, its more consistent if disabling the internet connection option on the config page disables ALL of the options listed below it. And how likely is it that you'll be accessing a local website and not have internet connectivity? (maybe I'll add a parameter to override it that you can change in the "expert options" page)
Thanks for the modifications
Rob Player : Pinnacle Showcenter 200 and 1000 (wired ethernet) Server : Windows XP Pro running on an Athlon XP 2200, 768 Mb RAM, 1.8 Tb storage.
| | The administrator has disabled public write access.
hakras
User
Posts: 185
Re: Browse Web - 2007/06/10 20:57I am unsure how to apply this patch. What do I need to do? TIAPopcorn Hour connected to Panny TH-50PX77U Buffalo BLT connected to Sharp LCD Snazio NetCinema 1310 - not connected
| | The administrator has disabled public write access.
didierm
User
Posts: 58
Re: Browse Web - 2007/06/11 04:59hakras wrote: I am unsure how to apply this patch. What do I need to do? TIA
The patch has already been added in the development version, changeset [788], so will be included in the next release.
To retrieve a current development build, consult the wiki.
| | The administrator has disabled public write access.
hakras
User
Posts: 185
Re: Browse Web - 2007/06/11 07:10I got the build and everything looks to be working properly. My only question is how/where do I add URLs for web browsing. It looks like I need to modify web_urls.php, but I'm not sure what I need to add. ThanksPopcorn Hour connected to Panny TH-50PX77U Buffalo BLT connected to Sharp LCD Snazio NetCinema 1310 - not connected
| | The administrator has disabled public write access.
didierm
User
Posts: 58
Re: Browse Web - 2007/06/11 07:14hakras wrote: I got the build and everything looks to be working properly. My only question is how/where do I add URLs for web browsing. It looks like I need to modify web_urls.php, but I'm not sure what I need to add. Thanks
See the original announcement above :
(3) lets you browse the web (e.g. daily comics, newspaper headlines, links to your local MythTV, deep-linking, etc.). The content is created just like the Radio Bookmarks module : IE-style .url files, and a Media Location with the new Media Type "Web".
| | The administrator has disabled public write access.
hakras
User
Posts: 185
Re: Browse Web - 2007/06/11 07:45For some reason, I am not getting a "Web" Media Type.Popcorn Hour connected to Panny TH-50PX77U Buffalo BLT connected to Sharp LCD Snazio NetCinema 1310 - not connected
| | The administrator has disabled public write access.
didierm
User
Posts: 58
Re: Browse Web - 2007/06/11 09:04hakras wrote: For some reason, I am not getting a "Web" Media Type.
As you're running a development version and not a point release, the database update in database/update_119.sql (see also this) is not automatically executed (as it does with regular updates).
You'll have to modify your db manually with the abovementioned update.
| | The administrator has disabled public write access.
hakras
User
Posts: 185
Re: Browse Web - 2007/06/12 06:34I guess I'll just wait for 1.19. I don't want to screw anything up. ThanksPopcorn Hour connected to Panny TH-50PX77U Buffalo BLT connected to Sharp LCD Snazio NetCinema 1310 - not connected
| | The administrator has disabled public write access.
hakras
User
Posts: 185
Re: Browse Web - 2007/07/13 14:45OK....I'm too impatient to wait for the next release. What steps do I need to take in order to get this working now? If it's easier to recreate the db, that's fine. ThanksPopcorn Hour connected to Panny TH-50PX77U Buffalo BLT connected to Sharp LCD Snazio NetCinema 1310 - not connected
| | The administrator has disabled public write access.
(add an entry to you language file located under lang\ : BROWSE_WEB = Internet)
create some .url files (IE shortcuts) and store them in a directory
add this directory as a Media Location with category Web
(*) My files are located here: C:\Documents and Settings\All Users\Application Data\Simese\Data\
Update: It does work via my browser, but not via the Pinnacle Showcenter 200, I get the error "Cannot connect to server PC. Please press "A" to continue"
Update 2: a website on my media server network works
| | The administrator has disabled public write access.
klaasvaak
User
Posts: 463
Re: Browse Web - 2007/07/18 06:45thanks, it works smoothly, regards, Klaas ------------------- SwissCenter 1.18 Semise 1.40 Windows XP pro Pinnacle SC200
| | The administrator has disabled public write access.