1. Рады видеть Вас на русскоязычном форуме TeamSpeak!

    У нас Вы можете скачать последнюю версию:

    Перед регистрацией рекомендуем ознакомиться

    с Правилами форума.

    Присоединяйтесь! Учите и обучайтесь!

    Скрыть объявление
  2. Новая группа "Новичок" на нашем форуме!

    Новые пользователи будут попадать в группу "Новичок".

    Это сделано для того чтобы "Новички" ознакомились с форумом, так как в большинстве случаев проблема с которой вы хотите обратиться уже обсуждалась.

    Перейти в тему обсуждения
    Быстрый переход в группу Пользователь
  3. VPS/VDS и дедикейт сервера в аренду с DDoS защитой

    • Низкий пинг
    • Действующий SLA
    • Рублевые цены без привязки к курсу валют

    Бесплатный тестовый период VPS-OpenVZ

    Попробовать

RSS2Teamspeak3

Тема в разделе "Корзина", создана пользователем PaCTaIcon, 5 сен 2010.

Статус темы:
Закрыта.
  1. PaCTa

    PaCTaIcon TeamSpeak Addic Администратор

    Регистрация:
    15 ноя 2007
    Сообщения:
    1.231
    Симпатии:
    325
    Баллы:
    898
    128x128.png

    RSS2Teamspeak is a small PHP command line script that is supposed to run with cron to push RSS feeds into Teamspeak 3 channels. It uses and needs MagpieRSS as RSS library and the TS3 PHP Framework to connect to the TS3 server. Features include caching through MagpieRSS, remembering already posted articles through the pubDate and the GUID and posting a feed to one or more channels or to all logged in users.

    Installation

    • Download RSS2TS3, MagpieRSS and TS3 PHP Framework (or get Magpie it through your distributions package management) and extract all archives.
    • Open rss2ts3.php with an editor. You need to adjust at least the following settings:
      • Teamspeak server settings ($config['ts'])
      • Path to the libraries below the teamspeak settings
    • RSS feeds are set up in the $config['feeds'] array. So the first feed is in $config['feeds'][0], the second in $config['feeds'][1] and so on...
      // feed url
      $config['feeds'][0]['url'] = "http://rss.kicker.de/news/aktuell";
      // the channel ids to send the message to. For example to
      // send the feed posts to channels 12 and 19, use the
      // following setting:
      // $config['feeds'][0]['cid'] = array(12, 19);
      $config['feeds'][0]['cid'] = array(38, 18);
      // if set true, instead of sending the message to the
      // channels, send it to all connected clients.
      $config['feeds'][0]['allclients'] = true;
    • If you leave the username and password section empty, you most likely won't have enough rights to send messages to the whole server, check the FAQ below. (Depends on your server setup...)
    • Last but not least you'll need to setup a cron job that runs the script periodicly. (On windows or mac you might need to do something different, if you figure it out, I would appreciate a comment.)
      For me the following job works, running the script every 15 minutes:
      */15 * * * * php /home/lenfers/kram/apps/rss2ts3.php
    F.A.Q.

    • I've got a webserver with PHP. What do I need to do to run RSS2TS3?
      I wrote the script as a command line tool, it isn't supposed to run through a webserver and present output there. Maybe someone finds a solution for users on webhosters. If you can define cron jobs in your package, you should be good by following the instructions above.
    • TS3 has no username/password pairs. Where do I get the username and password for RSS2TS3?
      You can create new server query users as described here.
    • I created a user as described above, but I still cannot send messages to the whole server.
      Thats most likely because your user doesn't have the b_client_server_textmessage_send b_client_channel_textmessage_send permissions set.
     

    Вложения:

Статус темы:
Закрыта.
Загрузка...