Как изменить путь для картинок?

More
9 years 6 months ago #4965 by Денис
Здравствуйте. Помогите решить проблему. При использовании плагина он не отображает картинки (точнее только после обновления страницы), т.к. где то прописан путь

сайт.ru/категория/images/avtor-saita/avtor-saita1.jpg

А у меня картинки не хранятся в папках с названиями категорий. В моем случае я хочу чтобы плагин ловил такой путь

сайт.ru/images/avtor-saita/avtor-saita1.jpg

Если я создаю папку с названием категории, и кидаю туда картинку то всё работает сразу.

Что нужно изменить, чтобы работало как нужно? Или прийдётся ради этого плагина переделывать пути к картинкам в 20 статьях. А это совсем не круто... :(

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

More
9 years 6 months ago #4966 by JoomLine
Я не совсем понял суть проблемы, но из описания могу предположить, что в статье указаны пути images/avtor-saita/avtor-saita1.jpg, в то время как корректный путь будет /images/avtor-saita/avtor-saita1.jpg из-за этого берется путь относительно раздела а не относительно корня сайта.
Но это я так понял, только не понял причем здесь плагин JL Social Interlock?

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

More
9 years 6 months ago - 9 years 6 months ago #4967 by Денис
1. Создаю материал и вставляю нужную картинку из категории.

2. Ставлю в материале социальный замок на фрагмент с картинкой.
Last edit: 9 years 6 months ago by Денис. Reason: 123

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

More
9 years 6 months ago #4968 by Денис
3. Убеждаюсь, что социальный замок сработал.

4. Делаю реост для открытия замка

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

More
9 years 6 months ago #4969 by Денис
5. Картинка не отобразилась

6. Смотрю ссылку на картинку, и понимаю что она неправильная

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

More
9 years 6 months ago #4970 by Денис

7. Нажимаю F5 и обновляю страничку...картинка появилась, и путь стал правильным

8. Так вот вопрос, как сделать, чтобы картинки в материале отображались сразу...без обновления страницы.
P.S. спасибо, что откликнулись на мою проблему! Заранее благодарен Вам за ответ

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

More
9 years 6 months ago #4971 by Денис
Причём если по вашему совету я добавляю в первом скриншоте к ссылке на картинку слэш...всё срабатывает. Но можно ли это поправить, где то в плагине? А то не совсем удобно работать таким образом

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

More
9 years 6 months ago #4972 by Денис
Постарался расписать наиболее подробно

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

More
9 years 6 months ago - 9 years 6 months ago #4973 by JoomLine
Попробуйте следующее:
В файле configuration.php
найдите строку:
public $live_site = '';
В ней пропишите адрес своего сайта выглядеть это должно вот так:
public $live_site = 'http://site.ru/';
После этого в html вашего сайта должна появиться вот такая строчка:
<base href="http://site.ru/" />
Теоретически это должно помочь от проблем с определением корня сайта.

Но хочу заметить, что это не проблема плагина, а проблема редактора и особенностей рендеринга страниц браузера.
Last edit: 9 years 6 months ago by JoomLine.
The following user(s) said Thank You: Денис

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

More
9 years 6 months ago #4974 by Денис
К сожалению не помогло, ну да ладно. Раз проблема не плагина, то тему можно закрыть. Огромное Вам спасибо за ответы!

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

More
9 years 6 months ago #4975 by JoomLine
еще один вопрос приведите страницу вашего сайт с замком и картинкой... мне надо понять у вас шифруется код страницы или нет, чтоб более попробовать моделировать эту проблему на тестовом сайте.

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

More
Powered by Kunena Forum

Last from the forum

    • чет не работает
    • You may have heard about the for a while now, but you still don't dare to visit them. It is time for you to lose your fear of these prostitute websites. Take your mobile phone, and visit it now. The escorts are local prostitutes you can access for a minimum amount.
    • In Component / Yandex Market XML
    • After searching the house and finding nothing,
    • One day, a curious boy named Sam moved into the house with his family. As he explored the property, he noticed a rusty, old key lying under a bush. Sam picked it up, wondering what it might unlock. After searching the house and finding nothing, Sam decided to try the key on the garden gate. To his surprise, the key fit perfectly. With a turn of the key and a creak of the hinges, the gate slowly swung open. Inside the garden, Sam was greeted by a sight of wonder. The garden was overgrown but full of vibrant flowers, exotic plants, and a small, sparkling pond. In the middle of the garden stood a beautiful stone statue of a unicorn. As Sam explored further, he discovered a small plaque next to the statue. It read: "To whoever finds this garden, may you always find joy in the beauty of nature and the magic of discovery." Sam spent hours in the garden, exploring every corner and marveling at the hidden beauty. The garden seemed to have a magical quality that made Sam feel at peace and incredibly happy. From that day on, Sam made it a habit to visit the garden every day, taking care of it and sharing its beauty with his friends and family. The once-forgotten garden became a place of joy and wonder for everyone who visited. And so, Sam learned that sometimes, the greatest treasures are not just the secrets we uncover but the beauty and joy we find in them
    • In Component / Afisha Joomla
    • search engine optimization
    • One crisp autumn afternoon, while playing near the house, Emma noticed something shiny half-buried in the dirt. She dug it up and found an old, ornate key with intricate designs. Excited, she wondered what it might open. With the key clutched tightly in her hand, she approached the old house. The door creaked open with surprising ease, and Emma stepped inside. The interior was just as dusty as the outside, but it had an air of mystery. She wandered through the rooms, discovering old furniture and forgotten toys. Each room told a story of a family that had once lived there long ago. As she explored, Emma came upon a small, locked chest in the corner of one room. Her heart raced as she inserted the key into the lock. With a satisfying click, the chest opened to reveal a collection of old photographs, letters, and a beautiful, hand-carved wooden box. Inside the wooden box was a small locket. When Emma opened it, she saw a picture of a young girl who looked strikingly similar to herself. Beside the locket was a letter addressed to "The Finder of the Key." The letter explained that the house had belonged to a family who had to leave quickly many years ago, leaving behind their cherished belongings. The letter's writer was the young girl’s great-grandparent, and the locket was a family heirloom meant to be passed down. Emma's heart swelled with joy as she realized that she had discovered a piece of her own history. She decided to bring the locket and the other treasures to her parents. They were amazed and touched by the find, and they decided to restore the old house, making it a special place to remember their family’s history. From that day on, the house was no longer forgotten. It became a cherished part of the town, where Emma and her family would often visit, sharing stories of the past and making new memories. And so, the little girl with the curious heart had not only uncovered a hidden treasure but had also brought new life to a piece of history, all with a simple, forgotten key.
    • In Component / JL TV
© 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.