Перейти к содержанию

stels

Пользователи
  • Постов

    3
  • Зарегистрирован

  • Посещение

Сообщения, опубликованные stels

  1. Просмотрел всю тему и не нашел ответа. Как в этом редакторе можно добавлять скрытый текст от гостей, а зарегистрированные что-бы могли видеть.

    За раннее благодарен.

  2. Подробное описание установки и настройки, читайте внимательно и у Вас все получится.
     
    1. Обязательно удаляем Ip.Content если он был установлен.
    2. Я буду описывать в режиме реального времени-Устанавливаю пишу сюда.
     
    Первый этап установки:
    1. Заливаем файлы из папки upload в корневую директорию форума, которая находится в архиве скачаного с этого форума.
     
    Второй этап установки:
    1. Переходим в Ац-Приложения- управление приложениями.
    2. Видим справа Content
    3. Жмем установить.
    4. Ждем когда установится.
     
    Третий этап установки: 
    Обращаю ваше внимание на то, что установка еще не завершена!
    1. Переходим на сам форум- Жмем PAGES
    2. Я вижу что у меня всё работает. 
    Обращаю Ваше внимание: Это описание установки на чистый форум.
     
    Четвертый этап установки: делаем Content главной страницей
    (Обратите внимание, это не обязательно, но рекомендуется).
    Если у вас форум расположен на Ваш домен.ru тогда мы создадим папку /forum последствием ЧПУ.
    1.Проходим /admin/applications/forums/extensions/furlTemplates.php
    2. Заменяем всё-всё содержимое сего чуда на
    <?php
    /**
    * <pre>
    * Invision Power Services
    * IP.Board v3.2.3
    * Sets up SEO templates
    * Last Updated: $Date: 2011-08-02 15:53:39 -0400 (Tue, 02 Aug 2011) $
    * </pre>
    *
    * @author $Author: bfarber $
    * @copyright © 2001 - 2009 Invision Power Services, Inc.
    * @license __www.invisionp...
    * @package IP.Board
    * @subpackage Forums
    * @link __www.invisionp...
    * @since 20th February 2002
    * @version $Rev: 9351 $
    *
    */
    if ( ! defined( 'IN_IPB' ) )
    {
    print "<h1>Incorrect access</h1>You cannot access this file directly. If you have recently upgraded, make sure you upgraded all the relevant files.";
    exit();
    }
    /**
    * SEO templates
    *
    * 'allowRedirect' is a flag to tell IP.Board whether to check the incoming link and if not formatted correctly, redirect the correct one
    *
    * OUT FORMAT REGEX:
    * First array element is a regex to run to see if we've a match for the URL
    * The second array element is the template to use the results of the parenthesis capture
    *
    * Special variable #{__title__} is replaced with the $title data passed to output->formatUrl( $url, $title)
    *
    * IMPORTANT: Remember that when these regex are used, the output has not been fully parsed so you will get:
    * showuser={$data['member_id']} NOT showuser=1 so do not try and match numerics only!
    *
    * IN FORMAT REGEX
    *
    * This allows the registry to piece back together a URL based on the template regex
    * So, for example: "/user/(d+?)/", 'matches' => array( array( 'showuser' => '$1' ) )tells IP.Board to populate 'showuser' with the result
    * of the parenthesis capture #1
    */
    $_SEOTEMPLATES = array(
    
    'showannouncement'     => array( 'app'     => 'forums',
             'allowRedirect' => 1,
             'out'         => array( '#showannouncement=(.+?)((?:&|&)f=(.+?))?(&|$)#i', 'forums/forum-$3/announcement-$1-#{__title__}/$4' ),
             'in'         => array( 'regex' => '#/forums/forum-(d+?)?/announcement-(d+?)-#i',
                     'matches' => array( array( 'showannouncement', '$2' ), array( 'f', '$1' ) ) ) ),
                
    'showforum'     => array( 'app'     => 'forums',
             'allowRedirect' => 1,
             'out'         => array( '#showforum=(.+?)(&|$)#i', 'forums/forum/$1-#{__title__}/$2' ),
             'in'         => array( 'regex' => '#^/forums/forum/(d+?)-#i',
                     'matches' => array( array( 'showforum', '$1' ) ) ) ),
    'showtopicunread'=> array( 'app'     => 'forums',
             'allowRedirect' => 1,
             'out'             => array( '#showtopic=(.+?)(?:&|&)view=getnewpost(&|$)#i', 'forums/topic/$1-#{__title__}/unread/$2' ),
             'in'             => array( 'regex' => '#^/forums/topic/(d+?)-([^/]+?)/unread(/|$)#i',
                         'matches' => array( array( 'showtopic', '$1' ),
                     array( 'view', 'getnewpost' ) ) ) ),
                    
    'showtopicnextunread'=> array( 'app'     => 'forums',
             'allowRedirect' => 1,
             'out'             => array( '#showtopic=(.+?)(?:&|&)view=getnextunread(&|$)#i', 'forums/topic/$1-#{__title__}/nextunread/$2' ),
             'in'             => array( 'regex' => '#^/forums/topic/(d+?)-([^/]+?)/nextunread(/|$)#i',
                             'matches' => array( array( 'showtopic', '$1' ),
                         array( 'view', 'getnextunread' ) ) ) ),
    'showtopic'     => array( 'app'     => 'forums',
             'allowRedirect' => 1,
             'out'         => array( '#showtopic=(.+?)(&|$)#i', 'forums/topic/$1-#{__title__}/$2' ),
             'in'         => array( 'regex' => '#^/forums/topic/(d+?)-#i',
                     'matches' => array( array( 'showtopic', '$1' ) ) ) ),
    'acteqst'     => array( 'app'     => 'forums',
             'allowRedirect' => 1,
             'out'         => array( '#act=ST(.*?)&t=(.+?)(&|$)#i', 'forums/topic/$2-#{__title__}/$3' ),
             'in'         => array( 'regex' => '#^notavalidrequest$#i',
                     'matches' => array( array( 'showtopic', '0' ) ) ) ),
        
    'act=idx'     => array( 'app'     => 'forums',
             'allowRedirect' => 0,
             'out'         => array( '#act=idx(&|$)#i', 'forums/$1' ),
             'in'         => array( 'regex' => '#^/forums(/|$|?)#i',
                     'matches' => array( array( 'act', 'idx' ) ) ) ),
    );
    
    А теперь самое интересное, делаем главную страницу.
    В indata.php
    ищем:
    if ( ! defined( 'IPS_DEFAULT_PUBLIC_APP' ) )
    {
    define( 'IPS_DEFAULT_PUBLIC_APP', 'forums' );
    }
    

    Заменяем на:

    if ( ! defined( 'IPS_DEFAULT_PUBLIC_APP' ) )
    {
    define( 'IPS_DEFAULT_PUBLIC_APP', 'ccs' );
    }
    
    Очищаем кеш, обновляем ЧПУ.
     
    Теперь желающие делают вкладку Pages первой.
    1.  Проходим AЦ - Внешний вид - стиль - Шаблоны - globalTemplate
    2.  Ищем:
    <if test="showhomeurl:|:$this->settings['home_url'] AND $this->settings['home_name']">
         <li id='nav_home' class='left'><a href='{$this->settings['home_url']}' title='{$this->lang->words['homepage_title']}' rel="home">{$this->settings['home_name']}</a></li>
    </if>
    

    3.Заменяем на:

    {parse variable="ccsActive" default="" oncondition="IPS_APP_COMPONENT == 'ccs'" value="active"}
         <li id='nav_ccs' class='left {parse variable="ccsActive"}'><a href='{$this->settings['home_url']}' title='{$this->lang->words['homepage_title']}' rel="home">{$this->settings['home_name']}</a></li>
    
    После всех проделанных операций в настройках этого компонента в пункте показать страницы, ставим НЕТ.
    Вот и все, наслаждаемся...
×
×
  • Создать...