> For the complete documentation index, see [llms.txt](https://playground.e107sk.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://playground.e107sk.com/e107-efiction-integration/outdated/blocks/blocks-vs-menus-integration.md).

# Blocks vs menus

## Blocks list:

| Block name | Initialization | init.php | Options | File | template |
| ---------- | -------------- | -------- | ------- | ---- | -------- |
| categories | automatic      |          |         |      |          |
| countdown  | manual         |          |         |      |          |
| featured   | automatic      |          |         |      |          |
| info       | automatic      |          |         |      |          |
| menu       | automatic      |          |         |      |          |
| news       | automatic      |          |         |      |          |
| online     |                |          |         |      |          |
| poll       |                |          |         |      |          |
| random     | automatic      |          |         |      |          |
| recent     | automatic      |          |         |      |          |
| search     |                |          |         |      |          |
| shoutbox   |                |          |         |      |          |

automatic = during installation

✅ - updated code

**Initialize block** - this button is displayed if there is no related record in the database.&#x20;

## Related global shortcodes&#x20;

available in all places

```
{EFICTION_BLOCK_CONTENT: key=login}*
{EFICTION_BLOCK_CONTENT: key=menu}
```

## Removed locks

| Block name | Reason                                                                                                                                                                       |
| ---------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| linktous   | This block requires some customization. You'll need to open the linktous.php file and edit the section marked for configuration. There is e107 alt                           |
| \*login    | because e107 allows to use captcha for login form and this block is often used in the top header without enough place, easier is to use e107 alternative {SIGNIN} shortcode. |

## Blocks description

### Countdown block

To install this block:

1. Upload the countdown folder to the blocks folder of your eFiction site.
2. Goto Admin->Blocks.
3. Select "Initialize Block" next to the countdown block in the list.

To Administer this block:

1. Goto Admin->Blocks.
2. Select "Options" for the countdown block in the list.
3. Enter the requested information in the admin panel and click "Submit."

{% hint style="warning" %}
block.php renamed to countdown.php
{% endhint %}

### Login  block

This block was used for displaying login form.

![](/files/-MiN-LwyVoRWI4HFWwCL)

With e107 you can add captcha to login and there wasn't enough place.

Example (Epiphany e107 theme)

```
/*  THIS is used only for efiction layout */ 
$search_shortcode = "{SEARCH}";
$topnav_shortcode = '<span class="fa fa-power-off"></span>{SIGNIN}';
$navbar_shortcode = '{NAVIGATION}';

if(e107::isInstalled('efiction'))
{ 
	$search_shortcode = "{EFICTION_BLOCK_CONTENT: key=search}";  //temp todo use search addon, it is not parsed, it is correct for now
    $topnav_shortcode = '<span class="fa fa-power-off"></span> {adminarea}{SIGNIN}';
    $navbar_shortcode = '{EFICTION_BLOCK_CONTENT: key=menu}';
}
```

![](/files/-MiN03yhUcLatPtj6CSk)

After successful log in (adminarea shortcode to efiction admin is not parsed yet):

![](/files/-MiN1UXWUWcQVEaQU3Zd)
