Who's online does not show up
#1
Hello.
I will descrcibe in pictures:

Members View of Index page:
[Image: stats1hf5.jpg]



Guest View of Index Page:

[Image: statsvx8.jpg]

I want it so, that Guests can also view "Who's online on index page".
I searched whole Templates, but i can only find header_welcomeblock Templates which are organized in Guest and Member.
But there it is not where i must change template code as it is header.

Please help me.
My Index template:
Quote:<html>
<head>
<title>{$mybb->settings['bbname']}</title>
{$headerinclude}
</head>
<body>
{$header}


<!-- ASOIP_2_0_I -->
{$forums}

<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<thead>
<tr>
<td class="thead" colspan="2">
<div class="expcolimage"><img src="{$theme['imgdir']}/collapse{$collapsedimg['boardstats']}.gif" id="boardstats_img" class="expander" alt="[-]" />
</div>
<div><strong>{$lang->boardstats}</strong></div>
</td>
</tr>
</thead>




<tbody style="{$collapsed['boardstats_e']}" id="boardstats_e">
{$whosonline}

{$online_today}
{$birthdays}


<tr>
<td class="tcat" style="text-align: center; font-weight: bold" colspan="2"><span class="smalltext">{$logoutlink}<a href="misc.php?action=markread">{$lang->markread}</a> | <a href="showteam.php">{$lang->forumteam}</a> | <a href="stats.php">{$lang->forumstats}</a></span></td>
</tr>
</tbody>
</table>
<br/>



{$footer}
</body>
</html>


Also, i want that Who's Online Box with the stats links under it moved at the top of my Site, not at the bottom. How do i have to do that?
Maybe putting {$whosonline} above Welcomeblock in Header template?
#2
Do you have it set in the ACP for guests to view who's online? Check under Users & Groups -> Manage Groups -> Guests -> Permissions: Who's Online. Make sure yes is marked.
Jude

If I post in your thread, please do not PM me for more help! Thanks!


#3
Look in ACP > User & Groups > Manage groups > Unregistered / Not Logged In > Edit > Check: "Can View Who's Online"
Microsoft MVP - Consumer Security
#4
Whoops judel was first Smile
Microsoft MVP - Consumer Security
#5
Thank you miekiemoes and judel.
Very fast solveing of my problem.
#6
Sorry for multiple Messages within short time.
How can i move this box at the top of the page?
When i copy this code above {$welcomeblock} in Header teplate, it does not work

Quote:<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<thead>
<tr>
<td class="thead" colspan="2">
<div class="expcolimage"><img src="{$theme['imgdir']}/collapse{$collapsedimg['boardstats']}.gif" id="boardstats_img" class="expander" alt="[-]" />
</div>
<div><strong>{$lang->boardstats}</strong></div>
</td>
</tr>
</thead>




<tbody style="{$collapsed['boardstats_e']}" id="boardstats_e">
{$whosonline}

{$online_today}
{$birthdays}


<tr>
<td class="tcat" style="text-align: center; font-weight: bold" colspan="2"><span class="smalltext">{$logoutlink}<a href="misc.php?action=markread">{$lang->markread}</a> | <a href="showteam.php">{$lang->forumteam}</a> | <a href="stats.php">{$lang->forumstats}</a></span></td>
</tr>
</tbody>
</table>
#7
try just moving {$whosonline} above {$forums} in the index template.
Jude

If I post in your thread, please do not PM me for more help! Thanks!


#8
judel Wrote:try just moving {$whosonline} above {$forums} in the index template.

Thank you very much.

I made it by putting following code between {$header} and {$forums}
Quote:<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<thead>
<tr>
<td class="thead" colspan="2">
<div class="expcolimage"><img src="{$theme['imgdir']}/collapse{$collapsedimg['boardstats']}.gif" id="boardstats_img" class="expander" alt="[-]" />
</div>
<div><strong>{$lang->boardstats}</strong></div>
</td>
</tr>
</thead>
<tbody style="{$collapsed['boardstats_e']}" id="boardstats_e">
{$whosonline}
{$online_today}
</tbody>
</table>


But that does not impress me as i thought. How could i show Online Users in "Additional Box" of Sidebox-Plugin?
I put either {$whosonline] or {$stats} in additional box, but it shows only "array" in frontend.


Forum Jump:


Users browsing this thread: 1 Guest(s)