News:

SMF 2.1.3 has been released! Take it for a spin! Read more.

Main Menu

Profile User Action

Started by Rudolf, November 13, 2006, 05:43:32 PM

Previous topic - Next topic

Rudolf

Link to Mod
Rate this Mod

*****************************************************
Profile User Action - Modification for SMF
version 1.0
© 2006, Rudolf Martincsek
*****************************************************
A small addon to the Profile Summary, to show what the member is doing. Like in the Who's online list.
Follows the permissions set therein.
I will update all my mods in the next few weeks. Thanks for your patience.

SVG-Collapse (you need an SVG compliant browser)

Tony Reid

Pretty good and working fine for me on RC2 -  thanks :)

Tony Reid

MoreBloodWine

#2
Getting ready to test it now and Ty for completing my request for this ;-)... will edit with concerns if any regarding this mod...

Edit : works flawlessly, Thx... I even like the placement you hose for the Action: its better than what I had suggested placement wise hehe... Once again thx for doing this request of mine ;-)
Want a sig like mine for your BTCGuild stats ? Then check this out: Spend-ur-Bits


MoreBloodWine

In he profile it shows this...

Action: <user is>

What file is the word action defined in bec I wana change it to say " Current Action: " instead of just action...
Want a sig like mine for your BTCGuild stats ? Then check this out: Spend-ur-Bits


Rudolf

It is in Who.english.php.
$txt['who_action'] = 'Action';
Note that this will change the text displayed in the Who's online list too, but I guess it's not such a big issue.
I will update all my mods in the next few weeks. Thanks for your patience.

SVG-Collapse (you need an SVG compliant browser)

MoreBloodWine

#5
I kinda half figured it would change that to but not biggie... I just think Current Action is more appropiate than just action... but thx for that...

Edit : The line you posted above isnt in my custom themes who.template.php file however there is this which is most of the code you posted... just checked the default theme as well... its the same line in that as well... so the line u said to look for is non-existant in any of my files...

<td>', $txt['who_action'], '</td>

Edit : I think I found the proper ling to change... Ill get back to you to let it know it it worked...

<td>', $member['action'], '</td>

Edit : Nope didnt work **sighs**... but heres my entire who.template.php file for my custom theme...

Code removed by MoreBloodWine to shorten post length... problem solved anyway...

Want a sig like mine for your BTCGuild stats ? Then check this out: Spend-ur-Bits


Rudolf

Look in the Themes/default/languages/ folder.
I will update all my mods in the next few weeks. Thanks for your patience.

SVG-Collapse (you need an SVG compliant browser)

MoreBloodWine

Quote from: Rudolf on November 14, 2006, 02:52:38 AM
Look in the Themes/default/languages/ folder.
Found it in the who.english.php file... and it works... now displays Current Action for me... Thx !
Want a sig like mine for your BTCGuild stats ? Then check this out: Spend-ur-Bits


dustydogge

Ok maybe I did something wrong but I dont see any changes in the Profile summary. Here's what I did:

Modified the Profile.template.php file in my custom theme folder, as given in changes.xml:

added this code
/***Profile Who START***/
if (!empty($context['user_action']))
echo '
<tr>
<td><b>', $txt['who_action'], ': </b></td>
<td><span', $context['user_action']['is_hidden'] ? ' style="font-style: italic;"' : '', '>', $context['user_action']['action'],' <span style="white-space: nowrap">(', $context['user_action']['time'], ')</span></span></td>
</tr>';
/***Profile Who END***/


after this code
[<tr>
<td><b>', $txt['lastLoggedIn'], ': </b></td>
<td>', $context['member']['last_login'], '</td>
</tr>';


When nothing happened, I even uploaded the who.english.php to the language folder in the custom theme directory...still nothing.

What exactly does the modified profile summary look like? Maybe I don't know what to look for.

Rudolf

There's a screenshot attached to the first post.
I will update all my mods in the next few weeks. Thanks for your patience.

SVG-Collapse (you need an SVG compliant browser)

dustydogge

Thank you, but now I can confirm that nothing like that is visible in the profiles I view. Can you tell me if there is anything else I should have done, or something I should have done differently? I'd really like to make this work.

Rudolf

If the mod installed fine then it should work. Two files are changed one change in both files, so I really can't imagine what could be wrong.
You are not supposed to see anything, if you are not an administrator and the user has checked the hide online status. Otherwise it has to be there.
Check your forum error logs for anything there.
Also this function won't work if you have the Whos' online list disabled.

Can I get a ink to your forum?
I will update all my mods in the next few weeks. Thanks for your patience.

SVG-Collapse (you need an SVG compliant browser)

MoreBloodWine

One thing I havent bothered to check... assuming a user hasnt checked the hide online status then anyone can see their action in the profile right... I more or less wanted this mod made for my own reasons but figured id ask this out of curiosity... hope i made sense lol...
Want a sig like mine for your BTCGuild stats ? Then check this out: Spend-ur-Bits


Rudolf

It will show to those who have the permission to see the Who's online list. ;)
I said, that it follows the same permissions.
I will update all my mods in the next few weeks. Thanks for your patience.

SVG-Collapse (you need an SVG compliant browser)

L.G.S

FREE and LIVE World Cup + Premier League football streams:

www.gamesandgoals.com


dustydogge

Ok am I supposed to enable it somewhere? Can you tell me where?

MoreBloodWine

Its enabled by default you just have to install it... but if your not using the default theme then you will have to modify your custom theme files to get it to work...
Want a sig like mine for your BTCGuild stats ? Then check this out: Spend-ur-Bits


fritpa

A great mod, but i want to change the permissions of this mod fallows...
How can I make this mod shows the information only to Admins for example, or admins plus moderators? not to the Who's online list can see it.

Thanks

PD.: Sorry for my english.

Rudolf

The best way would be to uninstall the mod, and to modify the changes.xml in the mod package (the zip file).
Find:

/*** Profile Who START***/
if (allowedTo('who_view'))

Replace with:

/*** Profile Who START***/
if (allowedTo('moderate_forum'))


When it's done reinstall the mod.
I will update all my mods in the next few weeks. Thanks for your patience.

SVG-Collapse (you need an SVG compliant browser)

fritpa

Just to be sure... the name here:
/*** Profile Who START***/
   if (allowedTo('moderate_forum'))

is the same name of my Membergroups?

Thank you.

Advertisement: