Welcome Guest [Log In] [Register]
We hope you enjoy your visit.

You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.


Join our community!


If you're already a member please log in to your account to access all of our features:

Username:   Password:
Locked Topic
[Solved] Redirect Portal To main page?
Topic Started: Jan 20 2010, 07:49 AM (518 Views)
Freelot
Member
 *  
I have an invisionfree board and I want to make my portal page become the main url when people look at my forum. Like instead of seeing the original main page(http://z10.invisionfree.com/KCLS_FFXI_Linkshell/index.php?act=idx), they would see the portal page(http://z10.invisionfree.com/KCLS_FFXI_Linkshell/index.php?act=site). Any help? I have the code to do it

<html>
<head>
<meta HTTP-EQUIV="REFRESH" content="0; url=http:address of your portal">
</head>
</html>"

I was told to post it as my index page but I don't know how to do that.
Offline Profile Goto Top
 
Beaumont-ZNS
Member
 *   *  
I'm not exactly sure what you mean. You have a conflicting title. The title wants a redirect, but I'm not sure what you mean in your post. Can you explain a little more, please?
Offline Profile Goto Top
 
Freelot
Member
 *  
Ok, I have a portal page, to display the kills of my linkshell in FFXI.

As it is right now, our main page when you type out URL takes you right to our Forums.

Instead of that Main page forum coming up when you type in the URL, I want the portal page to appear instead. I guess it's not even a redirect. I want the portal page to just automatically become the main page.
Offline Profile Goto Top
 
alvinonline
Member
 *   *   *  
Give this code a try.
It goes in Javascript section of board wrappers.

Code:
 
<script type="text/javascript">
/*
Front Page as Portal v2.5
Created by iFusion
*/

var loc = window.location
if(document.referrer.match(location.pathname) == null && loc.href.match(/\?[\&\w+|\w+]/) == null){
var strPos = "";
if(loc.href.match(/index.php(\?|)/i) != null){
strPos += (RegExp.$1 == "?") ? "" : "?";
} else {
strPos += ( (loc.href.lastIndexOf("/") + 1 == loc.href.length) ? "" : "/") + "index.php?";
}
loc.href+=strPos + "act=site"
}</script>


Offline Profile Goto Top
 
Freelot
Member
 *  
That worked thanks :)
Offline Profile Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · zIFBoards Support & Galleries · Next Topic »
Locked Topic