- You are here:
- Main › Forum › Suggestions and Proposals
index page
6 posts
• Page 1 of 1
-
- Meis@M
- Posts: 8
- Joined: Tue Jul 05, 2011 8:23 am
Tue Jul 05, 2011 8:24 am • via Web
my forum is in address http://www.example.com/forum/
i like to add portal in this address http://www.example.com
so i create a index.php in http://www.example.com/index.php and put it this file this codes
now i dont know why this not working. i see just overal header and footer. i cant see blocks of portal.
i like to add portal in this address http://www.example.com
so i create a index.php in http://www.example.com/index.php and put it this file this codes
- Code: Select all
<?php
/*
*
* @name portal.php
* @package phpBB3 Portal
* @version $Id: portal.php,v 1.0 28/05/2011 $
*
* @copyright (c) 2011 CaniDev
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*
*/
/**
* @ignore
*/
define('IN_PHPBB', true);
$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './forum/';
$phpEx = substr(strrchr(__FILE__, '.'), 1);
include($phpbb_root_path . 'common.' . $phpEx);
include($phpbb_root_path . 'includes/functions_display.' . $phpEx);
// Start session management
$user->session_begin();
$auth->acl($user->data);
$user->setup();
// Go to index page if portal is disabled
$portal->redirect('portal');
// Output page
page_header($user->lang['PORTAL']);
$template->set_filenames(array(
'body' => 'portal/portal_body.html'
));
page_footer();
?>
now i dont know why this not working. i see just overal header and footer. i cant see blocks of portal.
- IvanPF
- Administrator
- Posts: 2029
- Joined: Fri Jun 17, 2011 12:15 am
- Location: España (Spain)
Tue Jul 05, 2011 5:06 pm • via Web
The file must be call "portal.php"
The version 1.0.0 of cBB Portal not prepared to do this, in the next version I implemented it.
In the phpBB forum I explained how you could do, although I have not been able to prove
http://www.phpbb.com/community/viewtopi ... #p13018035
The version 1.0.0 of cBB Portal not prepared to do this, in the next version I implemented it.
In the phpBB forum I explained how you could do, although I have not been able to prove
http://www.phpbb.com/community/viewtopi ... #p13018035
-
- Meis@M
- Posts: 8
- Joined: Tue Jul 05, 2011 8:23 am
Thu Jul 07, 2011 3:26 am • via Web
Mr. dear admin.
it is very important for me to do this. i have a forum with pagerank 4 and need to a portal in main address. i like this portal but i couldnt did it.
plz help me and try and learn me how is possible?
it is very important for me to do this. i have a forum with pagerank 4 and need to a portal in main address. i like this portal but i couldnt did it.
plz help me and try and learn me how is possible?
- IvanPF
- Administrator
- Posts: 2029
- Joined: Fri Jun 17, 2011 12:15 am
- Location: España (Spain)
Thu Jul 07, 2011 4:24 am • via Web
I feel not having responded sooner.
I can not try on localhost because right now I am with the design of the next version, which will make this task much easier.
I tried on a free hosting the changes I mentioned and apparently works well
The portal is in http://canidev.hostoi.com/portal.php and the forum is in http://canidev.hostoi.com/board/
Exactly, what error gives you?
Edited: I have seen a bug in the redirect from the index, try to test disabling the portal as home page on ACP >> Portal
I can not try on localhost because right now I am with the design of the next version, which will make this task much easier.
I tried on a free hosting the changes I mentioned and apparently works well
The portal is in http://canidev.hostoi.com/portal.php and the forum is in http://canidev.hostoi.com/board/
Exactly, what error gives you?
Edited: I have seen a bug in the redirect from the index, try to test disabling the portal as home page on ACP >> Portal
-
- Meis@M
- Posts: 8
- Joined: Tue Jul 05, 2011 8:23 am
Thu Jul 07, 2011 7:23 am • via Web
yes its work. i had a mistake.
a question
my forum is this address
example.com/forum/
this address working http://www.zohall.com/portal.php but i need change name portal.php to index.php
http://www.zohall.com/portal.php working but http://www.zohall.com/index.php not working.
why?
a question
my forum is this address
example.com/forum/
this address working http://www.zohall.com/portal.php but i need change name portal.php to index.php
http://www.zohall.com/portal.php working but http://www.zohall.com/index.php not working.
why?
- IvanPF
- Administrator
- Posts: 2029
- Joined: Fri Jun 17, 2011 12:15 am
- Location: España (Spain)
Thu Jul 07, 2011 4:40 pm • via Web
In the version 1.0.0 of cBB Portal is difficult to change the name to index.php because it is not ready for that and involves many changes.
What you can do is use the ".htaccess" file to put it as your default page when enter in http://www.zohall.com
You only need upload one file, with the name ".htaccess" in the portal.php directory with this content:
This only runs in apache servers
What you can do is use the ".htaccess" file to put it as your default page when enter in http://www.zohall.com
You only need upload one file, with the name ".htaccess" in the portal.php directory with this content:
- Code: Select all
DirectoryIndex portal.php index.php index.html
This only runs in apache servers
6 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 0 guests
- External Links
- phpBB Official
- phpBB Official (Spanish)
- Raul Arroyo Monzo
- PasionReef
- About CaniDev
- Terms of use
- Privacy Policy
- About Us
- Contact
- © 2011-2024 CaniDev