Message:
good morning ..
i have the mod ( Current activity ) in my SMF forum . it works very well
and appear in profile very good
Version
2.0.8 the latest version
Description
i want to make it ( for admins group ) to appear in current activity : hidden by admin
i hope you help me
Permissions
admin only ( owner )
Feature Set
admin option
It already is.
If you go into the admin panel as an admin, a regular user will not see that if they go to the who's online list since they don't have permission themselves to see it.
what i mean is like this (http://store2.up-00.com/2014-09/1410885495551.png)
for full image http://store2.up-00.com/2014-09/1410885495551.png (http://store2.up-00.com/2014-09/1410885495551.png)
while if you see a regular member activity it appear.
if you saw a admin profile it will be like this image
i hope i know how i can do this > edit the text for admins activity
thank you
Oh, I see, your original post wasn't clear.
Profile.template.php
if (!isset($context['disabled_fields']['posts']))
echo '
<dt>', $txt['profile_posts'], ': </dt>
<dd>', $context['member']['posts'], ' (', $context['member']['posts_per_day'], ' ', $txt['posts_per_day'], ')</dd>';
After it add:
if (!empty($context['member']['action']) && allowedTo('admin_forum'))
echo '
<dt>Currently:</dt>
<dd>', $context['member']['action'], '</dd>';
ty very much > where i can found this file + where to edit the text in this code
where i can find this Profile.template.php
thank you i found it in this
/Themes/default
but i use theam ( infernos )
/Themes/inferno_20rc4
and cant find this file in it :(
1. RC4 version of Inferno is out of date. Get the updated version from DzinerStudio.com
2. If a theme doesn't have a template, the default theme's copy will be used instead, so Themes/default/Profile.template.php is the file to use.
If you cannot find it in custom theme, then editing the one in default theme alone would suffice.
Edited: Ninja'd.
i do it but it appear like that (http://store1.up-00.com/2014-09/1410888254681.png)
http://store1.up-00.com/2014-09/1410888254681.png
it appear ( Current Activity: + Currently: )
this not what i want
what i want to appear the ( current activity ) of owners to regular user ( Nothing . or nothing you can see ) i want appear this text
thank you
I gave you the change for the first one 'Currently:', I don't know what else you've done, sorry.
i type what you give to me
but it's still appear the activity that i do
i want it to be constant text
how i can do this
which text in ( currently ) i can edit ?
May be you are viewing as an admin because admin always have privilege to view user's activity. Try to use other browser and view the profile as guest and regular member instead to see whether you have done it correctly.
By the way, the code given by Arantor will not show the whole thing - from Currently: to its end - if the profile viewer is not the forum admin.
i saw it as Guest.
the ( currently ) doesnt appear at all for guests
i want it to appear but in this text ( nothing , or nothing you can see )
The currently doesn't appear to guests because you asked for it to be shown only to admins!
Who's Online doesn't show things to people if they can't see them anyway...
i ask to hide the owner currently .
for guests + Regular members . i want it appear to them like this :
Currently : nothing , or nothing you can see
but if they look to other member profile
they can see his really currently like this :
Currently : viewing DrBlack's profile
I want it to be like this forum
(http://store2.up-00.com/2014-09/1410885495551.png)
I was a regular member in it.
I saw the profile of owner like the picture
And if i see a moderator or regular member
it appear normal . Like : current activity : view forums
I hope my forum be like this
Ok. I am trying to understand your wishes.
This is the mod code that you have to change:
// Display the member's current activity
if (isset($context['member']['action']) && allowedTo('who_view')) {
echo '<dt>', $txt['current_activity'], ': </dt>
<dd>', $context['member']['action'], '</dd>';
Replace with:
// Display the member's current activity
if (isset($context['member']['action']) && allowedTo('who_view')) {
echo '<dt>', $txt['current_activity'], ': </dt>
<dd>', ($context['user']['is_owner'] || $context['user']['is_guest']) ? 'nothing or nothing you can see' : $context['member']['action'], '</dd>';
Note: I haven't tested this.
This will appear for all ranks or guests only ??
I want this appear to all members
That they cant saw the owner current activity
I am a little bit confused. I have edited and reedited the code but I think I was right at the first place. So I restored the firstly posted code.
My understanding was you want guest or profile owner to see only this words: nothing or nothing you can see.
Otherwise, they are not profile owner or guest, and they will see the profile owner activity.
Moderator and admin has special access so I think they'll have access to the profile owner activity.
If my understanding is wrong, please define what you want like this:
Guest =
Profile Owner =
Other Regular Member =
Moderator =
Admin =
thank you :) you understand me 9/10
but i want like this
Guest =he already dont have profile . but , they can see what all doing. except the ( profile owner ) if they look at it they will see ( currently : nothing , or nothing you can see )
Profile Owner = no one can see his currently . if anyone look at his profile he will see ( currently : othing , or nothing you can see )
Other Regular Member = anyone can see what they are doing ( currently ) , they can see what all doing. except the ( profile owner ) if they look at it they will see ( currently : nothing , or nothing you can see )
Moderator = anyone can see what they are doing ( currently ) , they can see what all doing. except the ( profile owner ) if they look at it they will see ( currently : nothing , or nothing you can see )
Admin = anyone can see what they are doing ( currently ) , they can see what all doing. except the ( profile owner ) if they look at it they will see ( currently : nothing , or nothing you can see )
Quote from: ahrasis on September 16, 2014, 03:06:34 PM
Ok. I am trying to understand your wishes.
This is the mod code that you have to change:
// Display the member's current activity
if (isset($context['member']['action']) && allowedTo('who_view')) {
echo '<dt>', $txt['current_activity'], ': </dt>
<dd>', $context['member']['action'], '</dd>';
Replace with:
// Display the member's current activity
if (isset($context['member']['action']) && allowedTo('who_view')) {
echo '<dt>', $txt['current_activity'], ': </dt>
<dd>', ($context['user']['is_owner'] || $context['user']['is_guest']) ? 'nothing or nothing you can see' : $context['member']['action'], '</dd>';
Note: I haven't tested this.
thank you
this code worked very well but ..
it appear to me ( the site owner )
Current Activity: nothing , or nothing you can see
its good i want it to appear to me like that
but as member - guest. cant see this ( Current Activity: ) in my owner profile at all
i want it to appear to all like this ( Current Activity: nothing , or nothing you can see )
thank you for your hard work
You have to give permission to the guest. You can go to permission page via admin menu button > permissions. Then select modify for guest. Select the relevant permission and save.
thank you it's good
but guests saw regular members currently ( nothing or nothing you can see )
i want guests to saw what members real currently .. i want all to see all currently
but no one can see the owner currently
as i said in the post before :)
Quotethank you :) you understand me 9/10
but i want like this
Guest =he already dont have profile . but , they can see what all doing. except the ( profile owner ) if they look at it they will see ( currently : nothing , or nothing you can see )
Profile Owner = no one can see his currently . if anyone look at his profile he will see ( currently : othing , or nothing you can see )
Other Regular Member = anyone can see what they are doing ( currently ) , they can see what all doing. except the ( profile owner ) if they look at it they will see ( currently : nothing , or nothing you can see )
Moderator = anyone can see what they are doing ( currently ) , they can see what all doing. except the ( profile owner ) if they look at it they will see ( currently : nothing , or nothing you can see )
Admin = anyone can see what they are doing ( currently ) , they can see what all doing. except the ( profile owner ) if they look at it they will see ( currently : nothing , or nothing you can see )
i just want anyone can see what any other one doing ( his currently )
but no one can see the Owners currently ( if he look at it he see this [ nothing, or nothing you can see] )
i think its clear now
i hope someone help :d
In that case, change this part:
<dd>', ($context['user']['is_owner'] || $context['user']['is_guest']) ? 'nothing or nothing you can see' : $context['member']['action'], '</dd>';
to this:
<dd>', $context['user']['is_owner'] ? 'nothing or nothing you can see' : $context['member']['action'], '</dd>';
i use it ..
now members cant see my profile ( currently ) it hidden to them
i want it appear but like this
currently : nothing or nothing you can see
i hope you understand me
i hope it appear to all but constant ( currently : nothing or nothing you can see)
but now i only can see this in my profile . but members cant see this at all
i just want it ( anyone can see anyone currently )
but no one at all can see the owner currently
if anyone look at owner currently it will appear like this
(http://store2.up-00.com/2014-09/1410885495551.png)
i just want this
ok i will explain it 100%
see this site http://www.argonathrpg.eu (http://www.argonathrpg.eu)
look at any online admin profile ( anyone his color Red - or Orange )
look at his Current Activity .
you will see : nothing . or nothing you can see
but look at anyone profile you will see this current activity
I conclude that the code is working fine for now except - as the owner / admin of the forum - you do not want anybody else to see your activity in the profile page, is that right? If that is true, I have to inform you that will require a bit more coding than usual.
By the way, I realized that this is already indirectly modifying if not upgrading another author's package mod. Unless somebody is willing to code that and post them here, I think it is the best for you to get support from the said mod support page.
yes that true
that what i mean
Quote from: ahrasis on September 17, 2014, 10:21:36 PM
I think it is the best for you to get support from the said mod support page.
Read the above statement...
If you have requests or questions regarding a specific mod, then please address them in the support thread for that mod.
can you give me please the link of support
what mod are you actually using?
Go to the mod download page and click on the link that says "Support and Comments"
when i enter admin panel.
this current activity appear in my profile
Currently: Unknown Action
i want know how to edit this text "Unknow Action"
in which file + what is its directory
Themes/default/languages/Who.english.php
$txt['who_unknown'] = '<em>Unknown Action</em>';
However, it usually only falls back to "unknown activity" in the case of actions which have not been fully/correctly defined (e.g. a poorly defined mod)
when i go to ( admin ) panel in my forum
this appear in my profile ( currently : Unknown Action )
this ( Unknown Action ) appear only when i log in to admin panel
how i can change this text ( Unknown Action ) in which file + what is its directory
thank you
Can't be done without more information.
Quote from: Arantor on September 30, 2014, 10:31:19 AM
Can't be done without more information.
??????
Actually mashby got it...
Quote from: mashby on September 26, 2014, 05:16:17 PM
Themes/default/languages/Who.english.php
$txt['who_unknown'] = '<em>Unknown Action</em>';
And this guy didn't read for the 3rd time since he didn't check the topic at first, he didn't check the cross-posted one and he is not even reading the messages in here. I think that any further reply will be useless, actually. :(
That string is used for every single time a user hits an action that doesn't have a better string defined.
I could quite easily produce that here without even trying.
action=blah would produce it because action=blah would be checked against $txt['whoaction_blah'] and found to not exist. Consequently any mod that doesn't do its job properly will cause these.
So like I said, it cannot be fixed without further information, because the problem is a mod making action=*something* requests but we don't know what.
Of course, I'm just speculating about all of this...
Ah that's what you meant, but oh well I don't know now. I was thinking that he just wanted to change that string by replacing it with something of his choice but it could be interpreted in that way as well. I can't figure out what he wants and he seems not to care very much, mine is only curiosity :) now I got what you meant though. Replacing an action done by a mod indeed is another thing but it should be up to the mod authors to fix it :P it would be quite easy to me if I didn't get it wrong.
It really depends on how complex the mod is and whether you're planning on interfering too much with the internals of things.
Simple mods that just declare an action - that's easy. Just a language string for the action, one for each subaction you want to be descriptive with, job done.
Want to enforce permissions on it or do things like get extra data (think: user is viewing an item in a gallery), that's suddenly a world more work to do.
Yeah I was thinking about the first case and I have been wondering about the second, I have indeed no idea on how to force permissions in a language string file :o also fetching data and so on will be harder and you are quite obviously talking about LevGal ;)
That was more of a for-example. I haven't decided how far I'm going to go with that yet. It really depends because doing it without file edits is... insanely tricky. Who's Online only offers up one hook in 2.0, and it's called on every item.
Problem is, if that's 25 people all looking at gallery items, that's 25-50 separate database queries. I really need to be able to do it once, but there's no hook for that. I might just leave it as 'viewing an item in the gallery' to keep that part simple and see if I can figure out a better way for doing it in the next version.
See, this mod is actually half the problem; it's possible to deal with it fairly easily purely for the who's online log with a bit of careful coding and imagination but not when it's pulled out into the profile area with something like this mod.
What about doing it halfway? Like "viewing an item in [username]'s gallery? It gets more complicated right?
*feels like being the asker now* xD
Of course it does.
If you're doing *anything* beyond very generic stuff, you run into all the headaches. The basic functionality is fine for most mods.
Also that particular question is suitably hideous in LevGal because a single album can be owned by multiple owners (e.g. jointly owned by two users), alternatively could be owned by a group (think clans)
I forgot that additional authors/co-authors thing. Well about DevGal I'll post in the relative thread :)
Quote from: Kindred on September 26, 2014, 06:08:13 PM
However, it usually only falls back to "unknown activity" in the case of actions which have not been fully/correctly defined (e.g. a poorly defined mod)
right... Arantor was saying exactly what I already said as well...
As for the action and subaction stuff... I actually wrote a tweak/trick to handle much of that in the existing system...
Yeah indeed but I forgot it since it was 5 days ago and I didn't re-read it XD
DrBlack, I can see that you opened another same topic earlier here: http://www.simplemachines.org/community/index.php?topic=527807.0. As such I think this topic just be merged with it.
But I also noticed that you have had support from here as well: http://www.simplemachines.org/community/index.php?topic=385735.msg3745131#msg3745131 for problems you mentioned in the earlier topic.
Though I want to think that you clearly know that this current activity is coming the mod of which you already got some assistance with it, I would also like to think that you might have forgotten about it.
So, again, this is a mod related issue and as such, please refer back to the said mod support page for better solution.
No, he's got the mod installed and it's working fine - 'unknown action' is produced by core SMF code and it can't be changed without figuring out what else is broken.
Sorry but I have to disagree. Current action is part of the mod and should be defined by that mod. It is not displayed by default, so it was not an SMF issue at the first place.
It has been answered in the support page as follows:
Quote from: live627 on September 19, 2014, 04:39:27 AM
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>
IMO he can change that $txt['who_hidden'] to the word that wants i.e. 'nothing or nothing you can see' or to whatever words he wants.
You are wrong. Reading the entire thread may help explain why this is so, but to summarise:
Current action being *displayed* is the mod. $context['member']['action'] is defined by Who.php::determineActions.
The string 'unknown action' is used for one reason and only one reason: because there is no better description. An action has been accessed that has no description. You can change it all you like to be worded differently but that wasn't what the OP was asking for, nor is it what the OP actually wants.
He wants it to be the action it is, not 'unknown action' because he thinks that's a bug. It's not. It's because one or other of the mods he has installed *itself* has a bug by not declaring something to the online list.
This is not an SMF bug because SMF can't make mods magically fix not having an action (and 2.1 tries to do it and ends up revealing a minor security issue in the process).
Quote from: ahrasis on October 03, 2014, 11:43:40 AM
Sorry but I have to disagree. Current action is part of the mod and should be defined by that mod. It is not displayed by default, so it was not an SMF issue at the first place.
It has been answered in the support page as follows:
Quote from: live627 on September 19, 2014, 04:39:27 AM
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>
IMO he can change that $txt['who_hidden'] to the word that wants i.e. 'nothing or nothing you can see' or to whatever words he wants.
thank you very much .. its awesome
it works at my profile :D
but in ( who's online ) it appear my action
can you help
I rather think I am confused, Arantor. You said this:
Quote from: Arantor on October 03, 2014, 11:31:06 AM
No, he's got the mod installed and it's working fine - 'unknown action' is produced by core SMF code and it can't be changed without figuring out what else is broken.
As I stated in post #53, that is added by the mod and as advised by the mod author. That text can be changed to something else. It won't be there at the first place if it is not because of the mod.
The OP doesn't want to display the action for his profile. The OP wants (the said text to be changed to) 'nothing or nothing you can see' instead for his profile and that was it. The OP already confirmed this above.
And for the OP, please, do ask at the mod support page. Your question is with regards to additional field added by that mod.
QuoteAs I stated in post #53
How many more times do I have to explain this?
QuoteYour question is with regards to additional field added by that mod.
No it is NOT.The mod just displays something SMF ALREADY WORKS OUT. If you were to go to the full Who's Online page, you would find that it would ALSO say it there, because both the mod and the full Who's Online page use the same routine - determineActions - to work out what the person in question is doing.
If you have a mod installed that does not declare its action into the online list properly, you will get unknown action entries. PURE AND SIMPLE.
Here's a simple test on a completely unmodified SMF install: get two users. User 1 visits index.php?action=blah. User 2 looks at the online list... guess what user 2 will see for user 1? "Unknown action".
Supposing the mod was installed... they would see "Unknown action" if they looked at user 1's profile - for the EXACT SAME REASON.
It is nothing whatsoever to do with that mod because Profile.php itself declares $context['member']['action'] as the result of determineActions() for the online list and has for a long, long time, it just doesn't *show* the result which is all the mod does.
The correct behaviour is absolutely not to change it to 'nothing or nothing you can see' because the odds are that whatever is being done CAN be seen by the person who is getting the wrong message and that it is a DIFFERENT buggy mod that is the problem.
You seems angry Arantor and I am not in the mood to argue with you. It is as simple as declaring if and or to resolve this by the said mod. It doesn't have to call for the action.
And no need to bark. I am not deaf.
Well, I made a mistake with formatting which I have now fixed, but yes I do generally get quite angry when I have to repeat myself multiple times because people aren't listening to what I'm saying the first two or three times.
Quote from: DrBlack on October 08, 2014, 06:24:36 AM
Quote from: ahrasis on October 03, 2014, 11:43:40 AM
Sorry but I have to disagree. Current action is part of the mod and should be defined by that mod. It is not displayed by default, so it was not an SMF issue at the first place.
It has been answered in the support page as follows:
Quote from: live627 on September 19, 2014, 04:39:27 AM
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>
IMO he can change that $txt['who_hidden'] to the word that wants i.e. 'nothing or nothing you can see' or to whatever words he wants.
thank you very much .. its awesome
it works at my profile :D
but in ( who's online ) it appear my action
can you help
is there any help to appear it in ( who's Online )
Quote from: DrBlack on October 08, 2014, 06:24:36 AM
but in ( who's online ) it appear my action
can you help
Sorry DrBlack. I was still focusing on your OP for both post that is now merged as one. A bit confusing but I think you have resolved you problem.
Now for your second one which you just added as I quoted it above, this one is default SMF action. But default all action that is not defined by SMF or mod(s) will appear as you see.
You need to modify somewhere before this particular code in Who.php.
// Unlisted or unknown action.
else
$data[$k] = $txt['who_unknown'];
}
so what i should do with this code
// Unlisted or unknown action.
else
$data[$k] = $txt['who_unknown'];
}
and it if i modify it to ( nothing or nothing you can see) all members will be like that
or just the owner ? like the owner's profile
Yes. You can simply replace $txt['who_unknown'] with 'nothing or nothing you can see'. This way, all unknown action will be nothing or nothing you can see, for everyone unknown action including you as forum admin/owner.
But It is better if you follow mashby advice and change the code
Quote from: mashby on September 26, 2014, 05:16:17 PM
Themes/default/languages/Who.english.php
$txt['who_unknown'] = '<em>Unknown Action</em>';
Similarly, change Unknown Action to nothing or nothing you can see.
thank you.,
but i dont just want to replace "unknown action"
i want to replace ( all owner action )
like this code.
Quote from: ahrasis on October 03, 2014, 11:43:40 AM
Sorry but I have to disagree. Current action is part of the mod and should be defined by that mod. It is not displayed by default, so it was not an SMF issue at the first place.
It has been answered in the support page as follows:
Quote from: live627 on September 19, 2014, 04:39:27 AM
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>
IMO he can change that $txt['who_hidden'] to the word that wants i.e. 'nothing or nothing you can see' or to whatever words he wants.
which appear the text always in owner action ( in profile ) but in who's online its appear the action. like ( vewing the forum )
i want to do the same in who's online
thank you
Quote from: ahrasis on October 10, 2014, 04:36:15 AM
Yes. You can simply replace $txt['who_unknown'] with 'nothing or nothing you can see'. This way, all unknown action will be nothing or nothing you can see, for everyone unknown action including you as forum admin/owner.
But It is better if you follow mashby advice and change the code
Quote from: mashby on September 26, 2014, 05:16:17 PM
Themes/default/languages/Who.english.php
$txt['who_unknown'] = '<em>Unknown Action</em>';
Similarly, change Unknown Action to nothing or nothing you can see.
Well, actually, after opening the who language file I just realized this is wrong. The $txt['who_hidden'] is already there to assist you.
And for your request, I find it even harder. For action=admin (without ;area= at its back), the $txt['who_hidden'] is already in place BUT, if it comes with area=whatever, then the $txt['who_unknown'] will be used.
If you want to use $txt['who_hidden'] for area under action=admin as well, then you will to define all of them somewhere around this code. That will be a very tedious job.
// Unlisted or unknown action.
else
$data[$k] = $txt['who_unknown'];
}
QuoteFor action=admin (without ;area= at its back), the $txt['who_hidden'] is already in place BUT, if it comes with area=whatever, then the $txt['who_unknown'] will be used.
Only under *some* circumstances for some users. There are certain times this will be the case, however.
Huh? Really? I do not understand at all. Care to explain further?
There's a ton of permissions checks that get carried out inside determineActions(). Beginning with:
// Actions that require a specific permission level.
$allowedActions = array(
'admin' => array('moderate_forum', 'manage_membergroups', 'manage_bans', 'admin_forum', 'manage_permissions', 'send_mail', 'manage_attachments', 'manage_smileys', 'manage_boards', 'edit_news'),
'ban' => array('manage_bans'),
The idea is that you have to have relevant permission to be able to see this.
However... I am now wondering if this is actually buggy because back in 1.1.x those things certainly were actions. In 2.0, of course, they are not.
I can already see one bug... censoring is listed as moderate_forum but as of RC4 or RC5, configuring the censor was elevated to admin_forum for security reasons. But it may be more buggy, and if that is the case... it would behave as you describe even if it that is not how it is *supposed* to act. The idea is that if you can do a thing, you can see when others are doing the same thing.
// Viewable only by administrators.. (if it starts with whoadmin, it's admin only!)
elseif (allowedTo('moderate_forum') && isset($txt['whoadmin_' . $actions['action']]))
$data[$k] = $txt['whoadmin_' . $actions['action']];
// Viewable by permission level.
elseif (isset($allowedActions[$actions['action']]))
{
if (allowedTo($allowedActions[$actions['action']]))
$data[$k] = $txt['whoallow_' . $actions['action']];
else
$data[$k] = $txt['who_hidden'];
}
// Unlisted or unknown action.
else
$data[$k] = $txt['who_unknown'];
}
If I am taking the said idea, did you mean change the above code to something like this to resolve the issue?
// Viewable only by administrators.. (if it starts with whoadmin, it's admin only!)
elseif (allowedTo('moderate_forum') && isset($txt['whoadmin_' . $actions['action']]))
$data[$k] = $txt['whoadmin_' . $actions['action']];
// Extend $txt['who_hidden'] from just action=admin to action=admin;area as well unless they are already defined above
elseif (isset($allowedActions['admin']))
$data[$k] = $txt['who_hidden'];
// Viewable by permission level.
elseif (isset($allowedActions[$actions['action']]))
{
if (allowedTo($allowedActions[$actions['action']]))
$data[$k] = $txt['whoallow_' . $actions['action']];
else
$data[$k] = $txt['who_hidden'];
}
// Unlisted or unknown action.
else
$data[$k] = $txt['who_unknown'];
}
And did you mean using allowedTo('moderate_forum') is a bug in this source file like this line: elseif (allowedTo('moderate_forum') && isset($txt['whoadmin_' . $actions['action']]))?
From what I tested, as an admin seeing another admin, it will only display admin action as unknown except the watching admin is a mod.
The answer to both of your questions is no, that is not what I meant. Good luck.
the text always in owner action ( in profile ) but in who's online its appear the action. like ( vewing the forum )
i want to do the same in who's online
thank you
======================
can anyone give me the code to appear the owner action at ( who's online ) like this "nothing or nothing you can see"
ty
DrBlack,
I am sorry, but your questions continue to be very confusing and make little sense. I assume it is because you are not used to writing in English... but please explain exactly what you mean?
you want to replace "unknown action" in all situations with "nothing, or nothing you can see"?
(sorry, but that makes very little sense, if so)
if that is what you want, then Mashby told you what to change, in reply #36, weeks ago.
Quote from: mashby on September 26, 2014, 05:16:17 PM
Themes/default/languages/Who.english.php
$txt['who_unknown'] = '<em>Unknown Action</em>';
If that is NOT what you want, then you will need to be much more clear... (or ask your questions in the board dedicated to support in your native language where you can hopefully explain better in your native language)
i dont want only change "unkown action"
i want change all actions
exactly like this :-
Quote<dd>', $context['member']['group_id'] == 1 ? $txt['who_hidden'] : $context['member']['action'], '</dd>
IMO he can change that $txt['who_hidden'] to the word that wants i.e. 'nothing or nothing you can see' or to whatever words he wants.
i use this , then its appear (nothing , or nothing you can see )in my profile all times.
but in ( who's online )
it appear the action like ( vewing the forum )
i want to do the same i did in profile.
to do it in who's online
i hope its clear
thank you
why?
because i want this ;)
Quote from: ahrasis on October 11, 2014, 10:31:42 PM
// Viewable only by administrators.. (if it starts with whoadmin, it's admin only!)
elseif (allowedTo('moderate_forum') && isset($txt['whoadmin_' . $actions['action']]))
$data[$k] = $txt['whoadmin_' . $actions['action']];
// Extend $txt['who_hidden'] from just action=admin to action=admin;area as well unless they are already defined above
elseif (isset($allowedActions['admin']))
$data[$k] = $txt['who_hidden'];
// Viewable by permission level.
elseif (isset($allowedActions[$actions['action']]))
{
if (allowedTo($allowedActions[$actions['action']]))
$data[$k] = $txt['whoallow_' . $actions['action']];
else
$data[$k] = $txt['who_hidden'];
}
// Unlisted or unknown action.
else
$data[$k] = $txt['who_unknown'];
}
can you explain please where to add this code + how to add + what to change in it
thank you
Quote from: ahrasis on October 10, 2014, 03:05:30 AM
You need to modify somewhere before this particular code in Who.php.
// Unlisted or unknown action.
else
$data[$k] = $txt['who_unknown'];
}