X   Сообщение сайта
(Сообщение закроется через 3 секунды)



 

Здравствуйте, гость (

| Вход | Регистрация )

Открыть тему
Тема закрыта
> Отображение ссылки в IPB 3
gemkeepers
gemkeepers
Topic Starter сообщение 12.6.2011, 22:19; Ответить: gemkeepers
Сообщение #1


Здравствуйте, английская поддержка разводит руки и не знает как убрать эту "дэбильную" систему создания ссылок. При создании любого топика в УРЛ содержится название топика русскими буквами. Копируя ссылку куда-либо, получается целый параграф с процентами и прочим. Как сделать простое, или другое отображение ссылок?
0
Вернуться в начало страницы
 
Ответить с цитированием данного сообщения
MacLeo
MacLeo
сообщение 12.6.2011, 22:32; Ответить: MacLeo
Сообщение #2


В файле initdata.php находим :
define( 'IPB_USE_SEO_TRANSLIT', FALSE );

define( 'IPB_USE_ONLY_ID_FURL', FALSE );

И значение FALSE заменяем на значение TRUE ,т.е приводим к такому виду :

define( 'IPB_USE_SEO_TRANSLIT', TRUE );

define( 'IPB_USE_ONLY_ID_FURL', TRUE );

Теперь мы имеем такие урлы : /topic/473-konkurs-dizainerov/
Вернуться в начало страницы
 
Ответить с цитированием данного сообщения
gemkeepers
gemkeepers
Topic Starter сообщение 13.6.2011, 0:05; Ответить: gemkeepers
Сообщение #3


(MacLeo @ 12.6.2011, 22:32) *
В файле initdata.php находим :
define( 'IPB_USE_SEO_TRANSLIT', FALSE );

define( 'IPB_USE_ONLY_ID_FURL', FALSE );

И значение FALSE заменяем на значение TRUE ,т.е приводим к такому виду :

define( 'IPB_USE_SEO_TRANSLIT', TRUE );

define( 'IPB_USE_ONLY_ID_FURL', TRUE );

Теперь мы имеем такие урлы : /topic/473-konkurs-dizainerov/



Такого нет.

<?php

/**
* <pre>
* Invision Power Services
* IP.Board v3.1.4
* INIT File - Sets up globals
* Last Updated: $Date: 2010-10-27 17:31:21 -0400 (Wed, 27 Oct 2010) $
* </pre>
*
* @author         $Author: bfarber $
* @copyright    (c) 2001 - 2008 Invision Power Services, Inc.
* @license        http://www.invisionpower.com/community/board/license.html
* @package        IP.Board
* @link        http://www.invisionpower.com
* @version        $Rev: 7058 $
*
*/

if ( @function_exists( 'memory_get_usage' ) )
{
    define( 'IPS_MEMORY_START', memory_get_usage() );
}

//--------------------------------------------------------------------------
// USER CONFIGURABLE ELEMENTS: FOLDER AND FILE NAMES
//--------------------------------------------------------------------------

/**
* CP_DIRECTORY
*
* The name of the CP directory
* @since 2.0.0.2005-01-01
*/
define( 'CP_DIRECTORY', 'admin' );

/**
* PUBLIC_DIRECTORY
*
* The name of the public directory
*/
define( 'PUBLIC_DIRECTORY', 'public' );

/**
* Default app name
* You can set this in your own scripts before 'initdata.php' is required.
*/
if ( ! defined( 'IPS_DEFAULT_PUBLIC_APP' ) )
{
    define( 'IPS_DEFAULT_PUBLIC_APP', 'forums' );
}

/**
* PUBLIC SCRIPT
*/
if ( ! defined( 'IPS_PUBLIC_SCRIPT' ) )
{
    define( 'IPS_PUBLIC_SCRIPT', basename( $_SERVER['SCRIPT_NAME'] ) );
}

//--------------------------------------------------------------------------
// USER CONFIGURABLE ELEMENTS: MAIN PATHS
//--------------------------------------------------------------------------

