6.0.0-alpha12
6/6/25

[#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 11/26/2007 (6402 days ago)
Due
Updated 11/28/2007 (6400 days ago)
Assigned
Resolved 11/28/2007 (6400 days ago)
Milestone
Patch No

History
11/28/2007 03:33:53 AM Chuck Hagenbuch Comment #4
Assigned to Chuck Hagenbuch
State ⇒ Resolved
Reply to this comment
11/27/2007 07:14:08 AM 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.


11/26/2007 11:05:41 PM 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.
11/26/2007 09:24:19 PM ml (at) radoeka (dot) nl Comment #1
Priority ⇒ 1. Low
Type ⇒ Enhancement
Summary ⇒ Possibility to enable or disable portal blocks
Queue ⇒ Horde Framework Packages
State ⇒ New
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