This question is answered. Helpful answers available: 2. Correct answers available: 1.


Permlink Replies: 4 - Pages: 1 - Last Post: 6 May 22, 18:08 Last Post By: RobM Threads: [ Previous | Next ]
RobM

Posts: 4,383
Registered: 4-Aug-2006
Disable Include jAlbum Widget support button
Posted: 14 Apr 22, 20:46
 
  Click to reply to this thread Reply
Is it possible to disable the 'Include jAlbum Widget support' button when widgetInjection is added to 'disabledControls'.

Background.
If in skin properties you enter 'disabledControls=widgetInjection' widgets are not included in the album. However, a user can go to the widget settings tab and click the Include jAlbum Widget support button. The widget controls become active, you can select widgets to include and make the album. It is only when the user views the uploaded album or revisits the widget controls that they can see widgets have been left out.
JeffTucker

Posts: 8,467
Registered: 31-Jan-2006
Re: Disable Include jAlbum Widget support button
Posted: 14 Apr 22, 21:00   in response to: RobM in response to: RobM
 
  Click to reply to this thread Reply
Disable the checkbox in skin.properties.
disabledControls=widgetInjection
Then turn it off in hints.jap.
widgetInjection=false
You can get even more aggressive by killing it off in init.bsh, as well.
engine.setWidgetInjection(false);
ETA: But yeah, the insistent user can still circumvent things. I'd like to be able to disable the entire Widgets tab, but haven't figured out how to do that.
RobM

Posts: 4,383
Registered: 4-Aug-2006
Re: Disable Include jAlbum Widget support button
Posted: 14 Apr 22, 21:13   in response to: JeffTucker in response to: JeffTucker
 
  Click to reply to this thread Reply
JeffTucker wrote:
Disable the checkbox in skin.properties.
disabledControls=widgetInjection
Then turn it off in hints.jap.
widgetInjection=false
You can get even more aggressive by killing it off in init.bsh, as well.
engine.setWidgetInjection(false);
ETA: But yeah, the insistent user can still circumvent things. I'd like to be able to disable the entire Widgets tab, but haven't figured out how to do that.
I tried the widget activation in Atom, which as you know …
JeffTucker

Posts: 8,467
Registered: 31-Jan-2006
Re: Disable Include jAlbum Widget support button
Posted: 14 Apr 22, 21:26   in response to: RobM in response to: RobM
 
  Click to reply to this thread Reply
Of course, the real solution.... ;)
RobM

Posts: 4,383
Registered: 4-Aug-2006
Re: Disable Include jAlbum Widget support button
Posted: 6 May 22, 18:08   in response to: RobM in response to: RobM
 
  Click to reply to this thread Reply
Updated the wiki page for widgets to show widgets inactivated by a skin only appear to be activated.
Legend
Forum admins
Helpful Answer
Correct Answer

Point your RSS reader here for a feed of the latest messages in all forums