|
Joined: Jul 2006
Posts: 4,057
|
Joined: Jul 2006
Posts: 4,057 |
Hi Guys, Ive just re-installed / restored my forums after a hard drive failure. Does anyone have the link to make your index page the forum portal page?
I need to check the how too and some settings as mine is not working.
Thanks mark
BOOM !! Version v7.6.1.1 People who inspire me Isaac ME Gizmo
|
|
|
|
Joined: Dec 2003
Posts: 6,562 Likes: 78
|
Joined: Dec 2003
Posts: 6,562 Likes: 78 |
Are you talking about creating a wrapper page? or something as simple as a meta tag refresh in the head tag of a html page. Such as
<head>
<meta http-equiv="refresh" content="0;URL=http://www.wikiwirral.co.uk/forums/ubbthreads.php">
</head> If you want to to wait say 10 seconds to test it change the 0 after content=" to 10
Blue Man Group There is no such thing as stupid questions. Just stupid answers
|
|
|
|
Joined: Jul 2006
Posts: 4,057
|
Joined: Jul 2006
Posts: 4,057 |
Hi Ruben, Its been that long since i implemented it if forgotten where i got the information from. I may have to do a search on Rick or Gizmo as i'm sure they created it.
Basically along time ago in a far away galaxy members were asking how to make there index.html or index.php dosplay the forums portal page as the landing page to your domain name and not mydomain.com/fourms/
I'm probably a bit mixed up with it but ive had it that way for years i have the file its just not working as expected well not working is the thing.
I will do more digging if i get the answers i will post it. As its handy to have.
mark
BOOM !! Version v7.6.1.1 People who inspire me Isaac ME Gizmo
|
|
|
|
Joined: Jun 2006
Posts: 16,299 Likes: 116
|
Joined: Jun 2006
Posts: 16,299 Likes: 116 |
There are several methods: index.php: <?php
$_REQUEST['ubb'] = "portal";
include("/home/user/public_html/forums/ubbthreads.php");
?> .htaccess: # Set Directory Indexing #
DirectoryIndex ubbthreads.php ultimatebb.php index.php maintenance.php index.shtml index.html index.htm
You could also setup an html redirect; many ways to do the same thing really. The index.php will make the forum load wherever the file is, the .htaccess will make ubbthreads.php an index document so if the directory is loaded it'll look for that as the index page.
|
|
|
|
Joined: Jul 2006
Posts: 4,057
|
Joined: Jul 2006
Posts: 4,057 |
<?php
$_REQUEST['ubb'] = "portal";
include("/home/user/public_html/forums/ubbthreads.php");
?>
That's the one Gizmo but it was not working. I'm knee deep at the moment so i will give them a go in a little while. Thanks for you help so far. mark
BOOM !! Version v7.6.1.1 People who inspire me Isaac ME Gizmo
|
|
|
|
Joined: Jul 2006
Posts: 4,057
|
Joined: Jul 2006
Posts: 4,057 |
Ok ive just stripped the index file to its minimum and its a white page there has to be a config issue somewhere.
The only difference is a different php version i can see up to now, but the forums are working as expected and no issues else where <thinks long and hard >
BOOM !! Version v7.6.1.1 People who inspire me Isaac ME Gizmo
|
|
|
|
Joined: Dec 2003
Posts: 6,562 Likes: 78
|
Joined: Dec 2003
Posts: 6,562 Likes: 78 |
I replied to your PM. It appears you are missing the opening php code. <? and it should be <?php
Blue Man Group There is no such thing as stupid questions. Just stupid answers
|
|
|
|
Joined: Jul 2006
Posts: 4,057
|
Joined: Jul 2006
Posts: 4,057 |
Changed it to satisfy me and no change. I need to dig a little deeper.
Its got to be a config problem somewhere.
BOOM !! Version v7.6.1.1 People who inspire me Isaac ME Gizmo
|
|
|
|
Joined: Dec 2003
Posts: 6,562 Likes: 78
|
Joined: Dec 2003
Posts: 6,562 Likes: 78 |
Actually I get a error using firefox now for index.php. Content Encoding Error
The page you are trying to view cannot be shown because it uses an invalid or unsupported form of compression.
Blue Man Group There is no such thing as stupid questions. Just stupid answers
|
|
|
|
Joined: Jul 2006
Posts: 4,057
|
Joined: Jul 2006
Posts: 4,057 |
The file may be corrupt and i need to create a new one. Its come from a restore so anything is possible. I'm happy the forums are running with out having to configure it all.
Will keep you updated.
BOOM !! Version v7.6.1.1 People who inspire me Isaac ME Gizmo
|
|
|
|
Joined: Jun 2006
Posts: 16,299 Likes: 116
|
Joined: Jun 2006
Posts: 16,299 Likes: 116 |
Dumb question, did you update the path to be the path from your root? I highly doubt yours is /home/user/public_html lol
|
|
|
|
Joined: Jun 2006
Posts: 16,299 Likes: 116
|
Joined: Jun 2006
Posts: 16,299 Likes: 116 |
You could also do: index.html: <html><head>
<meta http-equiv="refresh" content="0;URL=forums/ubbthreads.php">
</head>
<body>
</body>
</html>
Or index.php <?php
header("Location: http://www.yoursite.tld/forums/ubbthreads.php");
exit;
?>
|
|
|
|
Joined: Jul 2006
Posts: 4,057
|
Joined: Jul 2006
Posts: 4,057 |
<?php
$_REQUEST['ubb'] = "portal";
include("/home/user/public_html/forums/ubbthreads.php");
?> A stripped back file on its own worked. Phew. . . Previous PHP Version 5.2.16 Re-install Version PHP 5.3.27 apparently there are some changes that could have broken the code in the old page. Thanks for your help ruben / Gizmo
BOOM !! Version v7.6.1.1 People who inspire me Isaac ME Gizmo
|
|
|
|
Joined: Jul 2006
Posts: 4,057
|
Joined: Jul 2006
Posts: 4,057 |
Dumb question, did you update the path to be the path from your root? I highly doubt yours is /home/user/public_html lol I did cheers Gizmo. Software is moving forward. I just hung on to Centos 5.9 If i had gone to Centos 6 then im sure the php and sql would have screwed up my forums. Lets hope i don't have any e-mails from smart Error in the near future lol
BOOM !! Version v7.6.1.1 People who inspire me Isaac ME Gizmo
|
|
|
Bots
by Outdoorking - 04/13/2024 5:08 PM
|
|
|
|
|
|
0 members (),
797
guests, and
200
robots. |
Key:
Admin,
Global Mod,
Mod
|
|
|
|