/**
* "PUBLIC" ROOT PATH
*/
define( 'DOC_IPS_ROOT_PATH', str_replace( "\\", "/", dirname( __FILE__ ) ) . '/' );

/**
* "ADMIN" ROOT PATH
*/
define( 'IPS_ROOT_PATH', DOC_IPS_ROOT_PATH . CP_DIRECTORY . "/" );

//--------------------------------------------------------------------------
// USER CONFIGURABLE ELEMENTS: OTHER PATHS
//--------------------------------------------------------------------------

/**
* PUBLIC PATH
*/
define( 'IPS_PUBLIC_PATH', DOC_IPS_ROOT_PATH . PUBLIC_DIRECTORY . '/' );

/**
* IPS KERNEL PATH
*/
define( 'IPS_KERNEL_PATH', DOC_IPS_ROOT_PATH . 'ips_kernel/' );

/**
* Custom log in path
*/
define( 'IPS_PATH_CUSTOM_LOGIN' , IPS_ROOT_PATH.'sources/loginauth' );

/**
* HOOKS PATH
*/
define( 'IPS_HOOKS_PATH'       , DOC_IPS_ROOT_PATH . 'hooks/' );

@set_include_path( @get_include_path() . PATH_SEPARATOR . IPS_KERNEL_PATH );

//--------------------------------------------------------------------------
// USER CONFIGURABLE ELEMENTS: USER LOCATION
//--------------------------------------------------------------------------

if( preg_match( "#/" . CP_DIRECTORY . "(/|$)#", $_SERVER['PHP_SELF'] ) )
{
    define( 'IPS_AREA', 'admin' );
}
else
{
    define( 'IPS_AREA', 'public' );
}

define( 'IN_ACP', IPS_AREA == 'public' ? 0 : 1 );

/**
* Default Application if one is not specified in the URL / POST, etc
*
*/
if ( ! defined( 'IPS_DEFAULT_APP' ) )
{
    define( 'IPS_DEFAULT_APP', ( IPS_AREA == 'public' ) ? IPS_DEFAULT_PUBLIC_APP : 'core' );
}

//--------------------------------------------------------------------------
// ADVANCED CONFIGURATION: DEBUG
//--------------------------------------------------------------------------

/**
* TOPIC MARKING DEBUG MODE
*
* Turns on topic marking debugging mode. This is NOT recommended
* in a production environment due to additional writes
* @since 2.2.0.2006-11-06
*/
define( 'IPS_TOPICMARKERS_DEBUG', FALSE );

/* Enter any groups or member IDs you want to trace like:
* groups=4,1&ids=345,32,65
*/
define( 'IPS_TOPICMARKERS_TRACE', '' );

/**
* E_NOTICE / E_ALL Debug mode
* Can capture and / or log php errors to a file (cache/phpNotices.cgi)
* use 'TRUE' to capture all or enter comma sep. list of classes to capture, like
* define( 'IPS_ERROR_CAPTURE', 'classItemMarking,publicSessions' );
* Set to 'FALSE' for off
*/
define( 'IPS_ERROR_CAPTURE', FALSE );//'classItemMarking,publicSessions' );

/**
* SQL DEBUG MODE
*
* Turns on SQL debugging mode. This is NOT recommended
* as it opens your board up to potential security risks
* @since 2.2.0.2006-11-06
*/
define( 'IPS_SQL_DEBUG_MODE', 0 );

/**
* SQL LOG FILESORT or TEMP TABLES MODE
*
* Logs all queries using filesort and/or temp tables
*/
define( 'IPS_SQL_FIND_EVIL_MODE', false );

/**
* SQL FIND SLOW QUERIES MODE
*
* Logs all queries that take longer than X seconds (0.1), etc
*/
define( 'IPS_SQL_FIND_SLOW_MODE', false );

/**
* MEMORY DEBUG MODE
*
* Turns on MEMORY debugging mode. This is NOT recommended
* as it opens your board up to potential security risks
* @since 2.2.0.2006-11-06
*/
define( 'IPS_MEMORY_DEBUG_MODE', 0 );

if ( ! defined( 'IPS_LOG_ALL' ) )
{
    /*
    * Write to a general debug file?
    * IP.Board has debug messages that are sent to the log.
    * The log file will fill VERY quickly, so leave this off unless you
    * are debugging, etc
    */
    define( 'IPS_LOG_ALL', FALSE );
}

if ( ! defined( 'IPS_XML_RPC_DEBUG_ON' ) )
{
    /**
    * Write to debug file?
    * Enter relative / full path into the constant below
    * Remove contents to turn off debugging.
    * WARNING: If you are passing passwords and such via XML_RPC
    * AND wish to debug, ensure that the debug file ends with .php
    * to prevent it loading as plain text via HTTP which would show
    * the entire contents of the file.
    * @since 2.2.0.2006-11-06
    */
    define( 'IPS_XML_RPC_DEBUG_ON'  , 0 );
    define( 'IPS_XML_RPC_DEBUG_FILE', str_replace( "\\", "/", dirname( __FILE__ ) ) ."/" . 'cache/xmlrpc_debug_ipboard.cgi' );
}

//--------------------------------------------------------------------------
// ADVANCED CONFIGURATION: ACP
//--------------------------------------------------------------------------

/**
* Allow IP address matching when dealing with ACP sessions
* @since 2.2.0.2006-06-30
*/
define( 'IPB_ACP_IP_MATCH', 1 );

/**
* Number of minutes of inactivity in ACP before you are timed out
* @since 3.0.0
*/
define( 'IPB_ACP_SESSION_TIME_OUT', 60 );

/**
* Use GZIP page compression in the ACP
* @since 2.2.0.2006-06-30
*/
if( !@ini_get('zlib.output_compression') )
{
    define( 'IPB_ACP_USE_GZIP', 1 );
}
else
{
    define( 'IPB_ACP_USE_GZIP', 0 );
}

//--------------------------------------------------------------------------
// ADVANCED CONFIGURATION: MISC
//--------------------------------------------------------------------------

/**
* USE SHUT DOWN
*
* Enable shut down features?
* Uses PHPs register_shutdown_function to save
* low priority tasks until end of exec
* @since 2.0.0.2005-01-01
*/
define( 'IPS_USE_SHUTDOWN', IPS_AREA == 'public' ? 1 : 0 );

/**
* Allow UNICODE
*/
define( 'IPS_ALLOW_UNICODE', 1 );

/**
* Time now stamp
*/
define( 'IPS_UNIX_TIME_NOW', time() );

/* Min PHP version number */
define( 'MIN_PHP_VERS', '5.1.0' );

//--------------------------------------------------------------------------
// ADVANCED CONFIGURATION: MAGIC QUOTES
//--------------------------------------------------------------------------

@set_magic_quotes_runtime(0);

define( 'IPS_MAGIC_QUOTES', @get_magic_quotes_gpc() );

//--------------------------------------------------------------------------
// ADVANCED CONFIGURATION: ERROR REPORTING
//--------------------------------------------------------------------------

if( version_compare( PHP_VERSION, '5.2.0', '>=' ) )
{
    error_reporting( E_STRICT | E_ERROR | E_WARNING | E_PARSE | E_RECOVERABLE_ERROR | E_COMPILE_ERROR | E_USER_ERROR | E_USER_WARNING );
}
else
{
    error_reporting( E_STRICT | E_ERROR | E_WARNING | E_PARSE | E_COMPILE_ERROR | E_USER_ERROR | E_USER_WARNING );
}

//--------------------------------------------------------------------------
// XX NOTHING USER CONFIGURABLE XX NOTHING USER CONFIGURABLE XX
//--------------------------------------------------------------------------

/**
* IN IPB
*/
define( 'IN_IPB', 1 );

