Опубликовано VladSavitsky

Модуль позволяет конвертировать видео-файлы, которые загружаются на сайт, если на сервере установлена библиотека ffmpeg. Также модуль выводит плейер и обеспечивает всю работу с видео.

Установка модуля: 

В файле .htaccess включить следующие параметры:

<IfModule mod_php5.c>
  php_value post_max_size                       100M
  php_value upload_max_filesize                 100M
  php_value max_execution_time                  1000
  php_value max_input_time                      1000
</IfModule>

Настройка модуля: 

Модуль получает файлы с помощью одного из этих модулей:

  • ССК FileField
  • Upload

В режиме Upload
Нужно загрузить FLV-файл и миниатюру. Они будут храниться в $node->files.
К миниатюре НЕ БУДУТ применяться правила модуля ImageCache при показе. То есть миниатюра должна быть полностью готова и нужного размера.
Модуль FlashVideo подхватывает видео, но не конвертирует его.
Видео в полях ССК в этом режиме игнорируется.

В режиме ССК
Файлы пропукаются через ffmpeg и, если конвертация не удалась, то видео (даже в FLV) не показывается.
Для работы создаётся 2 поля (для загруженного видео и для финального - после конвертации).
И 1 поле для загрузки миниатюры. Для этого поля работает ImageCache!

      $thumbnail_file = flashvideo_get_thumbnail($node, array(), TRUE);

      if (!$thumbnail_file) {
        if ($node->field_image[0]['filepath']) {
          //Загруженная картинка:
          $thumbnail_file = imagecache_create_url('video_thumb_front', $node->field_image[0]['filepath']);
        } else {
          $thumbnail_file = $base_url . base_path() . path_to_theme() .'/images/no_thumbnail.jpg';
        }
      }

Автоматизация вставки видео и превью

В шаблоне ноды нужного типа заменить

    <div class="content"><?php print $content ?></div>

на
    <?php if ($teaser): ?>
      <?php print flashvideo_get_thumbnail($node);?>
    <?php else : ?>
      <?php print flashvideo_get_video($node);?>
    <?php endif; ?>
    <div class="content"><?php print $content ?></div>

Также нужно отключить использование тега [video] в тексте ноды.

Отображение thumbnail

if (flashvideo_get_thumbnail($node, array(), TRUE)) {
  $thumbnail = flashvideo_get_thumbnail($node);
} else {
  $thumbnail = theme('imagecache', 'video_thumb_front', $node->field_image[0]['filepath']);
}

'video_thumb_front' - название правила ImageCache
'field_image' - название поля ССК, в котором хранится картинка. Если просто загружается картинка вместе с видео, то нужно использовать другой код.

Прямая загрузка FLV

Если не нужно конвертировать видео на сервере, то нужно настроить модуль так:

  • Включить модуль Upload
  • Открыть страницу настроек FlashVideo (admin/settings/flashvideo)
  • Выключить параметр "Use the CCK FileField module for uploads"
  • Создать поле ССК для загрузки картинки предпросмотра с машинным именем "image"
  • На странице "Показывать поля" настроить вывод или сокрытие полей с предпросмотром и загруженным видео-файлом.
  • После сохранения ноды нужно запустить cron, чтобы видео стало доступным или включите параметр "Convert videos immediately"
Описание с сайта: 

FlashVideo is a complete video solution that expands Drupal's upload capabilities to allow web developers and users to upload video files, automatically convert those videos to the popular Flash format, and then embed their video in any node type using the simple [video] tag. This module allows more than one video to be attached to any node, and then referenced through the use of parameters passed to the tag [video]. It also includes an automatic conversion of video files to the Flash format using FFMPEG technology.

Use this module if you...

  • Would like a complete video solution for any user-generated-content video website.
  • Wish to have the power to embed your video anywhere in the body of a node using a simple [video] tag
  • Wish to link as many videos as you like to a node.
  • Would like a built in automatic Flash conversion.

