форум vBSupport.ru > vBulletin > vBulletin 4.0.x-4.1.х > Вопросы по vBulletin 4.0.x-4.1.х
  • »
VBsupport перешел с домена .ORG на родной .RU Ура! Пожалуйста, обновите свои закладки - VBsupport.ru
 
 
 
 
Hafner
Знаток
 
Hafner's Avatar
Question Standard URL Routing Variable
0

Проблема возникла при установке suite в корень поддомена:
http://teg.sait.ru/
После закачки файлов 4-ки в директорию и прописывания адреса в строке браузера:
http://teg.sait.ru/
должен осуществляться редирект на http://teg.sait.ru/install/install.php, однако редиректит с ошибкой, а именно:
http://teg.sait.ru\/install/install.php
То есть после доменного имени добавляется почему то обратный слеш и следовательно страница не отображается. Приходится прописывать в строке браузера полный путь к инсталлу http://teg.sait.ru/install/install.php и после этого проводить установку. Но после установки такая проблема с редиректом постоянно всплывает при переходе к последнему сообщению в теме, при поиске новых сообщений, при переходе на главную cms и т.п.
Решение искал на просторах интернета, в итоге нашел тему с похожей ситуацией, однако в ней проблема так и не решена:
http://www.vbulletin.com/forum/showt...e-article-info
Начал самостоятельно копать скрипты в поисках причины и обнаружил, что всё упирается в функцию exec_header_redirect, на оффе нашел следующее:
http://www.vbulletin.org/forum/showp...43&postcount=1
Лицензии нет, поэтому просьба к тем у кого есть доступ запостить тут скрытый код с указанного поста. Спасибо.
Bot
Yandex Bot Yandex Bot is online now
 
Join Date: 05.05.2005
Реклама на форуме А что у нас тут интересного? =)
 
 
Hobot
Эксперт
 
Hobot's Avatar
Default
2

Hafner, плохо искал
http://www.vbsupport.ru/forum/showpo...6&postcount=24

это тебе поможет избавиться от лишнего слэша в урл.
 
 
a_aqua
На доске почёта
сам знаешь за что
 
banned nax
Default
1

Quote:
Originally Posted by derfelix View Post
Hello,

I have a little problem using exec_header_redirect
For a hackpage.. using posting similar to imagecomments i want to do following:
(that used to work in older vb versions)

if there is a postid present, i want to add an anchor jumpmark to the url, just as vbulletin does in showthread.php...
everything is fine.. at the end I have a redirect..

PHP Code:
(example:)
$postid=4;
if(
$postid)
{
exec_header_redirect($url "#postid$postid");
}
else
{
exec_header_redirect($url);

it works except it sends me to the $url without the #postid$postid even if the postid is present
....
I looked into it.. and exec_header_redirect calls the function: create_full_url
before processing the url..
create_full_url rebuilds the url and strips the anchor jump... :(

so exec_header_redirect behaves like expected...

BUT:
in showthread.php i can find:
PHP Code:
if ($posts['postid'])
        {
            unset(
$pageinfo['goto']);
            
$pageinfo['p'] = $posts['postid'];
            
exec_header_redirect(fetch_seo_url('thread|js'$threadinfo$pageinfo) . "#post$posts[postid]");
        }
        else
        {
            unset(
$pageinfo['goto']);
            
$pageinfo['p'] = $threadinfo['lastpostid'];
            
exec_header_redirect(fetch_seo_url('thread|js'$threadinfo$pageinfo) . "#post$threadinfo[lastpostid]");
        } 
and there it seems to work....

I am really stuck.. any help, hint etc.. would be very appreciated..

I dont think it has todo with the fetch_seo_url (which i dont use because the #postxxx is anyway added afterwards)

F.
 
 
Hafner
Знаток
 
Hafner's Avatar
Default
0

Отлично, обратный слэш убрали, но не работает создание новой статьи и перенос статьи с форума.
В лисе белый экран, в опере "Удаленный сервер или файл не найден". Такая же история при логине, если не поставить галочку "запомнить" - войти нереально^^
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off




All times are GMT +4. The time now is 02:51 PM.


Powered by vBulletin® Version 3.7.6
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Loading...