Procedural File: block.php
Source Location: /public_html/admin/block.php
Page Details:
Block administration page: Create, edit, delete, move, enable/disable blocks for the left and right sidebars of your Geeklog site.
Includes:
changeBlockStatus [line 764]
void changeBlockStatus(
array $enabledblocks, array $visibleblocks)
|
|
Enable and Disable blocks
Parameters
| array |
$enabledblocks |
array containing ids of enabled blocks |
| array |
$visibleblocks |
array containing ids of visible blocks |
deleteBlock [line 792]
string deleteBlock(
string $bid)
|
|
Delete a block
Tags:
Parameters
| string |
$bid |
id of block to delete |
editblock [line 197]
string editblock(
[string $bid = ''])
|
|
Shows the block editor This will show a block edit form. If this is a Geeklog default block it will send it off to editdefaultblock.
Tags:
Parameters
| string |
$bid |
ID of block to edit |
editdefaultblock [line 102]
string editdefaultblock(
array $A, int $access)
|
|
Shows default block editor Default blocks are those blocks that Geeklog requires to function properly. Because of their special role, they have restricted edit properties so this form shows that.
Tags:
Parameters
| array |
$A |
Array of data to show on form |
| int |
$access |
Permissions this user has |
hasBlockTopicAccess [line 77]
int hasBlockTopicAccess(
string $tid)
|
|
Check for block topic access (need to handle 'all' and 'homeonly' as special cases)
Tags:
Parameters
| string |
$tid |
ID for topic to check on |
listblocks [line 389]
Display two lists of blocks, separated by left and right
Tags:
moveBlock [line 719]
Move blocks UP, Down and Switch Sides - Left and Right NOTE: Does not return.
reorderblocks [line 684]
Re-orders all blocks in increments of 10
saveblock [line 513]
string saveblock(
string $bid, $name, string $title, $help, string $type, int $blockorder, string $content, string $tid, string $rdfurl, string $rdfupdated, string $rdflimit, string $phpblockfn, int $onleft, int $owner_id, int $group_id, array $perm_owner, array $perm_group, array $perm_members, array $perm_anon, int $is_enabled, $allow_autotags)
|
|
Saves a block
Tags:
Parameters
| string |
$bid |
Block ID |
| string |
$title |
Block title |
| string |
$type |
Type of block |
| int |
$blockorder |
Order block appears relative to the others |
| string |
$content |
Content of block |
| string |
$tid |
Topic block should appear in |
| string |
$rdfurl |
URL to headline feed for portal blocks |
| string |
$rdfupdated |
Date RSS/RDF feed was last updated |
| string |
$rdflimit |
max. number of entries to import from feed |
| string |
$phpblockfn |
Name of php function to call to get content |
| int |
$onleft |
Flag indicates if block shows up on left or right |
| int |
$owner_id |
ID of owner |
| int |
$group_id |
ID of group block belongs to |
| array |
$perm_owner |
Permissions the owner has on the object |
| array |
$perm_group |
Permissions the group has on the object |
| array |
$perm_members |
Permissions the logged in members have |
| array |
$perm_anon |
Permissinos anonymous users have |
| int |
$is_enabled |
Flag, indicates if block is enabled or not |
| |
$name |
|
| |
$help |
|
| |
$allow_autotags |
|
|
|