Changing default page to portal.php

Support for IntegraMOD 141

Moderator: Integra Moderator

Changing default page to portal.php

PostAuthor: SquidHC » Thu Jan 18, 2007 8:18 pm

Your phpBB Version: 2.0.
phpBB Type: Integramod 141
MODs: Yes
Your knowledge: Basic Knowledge
Board URL: http://www.eternityguild.info

PHP Version:
MySQL Version:


What was done before the problem appeared?



What was done to try to solve the problem?




De.scription and Message

I have tried the following methods to redirect my default page to portal.php

I placed both of these in "index.html" files and uploaded them into my root directory.

1.

<html>
<head>
<title>index</title>
<META>
</head>
</html>

2.

<DOCTYPE>
<html>
<head>
<title>redirect to MYSITE</title>
<meta>
</head>
</html>

And yes, I changed "YOUR URL" to mine. <img>

Still not working, any suggestion? It keeps getting directed to my forum page..
Last edited by SquidHC on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.

SquidHC
Members
Members
 
Posts: 38
Likes: 0 post
Liked in: 0 post
Joined: Fri Apr 21, 2006 10:37 pm
Cash on hand: 0.00

Re: Changing default page to portal.php

PostAuthor: Teelk » Thu Jan 18, 2007 8:31 pm

Try this...

Code: Select all
<DOCTYPE>  <HTML><HEAD><META></HEAD><BODY></BODY></HTML>
Last edited by Teelk on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
User avatar
Teelk
Dev Team
Dev Team
 
Posts: 1309
Likes: 0 post
Liked in: 0 post
Joined: Tue Mar 14, 2006 5:25 pm
Cash on hand: 0.00
Location: Canada

Re: Changing default page to portal.php

PostAuthor: SquidHC » Thu Jan 18, 2007 8:35 pm

I tried that and still no love...

<DOCTYPE>

<HTML>
<HEAD>
<META>
</HEAD>
<BODY>
</BODY>
</HTML>


Do I need to edit anything on this?
Last edited by SquidHC on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.

SquidHC
Members
Members
 
Posts: 38
Likes: 0 post
Liked in: 0 post
Joined: Fri Apr 21, 2006 10:37 pm
Cash on hand: 0.00

Re: Changing default page to portal.php

PostAuthor: Teelk » Thu Jan 18, 2007 8:39 pm

If you've changed the URL, then no. It's not working for me on my test board, but I'm running a windows box and don't know how to set htaccess style stuff in windows.
Last edited by Teelk on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
User avatar
Teelk
Dev Team
Dev Team
 
Posts: 1309
Likes: 0 post
Liked in: 0 post
Joined: Tue Mar 14, 2006 5:25 pm
Cash on hand: 0.00
Location: Canada

Re: Changing default page to portal.php

PostAuthor: Frost » Thu Jan 18, 2007 8:39 pm

Try this

and BACKUP all files you edit...

Open:
includes/page_header.php

Find:
Code: Select all
'U_INDEX' => append_sid('index.'.$phpEx),


Replace With]
Code: Select all
'U_INDEX' => append_sid('portal.'.$phpEx),


[b]Find]
Code: Select all
'U_PORTAL' => append_sid('portal.'.$phpEx),


[b]Replace With]
Code: Select all
'U_PORTAL' => append_sid('index.'.$phpEx),


[b]Open]
index.php

[b]Find:

Code: Select all
'U_VIEWCAT' => append_sid("index.$phpEx?" . POST_CAT_URL . "=$cat_id"))


Replace With]
Code: Select all
'U_VIEWCAT' => append_sid("portal.$phpEx?" . POST_CAT_URL . "=$cat_id"))


[b]Rename]
index.php to portal.php

[b]Rename:

portal.php to index.php
Last edited by Frost on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
[size=99px]PhpBB3 Themes[/url] ]PhpBB3 Development Center[/url] [/size]

Frost
Sr Integra Member
Sr Integra Member
 
Posts: 776
Likes: 0 post
Liked in: 0 post
Joined: Wed Sep 13, 2006 1:04 am
Cash on hand: 0.00
Location: Photoshop CS3

Re: Changing default page to portal.php

PostAuthor: IntegraMOD » Thu Jan 18, 2007 8:48 pm

"SquidHC";p="19739" wrote:I tried that and still no love...

<DOCTYPE>

<HTML>
<HEAD>
<META>
</HEAD>
<BODY>
</BODY>
</HTML>


Do I need to edit anything on this?


This redirect works but you have to visit your site by going to http://www.your-domain/index.html otherwise it still goes to index.php
Last edited by IntegraMOD on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
Image
Please do not PM for support
User avatar
IntegraMOD
Administrator
Administrator
 
Posts: 459
Likes: 0 post
Liked in: 0 post
Joined: Sat Mar 11, 2006 3:46 pm
Cash on hand: 0.00
Bank: 100.00
Location: Seattle Wa

