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:
Add Reply
[Solved] User online / offline Status; see whos online and not
Topic Started: Jan 8 2009, 10:27 AM (665 Views)
LeonardoTZ
Member Avatar
Hakuna Matata
 *   *  
That's weird. It works fine for me.

Edited by LeonardoTZ, Jan 9 2009, 07:13 AM.
Offline Profile Quote Post Goto Top
 
offroadnortheast
Member
 *  
you got a test account??? as i need to log in
Offline Profile Quote Post Goto Top
 
offroadnortheast
Member
 *  
figgered it out it has to do with this code in my javascript section

<script>/*****Front Page Portal*****/if(location.href == location.href.split("?")[0]){window.location= location.href.split("?")[0]+"?act=site"}</script>

this directs the site so the opening page is the portal, this was stopping the online offline code.

do you know a way to make the portal open first but still allow online offline to work??

test add that code to your javascript
Offline Profile Quote Post Goto Top
 
LeonardoTZ
Member Avatar
Hakuna Matata
 *   *  
Just tested it and this works:
Add this to the end of your Footers
Code:
 
<script>
/*
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>




Glad it works :)
Edited by LeonardoTZ, Jan 9 2009, 07:17 AM.
Offline Profile Quote Post Goto Top
 
offroadnortheast
Member
 *  
thanks for all you help thanks :D

i decided to get rid of the portal code and just change the links on my entry home page etc to inclde the portal :D
Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · zIFBoards Support & Galleries · Next Topic »
Add Reply