/**
* SAFE MODE
*/
if ( IPS_AREA != 'public' )
{
    if ( function_exists('ini_get') )
    {
        $test = @ini_get("safe_mode");

        define( 'SAFE_MODE_ON', ( $test === TRUE OR $test == 1 OR $test == 'on' ) ? 1 : 0 );
    }
    else
    {
        define( 'SAFE_MODE_ON', 1 );
    }
}
else
{
    define( 'SAFE_MODE_ON', 0 );
}

//--------------------------------------------------------------------------
// NON-CONFIGURABLE: Attempt to sort out some defaults
//--------------------------------------------------------------------------

if ( @function_exists("set_time_limit") == 1 and SAFE_MODE_ON == 0 )
{
    if ( ( defined('IPS_IS_SHELL') AND IPS_IS_SHELL ) OR ( IPS_AREA != 'public' ) )
    {
        @set_time_limit(0);
    }
}

/**
* Fix for PHP 5.1.x warning
*
* Sets default time zone to server time zone
* @since 2.2.0.2006-05-19
*/
if ( function_exists( 'date_default_timezone_set' ) )
{
    date_default_timezone_set( 'UTC' );
}

//--------------------------------------------------------------------------
// NON-CONFIGURABLE: Global Functions
//--------------------------------------------------------------------------

/**
* Get an environment variable value
*
* Abstract layer allows us to user $_SERVER or getenv()
*
* @param    string    Env. Variable key
* @return    string
* @since    2.2
*/
function my_getenv($key)
{
    $return = array();

    if ( is_array( $_SERVER ) AND count( $_SERVER ) )
    {
        if( isset( $_SERVER[$key] ) )
        {
            $return = $_SERVER[$key];
        }
    }

    if ( ! $return )
    {
        $return = getenv($key);
    }

    return $return;
}

/**
* json_encode function if not available in PHP
*
* @param    mixed         Anything, really
* @return    string
* @since    3.0
*/
if (!function_exists('json_encode'))
{
    function json_encode( $a, $flag=null )
    {
        require_once( IPS_KERNEL_PATH . 'PEAR/JSON/JSON.php' );

        $json = new Services_JSON();

        return $json->encode( $a );
    }
}

/**
* json_encode function if not available in PHP
*
* @param    mixed         Anything, really
* @return    string
* @since    3.0
*/
if (!function_exists('json_decode'))
{
    function json_decode( $a, $assoc=false )
    {
        require_once( IPS_KERNEL_PATH . 'PEAR/JSON/JSON.php' );

        if ( $assoc === TRUE )
        {
            $json = new Services_JSON( SERVICES_JSON_LOOSE_TYPE );
        }
        else
        {
            $json = new Services_JSON();
        }

        return $json->decode( $a );
    }
}

/**
* Exception error handler
*/
function IPS_exception_error( $error )
{
    @header( "Content-type: text/plain" );
    print $error;
    exit();
}

?>
Вернуться в начало страницы
 
Ответить с цитированием данного сообщения
MacLeo
MacLeo
сообщение 13.6.2011, 0:35; Ответить: MacLeo
Сообщение #4


gemkeepers,
<?php

/**
* <pre>
* Invision Power Services
* IP.Board v3.1.4
* INIT File - Sets up globals
* Last Updated: $Date: 2010-10-27 17:31:21 -0400 (Wed, 27 Oct 2010) $
* </pre>
*
* @author         $Author: bfarber $
* @copyright    (c) 2001 - 2008 Invision Power Services, Inc.
* @license        http://www.invisionpower.com/community/board/license.html
* @package        IP.Board
* @link        http://www.invisionpower.com
* @version        $Rev: 7058 $
*
*/

if ( @function_exists( 'memory_get_usage' ) )
{
    define( 'IPS_MEMORY_START', memory_get_usage() );
}

//--------------------------------------------------------------------------
// USER CONFIGURABLE ELEMENTS: FOLDER AND FILE NAMES
//--------------------------------------------------------------------------

