Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Topic started by: ThijsW on September 09, 2014, 02:49:57 PM

Title: Remove SMF news from the moderation panel
Post by: ThijsW on September 09, 2014, 02:49:57 PM
Hello,

By default, there SMF news on the moderation panel. I will that moderators doesn't see this, and this is not interesting for them. They know that it is powered by SMF and that's enough.

How can I remove this option for moderators? Completely away from the panel moderator. Only on the admin panel.

Regards, Thijs.
Title: Re: Remove SMF news from the moderation panel
Post by: Ninja ZX-10RR on September 09, 2014, 03:06:41 PM
Forum » Moderation Center » Change Settings » SM News Uncheck that box :)

Also... http://lmgtfy.com/?q=remove+SMF+news+from+moderation+center would have leaded here: http://www.simplemachines.org/community/index.php?topic=324581.0 :P
Title: Re: Remove SMF news from the moderation panel
Post by: br360 on September 09, 2014, 03:10:54 PM
Quote from: ♦ Ninja ZX-10RR ♦ on September 09, 2014, 03:06:41 PM
Forum » Moderation Center » Change Settings » SM News Uncheck that box :)


That actually just changes your settings in the moderation panel, all other mods and admins would still see the smf news.
Title: Re: Remove SMF news from the moderation panel
Post by: Arantor on September 09, 2014, 03:14:49 PM
Sources/ModerationCenter.php

$context['homepage_blocks'] = array(
'n' => $txt['mc_prefs_latest_news'],
'p' => $txt['mc_notes'],
);


Replace with:
$context['homepage_blocks'] = array(
'p' => $txt['mc_notes'],
);



Find:
// Load what blocks the user actually can see...
$valid_blocks = array(
'n' => 'LatestNews',
'p' => 'Notes',
);


Replace with:
// Load what blocks the user actually can see...
$valid_blocks = array(
'p' => 'Notes',
);
Title: Re: Remove SMF news from the moderation panel
Post by: Ninja ZX-10RR on September 09, 2014, 03:18:22 PM
Quote from: br360 on September 09, 2014, 03:10:54 PM
Quote from: ♦ Ninja ZX-10RR ♦ on September 09, 2014, 03:06:41 PM
Forum » Moderation Center » Change Settings » SM News Uncheck that box :)


That actually just changes your settings in the moderation panel, all other mods and admins would still see the smf news.
Yes but it's wise to avoid manually editing files like that one IMO. Plus it does actually the same thing, whoever wants it he can keep it while whoever doesn't he can get rid of it in one click :) that replacement instead will remove that block for all users with access to the moderation panel, including admins so that's why I suggested that way instead :)
Title: Re: Remove SMF news from the moderation panel
Post by: br360 on September 09, 2014, 03:20:09 PM
I agree with that except the OP didn't seem to mind keeping the news himself. He wanted his mods to be unable to see the smf news.
Title: Re: Remove SMF news from the moderation panel
Post by: Ninja ZX-10RR on September 09, 2014, 03:23:15 PM
I guess he can choose since both ways were explained ;) mine was the easy one and Arantor's the coding one :)
Title: Re: Remove SMF news from the moderation panel
Post by: Arantor on September 09, 2014, 03:25:13 PM
Well, the news is the same as in the admin panel so he won't lose it himself, it just needs to be hidden there.

I never quite understood the logic of exposing it in the mod panel, except for the notion that the admin might possibly see it more often but judging by poor upgrade history from users, I don't think it makes much difference. (News was removed from the mod centre in 2.1 and notes was made mandatory and bigger)
Title: Re: Remove SMF news from the moderation panel
Post by: Ninja ZX-10RR on September 09, 2014, 03:32:00 PM
Probably because most of the times he cannot connect to smf.org... Well.. 9/10 of the times it doesn't work to me. Might be related to that as well?
Title: Re: Remove SMF news from the moderation panel
Post by: Steve on September 09, 2014, 03:33:58 PM
Quote from: Arantor on September 09, 2014, 03:25:13 PM... except for the notion that the admin might possibly see it more often  ...

Just now was the first time I'd ever clicked on the moderate panel. *blink*
Title: Re: Remove SMF news from the moderation panel
Post by: Arantor on September 09, 2014, 03:37:18 PM
Quote from: ♦ Ninja ZX-10RR ♦ on September 09, 2014, 03:32:00 PM
Probably because most of the times he cannot connect to smf.org... Well.. 9/10 of the times it doesn't work to me. Might be related to that as well?

