News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Users Online Today Mod

Started by Nibogo, November 06, 2005, 01:42:31 AM

Previous topic - Next topic

scottws

Quote from: geezmo on May 10, 2006, 08:19:35 AM
at least, scott, something's showing in your forum. in mine (Default Theme, 1.1RC2), the mod was supposedly successfully installed but nothing appears.
Yeah, like I previously posted, I was having the same problem.

For me, it was an issue with permissions.  I was never able to nail down exactly which files and/or directories it was failing on since I got around it by giving read, write, and execute permissions to everyone, and then later making the owner and group of the files and directories the user Apache runs under.

But I have shell and root access to mess around with that sort of thing with ease: it's my server.

Stuart

Quote from: Viceroy on May 10, 2006, 07:52:52 AM
Are there any plans to make this mod available for 1.0.7 by any chance?

You can read my last post which you can find HERE :D

As the file in that message isn't working anymore you can get if from my server HERE  ;D

geezmo

scott, I have VPS and I can basically do the same. But I don't think it's worth it given the fact that this mod is supposedly released and thus should be working perfectly. We need to find what's wrong with the mod so it will be a good, working mod for SMF.

L.G.S

Can I ever get some help for my problem please?
FREE and LIVE World Cup + Premier League football streams:

www.gamesandgoals.com


scottws

Quote from: L.G.S on May 10, 2006, 01:12:39 PM
Can I ever get some help for my problem please?
When you installed the package, did it say it was installed successfully and pass all tests?  If so, did it actually appear at the bottom of the board index of the default Core theme?

If not, your problem was in the installation of the mod in the first place.  I believe the code beemer provided was to get this mod to work in the Helios theme as well (after intalling it via the package manager for the default theme).

It sounds like you replaced the wrong portion of code, cut out too much, left too much, or just don't have a proper installation of the mod in the first place.

I would start by restoring a backup of the Default.template.php file, if you have one.

L.G.S

The default installation went fine, I know how to see if it did or not.

Want I want to know is how to install it on my theme - Aqua Slate
FREE and LIVE World Cup + Premier League football streams:

www.gamesandgoals.com


scottws

For someone looking for help, you sure do cop an attitude.

L.G.S

You may perceive it as an attitude, but it wasn't posted with one so I'm sorry if you took it that way.
FREE and LIVE World Cup + Premier League football streams:

www.gamesandgoals.com


cyberstang5.0

Quote from: DemonicInfluence on March 08, 2006, 11:37:39 AM
just make it so that
if($context['user']['is_admin'])
{


is before the mod stuff in the boardindex.template.php of every theme.

Then at the end put
}

Should work to only allow admins to see..

Another stupid programing question for ya'll...

How do I get it so admins and moderators (or specific membergroups) see the list but keep it "hidden" from regular users?  ???

Vinspire

Quote from: scottws on May 09, 2006, 03:35:00 PM
Hmm...

It correctly works on the default theme:



But following beemer's instructions to get this mod working on Helios resulted in the same thing Vinspire^ is experiencing:



Scot, did you manage to get a solution for this ? If so kindly instruct me about it on how to solve it. Thanks :)

scottws

Nope. No solution as of yet. I have to look at the code.

Vinspire

Quote from: scottws on May 10, 2006, 11:42:57 PM
Nope. No solution as of yet. I have to look at the code.

The code that beemer gave and the code we are using in default theme with clean installation is different code.

I tried using the new code but it came out with an error. So, i am currently using beemer guide.

DVD_GR

From where can we download older versions who are compatible with 1.07??
Latest says its only for 1.1 rc2?So it doesnt work on 1.07??  ::)

Gobo

For users of 1.1RC2

I have a hell of a lot of themes installed on my forum and the easiest way to modify the boardindex.template.php file is to simply look for this line:

// If they are logged in, but SP1 style information is off... show a personal message bar.

it occurs in all the themes --- just place the code above it

it works A-OK

Carceri