/**
* CP_DIRECTORY
*
* The name of the CP directory
* @since 2.0.0.2005-01-01
*/
define( 'CP_DIRECTORY', 'admin' );

/**
* PUBLIC_DIRECTORY
*
* The name of the public directory
*/
define( 'PUBLIC_DIRECTORY', 'public' );

/**
* Default app name
* You can set this in your own scripts before 'initdata.php' is required.
*/
if ( ! defined( 'IPS_DEFAULT_PUBLIC_APP' ) )
{
    define( 'IPS_DEFAULT_PUBLIC_APP', 'forums' );
}

/**
* PUBLIC SCRIPT
*/
if ( ! defined( 'IPS_PUBLIC_SCRIPT' ) )
{
    define( 'IPS_PUBLIC_SCRIPT', basename( $_SERVER['SCRIPT_NAME'] ) );
}

//--------------------------------------------------------------------------
// USER CONFIGURABLE ELEMENTS: MAIN PATHS
//--------------------------------------------------------------------------

/**
* "PUBLIC" ROOT PATH
*/
define( 'DOC_IPS_ROOT_PATH', str_replace( "\\", "/", dirname( __FILE__ ) ) . '/' );

/**
* "ADMIN" ROOT PATH
*/
define( 'IPS_ROOT_PATH', DOC_IPS_ROOT_PATH . CP_DIRECTORY . "/" );

//--------------------------------------------------------------------------
// USER CONFIGURABLE ELEMENTS: OTHER PATHS
//--------------------------------------------------------------------------

/**
* PUBLIC PATH
*/
define( 'IPS_PUBLIC_PATH', DOC_IPS_ROOT_PATH . PUBLIC_DIRECTORY . '/' );

/**
* IPS KERNEL PATH
*/
define( 'IPS_KERNEL_PATH', DOC_IPS_ROOT_PATH . 'ips_kernel/' );

/**
* Custom log in path
*/
define( 'IPS_PATH_CUSTOM_LOGIN' , IPS_ROOT_PATH.'sources/loginauth' );

/**
* HOOKS PATH
*/
define( 'IPS_HOOKS_PATH'       , DOC_IPS_ROOT_PATH . 'hooks/' );

@set_include_path( @get_include_path() . PATH_SEPARATOR . IPS_KERNEL_PATH );

//--------------------------------------------------------------------------
// USER CONFIGURABLE ELEMENTS: USER LOCATION
//--------------------------------------------------------------------------

if( preg_match( "#/" . CP_DIRECTORY . "(/|$)#", $_SERVER['PHP_SELF'] ) )
{
    define( 'IPS_AREA', 'admin' );
}
else
{
    define( 'IPS_AREA', 'public' );
}

define( 'IN_ACP', IPS_AREA == 'public' ? 0 : 1 );

/**
* Default Application if one is not specified in the URL / POST, etc
*
*/
if ( ! defined( 'IPS_DEFAULT_APP' ) )
{
    define( 'IPS_DEFAULT_APP', ( IPS_AREA == 'public' ) ? IPS_DEFAULT_PUBLIC_APP : 'core' );
}

//--------------------------------------------------------------------------
// ADVANCED CONFIGURATION: DEBUG
//--------------------------------------------------------------------------

/**
* Making FURL Transliteration for russian forums
* @since 3.0.0.ru
*/
define( 'IPB_USE_SEO_TRANSLIT', TRUE );

define( 'IPB_USE_ONLY_ID_FURL', TRUE );


/**
* TOPIC MARKING DEBUG MODE
*
* Turns on topic marking debugging mode. This is NOT recommended
* in a production environment due to additional writes
* @since 2.2.0.2006-11-06
*/
define( 'IPS_TOPICMARKERS_DEBUG', FALSE );

/* Enter any groups or member IDs you want to trace like:
* groups=4,1&ids=345,32,65
*/
define( 'IPS_TOPICMARKERS_TRACE', '' );

