Kod: Tümünü seç
#
#-----[ DIY INSTRUCTIONS ]------------------------------------------
#
HOW TO MAKE YOUR WEBSITE OPEN TO FILE portal.php INSTEAD OF index.php ?
You can use one of the following methods! Lots of luck!
o Method 1: (for Apache server)
create/modify file .htaccess in phpBB root directory
add/edit this line:
DirectoryIndex index.html index.htm portal.php index.php
o Method 2: {use META tag - if you cannot apply the 1st method)
create file index.html in phpBB root directory (without #)
<html>
<head>
<title>Redirecting...</title>
<meta http-equiv="refresh" content="0;url=portal.php">
</head>
<body>
</body>
</html>
if your phpBB was placed in a subdirectory to the
webroot, like: http://something.com/forum
you could create index.html in the webroot and modify the
line 4 to <meta http-equiv="refresh" content="0;url=forum/portal.php">
o Method 3: I think maybe you can find out method 3 yourself ;) like JavaScript, etc.
#
#-----[ DIY INSTRUCTIONS ]------------------------------------------
#
# CONFIGURATION FOR ezPortal
#
# OPEN: portal.php
#
# FIND:
//
// Set configuration for ezPortal
//
// Welcome Text: note that we are in PHP file, so use \' instead of ' and use \\ instead of \ (HTML enabled)
$CFG['welcome_text'] = 'Welcome to <b>My Community</b><br /><br />Thanks for using ezPortal,<br /><br />Have a good time! ^_^';
// Number of news on portal
$CFG['number_of_news'] = '5';
// Length of news
$CFG['news_length'] = '200';
// News Forum ID: separate by comma for multi-forums, eg. '1,2,5'
$CFG['news_forum'] = '1';
// Poll Forum ID: separate by comma for multi-forums, eg. '3,8,14'
$CFG['poll_forum'] = '1';
//
// END configuration
// --------------------------------------------------------
#
# Adjust the above values in portal.php
#