Hello! We did not recognize you :)
Or with your social network

Horoscope v.1.1 plugin for DLE 13.x and higher

Home » Plugins » Plugins for DLE » Horoscope v.1.1 plugin for DLE 13.x and higher
4.7
(19)
23 comments
1400$
Buy
Open source and not tied to a domain
Platform
DLE
Platf. vers.
v.14.x
PHP version
7.2
Cron
Yes
Interface
Rus
Views
5 365

Capabilities

Beautiful horoscope output plugin for your website. The horoscope is parsed from the site horo.mail.ru. The plugin has a template that you can change for your site. And also this plugin add value to your site which is very important for the site.

The plugin parses data not every time your users view the site. You need to run the module file once a day (CRON) on your hosting.

With this simple plugin, you can display a horoscope on your website. This will add value to your site and it will be interesting for users of your site to read their horoscope for the period: yesterday, today, tomorrow, week, month, current year.

How does the plugin work?

The plugin parses the horoscope from horo.mail.ru and saves it to the engine/data folder in the data file on your website. Since the horoscope is updated every day. In order for the module to update the horoscope itself, you need to indicate in the "Task Schedule (cron)" on your hosting that the file https://site.com/cron-horoscope.php is launched once a day (preferably at midnight 0:00). A template is connected to the plugin so that you can stylize it for your website.

Installation

To bring the plugin to the site, just specify this line anywhere in the template:

{include file="engine/modules/horoscope/horoscope.php"}

Plugin template

The plugin provides a template for displaying a horoscope on your site. It is needed so that you yourself could modify the horoscope to the style of your site. When you install the plugin in the folder of your site template, the horoscope folder is created. The plugin template consists of the following files:

  • horoscope/main.tpl - Block output 12 signs of the zodiac;
  • horoscope/li-sign.tpl - The conclusion of a particular zodiac in the block "Horoscope";
  • horoscope/popup.tpl - PopUp of the selected horoscope.

Each of these files has its own set of tags (ShortCode).

main.tpl

  • {list-sign} - Output of zodiac signs in the format of buttons (12 zodiac signs);
  • [horoscope] text [/horoscope] - Display text if a horoscope is formed (saved to a file);
  • [not-horoscope] text [/not-horoscope] - Display the text if the horoscope has not yet been formed (there is no file on the site).

li-sign.tpl

  • {link-img} - Picture (utl) of the zodiac sign;
  • {name} - The name of the zodiac sign;
  • {date} - The period of the zodiac sign in the format: March 21 - April 19;
  • {dates} - The period of the zodiac sign in the format: 21.03 - 19.04;
  • [button] text [/button] - Wrap this tag with the text you need, this button when you click on it, the horoscope PopUp will open.

popup.tpl

  • {link-img} - Picture (url) of the zodiac sign;
  • {sort} - Horoscope sorting output: Yesterday, Today, Tomorrow, Week, Month, Current Year;
  • [forecast]{forecast}[/forecast] - Displays information for which period/date a horoscope is formed;
  • [title]{title}[/title] - Displays the horoscope title for a specific period;
  • [text]{text}[/text] - Horoscope text output;
  • [close] text [/close] - horoscope popup close button.

ShortCode (tags) [forecast], [title], [text] - Required

Screenshots

  • Comments 23
    You need to log in to comment
    1. User AAZ
      Добрый день, Дмитрий! Почему-то очень много ошибок выводит при запуске /cron-horoscope.php... Ошибки вида- Warning: file_get_contents(https://horo.mail.ru/prediction/aries/yesterday/): failed to open stream: HTTP request failed! HTTP/1.1 429 Too Many Requests in /var/www/1423/public_html/site.ru/engine/classes/horoscope.php on line 21
      1. User AAZ
        Для 14 версии тоже подходит?
      2. User mitya
        это предупредительная ошибка (она не кретична). Для 14 версии тоже подходит.
      3. User AAZ
        У вас на сайте гороскоп не выводит за сегодня последние 5 знаков зодиака.
      4. User mitya
        На этом сайте kaifovo.com в полной новости установлен этот плагин
    2. User mitya
      Да заметил, скорее что-то поменялось в верстке майла. Нужно смотреть
    3. User AndreyKAZ
      При выводе POP-UP'а также выводит текст ошибки сверзу страницы (DLE 14.1, PHP 7.4.6):

      Warning: strtr(): The second argument is not an array in /home/psymod.ru/public_html/engine/modules/functions.php on line 202 Call Stack: 0.0003 367304 1. {main}() /home/psymod.ru/public_html/engine/modules/horoscope/ajax/popup.php:0 0.0071 418144 2. dle_template->load_template() /home/psymod.ru/public_html/engine/modules/horoscope/ajax/popup.php:25 0.0071 418272 3. dle_template->buld_user_data() /home/psymod.ru/public_html/engine/classes/templates.class.php:116 0.0072 419536 4. langdate() /home/psymod.ru/public_html/engine/classes/templates.class.php:1307 0.0073 422192 5. strtr() /home/psymod.ru/public_html/engine/modules/functions.php:202 Warning: strtr(): The second argument is not an array in /home/psymod.ru/public_html/engine/modules/functions.php on line 202 Call Stack: 0.0003 367304 1. {main}() /home/psymod.ru/public_html/engine/modules/horoscope/ajax/popup.php:0 0.0071 418144 2. dle_template->load_template() /home/psymod.ru/public_html/engine/modules/horoscope/ajax/popup.php:25 0.0071 418272 3. dle_template->buld_user_data() /home/psymod.ru/public_html/engine/classes/templates.class.php:116 0.0074 421624 4. langdate() /home/psymod.ru/public_html/engine/classes/templates.class.php:1308 0.0074 422192 5. strtr() /home/psymod.ru/public_html/engine/modules/functions.php:202

      Как исправить эту ошибку, подскажите, пожалуйста.
      1. User mitya
        Здравствуйте, в ближайщее время поправлю
      2. User mitya
        Это предупредительные ошибки они не критичны, просто в PHP.ini отключите тип ошибок E_WARNING=false
      3. User Андрей Какурин
        Здравствуйте у меня пишет Приносим извинения, гороскоп пока что еще не сформирован.Как заставить его работать?Очень нужен.
      4. User mitya
        через 5 минут поробуйте запустить https://ваш_домен_сайта/cron-horoscope.php
      5. User Андрей Какурин
        Получилось,а ошибочку как убрать?
    4. User mitya
      Скоро выйдет новая версия плагина
    5. User videowoolf
      как изменить ширину в css?
      1. User mitya
        width: 500px;
    6. User Quixoticsa
      Здравствуйте, гороскоп не работает. "Приносим извинения, гороскоп пока что еще не сформирован." Жму кнопку загрузить и кидает на какой то сайт "кайфово" белый экран
      1. User mitya
        Здравствуйте, окей, проверю
    7. User bunch
      Здравствуйте плагин работает с версией dle 15.x?
    8. User Дмитрий Иванов
      Обновил PHP до версии 8.1, плагин перестал работать, на тех страницах где он должен показываться HTTP ERROR 500
      Откатываю назад до 7.4 все работает!
      Может автор обновит плагин!
    9. User Karat7
      На DLE 16.0 не открывает окно с гороскопом. PHP 7.4
    10. User Валерія Волошин
      Отак і довіряй розробникам, всі кидають свої модулі, не підтримують.
      1. User mitya
        Это бесплатный, он и не должен поддерживаться
    11. User Macedon
      Перестал обновляться гороскоп. Подскажите пожалуйста, исправления планируются?