BetaONE will rise again!

BetaONE will rise again! (http:\\b1.hcanet.com\forum/index.php)
-   Web Development (http:\\b1.hcanet.com\forum/forumdisplay.php?f=50)
-   -   Portal Question (http:\\b1.hcanet.com\forum/showthread.php?t=13548)

James55 21st Sep 04 07:38 AM

What did you guys do to get the front page of the portal to show up first. I have installed it and renamed the renamed folder as "home" because I couldnt get the coding right in the index file. That works but the forums are the first page everyone sees

Bads 21st Sep 04 02:40 PM

Normally, this is in the PCA under general configuration :)

war59312 21st Sep 04 08:29 PM

Quote:

Originally posted by James55@Sep 21 2004, 02:38 AM
What did you guys do to get the front page of the portal to show up first. I have installed it and renamed the renamed folder as "home" because I couldnt get the coding right in the index file. That works but the forums are the first page everyone sees
[snapback]212894[/snapback]

This works for example:

<?php Header("Location: http://www.wars-realm.com/index.php?home"); ?>

Just save it as index.php in your main directory.

war59312 22nd Sep 04 12:23 AM

Quote:

Originally posted by James55@Sep 21 2004, 07:20 PM
What file do I put that code in? Not like I'm a pro at it like you guys. I can send somebody a copy of whatever file if they want to have a go at it.
[snapback]212976[/snapback]

Just open text bad and enter in this:

Code:


<?php Header("Location: http://www.wars-realm.com/index.php?home"); ?>

Of course change the url to yours.

Then save it as index.php. Make sure its not index.php.txt.

Then simply upload it to your web server. Normally you upload it into the public_html directory.

Then when someone vists your domain name then it will take you right to the portol. Changes urls of course.

Thats the easy way. ;)

James55 22nd Sep 04 12:52 AM

Tried that. It didnt work for me

war59312 22nd Sep 04 02:13 AM

Quote:

Originally posted by James55@Sep 21 2004, 07:52 PM
Tried that. It didnt work for me
[snapback]212980[/snapback]

Um you running running at least php 4.3 i think it is?

You do have php right? lol

What do you mean it does not work?

Is it plain text, blank white page, error message or something else?

Meta refresh of course works as well. ;)

Code:


<META HTTP-EQUIV=Refresh CONTENT="0; URL=index.php?home">

You know just add to the head section of index.html for example.

Or just simply like this.

index.html

Code:


<html>
<head>
<META HTTP-EQUIV=Refresh CONTENT="0; URL=index.php?home">
</head>
<body>
</body>
</html>


James55 22nd Sep 04 05:02 AM

This what the some of the code looks like in the portal file that should be index.php but I had to rename it to "home" to get the portal to work. Anything that needs to be changed here? I tried to use "forums"(which is where my board is installed) but I got errors and it didnt work .Php version is 4.3.8

// Define the path to where the forums directory is
// located. This might be "./forums/" for example.
// Don't forget the trailing slash!

//define( 'ROOT_PATH', "./" );
define( 'ROOT_PATH', "./" );
define( 'KERNEL_PATH', ROOT_PATH.'ips_kernel/' );

// Define the URL to this script. If you're happy to
// use relative URLs - you can leave this blank.
// You can also rename the script here.

$this_script = 'home.php';

James55 22nd Sep 04 05:34 AM

Im about ready to chuck it unless someone can un-confuse me. Actually the instructions say to upload the file to the public.html or www folder. When I do that it does absolutely nothing and by the way theres no file call index.html. Its useless as a second page unless I can get it to come up first.

James55 22nd Sep 04 06:35 AM

Now one more thing. How do you place a banner in the front page ?

war59312 22nd Sep 04 06:32 PM

haha Good job. How do you think? :P

I have not even touched IPB 2.0 so dont have a clue what file to eidt or anything.

Sure its board.php or fourm.php or whatever. Sorry cant remember for the live of me and not home atm.


All times are GMT +1. The time now is 03:22 AM.

Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.