|
Change Portal.php to Index.php
|
|
12-20-2004, 06:30 AM
(This post was last modified: 12-20-2004 06:36 AM by yukisho.)
Post: #1
|
|||
|
|||
|
Change Portal.php to Index.php
It's not that hard to do this. I know it has been discussed, but this is a much easier way to do it.
# # # #First, copy and paste index.php and portal.php into a new folder somewhere on #your hardrive. ####################################### #Open portal.php and find ####################################### # $lang->load("index"); ####################################### #change to ####################################### # $lang->load("portal"); ####################################### #Close and save. ####################################### #Rename index.php to whatever you want. I chose forum.php #Rename portal.php to index.php ####################################### ####################################### Now your done. Upload an try it out. Make sure you keep a copy of your origional copies. If you have previously modded these files, it is essential tou save a backup so you dont lose any data. Demo at http://www.wow-database.net/mybb/ ![]() Tutorials: Portal As Index Page |
|||
|
12-27-2004, 08:11 AM
(This post was last modified: 12-27-2004 08:14 AM by Gary Bolton.)
Post: #2
|
|||
|
|||
|
RE: Change Portal.php to Index.php
If you want people to visit your portal page instead of your forum when they visit your domain like this for example http://www.ukfisherman.com
Create a index.php file and add this code to it, then put the file outside your forums folder in the root directory. Code: <html>Just replace the obvious bits of code to suit your site where the index page will lead them too. Then anybody using the domain name will be re-directed to your portal page instead of the forum page first. Thats one way of being able to just post your shorty domain name as a link leading to your portal. |
|||
|
12-27-2004, 09:26 AM
Post: #3
|
|||
|
|||
|
RE: Change Portal.php to Index.php
Thats what im using Gary, I've have http://www.d-frame.co.uk going straight to portal.php
Dale Hay . com :: ConvoWorld :: Sound Upload
|
|||
|
12-27-2004, 03:32 PM
Post: #4
|
|||
|
|||
|
RE: Change Portal.php to Index.php
Yeah but if you dont want a gateway page, then my way is the way to go.
![]() Tutorials: Portal As Index Page |
|||
|
12-31-2004, 08:34 PM
(This post was last modified: 12-31-2004 08:35 PM by The_Altered1.)
Post: #5
|
|||
|
|||
RE: Change Portal.php to Index.php
yukisho Wrote:It's not that hard to do this. I know it has been discussed, but this is a much easier way to do it. Of course if you are going to do this with the changing of the file names, then it will also effect your navigation bar when navigating through the forums. When users click on the forum name link in the top of the forum nav area they will still be taken to the index.php page (which is now the main portal page). To modify where that link takes you you will need to open your global.php file in your favorite text editor. Look for: Code: $navbits[0]['name'] = $settings['bbname'];Change that to the name of your new forum index page (not the new main page index.php). I named my forum page forum.php so I changed the code to this: Code: $navbits[0]['name'] = $settings['bbname'];Note: if you are using one of my skins that has a forum and home link in the top bar then you will also have to edit the "toplinks" templates and switch them to your new names. Call me The_Ripper, or if you like, Jack the knife.... |
|||
|
02-03-2005, 11:14 AM
(This post was last modified: 02-03-2005 11:16 AM by Red Eyed American.)
Post: #6
|
|||
|
|||
RE: RE: Change Portal.php to Index.php
Gary Bolton Wrote:If you want people to visit your portal page instead of your forum when they visit your domain like this for example http://www.ukfisherman.com You forgot the </html> tag, and </HEAD> should be </head> ![]() I prefer to do this with php, seems to be a little quicker and dos'nt take as much code, put this in a file called index.php in your webroot and it will redirect also ![]() Code: <?phpHacks In Development: MyStartPage FULLTEXT Searching Cookie-less log-in support Post Cache Who\'s Viewing this thread/forum? |
|||
|
07-05-2005, 10:35 AM
Post: #7
|
|||
|
|||
|
RE: Change Portal.php to Index.php
I plan on having portal.php, well the data inside being on the main website index.php, and then those links leading to the forums index.
*I shall figure a way to pull just what you need from the portal items and arrange it into a proper portal sytem* |
|||
|
08-04-2006, 12:29 AM
Post: #8
|
|||
|
|||
|
RE: Change Portal.php to Index.php
I've done this.
I haven't written a proper tutorial on how to do it, but I plan too. ryanashbrook.co - My Blog - @ryanashbrook Do NOT PM me for Support! |
|||
|
08-05-2006, 12:16 PM
Post: #9
|
|||
|
|||
RE: Change Portal.php to Index.php
yukisho Wrote:It's not that hard to do this. I know it has been discussed, but this is a much easier way to do it. good but when I visit main page I show there a forum link when I click it I stay same page because http://www.stopisrael.org/index.php became my homepage.How can we solve this problem. |
|||
|
09-02-2006, 01:21 PM
Post: #10
|
|||
|
|||
|
RE: Change Portal.php to Index.php
how about, putting at the top of index.php a cookie checker, if your "check" cookie isnt there your sent to the portal.php and a cookie is created, if it is there you stay on the index page.. =p
|
|||
|
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)
Search
Member List
Calendar
Help



![[Image: button2.gif]](http://www.wow-database.net/fm/i/button2.gif)




![[Image: forum_sig.gif]](http://counterstrikesource.mediasmoke.com/images/forum_sig.gif)