MyBB Community Forums

Full Version: forums.php URL (Unknown Location)
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I've changed index.php to forums.php, and made index.php a customized home page. Though when you're on the Who's Online list, it says members that are viewing the forums index, it says "Unknown Location"; and the URL leads to http://mysite.com/forums.php? I've tried going to inc/functions_online.php and tried changing "// index.php functions" to "// forums.php functions", but sadly didn't work.
http://community.mybb.com/thread-94488.html
What was your purpose in doing this? Was it to make the portal the home page or to make a forums.php?
Haha. I've looked at that thread just a few minutes ago before I posted this thread. I've got a customized home page, and renamed it index.php, and the index.php to forums.php. And everything is fine, no editing to portal.php. But once your on the Who's Online list, Boom; Unknown Location.
(2011-06-18, 02:13 AM)Electric Pokémon Master Wrote: [ -> ]Haha. I've looked at that thread just a few minutes ago before I posted this thread. I've got a customized home page, and renamed it index.php, and the index.php to forums.php. And everything is fine, no editing to portal.php. But once your on the Who's Online list, Boom; Unknown Location.
So you did this to make a customized page the main page? IDK, sorry.

That's okay. Custom index.php page- http://abundantshrine.co.cc/index.php | forums.php page- http://abundantshrine.co.cc/forums.php
// anything is a comment line in php, so it won't change anything if you change it from //index.php to //forums.php

Open inc/functions_online.php.
find all "index" and replace it with "forums" in the whole file (about in 5-6 places i guess).

The open inc/languages/english/online.lang.php
Find
Quote:['viewing_index'] = "{1} <a href=\"index.php\">Main Index</a>"
Replace it with
Quote:['viewing_forums'] = "{1} <a href=\"forums.php\">Main Index</a>"

Hmm. It didn't seem to work. It's still saying Unknown Location, and it's still re-directing it when you click on it to http://abundantshrine.co.cc/forums.php?
(2011-06-18, 02:58 AM)Electric Pokémon Master Wrote: [ -> ]Hmm. It didn't seem to work. It's still saying Unknown Location, and it's still re-directing it when you click on it to http://abundantshrine.co.cc/forums.php?

It's redirecting to: http://mybookface.net/ ?
(2011-06-18, 04:08 AM)weBex Wrote: [ -> ]
(2011-06-18, 02:58 AM)Electric Pokémon Master Wrote: [ -> ]Hmm. It didn't seem to work. It's still saying Unknown Location, and it's still re-directing it when you click on it to http://abundantshrine.co.cc/forums.php?

It's redirecting to: http://mybookface.net/ ?

That's the error page of Byethost.

And, EPM, you don't have any file named forums.php in your forum root, and the index.php is still the forum's index.php. Then how can it work?

First rename index.php to forums.php, and upload your custom index.php, and then try what i posted.