/**
* E_NOTICE / E_ALL Debug mode
* Can capture and / or log php errors to a file (cache/phpNotices.cgi)
* use 'TRUE' to capture all or enter comma sep. list of classes to capture, like
* define( 'IPS_ERROR_CAPTURE', 'classItemMarking,publicSessions' );
* Set to 'FALSE' for off
*/
define( 'IPS_ERROR_CAPTURE', FALSE );//'classItemMarking,publicSessions' );

/**
* SQL DEBUG MODE
*
* Turns on SQL debugging mode. This is NOT recommended
* as it opens your board up to potential security risks
* @since 2.2.0.2006-11-06
*/
define( 'IPS_SQL_DEBUG_MODE', 0 );

/**
* SQL LOG FILESORT or TEMP TABLES MODE
*
* Logs all queries using filesort and/or temp tables
*/
define( 'IPS_SQL_FIND_EVIL_MODE', false );

/**
* SQL FIND SLOW QUERIES MODE
*
* Logs all queries that take longer than X seconds (0.1), etc
*/
define( 'IPS_SQL_FIND_SLOW_MODE', false );

/**
* MEMORY DEBUG MODE
*
* Turns on MEMORY debugging mode. This is NOT recommended
* as it opens your board up to potential security risks
* @since 2.2.0.2006-11-06
*/
define( 'IPS_MEMORY_DEBUG_MODE', 0 );

if ( ! defined( 'IPS_LOG_ALL' ) )
{
    /*
    * Write to a general debug file?
    * IP.Board has debug messages that are sent to the log.
    * The log file will fill VERY quickly, so leave this off unless you
    * are debugging, etc
    */
    define( 'IPS_LOG_ALL', FALSE );
}

if ( ! defined( 'IPS_XML_RPC_DEBUG_ON' ) )
{
    /**
    * Write to debug file?
    * Enter relative / full path into the constant below
    * Remove contents to turn off debugging.
    * WARNING: If you are passing passwords and such via XML_RPC
    * AND wish to debug, ensure that the debug file ends with .php
    * to prevent it loading as plain text via HTTP which would show
    * the entire contents of the file.
    * @since 2.2.0.2006-11-06
    */
    define( 'IPS_XML_RPC_DEBUG_ON'  , 0 );
    define( 'IPS_XML_RPC_DEBUG_FILE', str_replace( "\\", "/", dirname( __FILE__ ) ) ."/" . 'cache/xmlrpc_debug_ipboard.cgi' );
}

//--------------------------------------------------------------------------
// ADVANCED CONFIGURATION: ACP
//--------------------------------------------------------------------------

/**
* Allow IP address matching when dealing with ACP sessions
* @since 2.2.0.2006-06-30
*/
define( 'IPB_ACP_IP_MATCH', 1 );

/**
* Number of minutes of inactivity in ACP before you are timed out
* @since 3.0.0
*/
define( 'IPB_ACP_SESSION_TIME_OUT', 60 );

/**
* Use GZIP page compression in the ACP
* @since 2.2.0.2006-06-30
*/
if( !@ini_get('zlib.output_compression') )
{
    define( 'IPB_ACP_USE_GZIP', 1 );
}
else
{
    define( 'IPB_ACP_USE_GZIP', 0 );
}

//--------------------------------------------------------------------------
// ADVANCED CONFIGURATION: MISC
//--------------------------------------------------------------------------

/**
* USE SHUT DOWN
*
* Enable shut down features?
* Uses PHPs register_shutdown_function to save
* low priority tasks until end of exec
* @since 2.0.0.2005-01-01
*/
define( 'IPS_USE_SHUTDOWN', IPS_AREA == 'public' ? 1 : 0 );

/**
* Allow UNICODE
*/
define( 'IPS_ALLOW_UNICODE', 1 );

/**
* Time now stamp
*/
define( 'IPS_UNIX_TIME_NOW', time() );

/* Min PHP version number */
define( 'MIN_PHP_VERS', '5.1.0' );