In theory no, because both the admin and mod panels get the data from the same place: the relevant locally cached copy of the news JS file. If it's failing to load, there's a JS problem.


@Steve: It's a problem we noticed. Making it more useful without knowing how best to achieve that.
Title: Re: Remove SMF news from the moderation panel
Post by: Ninja ZX-10RR on September 09, 2014, 04:13:20 PM
I have already posted about it, look --> http://www.simplemachines.org/community/index.php?topic=524038.0 I have been told that there is some kind of host problem... But no there is not since sometimes it works (for instance now yes and after refreshing the page again no).
Title: Re: Remove SMF news from the moderation panel
Post by: ThijsW on September 10, 2014, 10:55:51 AM
Quote from: Arantor on September 09, 2014, 03:14:49 PM
Sources/ModerationCenter.php

$context['homepage_blocks'] = array(
'n' => $txt['mc_prefs_latest_news'],
'p' => $txt['mc_notes'],
);


Replace with:
$context['homepage_blocks'] = array(
'p' => $txt['mc_notes'],
);



Find:
// Load what blocks the user actually can see...
$valid_blocks = array(
'n' => 'LatestNews',
'p' => 'Notes',
);


Replace with:
// Load what blocks the user actually can see...
$valid_blocks = array(
'p' => 'Notes',
);


It's works! Thank you for this answer!!
Title: Re: Remove SMF news from the moderation panel
Post by: ThijsW on December 01, 2014, 11:12:45 AM
And how I can remove it from the admin center?  :P
Title: Re: Remove SMF news from the moderation panel
Post by: Arantor on December 01, 2014, 11:26:03 AM
Bad idea. Removing it from the admin panel will also stop notifications to you of new SMF versions.
Title: Re: Remove SMF news from the moderation panel
Post by: Ninja ZX-10RR on December 01, 2014, 11:44:51 AM
Unless you do it via .css code. It is actually doable.
P.s. I'm replying only because I had posted before...
Title: Re: Remove SMF news from the moderation panel
Post by: Arantor on December 01, 2014, 11:49:22 AM
Even then it might actually hide the other notification if you're not careful.

P.S. No-one cares why you reply. If you want to reply to help people, great, if not, that's fine too.
Title: Re: Remove SMF news from the moderation panel
Post by: Ninja ZX-10RR on December 01, 2014, 12:09:54 PM
It won't if you can code .css properly. And no it's not for "helping out", it's a matter of being harrassed or not - that's the reason.

By the way if you are using default theme it's really easy.
Code (find) Select

#live_news
{
width: 64%;
font-size: 0.85em;


Code (add after) Select

display: none;


And that's just it.
Title: Re: Remove SMF news from the moderation panel
Post by: Arantor on December 01, 2014, 12:13:56 PM
"Harassment". Interesting term from you. Rather ironic, too. Had it occurred to you that I might be giving you a hard time to break this 'hero worship' thing going on? Had it occurred to you also that the 'harassment' you claim might be because you're annoying people?


Anyway, yes, that would work - except for the small detail that there is suddenly a huge-ass section of white in its place. Presumably the next thing to do would be to add:

#supportVersionsTable
{
  width: 100%;
}
Title: Re: Remove SMF news from the moderation panel
Post by: Ninja ZX-10RR on December 01, 2014, 12:27:32 PM
[ot]
Quote from: Arantor on December 01, 2014, 12:13:56 PM
"Harassment". Interesting term from you. Rather ironic, too. Had it occurred to you that I might be giving you a hard time to break this 'hero worship' thing going on? Had it occurred to you also that the 'harassment' you claim might be because you're annoying people?

Hero worship? Are you crazy? Never claimed to be anybody. Messages like those are one of the reasons why I am practically not posting, you have just been rude for no reason, and it's not the first time.
Annoying people? Yes probably. I noticed that some people are in some ways jealous if they can't post the answers coz somebody else did that before they could do it themselves. Other than that... Interesting since I often received a lot of thanks rather than "screw you you annoy me". Strange also that I have quite a few people telling me (elsewhere) that I am awesome, even if I don't think that I am "that" awesome, but with some more knowledge than the average well that yes. Also strange that in the italian forum (not italian section) I am one of the major posters and I am just receiving thanks, quite strange. It's just here that I had (and have) problems, it's the only forum in which it happened. So yeah, go on and say it's just me, I'll do like many others already did before me - post, understand how things work, leave.[/ot]

As for the code, yes, if he wanted to do that too. Personally I don't like that panel being stretched like that so I didn't say that :P Guess this is solved so I'm gonna say goodbye once again.

ThisjW if that helped you in any way then good, otherwise it will be the same I guess.
Title: Re: Remove SMF news from the moderation panel
Post by: Arantor on December 01, 2014, 12:37:43 PM
-sigh- I mean the whole dynamic you and me seem to have. Where you couldn't even ask me for help directly but had to go through my friends. Even now that sort of thing is still going on.

I assume you mean me with respect to jealousy? I'm not, if you get the answer right, all is good (though it's envy, not jealousy, the two are quite different), but in most cases the answer is semi-right or has consequences.