Features

  • Streaming Video — Version 6.x-1.5 adds the new capability to have your videos streamed to the user via either xmoov-php pseudo-streaming or via RTMP true streaming on a separate server such as a Flash Media Server or Red5 server.
  • CCK FileField Support — Version 6.x-1.5 adds the new capability to have your videos attached to nodes by specifying individual FileField fields that should contain your videos and thumbnails.
  • Amazon S3 Support — FlashVideo Module can be easily configured to integrate video on your site with the incredible Amazon S3 server. This provides large video sites the ability to host their videos on a completely separate server than their own so that the videos will not bog down their server. For more details on how to install and use this plugin, simply open up the README.txt file within the included "drivers" directory.
  • Content Construction Kit (CCK) Integration — This module works very well with the Content Construction Kit, simply because it treats an uploaded video as a file instead of a node. Any CCK node type that you create can then enable the FlashVideo module to work with that node type. Because of this, this module can be treated as a CCK video solution. You can see this in action in the tutorial mentioned below.
  • CCK Override Capabilities — The FlashVideo module includes a plugin called FlashVideo CCK which provides node-specific parameters to create or regenerate the thumbnail or video. This method allows for any node creator or updater to override the parameters specified by the FlashVideo Settings to create custom functionality out of their specific node. For more information regarding how to utilize this plugin, please go to http://www.travistidwell.com/flashvideo_cck.

    Note: To use this plugin, you must enable it individually in the "Modules" section of your Drupal site.
  • Importing Videos — FlashVideo module includes a way for someone to import a large number of videos by just placing them in a directory (using FTP or some other means). Here is how it works. First thing you will need to do is go to the Flashvideo Settings page and decide which node type you would like to create with each imported video. Then, within the files directory, simply create a new directory and name it video_import (or use an alternate name that you define within the FlashVideo Settings page). Then, whatever video files you place within that directory will not only be added to the Drupal files table, but also be added to the FlashVideo cron cycle conversion queue. This makes it VERY simple for a site administrator to add MANY videos to their site without having to upload them all individually to nodes.
  • Playlist Support — You can use the FlashVideo module to create dynamic playlists of your videos. For more information, please go to http://www.travistidwell.com/node/59.
  • FlashVideo API for Developers — This module contains an API to allow module developers to tie into the powers of this module. For more information on what hooks and functions are available, please go to http://www.travistidwell.com/flashvideo_api.

FlashVideo Tutorials

Installing a Media Player (Required Step)

Important Note: — For this module to work, you will need to download a media player to go along with it. Some of the media players that have been tested to work the FlashVideo are as follows:

Due to licensing, a media player is currently not included with the module, so you will need to download either one of these. This is covered in the tutorial mentioned above.

Troubleshooting FlashVideo

Are you having problems getting FlashVideo operational? If so, check out the troubleshooting guide available at: http://www.travistidwell.com/troubleshooting_flashvideo.

Special Thanks To:

Although Travis Tidwell is the primary creator and maintainer of this module, it would not be what it is today without the help and contributions of the incredible Drupal Community. This section is to give special thanks to these contributors.

If we have forgotten anyone who has contributed, then please contact one of the module developers to get your username added to the list.

Читать дальше...
Опубликовано VladSavitsky

Описание с сайта

Модуль позволяет полностью закрыть внешние ссылки на сайте от индексации и сохранить их валидность.

Возможности модуля

  • Два метода контроля индексации:
    • Обернуть ссылки тегом NOINDEX. Тег NOINDEX не является валидным HTML-тегом. Он был создан Yandex и принят Rambler. Google игнорирует этот тег. HTML-валидаторы считают этот тег ошибкой.
    • Добавить атрибут rel="nofollow" в ссылки. Только Google не переходит по ссылкам с этим атрибутом.
  • Два формата тега NOINDEX:
    • Простой. Значение по умолчанию. HTML-валидацию не пройдет.
    • Валидный. Пройдет HTML-валидацию.
  • Есть 2 списка доменов:
    • Всегда разрешённые домены. Ссылки на домены из этого списка будут ОТКРЫТЫ для индексации (index) и переходов (follow) поисковиками всегда, независимо от других настроек модуля.
    • Всегда запрещённые домены. Ссылки на домены из этого списка будут ЗАКРЫТЫ для индексации (noindex) и переходов (nofollow) поисковиками всегда, независимо от других настроек модуля.
  • Ссылки на собственный домен разрешены к индексации и переходам по умолчанию.

Особенности применения

  1. Модуль реализует фильтр ввода, а значит применяется к тексту нод, комментариев и блоков, в которых есть возможность задать формат ввода. Блоки, созданные модулями, не обрабатываются, также как и ссылки в шаблоне темы - закрыть их вам придется вручную.
  2. Так как это фильтр ввода, то его нужно включить для каждого формата ввода, который используется на сайте.
  3. Поля CCK (Links) не обрабатываются также. Решение: в файле node.tpl.php темы получить объект $node и вручную вывести эти поля, закрыв их от индексации.
