Jump to content
View in the app

A better way to browse. Learn more.

IPBMafia.ru - поддержка Invision Community, релизы, темы, плагины и приложения

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

RSS последних тем

Featured Replies

Posted

Привет всем.
Не нашел нужной темы.
Хочу вывести ленту последних тем на сайт с аватаром пользователя.
1807078527_.png.966c021bd320753f976137b1b31c802b.png
Получается вывести тему, без аватара. есть ли какие настройки к данному плагину?
использую последнюю IPB.

  • Author
22 минуты назад, by_ix сказал:

а на скрине что тогда? как хотите или как есть? 

Хочу так как на скрине. получается вывести только без аватарки автора

  • Author
5 часов назад, by_ix сказал:

в стандартных виджетах тем и сообщений уже есть аватарки же. 

Это какой то отдельный виджет ? Я знаю что RSS лентой выводится последние темы.

  • Author

Да, эта я знаю, выводится в блок на форуме, а мне нужно на сторонний сайт, есть лента RSS я ее активировал 
странно вот что. 
Я со стороннего  сайта вставил RSS к себе на сайт, отображается в таком виде. ( у меня стоит код в стилях, что бы добавляла картинку к теме ) можно не обращать внимания.
Screenshot_3.png.b97ac2f257fc220001fdbe575d9a1556.png

на другом сайте где я это собственно и увидел, выводит как положено на каждую тему своя авторская картинка.

909307027_.png.e18a48136c78beabf6f0ab12e1dfc4af.png

 

Вроде в содержании ( настройки Блока) есть упоминания про userPhoto .

Screenshot_2.png.11fa24ebb7a7069f01aa40cdba3f8ba1.png

Это PHP с сайта который выводит RSS в летну.

<?php
class Forum extends Widget
{

    public function __construct()
    {
        parent::__construct(__CLASS__);
    }
    public function Main()
    {
        if($this->CheckCache(__CLASS__))
            return $this->GetCache(__CLASS__);

        $ResultArr = array();
        if (@fopen($this->Config['Link'], "r")) {
            $forum = simplexml_load_file($this->Config['Link']);

            $i=0;
            foreach ($forum->channel->item as $article) {
                if ($i == $this->Config['CountPost'])
                    break;
                /*foreach ($article as $key => $art_property)
                    $ResultArr[$i][$key] = $art_property;*/

                $ResultArr[$i]['title'] = $article->title;
                $ResultArr[$i]['link'] = $article->link;
                $ResultArr[$i]['date'] = $article->pubDate;

                if (property_exists($article, 'author' ))
                    $ResultArr[$i]['author'] = $article->author;
                $i++;
            }
        }

        $content = $this->render("Forum.tpl", $ResultArr);
        $this->WriteCache(__CLASS__, $content);
        return $content;
    }

}

 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Ответить в этой теме...

Последние посетители 0

  • No registered users viewing this page.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.