ВходПользовательПароль
   
Регистрация
Регистрация
Помощь
Помощь
Поиск
Поиск
Gosudar.com.ru  
  

Меню сайта
Навигация
Объявления Объявления
Блоги Блоги
Файловый архив Файловый архив
Последние Последние
Гостевая Гостевая
Контакты Контакты
Личный Раздел
Вход Вход
Регистрация Регистрация
Cms R3-born
Библиотека Библиотека
Файлы R3-born Файлы R3-born
Разработка(блог) Разработка(блог)
Демо-модули
Фотоальбом Фотоальбом
Новости Новости
Форум Форум

Счётчик
5632156321563215632156321
Главная » Библиотека

Библиотека

Библиотека  » CMS R3-born  » Документация
Block/Module Version Checker
Описание Manual. English
Автор martin Число Май 29 2008, 21:51 Тип FAQ
Категория Документация
Просмотров 1611
Трекбек URL для этой записи: Трекбек
  • 17
  Голосов 1


Block/Module Version Checker
Manual. English
Starting with R3-born 0.1.1 there is a version checker for Modules and Blocks This is an ACP feature that allows administrators of R3-born sites to check if newer versions of modules and blocks they have installed are available from the developer.

This tutorial explains how developers can make their blocks and modules version checker compatible. It's very easy to do and will only take a few minutes.

mvVersion Version Check URL

The first thing to do to make a block or module Version Checker compatible is add a URL to mvVerison.php that links to your update file.

 Код:  
$mvVersion['version_check'] = 'http://www.yourserver.com/update.txt';


The Update File

Next you will need to create an update file on your server. You can call it whatever you want, but I suggest something simple like 'update.txt'.

Update File Format

  • Each block or module listed in the update file uses a switch like you would find in R3-born .tpls.
  • Switches start with <!-- BEGIN something --> and ends with <!-- END something -->.
  • Switches should be on separate line.
  • The variable names in the switches, 'something' in this example, must be identical for BEGIN and END.
  • The name of the switch must match the name of the corresponding block/module.
  • Every line of information inside the switches should be on separate line and keys should be in lower case and tab seperated.


Update Keys

There are four keys.


  1. error - Freeform text that is displayed if software cannot be updated or is no longer supported.
  2. version - current version. if this version is different from the install version it means that an update is available
  3. update - update url. links to the file if possible
  4. info - information url. usually a website or page about the software



Example Update File
 Код:  
 <!-- BEGIN your_module -->
version    0.1.2
update     http://www.yourserver.com/your_module.zip
info     http://www.yourserver.com/your_module.html
<!-- END your_module -->

<!-- BEGIN another_module -->
version    0.1.1
update     http://www.yourserver.com/another_module.zip
info     http://www.yourserver.com/another_module.html
<!-- END another_module -->

<!-- BEGIN a_block -->
version    0.1.2
update     http://www.yourserver.com/a_block.zip
info     http://www.yourserver.com/a_block.html
<!-- END a_block -->

<!-- BEGIN old_block -->
error    This block is no longer supported and has been replaced by "a_block"
<!-- END old_block -->


As you can see you can list as many blocks and modules as you like in one update file.
 


Часовой пояс: GMT + 3

Кто онлайн
Кто онлайн
Кто онлайн Всего зарегистрированных пользователей: 404
Последний зарегистрированный пользователь: MugenEi
Сейчас посетителей на сайте: 43, из них зарегистрированных: 0, скрытых: 0, гостей: 38, ботов: 5
Больше всего посетителей (302) здесь было Июль 27 2023, 12:54
Зарегистрированные пользователи: нет
Боты : AhrefsBot (5)
Легенда: Админ, Зам.админа, ViP, Спамеры
Эти данные основаны на активности пользователей за последние пять минут

Вход
Вход
Пользователь:    Пароль:     Автоматически входить при каждом посещении     

Powered by R3-Born² © 2024
Все логотипы и торговые марки являются собственностью их законных владельцев.
Правила пользования | Полис Секретности

Valid XHTML 1.0 Transitional SPECIALIST® Online Certified PHP Specialist Valid CSS!