Читать дальше...
Опубликовано VladSavitsky

Описание с сайта

Taxonomy Quick Find: вывод списка статей с такими же терминами

Модуль предоставляет набор блоков, которые показывают "схожий" контент, основываясь на выбранных терминах. Блок берет термин по умолчанию и предоставляет выпадающий список, который работает на JQuery, который показызыает старый контент, AJAX the site for other nodes and finally slide down a new list of nodes.

These blocks are completely configurable can dynamically show other recent content from each category for the current node.

Features:

  • Funky AJAX basic reloading when switching between terms
  • Filtering the terms provided - You might only want to allow users to browse for other content by specific vocabularies
  • Configure each block to only show individual node types (eg, one block for page and a completely separate block for blogs)
  • Each node type on each block can also have its own limit (eg, you might want block A to have a limit of 3 pages, but block B might want 10 pages. This is useful if you want to configure one block for a sidebar and another block for a panel)
Читать дальше...
Опубликовано VladSavitsky

Описание с сайта

The Links Package is a multi-module set for managing URL links in a master directory, and attaching them in various ways to your content pages. It includes both an API for developers and user-visible content modules. This package is released for Drupal 4.7 and Drupal 5.0.

Links offers the following features:

  • An API for managing URLs in a generic way, and for associating these links in a many-to-many relationship with nodes. Each link is "normalized" internally, to try to merge references to the same URL in the database. If the same URL is used multiple times, it appears only once but with many node references in the {links_node} table. This helps to make processes such as link monitoring and dead link detection more efficient. The API also allows each link-node association to (optionally) provide an unique node-local title that overrides the global title for that particular URL, but only when that node is being displayed. In other words, the same URL can appear to have multiple different titles.
  • A main links.module that governs the behavior of the Links Package's global features, and which implements common functionality such as outlink tabulation of clicks. Click tabulation is by node and link, so that it is possible to find out not only how many times an outbound link has been followed, but also how many times it has been followed from each node that refers to it.
  • A links_related.module which allows the administrator to add a link field to any desired node types in the system. Currently, the node type setting is just a boolean flag, and if on, the node can have zero to infinity links. In the next version, however, this will become an integer where 0 means no links for the given node type, +N means "up to N links" for each node of that type, and -N means "exactly N links required (non-empty URL).
  • A links_weblink.module which defines a node type of 'weblink', which behaves very much like the node type of the same name by Ber Kessels, and which in fact was based on his module's code base but uses the new links API.
Читать дальше...
Опубликовано VladSavitsky

Описание с сайта

FeedAPI aggregates feeds on a Drupal website by generating light weight items or nodes from feeds. It provides a straightforward configuration for most use cases and is extensible through an API. FeedAPI integrates with OG (but does not require it).
For using simplepie as parser, download the simplepie package from http://simplepie.org/ - see README.txt.
Use views to build listings of your feed items.
You can aggregate feed elements (tags, authors, etc.) into CCK fields or taxonomy with the Feed Element Mapper.
You can aggregate comments from various sites and create Drupal comments with FeedAPI Comments.
If you use leech - check out the upgrade script to FeedAPI.
Want to get started on developing on FeedAPI? Check out developers' guide wiki page.

Читать дальше...
Опубликовано VladSavitsky

Описание с сайта

This module adds a webform nodetype to your Drupal site. Typical uses for webform are to create questionnaires, contact or request/register forms, surveys, polls or a front end to issues tracking systems.

Submissions from a webform are saved in a database table and can optionally be mailed to a nominated e-mail address upon submission. Past submissions are viewable for users with the correct permissions.

Webform includes some simple statistical tools to help in form design and evaluation and also allows the whole table to be downloaded as a csv file for detailed statistical analysis.

Geoff Hankerson has done an excellent screencast demonstrating Webform functionally. Note that this was recorded with Webform 1.7, which has been superseded by the Webform 2.x versions.

Читать дальше...
Категории модулей:
Версия Drupal:
Модуль зависит от:
| Добавить комментарий

subdomain

16 Май 2008
Опубликовано VladSavitsky

Описание модуля

Полное название: Subdomain
Проект начат: March 21, 2008

Описание с сайта

The subdomain module joins forces with pathauto to automatically place Drupal site content onto subdomains.

Currently, it supports placing each Organic Group and content *OR* node author and content on its own subdomain.

ORGANIC GROUP MODE (using "Frisbee Team" and "Pizza Lovers" as examples):

  • pizza-lovers.example.com
  • frisbee-team.example.com