//--------------------------------------------------------------------------
// ADVANCED CONFIGURATION: MAGIC QUOTES
//--------------------------------------------------------------------------

@set_magic_quotes_runtime(0);

define( 'IPS_MAGIC_QUOTES', @get_magic_quotes_gpc() );

//--------------------------------------------------------------------------
// ADVANCED CONFIGURATION: ERROR REPORTING
//--------------------------------------------------------------------------

if( version_compare( PHP_VERSION, '5.2.0', '>=' ) )
{
    error_reporting( E_STRICT | E_ERROR | E_WARNING | E_PARSE | E_RECOVERABLE_ERROR | E_COMPILE_ERROR | E_USER_ERROR | E_USER_WARNING );
}
else
{
    error_reporting( E_STRICT | E_ERROR | E_WARNING | E_PARSE | E_COMPILE_ERROR | E_USER_ERROR | E_USER_WARNING );
}

//--------------------------------------------------------------------------
// XX NOTHING USER CONFIGURABLE XX NOTHING USER CONFIGURABLE XX
//--------------------------------------------------------------------------

/**
* IN IPB
*/
define( 'IN_IPB', 1 );

/**
* SAFE MODE
*/
if ( IPS_AREA != 'public' )
{
    if ( function_exists('ini_get') )
    {
        $test = @ini_get("safe_mode");

        define( 'SAFE_MODE_ON', ( $test === TRUE OR $test == 1 OR $test == 'on' ) ? 1 : 0 );
    }
    else
    {
        define( 'SAFE_MODE_ON', 1 );
    }
}
else
{
    define( 'SAFE_MODE_ON', 0 );
}

//--------------------------------------------------------------------------
// NON-CONFIGURABLE: Attempt to sort out some defaults
//--------------------------------------------------------------------------

if ( @function_exists("set_time_limit") == 1 and SAFE_MODE_ON == 0 )
{
    if ( ( defined('IPS_IS_SHELL') AND IPS_IS_SHELL ) OR ( IPS_AREA != 'public' ) )
    {
        @set_time_limit(0);
    }
}

/**
* Fix for PHP 5.1.x warning
*
* Sets default time zone to server time zone
* @since 2.2.0.2006-05-19
*/
if ( function_exists( 'date_default_timezone_set' ) )
{
    date_default_timezone_set( 'UTC' );
}

//--------------------------------------------------------------------------
// NON-CONFIGURABLE: Global Functions
//--------------------------------------------------------------------------

/**
* Get an environment variable value
*
* Abstract layer allows us to user $_SERVER or getenv()
*
* @param    string    Env. Variable key
* @return    string
* @since    2.2
*/
function my_getenv($key)
{
    $return = array();

    if ( is_array( $_SERVER ) AND count( $_SERVER ) )
    {
        if( isset( $_SERVER[$key] ) )
        {
            $return = $_SERVER[$key];
        }
    }

    if ( ! $return )
    {
        $return = getenv($key);
    }

    return $return;
}

/**
* json_encode function if not available in PHP
*
* @param    mixed         Anything, really
* @return    string
* @since    3.0
*/
if (!function_exists('json_encode'))
{
    function json_encode( $a, $flag=null )
    {
        require_once( IPS_KERNEL_PATH . 'PEAR/JSON/JSON.php' );

        $json = new Services_JSON();

        return $json->encode( $a );
    }
}

/**
* json_encode function if not available in PHP
*
* @param    mixed         Anything, really
* @return    string
* @since    3.0
*/
if (!function_exists('json_decode'))
{
    function json_decode( $a, $assoc=false )
    {
        require_once( IPS_KERNEL_PATH . 'PEAR/JSON/JSON.php' );

        if ( $assoc === TRUE )
        {
            $json = new Services_JSON( SERVICES_JSON_LOOSE_TYPE );
        }
        else
        {
            $json = new Services_JSON();
        }

        return $json->decode( $a );
    }
}

/**
* Exception error handler
*/
function IPS_exception_error( $error )
{
    @header( "Content-type: text/plain" );
    print $error;
    exit();
}