As for being annoying... this whole 'leaving' thing is super annoying. If you're going, go. Don't do this 'I'm going except for the topics I've posted in' nonsense. Last time you said you were going, Antes and I both predicted you'd be back inside a week - and you were. If you're going, go.

Meanwhile, rudeness... your observation about CSS was fine - right up until the whole PS bit. Had you not made the PS comment, I wouldn't have got arsy about it, but because you had to twist the knife, expect it right back.

If you legitimately want to help, though, cut the arsy comments and I'll try and be nicer to you. Though... perhaps I should curtail my own posting since it appears to be getting in the way of legitimate support.
Title: Re: Remove SMF news from the moderation panel
Post by: ThijsW on December 01, 2014, 12:48:32 PM
Quote from: ♦ Ninja ZX-10RR ♦ on December 01, 2014, 12:09:54 PM
It won't if you can code .css properly. And no it's not for "helping out", it's a matter of being harrassed or not - that's the reason.

By the way if you are using default theme it's really easy.
Code (find) Select

#live_news
{
width: 64%;
font-size: 0.85em;


Code (add after) Select

display: none;


And that's just it.
Which css document must I search?
Title: Re: Remove SMF news from the moderation panel
Post by: Ninja ZX-10RR on December 01, 2014, 12:54:58 PM
1) it was (not to mention) the-person-who-had-that-avatar-before-you who fvcked up since I never asked him/her to forward you that thing but just an ADVICE. Period. And it was not to bother you, I was trying to be respectful and that's it.

2) the "leaving thing" is just pure courtesy, my hate towards some people doesn't justify refraining from posting help for people I had already tried to help since they didn't do anything bad to me. So it makes sense in that way. And I can't understand the twisting knife thing either. I didn't insult you, didn't want to be rude, didn't do anything and you come up with that. Ok it's me again... BAH.

3) Yes, envy, goofed since I am speaking italian while typing in English. My bad. Btw that's freaking absurd. And oh, you assume too much, I wasn't thinking about you when I said that, but sometimes yes it did include you. Respectfully talking.

4) I am posting in mod support topics because I need to, or because if I like a mod I can donate a translation for it and contribute (the last one was just today), or tricks (just the way I did with dougiefresh's ones) since there is no way I'm gonna donate to the project itself, I used to love it, now I don't. To some authors, yes, but only to the people I think they would deserve it (they would be a few, including you actually, despite your occasional doom behaviour).

5) I'm done with off topics, but I hope this clears things out a bit at least for you, since I always cared about your opinion and thoughts and never really had anything against you except being worried about your own health for coding too much, I guess you-know-who could testify it quite easily as well, even quoting Skype conversations. And I respect you that much that I did my best not to mention that person, as you can see, since he/she asked me not to do it.

@ThijsW the edits should be made in admin.css, both of them (including Arantor's one).
Title: Re: Remove SMF news from the moderation panel
Post by: ThijsW on December 01, 2014, 01:05:14 PM
Quote from: ♦ Ninja ZX-10RR ♦ on December 01, 2014, 12:09:54 PM
It won't if you can code .css properly. And no it's not for "helping out", it's a matter of being harrassed or not - that's the reason.

By the way if you are using default theme it's really easy.
Code (find) Select

#live_news
{
width: 64%;
font-size: 0.85em;


Code (add after) Select

display: none;


And that's just it.

Thanks, it works!
Title: Re: Remove SMF news from the moderation panel
Post by: Ninja ZX-10RR on December 01, 2014, 01:13:20 PM
Glad it did :)