Quote from: DVD_GR on May 11, 2006, 10:25:35 PM
From where can we download older versions who are compatible with 1.07??
Latest says its only for 1.1 rc2?So it doesnt work on 1.07??  ::)

I know I have said this before, but since this thread is rather long, I guess most people haven't read all of it. Therefore I will say it again.

There is no version for the 1.0 series from me, for the simple reason that I have never used the 1.0 series.

There is one for 1.1 RC1 and RC2, and there will be one for RC3 and 1.1 Final when they eventually are done.

scottws

Quote from: akulion on May 11, 2006, 11:47:05 PM
For users of 1.1RC2

I have a hell of a lot of themes installed on my forum and the easiest way to modify the boardindex.template.php file is to simply look for this line:

// If they are logged in, but SP1 style information is off... show a personal message bar.

it occurs in all the themes --- just place the code above it

it works A-OK
"Just place the code..."  What code are you referring to?  Beemer's code?

L.G.S

Quote from: akulion on May 11, 2006, 11:47:05 PM
For users of 1.1RC2

I have a hell of a lot of themes installed on my forum and the easiest way to modify the boardindex.template.php file is to simply look for this line:

// If they are logged in, but SP1 style information is off... show a personal message bar.

it occurs in all the themes --- just place the code above it

it works A-OK

Woah it worked, thanks a hellava bunch mate!
FREE and LIVE World Cup + Premier League football streams:

www.gamesandgoals.com


Gobo

#337
Quote from: scottws on May 14, 2006, 09:40:50 AM
Quote from: akulion on May 11, 2006, 11:47:05 PM
For users of 1.1RC2

I have a hell of a lot of themes installed on my forum and the easiest way to modify the boardindex.template.php file is to simply look for this line:

// If they are logged in, but SP1 style information is off... show a personal message bar.

it occurs in all the themes --- just place the code above it

it works A-OK
"Just place the code..."  What code are you referring to?  Beemer's code?

The code I am referring to is this:




// Users online today
echo '
<tr>
<td class="titlebg" colspan="2">', $txt['uot_users_online_today_title'], '</td>
</tr><tr>
<td class="windowbg" width="20" valign="middle" align="center">
<img src="', $settings['images_url'], '/icons/online.gif" alt="', $txt[158], ' ', $txt['uot_users_online_today_title'], '" border="0" />
</td>
<td class="windowbg2" width="100%">';

echo '
<div class="smalltext">';

echo $context['num_users_online_today'], ' ', $context['num_users_online_today'] == 1 ? $txt['uot_user_online_today'] : $txt['uot_users_online_today'];

// Assuming there ARE users online... each user in users_online has an id, username, name, group, href, and link.
if (!empty($context['users_online_today']))
echo ':<br />', implode(', ', $context['list_users_online_today']);

echo '
<br />', $context['show_stats'] && !$settings['show_sp1_info'] ? '
<a href="' . $scripturl . '?action=stats">' . $txt['smf223'] . '</a>' : '', '
</div>
</td>
</tr>';






Important Always remember to make a back-up of your original file before any modifications are made - that way EVEN if something goes wrong you dont have to worry because you can upload the old file and everything will be back to normal :)


Gobo

#338
Quote


Users with this problem follow these instructions:

1. Go to your theme folder for the theme in which u are having this problem

2. Go to the Languages folder and download this file Modifications.english.php

3. Make a backup of this file in case u mess up

4. Open the file in a text editor and just before the ?> right at the end of the file, add the following code



$txt['uot_users_online_today_title']='Users Seen Today';
$txt['uot_user_online_today']='user seen today';
$txt['uot_users_online_today']='users seen today';
$txt['uot_total_users_online_today']='Users Seen Today';
$txt['uot_yesterday']='Yesterday at ';



4. save and upload

wallis77

i use blackTed Skin and have 1.1rc2 this is all great it works on the other skins but not on the one i currently use for my forum, sorry if this has been discussed already on the previous 20+ pages but how can i get it to work on my current skin?

Advertisement: