Добрый день! Скажите, можно ли в плагине устанавливать период, через который станет доступен скрытый материал? Например, я хочу, чтобы матер

  • Алла Иванова
  • Алла Иванова's Avatar Topic Author
  • Visitor
10 years 8 months ago - 10 years 8 months ago #3022 by Алла Иванова
Добрый день! Скажите, можно ли в плагине устанавливать период, через который станет доступен скрытый материал? Например, я хочу, чтобы материал стал доступен через 3 часа после опубликования ссылки в соцсети. Иначе пользователи удаляют ссылку сразу после получения доступа к файлам.
Last edit: 10 years 8 months ago by Алла Иванова.

Please Log in or Create an account to join the conversation.

  • JoomLine
  • JoomLine 's Avatar
  • Visitor
10 years 8 months ago - 10 years 8 months ago #3023 by JoomLine
К сожалению такую функцию нельзя реализовать. Так как мы вычисляем разницу между лайками. Через 3 часа вычислить правильно не представляется возможным. Да и зная психологию человека, если вдруг кому, то надо удалить ссылку со своей страницы, он все равно ее удалит и через три часа и через день.
Last edit: 10 years 8 months ago by JoomLine .

Please Log in or Create an account to join the conversation.

  • Алла Иванова
  • Алла Иванова's Avatar Topic Author
  • Visitor
10 years 8 months ago - 10 years 8 months ago #3024 by Алла Иванова
Last edit: 10 years 8 months ago by Алла Иванова.

Please Log in or Create an account to join the conversation.

More
10 years 8 months ago - 10 years 8 months ago #3025 by Андрей Кривошеин
Честно говоря не понятно... Возможно сам вопрос не ясный. Расскажу более развернуто:
1) В материалах я использую стандартные ссылки Joomla 3 clip2net.com/s/ib2Ncu
2) в шаблоне они выводятся при помощи подключения файла шаблона <?php echo $this->loadTemplate('links'); ?>

Как мне подключать мои ссылки с использованием этого плагина?
{jllikelock}<?php echo $this->loadTemplate('links'); ?>{/jllikelock} естественно не работает
Last edit: 10 years 8 months ago by Андрей Кривошеин.

Please Log in or Create an account to join the conversation.

  • JoomLine
  • JoomLine 's Avatar
  • Visitor
10 years 8 months ago - 10 years 8 months ago #3026 by JoomLine
$this->loadTemplate('links') = str_replace('str_replace',$var_text,$this->item->text); - это вставить в переопределенный шаблон материалов.
/templates/ваш шаблон/html/com_content/article/default.php
{jllikelock}str_replace{/jllikelock} - это вставить непосредственно в редактор в материале.
По идее должно работать...
Last edit: 10 years 8 months ago by JoomLine .

Please Log in or Create an account to join the conversation.

More
10 years 8 months ago - 10 years 8 months ago #3027 by Андрей Кривошеин
Нет, вставляю $this->loadTemplate('links') = str_replace('str_replace',$var_text,$this->item->text); - выводится белый экран...

К тому же, в данном случае мне придется в каждом материале указывать вывод ссылок, что очень хлопотно :(

Возникла такая идея:
1) В шаблоне материала подключаем файл плагина, который будет прятать наши ссылки
2) В этом файле плагина, мы подключаем файл ссылок и соответствующую вёрстку
3) Включаем в настройках автодобавление и делаем, что бы оно не прятало текст, только выводила ссылки в конце материала.

Понимаю, что потом нельзя будет прятать отдельный текст - что ж... Я готов пожертвовать этим, т.к. покупал плагин именно для ссылок
Last edit: 10 years 8 months ago by Андрей Кривошеин.

Please Log in or Create an account to join the conversation.

  • JoomLine
  • JoomLine 's Avatar
  • Visitor
10 years 8 months ago - 10 years 8 months ago #3028 by JoomLine
Не будет работать так как шаблон материала вызывается по другому событию нежели материал. Внес в трекер задач на развитие.
Но рекомендую вам создать еще дополнительно тикет с запросом такой функции joomline.net/helpdesk.html.
Last edit: 10 years 8 months ago by JoomLine .

Please Log in or Create an account to join the conversation.

Powered by Kunena Forum

Last from the forum

    • web design inspiration
    •   In it for the long run, during 2024 Nexon has taken the web3 extension of its MapleStory IP not just wider, but also deeper. Garnering 400,000 users during a single day in its latest MapleStory N playtest showcases Nexon’s growing understanding on sustainable ecosystem building. The release of its NXPC token model makes MapleStory Universe users even more excited about where the project is heading as we’re on the verge of a new year.
    • In Component / JL TV
    • luxury timepieces
    • One day, a monkey drove his car near a lake. Sudden, he saw a tiger under a tree. The tiger saw him, too. The tiger ran very fast at the monkey. The monkey was very afraid and he and his car fell into the lake. The monkey couldn't swim and he shouted. A rabbit came and he jumped into the lake. The abbit swam to the monkey but did not help him. Both of them shouted forhelp. Luckily, a giraffe came along. He was very tall. He helped the rabbit and the monkey.  
    • In Component / Afisha Joomla
    • E-Commerce Point of sales system
    • One day, a monkey drove his car near a lake. Sudden, he saw a tiger under a tree. The tiger saw him, too. The tiger ran very fast at the monkey. The monkey was very afraid and he and his car fell into the lake. The monkey couldn't swim and he shouted. A rabbit came and he jumped into the lake. The abbit swam to the monkey but did not help him. Both of them shouted forhelp. Luckily, a giraffe came along. He was very tall. He helped the rabbit and the monkey.  
    • In Component / Afisha Joomla
© 2010- JoomLine
The Joomla!® name is used under a limited license from Open Source Matters in the United States and other countries. joomline.net is not affiliated with or endorsed by Open Source Matters or the Joomla! Project.

email: This email address is being protected from spambots. You need JavaScript enabled to view it.