TinyPortal

General => Chit chat => Topic started by: Ray on November 06, 2005, 06:44:59 PM

Title: How to install OnLineUsersToday
Post by: Ray on November 06, 2005, 06:44:59 PM
Chip asked me how did I install OnLineUsersToday in my theme so I thought I would also post it here for others if they need

if you dont have -move the default BoardIndex.template.php to the themes folder you want to use.
then
before you install it make sure you make it compadable with RC1
1. open yor zip file and change the package-info.xml to have this line
<install for="1.1 Beta 3 Public, 1.1 RC1">ÂÃ, 
then put the file back in the zip file and it should install ok into the default theme. Then all you have to do is change the lines below in the BoardIndex.template.php file in the theme you want to use.
<search>
ÂÃ,  ÂÃ, // If they are logged in, but SP1 style information is off... show a personal message bar.

<and replace with>
ÂÃ,  ÂÃ, // "Users online Today"
ÂÃ,  ÂÃ, echo '
ÂÃ,  ÂÃ, <tr>
ÂÃ,  ÂÃ,  ÂÃ,  <td class="catbg" colspan="2">', $txt['158bis'], ' ( ', $context['num_users_today'], ' ', $context['num_users_today'] == 1 ? $txt['user'] : $txt['users'], ' )</td>
ÂÃ,  ÂÃ, </tr><tr>
ÂÃ,  ÂÃ,  ÂÃ,  <td class="windowbg" width="20" valign="middle" align="center"><img src="', $settings['images_url'], '/icons/online.gif" alt="', $txt['158bis'], '" border="0" /></td>
ÂÃ,  ÂÃ,  ÂÃ,  <td class="windowbg2" width="100%"><span class="smalltext">', $context['user_today'], '</span></td>
ÂÃ,  ÂÃ, </tr>';
// If they are logged in, but SP1 style information is off... show a personal message bar.

ÂÃ, 

hope this gets you going


Title: Re: How to install OnLineUsersToday
Post by: domp on November 12, 2005, 07:06:26 AM
Are you right or do I still have to wake up ?

Quote from: Ray on November 06, 2005, 06:44:59 PM
<search>
ÂÃ,  ÂÃ, // If they are logged in, but SP1 style information is off... show a personal message bar.

<--deleted-->

ÂÃ,  ÂÃ, 


also

<search>
ÂÃ,  ÂÃ, // If they are logged in, but SP1 style information is off... show a personal message bar.
</search>

<--deleted-->

In this way they have to replace two times the same part.

8)
Title: Re: How to install OnLineUsersToday
Post by: Ray on November 12, 2005, 05:09:41 PM
Opps fixed

anyway they have a new mod out noe that works with rc1 and it just installs ok. I would use that one now

http://mods.simplemachines.org/index.php?mod=217
Title: Re: How to install OnLineUsersToday
Post by: WebMasterZ on November 12, 2005, 05:59:58 PM
Quote from: Ray on November 12, 2005, 05:09:41 PM
Opps fixed

anyway they have a new mod out noe that works with rc1 and it just installs ok. I would use that one now

http://mods.simplemachines.org/index.php?mod=217

That one works OK 4 me
Title: Re: How to install OnLineUsersToday
Post by: WebMasterZ on November 13, 2005, 09:52:49 PM
Hes just updated it to an RC version - updates your stats page
Title: Re: How to install OnLineUsersToday
Post by: RoarinRow on November 16, 2005, 05:58:28 AM
How do I make it work for SMF 1.0.5.ÂÃ,  Same fix as above?

Edit - fixed it, thanks!