6.0.0-git
2019-03-20

[#5927] Possibility to enable or disable portal blocks
Summary Possibility to enable or disable portal blocks
Queue Horde Framework Packages
Queue Version FRAMEWORK_3
Type Enhancement
State Resolved
Priority 1. Low
Owners chuck (at) horde (dot) org
Requester ml (at) radoeka (dot) nl
Created 2007-11-26 (4132 days ago)
Due
Updated 2007-11-28 (4130 days ago)
Assigned
Resolved 2007-11-28 (4130 days ago)
Milestone
Patch No

History
2007-11-28 03:33:53 Chuck Hagenbuch Comment #4
Assigned to Chuck Hagenbuch
State ⇒ Resolved
Reply to this comment
2007-11-27 07:14:08 ml (at) radoeka (dot) nl Comment #3 Reply to this comment
You can remove the block files completely or comment out or remove
the $block_name line. The block list is built automatically.
Thanks for providing a workaround.  BTW: this is nicely done in 
weatherdotcom block:
But we should probably disable blocks automatically where we can.
/* Disable block if not configured. */

if (!empty($GLOBALS['conf']['weatherdotcom']['partner_id']) &&

     !empty($GLOBALS['conf']['weatherdotcom']['license_key'])) {

     $block_name = _("weather.com");

}



Perhaps something similar can be done for the fortune and the metar block.


2007-11-26 23:05:41 Jan Schneider Comment #2
State ⇒ Accepted
Reply to this comment
You can remove the block files completely or comment out or remove the 
$block_name line. The block list is built automatically.

But we should probably disable blocks automatically where we can.
2007-11-26 21:24:19 ml (at) radoeka (dot) nl Comment #1
Type ⇒ Enhancement
State ⇒ New
Priority ⇒ 1. Low
Summary ⇒ Possibility to enable or disable portal blocks
Queue ⇒ Horde Framework Packages
Reply to this comment
After installing horde for the first time, the following 2 portal 
blocks stood out

for trying:

- Horde: Metar Weather

- Horde: Random fortune



However, after activating the respective blocks nothing happened :(  To be

more precise the weather block showed "no location set"



Than I discovered where those blocks can be configured (in horde => 
Administration => Setup => Portal Block Configuration".  Further more 
I discovered from the web that weather block requires mysql, that I 
don't have running (no need with the kolab backends).  At least the 
script buildMetarDB.php seems to require the mysql backend.



Now to the point: in the case described it would be nice to have the 
possibility to disable the weather block, so it does not show up in 
the user's block list.  The same is valid for e.g. the fortune block, 
if the fortune script won't be present  it is nice to be able to 
disable block to show up in the user's block list.



Making the request more general:

- Please, make it configurable which blocks show up in the user's 
portal block list.








Saved Queries