Notifications
Clear all

Online member not showing in list [SOLVED]

13 Posts
2 Users
0 Reactions
1,692 Views
(@sisterwicked)
Posts: 75
Estimable Member
Topic starter
 

I don't understand what's going on, but there is a problem with the Who's Online feature.
More often than not, members will be online and browsing (verified by my hosts realtime server logs) but they will not show up on the Who's Online list. Sometimes it seems fine, and I always show on the list as do other admin-level users, but any others are a 50-50 tossup as to whether they show or not.
Is there a hide option that I'm forgetting about, and if so, is there a way to remove such an option?
We've had a bit of trouble from users lately, so I need to know who is online when.


 
Posted : 26/10/2010 9:53 pm
(@tammy)
Posts: 2577
Member Moderator
 

They may be online and browsing, but are they logged in.  If they're not logged in the online block isn't going to show them.


 
Posted : 26/10/2010 11:13 pm
(@sisterwicked)
Posts: 75
Estimable Member
Topic starter
 

The archive and all links from it to the rest of the website are locked and set as members only..
And the server shows when they use the login form.
It shows them actually online and reading, so they MUST be logged in. Guests are redirected to login if they try to read anything, so..


 
Posted : 26/10/2010 11:23 pm
(@tammy)
Posts: 2577
Member Moderator
 

Okay HOW are they set to members only? Because the script doesn't have that functionality.  Only viewing a STORY has that functionality.  They can read all sorts of pages other than a story and not be logged in.  My best guess is you've got a skin or more set to have the online block only display on the index page.  Therefore when they move off the index page, the block can no longer tell they're logged in because it's not turned on.  Even if you're not displaying it, that block needs to be turned on on all pages if you're using it.

ETA: And a link to the site is always requested at the very least.  Filling out the support request template or putting that information in your signature is preferred.


 
Posted : 27/10/2010 1:27 am
(@sisterwicked)
Posts: 75
Estimable Member
Topic starter
 

The archive is the main hub of the site, and all links leaving it are set to display for members only, that's how.
As soon as someone tries to actually read something, they are redirected to login.

The server shows exactly what story they are reading, including the chapter.
Like this:

76.114.122.56 - - [27/Oct/2010:00:38:17 -0400] "GET /storybg.png HTTP/1.1" 304 - " http://ahparchive.seraphimlabs.net/eFiction352/viewstory.php?sid=131&warning=4"  "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; Avant Browser; InfoPath.2; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152)"

Thus I know that the person is indeed a logged in member reading a story. The server also shows logins.

All of the skins are set to display the block (via index.tpl with {online_title} and {online_content} included) And are simply copies of the same css with different colors and images.
And the online block is set as active, not index only.

The address is
http://ahparchive.seraphimlabs.net


 
Posted : 27/10/2010 1:45 am
(@tammy)
Posts: 2577
Member Moderator
 

You're wrong.  First, your pages aren't set to be members only.  I can go to any page on your site and not be logged in.  If I click on "Search" in the menu I go to the search page.  Even with a story where it's set to members only, the PAGE loads.  It just doesn't show the story on the page unless they're logged in.


 
Posted : 27/10/2010 2:21 am
(@sisterwicked)
Posts: 75
Estimable Member
Topic starter
 

Any huh?
Does that include the ones that leave the archive? Those menu buttons don't even appear to a logged out person..
Those are the outgoings that I mentioned.

The people that I am concerned about are the ones who MUST be logged in, aka people who have been on a given story's page and advancing through chapters for more than a few minutes and are obviously reading.
If it's as you say, they would have to be logged in to do that, and as -I- said, my server shows them using the login form, down to what story they hit the "please login to read" message on.
Therefor they should be visible to the online list, yes?
I linked someone directly to a story, bypassing the mainpage and it showed her online. another person who clicked the direct link did NOT show on the list. Both entries were on the server's log, however. If my settings were wrong, neither would have appeared in the list, as they did not go to the index page at all.

After searching here initially, I made sure that all of the needed things were on the skin's files, so it can't be that. They should all say this on the index.tpl, right?

<!-- INCLUDE BLOCK : header -->
<div id="leftindex">
     <div class="block">
      <div class="title">{info_title}<img src=""{skindir}/images/allen.gif"}></div>"
      <div class="content">{info_content}</div>
    </div>
    <div class="block">
      <div class="title">{categories_title}<img src=""{skindir}/images/kanda.gif"}></div>"
      <div class="content">{categories_content}</div>
    </div>
    <div class="block">
      <div class="title">{shoutbox_title}<img src=""{skindir}/images/allen.gif"}></div>"
      <div class="content">{shoutbox_content}</div>
    </div>

    <div class="block">
      <div class="title">{poll_title}<img src=""{skindir}/images/kanda.gif"}></div>"
      <div class="content">{poll_content}</div>
    </div>
</div>
<div id="rightindex">
    <div id="welcome">{welcome}</div>
    <div class="block">
      <div class="title">{recent_title}</div>
      <div class="content">