?>

Поставьте вместо своего
Вернуться в начало страницы
 
Ответить с цитированием данного сообщения
gemkeepers
gemkeepers
Topic Starter сообщение 13.6.2011, 1:05; Ответить: gemkeepers
Сообщение #5


Поставьте вместо своего


Эффекта нет. Может быть ваш IPB был русским? У меня английская тех поддержка, следовательно и форум. Я заменил файл и обновил кеш через админку, создал новую тему - так же.

Сообщение отредактировал gemkeepers - 13.6.2011, 1:06
Вернуться в начало страницы
 
Ответить с цитированием данного сообщения
MacLeo
MacLeo
сообщение 13.6.2011, 2:56; Ответить: MacLeo
Сообщение #6


Ну у меня русская версия, но я думаю сути не меняет, это должно было помочь. Есть еще способ
АЦ > Настройки и инструменты > Системные настройки > Система > Поисковая оптимизация (SEO)
Дружественные URL (ЧПУ):
Тип URL - Запрос
Использовать .htaccess mod_rewrite? - Да
В корне форума .htaccess добавить:
<IfModule mod_rewrite.c>
Options -MultiViews
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>


Так-же если Вам нужны ссылки вида:
index.php?showtopic=6840

Открываем conf_global.php и ищем:
$INFO['use_friendly_urls'] = '1';

Заменяем на:
$INFO['use_friendly_urls'] = '0';
Вернуться в начало страницы
 
Ответить с цитированием данного сообщения
gemkeepers
gemkeepers
Topic Starter сообщение 13.6.2011, 3:26; Ответить: gemkeepers
Сообщение #7


Сделал первую часть.

.htaccess у меня нет. Создавал по-разному, пробовал добавлять ваш код + пару строк, которые стоят вверху ДЛЕ сайтов - форум заваливался. Удалил. "дружественные" ссылки поставил на 0 и сделалось хорошо. Видимо надо было просто пометить, что мне они не нужны. Может быть первую часть делать не надо было, не знаю. Исход мне очень нравится, спасибо.

Замечание модератора:
Эта тема была закрыта автоматически ввиду отсутствия активности в ней на протяжении 100+ дней.
Если Вы считаете ее актуальной и хотите оставить сообщение, то воспользуйтесь кнопкой
или обратитесь к любому из модераторов.


Сообщение отредактировал gemkeepers - 13.6.2011, 3:27
Вернуться в начало страницы
 
Ответить с цитированием данного сообщения
Открыть тему
Тема закрыта
2 чел. читают эту тему (гостей: 2, скрытых пользователей: 0)
Пользователей: 0


Свернуть

> Похожие темы

  Тема Ответов Автор Просмотров Последний ответ
Горячая тема (нет новых ответов) Вечные ссылки с 300+ СДЛов, тиц до 750, ЯКи, DMOZ, от 1$/ссылка
вечные ссылки
258 SeoUaSales 128400 Вчера, 23:39
автор: FantAlexis
Открытая тема (нет новых ответов) Куплю ссылки тематика steam игры eng
0 c4p1t4l15t 525 26.3.2024, 21:57
автор: c4p1t4l15t
Открытая тема (нет новых ответов) SEO Линк Билдинг под Бурж | Вечные ссылки США, Европа и Мир с Гарантией
18 Needmylink1 6539 25.3.2024, 20:51
автор: Needmylink1
Открытая тема (нет новых ответов) Нужны ссылки с adult сайтов
3 TABAK 8035 25.3.2024, 13:44
автор: Wilkinson
Открытая тема (нет новых ответов) Бурж (eng) Вечные ссылки аутрич (каталог 6000+), PBN (20000+). Crypto, Pharma, Gambling
+Создание своих сеток, ликбилдинг под ключ
3 karabaslinks 1287 20.3.2024, 17:28
автор: karabaslinks


 



RSS Текстовая версия Сейчас: 28.3.2024, 19:34
Дизайн