You can also specify a custom subdomain to generate things like:

  • groups.example.com/pizza-lovers
  • groups.example.com/frisbee-team
  • communities.example.com/pizza-lovers
  • pizza-lovers-rock.example.com

NODE AUTHOR (using "Mary" "Kate" and "Jeff" as examples):

  • mary.example.com
  • kate.example.com
  • jeff.example.com

or with a custom subdomain rewrite, you can also generate subdomains like:

  • writers.example.com/mary
  • writers.example.com/jeff
  • super-kate.example.com/ :-)

RELATED MODULES:

Domain Access: If you wish to share content across multiple domains, you might want to try the Domain Access module. Domain Access provides advanced tools for running a group of affiliated sites from one Drupal installation and a single shared database.

Зависит от:

  • Pathauto
Читать дальше...
Категории модулей:
Версия Drupal:
| Добавить комментарий

storm

05 Май 2008
Опубликовано VladSavitsky

Описание модуля

Полное название: STORM
Проект начат: May 1, 2008

Описание с сайта

STORM (SpeedTech Organization and Resource Manager) is a project management application for Drupal.

It provides the following features :

  • Attributes : to manage the different list of values used in STORM, like : tasks status, countries, currencies and so on
  • Organizations : the companies or individual stakeholders of your projects
  • Projects : your projects. Every project can have multiple tasks hierarchically nested to build a WBS
  • Tasks : the parts that compose a project
  • Tickets : every ticket can be associated with an organization, project and task
  • Timetrackings : where you can register your activities on an organization, project, task or ticket
  • Permission control : a fine grained permission control permits to share the data with other users and organizations

Снимки экрана
Демонстрация (нужно запросить логин и пароль у автора модуля)

Читать дальше...
Авторы решений:
Темы:
Версия Drupal:
|

node_images

02 Май 2008
Опубликовано VladSavitsky

Описание модуля

Полное название: Node Images
Проект начат: November 19, 2006

Описание с сайта

Добавляет вкладку "Изображения" на страницу документа, что позволяет пользователям добавлять изображения к документам, используя модуль upload. Первые 2 изображения показываются как миниатюры при просмотре документа под текстом документа или в месте указанном в файле шаблона node.tpl.php. Все изображения доступны на странице галереии в стиле Polaroid.

Обратите внимание: Изображения не сохраняются как документы. При удалении документа, все изображения, которые связаны с документом, также удаляются.

Зависит от:

upload.module (входит в ядро Друпал)

Читать дальше...
Авторы решений:
Версия Drupal:
| Добавить комментарий

i18n

29 Апр 2008
Опубликовано VladSavitsky

Описание модуля

Полное название: Internationalization
Проект начат: February 18, 2004

Описание с сайта

Это набор модулей для добавления многоязычности в Drupal-сайты. Обеспечивает возможность размещения перевода содержания сайта - документов и таксономии, перевод интерфейса для анонимных пользователей с помощью модуля Locale и автоматическое определение языка браузера. Предоставляет блок для выбора языка и управляет связями между переводами документов и терминов таксономии.

Обновление для Drupal 6:

  • Большинство модулей были модернизированы для Drupal 6. Тестеры и рецензенты приветствуются.
  • Заметим, что некоторые старые возможности и зависимости были сняты и заменены новыми многоязычными возможностями Drupal 6. Этот модуль не будет претендовать на то, чтобы заменить имеющиеся возможности ядра Drupal, но будет опираться на них и расширять их.
  • Большинство обновлённых скриптов все ещё не тестировались. Поэтому, не рекомендуется обновлять существующие сайты, если только у вас нет копии данных вашего сайта, и Вы действительно хотите помочь в их тестировании.
  • Есть несколько модулей, которые Вы не сможете включить, потому что они ещё не помечены как совместимые с Drupal 6. Причина заключается в том, что они всё ещё не обновлены, некоторые из них ждут пока обновятся другие модули, от которых они зависят. Не пытайтесь редактировать информационный файл (.info), так как это не сработает.

И ещё раз: Не пытайтесь обновлять скрипты на работающих сайтах.

Читать дальше...
Авторы решений:
Категории модулей:
Версия Drupal:
| Добавить комментарий
 
 
 

RSS-лента новостей

Dries Buytaert по-русски
]]>Русский поиск Drupal]]>

Перенос сайта из Joomla в Drupal
Перенос сайта из WordPress в Drupal

]]> Drupal - это бесплатная система управления контентом с открытым исходным кодом ]]>