2 quick questions

Started by familydad, December 06, 2013, 08:01:06 PM

Previous topic - Next topic

familydad

I was wondering if i can remove the "report to moderator" option,

And then is there a way to hide the news box from non members?

Thanks heaps!!

Arantor

Um, why? Why would you not want users to be able to report posts that are potentially awkward? There are ways but I want to be sure that I'm doing the right thing in telling you.

There is no way to hide the news box from non members without changing the code. It is something we have identified and will be fixing in the next version of SMF. Would you want to hide all news or just some items?

margarett

Good timing, I had already written the answer to 1) :P
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

QuoteOver 90% of all computer problems can be traced back to the interface between the keyboard and the chair

xrunner

Quote from: familydad on December 06, 2013, 08:01:06 PM
I was wondering if i can remove the "report to moderator" option,

I wouldn't do that.

It's always good to know what the members are reporting. Of course, you have no obligation to do anything about the reports (why you wouldn't I've no idea).

But, it's good info to read even if you don't want to act on it.  :)

Arantor

Well, here's the thing... reporting of posts is actually controlled by a permission, reporting of PMs is actually just a straight option - I have yet to understand when you would actually remove either on a general basis. The only scenarios I can envisage you *needing* to is if you have a user who is being a jerk by reporting them, and of course to stop guests using it (but there are other ways of doing this)

QuoteOf course, you have no obligation to do anything about the reports (why you wouldn't I've no idea).

I don't generally read the reports here, but mostly because everyone else ninja's me in dealing with them :o

familydad

Quote from: Arantor Beeblebrox the First on December 06, 2013, 09:01:08 PM
Um, why? Why would you not want users to be able to report posts that are potentially awkward? There are ways but I want to be sure that I'm doing the right thing in telling you.

There is no way to hide the news box from non members without changing the code. It is something we have identified and will be fixing in the next version of SMF. Would you want to hide all news or just some items?

All news, if at all possible. as for the Report, its a request from my boss, she wants it to be a "cleaner" look.

Arantor

OK, easiest way to deal with the news is to find this line in Sources/Subs.php:
// Get some news...

After it, on the next line, add this:
if ($user_info['is_guest'])
    $settings['enable_news'] = false;


As for the reporting, while you can do it by removing the relevant permission in the admin panel, we strongly do not encourage this. It is an important tool for managing busy sites where staff can't read every single post all the time.

familydad

Quote from: Arantor Beeblebrox the First on December 06, 2013, 09:16:58 PM
OK, easiest way to deal with the news is to find this line in Sources/Subs.php:
// Get some news...

After it, on the next line, add this:
if ($user_info['is_guest'])
    $settings['enable_news'] = false;


As for the reporting, while you can do it by removing the relevant permission in the admin panel, we strongly do not encourage this. It is an important tool for managing busy sites where staff can't read every single post all the time.

Thank you VERY much, and i will let my boss know about the Reporting.

xrunner

QuoteOf course, you have no obligation to do anything about the reports (why you wouldn't I've no idea).

Quote from: Arantor Beeblebrox the First link=topic=515425.msg3644598#msg3644598
I don't generally read the reports here, but mostly because everyone else ninja's me in dealing with them :o

Shoot, I'm ninja'ed on answers to basic support question daily.  :P

Arantor

Oh, you might not remember the story that went around a few years ago.

Someone, I forget who, might have been Eliana, had in their signature that SMF 7 would be 'where it gets good' because it's the one that has time travel.

I don't quite know how it happened but it was a running joke for ages that I wasn't really human but a robot sent from the future to fix the mess that was SMF 6 and pave the way for future SMF to occur, Terminator style.

Of course, SMF 7 won't have time travel and I'm not really a futuristic cyborg here to save the day but it is fun.

Sir Osis of Liver

Quote from: familydad on December 06, 2013, 09:10:36 PM
...... she wants it to be a "cleaner" look.

That's why I remove it, and the ip widget.  In Display.template.php comment out this section -



<!--div class="smalltext reportlinks">';

// Maybe they want to report this post to the moderator(s)?
if ($context['can_report_moderator'])
echo '
<a href="', $scripturl, '?action=reporttm;topic=', $context['current_topic'], '.', $message['counter'], ';msg=', $message['id'], '">', $txt['report_to_mod'], '</a> &nbsp;';

// Can we issue a warning because of this post?  Remember, we can't give guests warnings.
if ($context['can_issue_warning'] && !$message['is_message_author'] && !$message['member']['is_guest'])
echo '
<a href="', $scripturl, '?action=profile;area=issuewarning;u=', $message['member']['id'], ';msg=', $message['id'], '"><img src="', $settings['images_url'], '/warn.gif" alt="', $txt['issue_warning_post'], '" title="', $txt['issue_warning_post'], '" /></a>';
echo '
<img src="', $settings['images_url'], '/ip.gif" alt="" />';

// Show the IP to this user for this post - because you can moderate?
if ($context['can_moderate_forum'] && !empty($message['member']['ip']))
echo '
<a href="', $scripturl, '?action=', !empty($message['member']['is_guest']) ? 'trackip' : 'profile;area=tracking;sa=ip;u=' . $message['member']['id'], ';searchip=', $message['member']['ip'], '">', $message['member']['ip'], '</a> <a href="', $scripturl, '?action=helpadmin;help=see_admin_ip" onclick="return reqWin(this.href);" class="help">(?)</a>';
// Or, should we show it because this is you?
elseif ($message['can_see_ip'])
echo '
<a href="', $scripturl, '?action=helpadmin;help=see_member_ip" onclick="return reqWin(this.href);" class="help">', $message['member']['ip'], '</a>';
// Okay, are you at least logged in?  Then we can show something about why IPs are logged...
elseif (!$context['user']['is_guest'])
echo '
<a href="', $scripturl, '?action=helpadmin;help=see_member_ip" onclick="return reqWin(this.href);" class="help">', $txt['logged'], '</a>';
// Otherwise, you see NOTHING!
else
echo '
', $txt['logged'];

echo '
</div-->';



Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

Arantor

Why are you editing the template to remove the report link when you might as well just remove their permission to do it in the first place? If they can't see the link they won't be able to report it anyway.

Oh, and removing that snippet will also remove the ability to actually issue a warning conveniently.

Sir Osis of Liver


Because I can still see it.

I hate clutter.  >:(

Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

Burke ♞ Knight

Rather have the "clutter" than not have the functions.
In my opinion, removing them is not a good idea.

rcane

Quote from: familydad on December 06, 2013, 09:27:00 PM
Quote from: Arantor Beeblebrox the First on December 06, 2013, 09:16:58 PMOK, easiest way to deal with the news is to find this line in Sources/Subs.php:
// Get some news...
After it, on the next line, add this:
if ($user_info['is_guest'])
    $settings['enable_news'] = false;

As for the reporting, while you can do it by removing the relevant permission in the admin panel, we strongly do not encourage this. It is an important tool for managing busy sites where staff can't read every single post all the time.

Thank you VERY much, and i will let my boss know about the Reporting.


This code worked great for "guest" users, but what would i put in there for a particular member group?   I tried different permutations of the group name (it's "front porch"), but it doesn't seem to work. 

Kindred

The system does not look at NAME, it uses the group ID value
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Sir Osis of Liver

As posted elsewhere, you can find id_group in smf_membergroups table in database.
Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

Advertisement: