+--------------------------------------------------------+
|                     ALL USERS addition                 |
+--------------------------------------------------------+
|  A really cheesy simple addition made by yours truly,  |
| "Portal of Curiousity", aka Ryan of twilightrealm.com, |
|         with much help from Phorum programmers         |
+--------------------------------------------------------+
|  Simple Modification by Krang of krang.org adds number |
| of posts and it now only shows users if your logged in |
|         added a column for ICQ (not sortable)          |
+--------------------------------------------------------+
|  More complicated modification by Krang from krang.org |
| this has added avatars and date last active I have also|
|   modified the code for a more module like interface   |
|    although this does modify the main code slightly    |
|  according to Brian it is the only way to get the URL  |
|          grabbed correctly for the templates.          |
+--------------------------------------------------------+


Installation Setup:

1. Upload all files to your mods directory where your board is installed under a directory called allusers.

2. Copy or Move ./mods/allusers/main/allusers.php to your main phorum directory (./).

3. Copy or Move ./mods/allusers/templates/allusers.tpl to your template folder(s) (./template/default).

4. Add the following lines to your core code files at about the listed line numbers
(If you don't want to make core changes use template 2.)

./common.php
line 371
        case PHORUM_ALLUSERS_URL:
            $page = "allusers";
            $add_forum_id = true;
            break;


line 511
    $GLOBALS["PHORUM"]["DATA"]["URL"]["ALLUSERS"] = phorum_get_url( PHORUM_ALLUSERS_URL );

./include/constants.php
line 124
    define("PHORUM_ALLUSERS_URL", $i++);

5. Link to allusers URL on any page of your template you'd like.
    For example:

       {IF LANG->mod_allusers->ALLUSERS}&bull;<a class="PhorumNavLink" href="{URL->ALLUSERS}">{LANG->mod_allusers->ALLUSERS}</a>{/IF}

   Alternate example (for logged in Users only):
       {IF LOGGEDIN true}{IF LANG->mod_allusers->ActiveUsers}&bull;<a class="PhorumNavLink" href="{URL->ALLUSERS}">{LANG->mod_allusers->ALLUSERS}</a>{/IF}{/IF}

6. If you wish the ICQ portion to show up in the user Profile also add the following lines to profile.tpl:

{IF PROFILE->icq}
<tr>
  <td nowrap="nowrap">{LANG->ICQ}: </td>
  <td><a href="http://wwp.icq.com/scripts/search.dll?to={PROFILE->icq}"><img src="http://web.icq.com/whitepages/online?icq={PROFILE->icq}&img=5" border="0" alt="{PROFILE->icq}"></a></td>
</tr>
{/IF}

And the following lines to cc_usersettings.tpl some where in {IF PROFILE->USERPROFILE}:
<tr>
    <td nowrap="nowrap">{LANG->ICQ}: </td>
    <td><input type="text" name="icq" size="30" value="{PROFILE->icq}" /></td>
</tr>

7. Modify your settings.tpl file and add the following lines

{! --- This is the marker for email --- }
{define marker-email <img src="mods/allusers/images/icon_email.gif" border="0" alt="" style="vertical-align: middle;" />&nbsp;}
{define marker-email-hidden <img src="mods/allusers/images/icon_email_hidden.gif" border="0" alt="" style="vertical-align: middle;" />&nbsp;}

{! --- This is the marker for home page --- }
{define marker-url <img src="mods/allusers/images/icon_url.gif" border="0" alt="" style="vertical-align: middle;" />&nbsp;}

8. Go into admin.php and enable the All Users Module
