Page 1 of 1

Separate User and Bots on Index

Posted: 30. October 2011 00:38
by RocknRoll
I would like to get 'Separate User and Bots on Index' Mod to work in the "Who is online" block for Portal version 1.0.6

Forum index "Who is online"
Image

Portal "Who is online"
Image

As you can see installing the MOD half worked because it separated 'Registered users' and 'Bots' in the "{TOTAL_USERS_ONLINE}"
In total there are 5 users online :: 2 registered, 0 hidden, 0 bots and 3 guests
But doing the matching template edit did not work
OPEN: ./template/index_body.html
FIND:

Code: Select all

<td class="row1" width="100%"><span class="genmed">{TOTAL_USERS_ONLINE} ({L_ONLINE_EXPLAIN})<br />{RECORD_USERS}<br /><br />{LOGGED_IN_USER_LIST}</span></td>
REPLACE WITH:

Code: Select all

<td class="row1" width="100%"><span class="genmed">{TOTAL_USERS_ONLINE} ({L_ONLINE_EXPLAIN})<br />{RECORD_USERS}<br /><br />{LOGGED_IN_USER_LIST}<br />{ONLINE_BOTLIST}</span></td>
OPEN: ./template/portal/block/whois_online.html
FIND:

Code: Select all

<td class="row1" width="100%"><span class="genmed">{TOTAL_USERS_ONLINE} ({L_ONLINE_EXPLAIN})<br />{RECORD_USERS}<br /><br />{LOGGED_IN_USER_LIST}</span></td>
REPLACE WITH:

Code: Select all

<td class="row1" width="100%"><span class="genmed">{TOTAL_USERS_ONLINE} ({L_ONLINE_EXPLAIN})<br />{RECORD_USERS}<br /><br />{LOGGED_IN_USER_LIST}<br />{ONLINE_BOTLIST}</span><br /><br /></td>


Thanks in advance.

Re: Separate User and Bots on Index

Posted: 31. October 2011 15:50
by RocknRoll
** bump **

Re: Separate User and Bots on Index

Posted: 1. November 2011 20:42
by WileCoyote
Open portal.php

Find

Code: Select all

define('IN_PHPBB', true);
Add before

Code: Select all

define('IN_FORUM_INDEX', true);
Save File

Danach sollte die Anzeige wie gewünscht funktionieren.

Re: Separate User and Bots on Index

Posted: 2. November 2011 11:15
by RocknRoll
Thank you, WileCoyote.