<!-- START BLOCK : recentblock -->
<div class="recentbox">
<div class="title">{title} by {author}  {roundrobin}  [{reviews} - {numreviews}]</div>
<div class="content"><span class="label">Summary: </span>{featuredstory}{summary}<br />
<span class="label">Rated:</span> {rating} {score}<br />
<span class="label">Categories:</span> {category} <br />
<span class="label">Characters: </span> {characters}<br />
{classifications}
<span class="label">Series:</span> {serieslinks}<br />
<span class="label">Chapters: </span> {numchapters} {toc}<br />
<span class="label">Completed:</span> {completed}  
<span class="label">Word count:</span> {wordcount} <span class="label">Read Count:</span> {count}
<span class="label"> Published: </span>{published} <span class="label">Updated:</span> {updated} </div>
</div>
<!-- END BLOCK : recentblock -->
      </div>
    </div>
    <div class="block">
      <div class="title">{news_title}</div>
      <div class="content">{news_content}<div style='text-align: center'>{newsarchive}</div></div>
   </div>
</div>
<center>
{online_title}
{online_content}
</center>
<!-- INCLUDE BLOCK : footer -->

All the skins have that exact same file, with or without images.
the {online_title} {online_content} is also on the default index.tpl file.
Is there something else that needs doing? I can also see where you entered the site via my previous link. So the server's status logs are valid.


 
Posted : 27/10/2010 2:39 am
(@tammy)
Posts: 2577
Member Moderator
 

It has nothing to do with the skin templates.  Go into your admin panel.  Turn the block to Active.  Then go into the skins variables.php file and make sure the online block hasn't been turned off.


 
Posted : 27/10/2010 10:51 am
(@sisterwicked)
Posts: 75
Estimable Member
Topic starter
 

As I said, the block has always been set to active.
The variables file for all the skins shows:

<?php
$blocks["categories"]["status"] = 2;
$blocks["categories"]["template"] = "{image} {link} [{count}]";
$blocks["categories"]["columns"] = 0;
$blocks["featured"]["status"] =  '0';
$blocks["info"]["status"] = 2;
$blocks["menu"]["status"] = '1';
$blocks["menu"]["content"] = array (

0 => 'login',
1 => 'search',
2 => 'tens',
3 => 'Forums',
      4 => 'funstuff',
      5 => 'MainSite',
6 => 'home');
$blocks["menu"]["style"] = 0;
$blocks["footermenu"] = array(
"title" => "",
"status" => "1",
"file" => "menu/menu.php",
"style" => 0,
"content" => array (
0 => 'help',
1 => 'rules',
             2 => 'challenges',
             3 => 'series',
             4 => 'members',
             5 => 'logout',
6 => 'adminarea'
)
);
$blocks["login"]["status"] = 1;
$blocks['login']['acctlink'] = 0;
unset($blocks["login"]["template"]);
$blocks["login"]["form"] = 1; // Long form with register and lost password options
$blocks["random"]["status"] = 0;
$blocks["recent"]["status"] = 2;
$blocks["recent"]["tpl"] = 1;
$blocks["skinchange"]["status"] = '1';
$blocks["news"]["status"] = 2;
$blocks['news']['num'] = 3;
$blocks['online']['status'] = 1;

$new = "<span class='new'>New!</span>";
$displayprofile = 1;
$linkstyle = 0;
$displayindex = 1;
$bar = "<img src="'".$skindir."/images/bar.gif'" alt='"._BAR."'>";
$featured = "<img src="'".$skindir."/images/bribbon.gif'" alt='"._BRIBBON."'>";
?>

The only differences are in the images.
This is the variables file from the CssZen skin, with nothing removed.
I added the  $blocks['online']['status']  bit myself, but no changes with the problem so far. Also tried stopping and restarting the block through the admin options.
Is there something else that should be added?


 
Posted : 27/10/2010 11:05 am
(@sisterwicked)
Posts: 75
Estimable Member
Topic starter
 

No ideas as to what's up?
This is starting to be a major annoyance..


 
Posted : 30/10/2010 5:12 pm
(@sisterwicked)
Posts: 75
Estimable Member
Topic starter
 

I've used the posts here to change the time limit.
But that's irrelevant, when I am having multiple people directly link to several story/chapter pages and watching our server's logs plus the online user status at the same time to verify their activity. When I noticed the issue the first time, I had 6 registered and logged in members link to 5 different stories without accessing the index page and myself sitting idle on the index page. Of all of us, myself and one other member were shown in the online area and the rest were clicking 'next chapter' or navigating to completely different sections without being shown. I would say that there is definitely something wrong with that, when I've followed direct tips from you as well as searched the board for other related posts with no effect.

Is this the proper form to have in each skin's variables.php?

$blocks['online']['status'] = 1;

And is this what should be in the skin's index.tpl?

<center>
{online_title}{online_content}
</center>
<!-- INCLUDE BLOCK : footer -->

 
Posted : 30/10/2010 9:01 pm
(@tammy)
Posts: 2577
Member Moderator
 

I don't think anything's up. I think you don't understand how it actually works.  A person is only marked online if they've loaded a page, and that online status is only kept for 1 minute.  So if it takes them 5 minutes to read a chapter, they're online for 1 minute and offline for 4.  It's working the way it's supposed to.


 
Posted : 30/10/2010 9:54 pm
(@sisterwicked)
Posts: 75
Estimable Member
Topic starter
 

Nevermind, I managed to fix it by myself.
Apparently the files were bad, but when I reuploaded it from my 352 version, it worked perfectly.


 
Posted : 30/10/2010 10:34 pm
Share: