Witam.
Mam taki problem. Mianowicie, gdy wchodzę na stronę to jestem na stronie głównej, a chce żeby było forum na stronie startowej. Proszę o opisanie dokładnie jak to zrobić, aby forum było stroną domyślną.
Pozdrawiam
Wersja do druku
Witam.
Mam taki problem. Mianowicie, gdy wchodzę na stronę to jestem na stronie głównej, a chce żeby było forum na stronie startowej. Proszę o opisanie dokładnie jak to zrobić, aby forum było stroną domyślną.
Pozdrawiam
Edytuj plik index.php
Zamieniając kod
naKod:/**
* Use the CMS as the default script:
*/
require('content.php');
/**
* Use the forum as the default script:
*/
// require('forum.php');
Kod:/**
* Use the CMS as the default script:
*/
require('forum.php');
/**
* Use the forum as the default script:
*/
// require('content.php');
Skrypt prawidłowy, niepotrzebna tylko zmiana pozycji. Wystarczy zdjąć komentarz z require forum, a dodać na require content.
a gdzie znajduję sięte plik index.php?? Bo nie mogę znaleźć
Plik znajduje się w głównym katalogu forum.
Vanad nie mam takiego zapisu w swoim index.php
Oto jego zawartość:
Kod php:
<?php
/*======================================================================*\
|| #################################################################### ||
|| # vBulletin 4.2.0 - Licence Number VBS6A7FCD0
|| # ---------------------------------------------------------------- # ||
|| # Copyright ©2000-2012 vBulletin Solutions Inc. All Rights Reserved. ||
|| # This file may not be redistributed in whole or significant part. # ||
|| # ---------------- VBULLETIN IS NOT FREE SOFTWARE ---------------- # ||
|| # http://www.vbulletin.com | http://www.vbulletin.com/license.html # ||
|| #################################################################### ||
\*======================================================================*/
/* Tell forum.php to redirect
to the default url as defined
in the navigation manager */
define('VB_REDIRECT', true);
/**
* If you want to move this file to the root of your website, change the
* line below to your vBulletin directory and uncomment it (delete the //).
*
* For example, if vBulletin is installed in '/forum' the line should
* state: define('VB_RELATIVE_PATH', 'forums');
*
* Note: You may need to change the cookie path of your vBulletin
* installation to enable your users to log in at the root of your website.
* If you move this file to the root of your website then you should ensure
* the cookie path is set to '/'.
*
* See 'Admin Control Panel
* ->Cookies and HTTP Header Options
* ->Path to Save Cookies
*/
//define('VB_RELATIVE_PATH', 'forums');
// Do not edit anything below //
if (defined('VB_RELATIVE_PATH'))
{
chdir('./' . VB_RELATIVE_PATH);
}
require('forum.php');
/*======================================================================*\
|| ####################################################################
|| # Downloaded: 13:19, Thu May 24th 2012
|| # CVS: $RCSfile$ - $Revision: 60724 $
|| ####################################################################
\*======================================================================*/
require('forum.php');
zmieniasz na
require('content.php');
Po upgrade do 4.2 i wpisie require('forum.php'); laduje zawsze na What´s New - a nie na stronie glownej.
Dla forum bez cms wykonuje się to:
PA-Ustawienia-Navigation Manager-Forum-Set Default-Zapisz
A więc dla CMS zapewne tak samo tyle że zamiast w forum wchodzisz w CMS.