Re: Changing default page to portal.php

PostAuthor: SquidHC » Thu Jan 18, 2007 8:53 pm

Yeah Im trying to avoid having to have people type in the /index.html

Ill try his idea
Last edited by SquidHC on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.

SquidHC
Members
Members
 
Posts: 38
Likes: 0 post
Liked in: 0 post
Joined: Fri Apr 21, 2006 10:37 pm
Cash on hand: 0.00

Re: Changing default page to portal.php

PostAuthor: Frost » Thu Jan 18, 2007 8:54 pm

Or if you have a htaccess file you could try this..

Code: Select all
DirectoryIndex portal.php index.php index.html


That way it should load in that order... I think.. lol
Last edited by Frost on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
[size=99px]PhpBB3 Themes[/url] ]PhpBB3 Development Center[/url] [/size]

Frost
Sr Integra Member
Sr Integra Member
 
Posts: 776
Likes: 0 post
Liked in: 0 post
Joined: Wed Sep 13, 2006 1:04 am
Cash on hand: 0.00
Location: Photoshop CS3

Re: Changing default page to portal.php

PostAuthor: SquidHC » Thu Jan 18, 2007 9:09 pm

Hey Frost, your way worked. Thanks man.
Last edited by SquidHC on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.

SquidHC
Members
Members
 
Posts: 38
Likes: 0 post
Liked in: 0 post
Joined: Fri Apr 21, 2006 10:37 pm
Cash on hand: 0.00

PostAuthor: SquidHC » Thu Jan 18, 2007 9:12 pm

Now when I hit "Home" on my Board Navigation it takes me to my forums haha.
Last edited by SquidHC on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.

SquidHC
Members
Members
 
Posts: 38
Likes: 0 post
Liked in: 0 post
Joined: Fri Apr 21, 2006 10:37 pm
Cash on hand: 0.00

Re: Changing default page to portal.php

PostAuthor: Frost » Thu Jan 18, 2007 9:16 pm

lol, i didn't think of that. Just change the links in overall_header.tpl or through ACP with qbar/qmenu whatever

or...

replace backed up files and try the htaccess method

If you were going to try this, you could "copy" the files with the edits you did, so in case the htaccess didnt work you wouldnt have to do the edits again...
Last edited by Frost on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
[size=99px]PhpBB3 Themes[/url] ]PhpBB3 Development Center[/url] [/size]

Frost
Sr Integra Member
Sr Integra Member
 
Posts: 776
Likes: 0 post
Liked in: 0 post
Joined: Wed Sep 13, 2006 1:04 am
Cash on hand: 0.00
Location: Photoshop CS3

Re: Changing default page to portal.php

PostAuthor: SquidHC » Thu Jan 18, 2007 9:32 pm

Could you tell me what file to find overall_header.tpl in? Or possibly a .script line to look for.
Last edited by SquidHC on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.

SquidHC
Members
Members
 
Posts: 38
Likes: 0 post
Liked in: 0 post
Joined: Fri Apr 21, 2006 10:37 pm
Cash on hand: 0.00

Re: Changing default page to portal.php

PostAuthor: IntegraMOD » Thu Jan 18, 2007 9:35 pm

"SquidHC";p="19762" wrote:Could you tell me what file to find overall_header.tpl in? Or possibly a .script line to look for.


No need to edit overall headder use ACP - General - Qbar and edit the links there that way it will work for all templates
Last edited by IntegraMOD on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
Image
Please do not PM for support
User avatar
IntegraMOD
Administrator
Administrator
 
Posts: 459
Likes: 0 post
Liked in: 0 post
Joined: Sat Mar 11, 2006 3:46 pm
Cash on hand: 0.00
Bank: 100.00
Location: Seattle Wa

Re: Changing default page to portal.php

PostAuthor: Frost » Thu Jan 18, 2007 9:38 pm

gffb is right, changing through ACP is better, I'm just code happy <img>
Last edited by Frost on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
[size=99px]PhpBB3 Themes[/url] ]PhpBB3 Development Center[/url] [/size]

Frost
Sr Integra Member
Sr Integra Member
 
Posts: 776
Likes: 0 post
Liked in: 0 post
Joined: Wed Sep 13, 2006 1:04 am
Cash on hand: 0.00
Location: Photoshop CS3

Re: Changing default page to portal.php

PostAuthor: SquidHC » Thu Jan 18, 2007 9:49 pm

Ok thanks.
Last edited by SquidHC on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.

SquidHC
Members
Members
 
Posts: 38
Likes: 0 post
Liked in: 0 post
Joined: Fri Apr 21, 2006 10:37 pm
Cash on hand: 0.00


Return to IntegraMOD 141

Who is online

Registered users: Bing [Bot], Google [Bot]