Link to the mod (https://custom.simplemachines.org/index.php?mod=2593)
This is a simple mod designed to display the member's activity (from the Who's Online feature) and display in the user's profile page, just like how its done in vBulletin.
Development repository: https://github.com/live627/smf-mods/tree/main/activity-in-profile
Created by Anthony Calandra/Project Evolution - 2010.
i installed it but i cant see any changes in members' profile...
Are you using a different theme? It was tested so it should work.
EDIT: Fixed. :)
Congratulations...
That's good work.... Thanks
No problem, thanks for using.
This has been a Tip/Trick that's been around for a while but I've never played around with it myself. Good work turning it into a mod; it installs smoothly and works fine ;)
Great work. Congratulations. but only for two versions. 1.1.11, 2.0 RC3
Thanks guys. And Liam I never really noticed it in the Tips and Tricks board myself, but I think some things should be made as mods because it would be much easier for people with limited PHP knoweldge to just install a modifications rather than hardcoding. Its quite easy, but its my first ever mod. :P
If you feel a need for other versions please dont hesitate to ask. But I personally do recommend switching to RC3 due to the many vulnerabilities found in RC2.
Quote from: admirable on June 10, 2010, 05:16:56 PM
Great work. Congratulations. but only for two versions. 1.1.11, 2.0 RC3
The 2.0 RC3 version will work on RC2 aswell. The 1.1.X version will work on most 1.1.X versions. Why anyway, you should be on the latest versions for the updates.
Quote from: Liam. on June 10, 2010, 06:19:31 PM
Quote from: admirable on June 10, 2010, 05:16:56 PM
Great work. Congratulations. but only for two versions. 1.1.11, 2.0 RC3
The 2.0 RC3 version will work on RC2 aswell. The 1.1.X version will work on most 1.1.X versions. Why anyway, you should be on the latest versions for the updates.
Exactly, if the mod is shown as being compatible with only 2 versions of SMF, try different versions as well as most of the time it works.
Quote from: Project Evolution on June 10, 2010, 08:04:36 AM
Are you using a different theme? It was tested so it should work.
EDIT: Fixed. :)
ya m using custom themes...in fact 8 themes on my forum...
i installed the new version also..but i cant see anything on profile...
using smf2 rc3
thanks
Do you have the Ultimate Profile mod installed?
Do you have custom Profile.template.php files?
Did it install without any errors?
Quote from: Liam. on June 11, 2010, 03:05:38 AM
Do you have the Ultimate Profile mod installed?
Do you have custom Profile.template.php files?
Did it install without any errors?
does this not work with Ultimate profile then? i tried it on a modded theme (have UP mod) and nothing showed..
Can we seperate action=who with action view on profile?
Because who action is forbidden for normal members. But I want to show action on prifle to normal members, how can I do? In fact is it possible to add permission feature?
Quote from: twotonetwo on June 11, 2010, 07:03:56 AM
Quote from: Liam. on June 11, 2010, 03:05:38 AM
Do you have the Ultimate Profile mod installed?
Do you have custom Profile.template.php files?
Did it install without any errors?
does this not work with Ultimate profile then? i tried it on a modded theme (have UP mod) and nothing showed..
They both use different profile templates, UP and the regular profile. It'll work fine without the UP mod; but I'll post up a fix later today...
ya i use UP
and no... my custom theme dsnt use seperate profile.template.php
and there were no errors while installation
thanks
Quote from: akbora on June 11, 2010, 09:49:51 AM
Can we seperate action=who with action view on profile?
Because who action is forbidden for normal members. But I want to show action on prifle to normal members, how can I do? In fact is it possible to add permission feature?
As a matter of fact, this mod respects the permissions for whos allowed to view the Who's Online and who doesnt:
// Display the member's current activity
if (isset($context['member']['action']) && allowedTo('who_view')) {
@Amigozone, if you can, would you please attatch your Profile.template.php file?
Quote from: Project Evolution on June 11, 2010, 03:59:28 PM
Quote from: akbora on June 11, 2010, 09:49:51 AM
Can we seperate action=who with action view on profile?
Because who action is forbidden for normal members. But I want to show action on prifle to normal members, how can I do? In fact is it possible to add permission feature?
As a matter of fact, this mod respects the permissions for whos allowed to view the Who's Online and who doesnt:
// Display the member's current activity
if (isset($context['member']['action']) && allowedTo('who_view')) {
@Amigozone, if you can, would you please attatch your Profile.template.php file?
He's using Ultimate Profile, he'd have to attach his UltimateProfile.template.php file instead...
While using Ultimate Profile, the Activity in Profile just doesn't show up in the profile. That is the only problem. It works with the normal profile though.
Is this with SMF 1.1.x, 2.0 RC3 or both?
I am using SMF 2.0 RC3.
Can anyone help? I want to get this working with Ultimate Profile on SMF 2.0 RC3.
I have now just updated the Activity in Profile modification to version 1.1. This addresses and fixes the issue with the Ultimate Profile mod for both SMF 1.1.x and 2.0 RC3.
Thanks a bunch Project Evolution!
No problem, thanks for using. ;)
I have installed this on SMF 2.0 RC3 and in Profile where it should appear "Current Activity:" it on shows the two dots ":" otherwise it orks fine.
Any tips?
P.S. - I´m using Portuguese language pack.
Hmmm, oddly enough I parsed the mod to double check but it isnt it.
Perhaps its the language pack. Can you post it here?
Quote from: Project Evolution on June 25, 2010, 02:19:32 PM
Hmmm, oddly enough I parsed the mod to double check but it isnt it.
Perhaps its the language pack. Can you post it here?
Solved ! :P
I tried to change language pack to English and then to Portuguese again and it´s working now....
Many thanks for the mod! :D
Thanks for using! ;)
Hello,
Any chance you might consider adding the ability to set permission to see by group? It would be handy for Admin/Global Moderators, but a number of our members might decide this is somehow "spying", ignoring that they can get this info from the Who's Online panel (I know, I know, but there you are, yes?)
Grazie,
Cal
any chance of an option for members to disable it for there profile?
Hmmm, im considering these ideas for a version 1.2.
Hi, I just set up everything. Was great, except I had the same problem as the guy above. Only ':' shows up in the profile, and then the action. I don't think it's recognizing whatever it's supposed to from the profile.english. So I went in there and changed the profile.template from:
echo '<dt>', $txt['current_activity'], ': </dt>
To simply:
echo '<dt>', 'Current Activity', ': </dt>
It works that way, but I don't know if that was the best solution. Can anyone tell me?
Quote from: ZOR0 on August 25, 2010, 02:25:00 PM
Hi, I just set up everything. Was great, except I had the same problem as the guy above. Only ':' shows up in the profile, and then the action. I don't think it's recognizing whatever it's supposed to from the profile.english. So I went in there and changed the profile.template from:
echo '<dt>', $txt['current_activity'], ': </dt>
To simply:
echo '<dt>', 'Current Activity', ': </dt>
It works that way, but I don't know if that was the best solution. Can anyone tell me?
Odd... I did test this and it worked fine. Are you in the same position with Modelistis aka, language packs and such.
Nope. Default theme, no language pack, and I'm running 2.0 RC3.
I think it's fine though, unless inserting it directly this way ruins the mod, or does something similar.
action=profile;u=364
8: Undefined index: current_activity
File: /public_html/Themes/default/Profile.template.php
Line: 144
Quote from: ZOR0 on August 25, 2010, 02:25:00 PM
Hi, I just set up everything. Was great, except I had the same problem as the guy above. Only ':' shows up in the profile, and then the action. I don't think it's recognizing whatever it's supposed to from the profile.english. So I went in there and changed the profile.template from:
echo '<dt>', $txt['current_activity'], ': </dt>
To simply:
echo '<dt>', 'Current Activity', ': </dt>
It works that way, but I don't know if that was the best solution. Can anyone tell me?
I'm only getting the : as well.. I tried the codes above, but it screwed it up.. probably did something wrong though LOL
very cool addition
How we can add more actions? (like chess-mod or arcademod) or something ?
Quote from: divecall on June 09, 2011, 05:21:14 PM
How we can add more actions? (like chess-mod or arcademod) or something ?
Im not sure what you mean, but this retrieves the user action from the Who's Online so you would have to edit that feature rather than this mod.
When i look at the picture on your "Activity In Profile", i saw that you have staff with pikachu. I wonder how do i get that?
The image or the modification used to display that?
Quote from: Project Evolution on July 12, 2011, 11:43:18 AM
The image or the modification used to display that?
modification
Im going from memory here but I believe its this one,
http://custom.simplemachines.org/mods/index.php?mod=1110
Testing this MOD in 2.0 using default theme and see no change. Using your 1.1 version.
However, I also have the Next Post Level MOD ( http://custom.simplemachines.org/mods/index.php?mod=1268 ) installed, if that makes a difference, since they both edit the Profile Summary page. Note, no errors reported on install.
Cal
Quote from: Cal O'Shaw on July 25, 2011, 01:29:56 PM
Testing this MOD in 2.0 using default theme and see no change. Using your 1.1 version.
However, I also have the Next Post Level MOD ( http://custom.simplemachines.org/mods/index.php?mod=1268 ) installed, if that makes a difference, since they both edit the Profile Summary page. Note, no errors reported on install.
Cal
If there was absolutely no change made to the profile page something had to have gone wrong during installation as I tested this on a clean SMF 2 installation this morning. Try reinstalling the modification. If you see no change made, check the file edits the mod makes and make sure changes were made.
Righto.
Grazie for the quick response.
Cal
Okay, solved it.
If I install your MOD first, works great
If I then install the Next Post Level MOD, both work.
The problem was having Next Post Level installed first. I know he's working on some fixes, so maybe when he releases the next version it won't matter which one is installed first.
Grazie mille!
Cal
Cal
Quote from: Cal O'Shaw on July 25, 2011, 09:39:45 PM
Okay, solved it.
If I install your MOD first, works great
If I then install the Next Post Level MOD, both work.
The problem was having Next Post Level installed first. I know he's working on some fixes, so maybe when he releases the next version it won't matter which one is installed first.
Grazie mille!
Cal
Cal
Good to hear. :)
Hi, is there a way to change where this mod displays in the user profile? On my forum it's displaying itself at the top of the user profile and I want it to display it at the bottom above the "Last Active" field. Can anyone help?
Of course, if you can attach your Profile.template.php file here I can apply the change.
It's attached. I appreciate your help!
Here you go, just remember that uninstallation for that file is going to be manual.
Quote from: Project Evolution on August 17, 2011, 07:41:59 PM
Here you go, just remember that uninstallation for that file is going to be manual.
Awesome! Thanks for your help.
Thanks for this Mod
Just pointing out something I noticed. When a member is viewing another member's profile, but I go look at their profile page, it will say their last activity was viewing "my profile" page. i think something's going on where instead of adding the actual member's name of the profile page they're viewing, it displays the name of the member that is on their profile page ( NOT the actual profile page they're viewing)
I know I made that sound confusing lol. But, the attched pic below, I was using my test account "HCFtest", and was viewing a member's profile named Tutan. but as you see, when I'm on my account "hcfwesker", it shows HCFtest viewing my profile, cause I'm there.
Quote from: hcfwesker on December 04, 2011, 10:11:09 PM
Just pointing out something I noticed. When a member is viewing another member's profile, but I go look at their profile page, it will say their last activity was viewing "my profile" page. i think something's going on where instead of adding the actual member's name of the profile page they're viewing, it displays the name of the member that is on their profile page ( NOT the actual profile page they're viewing)
I know I made that sound confusing lol. But, the attched pic below, I was using my test account "HCFtest", and was viewing a member's profile named Tutan. but as you see, when I'm on my account "hcfwesker", it shows HCFtest viewing my profile, cause I'm there.
Something like this would definitely need to be pointed out for the way SMF handles the Who's Online, because all this mod does is simply grab from there their current activity.
Yeah, now that you mention it, it does do the same thing. Would be better if it just said "Viewing Another Member's Profile" or something like that, instead of the error SMF has now if it cant be fixed.
Thanx for the input.
Hi, do you speak spanish?
Hay un mod de VBulletin que es más completo aunque no se como se llama, en este foro lo están usando www.neoteo.com/foro/f2/reglas-generales-pautas-de-convivencia-22/
Me gustaría que incluyeras más características como una barra de puntos, barra de nivel, además la barra de actividad, también incluyeras logros, que se obtienen con cantidad de amigos, crear grupos, tiempo registrado, puntos de experiencia, etc...
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Ffiles.myopera.com%2Fmultituberculata%2Falbums%2F9294822%2FPerfil007.PNG&hash=28ce241ec94480ae13644a510ec1b0b828be6122)
Saludos
Sorry, I only understand English. If you cant express any issues or questions here you can give the language-specific support boards a try.
Ok, I try to speak English :-X
There is a vBulletin mod that is more complete but not as it is called, in this forum are using it www.neoteo.com/foro/f2/reglas-generales-pautas-de-convivencia-22/
I would like you to include more features such as point bars, bar level, besides the activity bar; also include achievements, it's the little picture above the avatar, which are obtained with many friends, create groups, registered time, experience points, etc...
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Ffiles.myopera.com%2Fmultituberculata%2Falbums%2F9294822%2FPerfil007.PNG&hash=28ce241ec94480ae13644a510ec1b0b828be6122)
You can use translator google spanish-english ::)
You understand? :)
When I designed the mod, I intended it to just emulate vBulletin's profile feature which displays what the user is doing through their profile rather than digging in the Who's Online. I think what you have mentioned is out of scope of this modification, and would be a better idea implemented seperately.
To be honest I agree. I prefer the MOD just how it is, and wouldn't want all that clutter in members mini-profiles. A separate MOd would be more ideal, just got to find someone willing to do it.
I am using this on my forum which is 2.04 and nothing is showing. I dont have ultimate profile on it and I followed everything the parsing instructions told me to. Did I miss something?
Quote from: MephyShadows on April 05, 2013, 11:08:59 PM
I am using this on my forum which is 2.04 and nothing is showing. I dont have ultimate profile on it and I followed everything the parsing instructions told me to. Did I miss something?
Using a theme other than default?
Works like a charm on 2.0.4 with the ultimate profile mod on my customised theme. and all i had to do was install simple and easy
Thank you :)
Hei live thanks for the mod I have installed this one on 3/5/2014 (EU date timestamp, dd/mm/yy) and it was already version 1.1 but from what I can see it has been updated on June 18, 2014, 09:18:36 pm, should I uninstall and update even if it shows that is 1.1 version anyhow? Did you change something?
Thanks in advance as always :)
The "update" was only a version bump.. No code was changed.
i just want it ( anyone can see anyone current activity )
but no one at all can see the owner currently
if anyone look at owner currently it will appear like this
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fstore2.up-00.com%2F2014-09%2F1410885495551.png&hash=06edb57e3b8d1177b8181e1feae0726a8b612713)
i just want this
thank you
So you want it so that people cannot see their own activity but CAN see others'? That's counter-intuitive...
Hmm from what I can understand with "the owner" he probably meant that users should never be able to see what the admin is doing. The question would make much more sense too ;)
ah, owner = admin
/Themes/default/Profile.template.php
Find
<dd>', $context['member']['action'], '</dd>
Replace with
<dd>', $context['member']['group_id'] == 1 ? $txt['who_hidden'] : $context['member']['action'], '</dd>
This might be a bit of a gravedig, since nobody's posted about this mod in so long, but I hoped this information might be helpful to some people.
Quote from: hcfwesker on December 04, 2011, 10:11:09 PM
Just pointing out something I noticed. When a member is viewing another member's profile, but I go look at their profile page, it will say their last activity was viewing "my profile" page. i think something's going on where instead of adding the actual member's name of the profile page they're viewing, it displays the name of the member that is on their profile page ( NOT the actual profile page they're viewing)
I stumbled across this bug, which triggers whenever the member visits their profile by clicking on the "Profile" link in the menu (instead of clicking on their name, which has the member ID affixed to the end of it). I tried implementing the patch to Who.php described in this thread (http://www.simplemachines.org/community/index.php?topic=522062.msg3692603#msg3692603), and that seems to fix it.
As of October 26th, with 2.0.12 installed, the bug mentioned before is a thing again. No idea why. :-\ It's driving me pretty well crazy, though.
Quote from: James Gryphon on October 26, 2016, 06:01:08 PM
As of October 26th, with 2.0.12 installed, the bug mentioned before is a thing again. No idea why. :-\ It's driving me pretty well crazy, though.
Because there is a delay in SMF itself, same on the who's online list, not to kill the server <_<
Why would you want it to be extremely real time anyway?
Eh? I'm not talking about it being real time, I'm talking about it confusing somebody else viewing their profile with viewing mine.
Ahn sorry, misreaded the post, I see what you mean (although I can't remember this happening). Well no need to bump it further, if live can be bothered to fix it he will, otherwise no.
Could this be upgraded to 2.1.4 please? 🙏🏻
Sure thing. I have added the update.
I have new version installed, but I get error message when I view someone's user profile:
PHP Warning: Undefined array key "action" in /home/***/public_html/BNF/Sources/Subs-ActivityInProfile.php on line 21
Forum details:
Forum version: SMF 2.1.4
Current SMF version: SMF 2.1.4
GD version: bundled (2.1.0 compatible)
MySQL engine: MariaDB
MySQL version: 10.6.21-MariaDB-log
SMF file based caching: 2.1.4
Memcache:
Memcached:
SQLite3 database based caching: 3.26.0
PHP: 8.4.4 (more detailed)
Server version: Apache
I uploaded an update which fixes undefined index issue when viewing profiles of offline users.