Report PM to administrator

Started by Thantos, April 28, 2005, 02:07:31 PM

Previous topic - Next topic

Thantos

Link to Mod

This mod allows you to report a PM to an administrator.  A copy of the PM will be sent in the email.  If the sender is an administrator they are not sent an email.

Gary

Nice. Could come in handy, any chance it could work for SMF 1.1 Beta 1?
Gary M. Gadsdon
Do NOT PM me unless I say so
War of the Simpsons
Bongo Comics Fan Forum
Youtube Let's Plays

^ YT is changing monetisation policy, help reach 1000 sub threshold.

Thantos

Not the version I put up.  SMF 1.1 changed the name of the tables they are stored in.  It shouldn't be that hard to change I suppose.

dtm.exe

#3
Is this mod compatible with themes other than the SMF default theme?

EDIT:  This mod seems to be functioning just fine on the SMFOne theme, so I'm guessing that it's compatible with other themes as well.  By the way, great job on another successful SMF mod :).

-Dan The Man

Thantos

It does make a theme change to add in the link to report it.  So you may need to manually add in the change to the other themes.

SeaOfSin

OK, I installed the mod and it sends the pm by email, but it doesn't show the text they write in the box when they click on the link to report.  Also what are the links in the email for?  They seem to be a link to the private message but it just shows their profile!  :-\


Sea Of Sin

Thantos

#6
The link are the user's links.  You can't have a link to the PM as SMF won't let you see it.  Thats why it's included in the email.

The comment isn't included.  Looks like I forgot about that.

Fixed with 0.2 which is now up.

SeaOfSin

#7
Quote from: MikeMill on April 29, 2005, 01:08:13 AM
The link are the user's links.  You can't have a link to the PM as SMF won't let you see it.  Thats why it's included in the email.

The comment isn't included.  Looks like I forgot about that.

Fixed with 0.2 which is now up.

OK, Thanks I figured it would be something like that!

I've upgraded to 0.2 and I'll have a look to see if all is good!

Thanks Again

Sea Of Sin


EDIT: Everything works great now!!!!

Sea Of Sin

WOLKA

#8
Hi,
I have installed this mod, but I don't receive any email...
please help..

On my server sendmail() function is disabled...
Does it use it?
If yes , is it possible to use smtp instead?

thanks,
Serhiy Horobets, [email protected]

Ben_S

Quote from: Gazmanafc on April 28, 2005, 04:14:29 PM
Nice. Could come in handy, any chance it could work for SMF 1.1 Beta 1?

Beta2 will have that feature built in when it comes out.
Liverpool FC Forum with 14 million+ posts.

Trekkie101

Nice mod.

(wondering how i'd reply? :P)

Ill need to use this one on a school site we have, powered by SMF.

Thantos

Quote from: Serhiy on May 03, 2005, 06:34:02 AM
Hi,
I have installed this mod, but I don't receive any email...
please help..

On my server sendmail() function is disabled...
Does it use it?
If yes , is it possible to use smtp instead?

thanks,
This mod uses SMF's mail function.  That function uses smtp or sendmail depending on how you have it configured.

Thantos

Quote from: Ben_S on May 03, 2005, 07:19:44 AM
Quote from: Gazmanafc on April 28, 2005, 04:14:29 PM
Nice. Could come in handy, any chance it could work for SMF 1.1 Beta 1?

Beta2 will have that feature built in when it comes out.
Oh sure steal my thunder ;)

Gary

Quote from: Ben_S on May 03, 2005, 07:19:44 AM
Quote from: Gazmanafc on April 28, 2005, 04:14:29 PM
Nice. Could come in handy, any chance it could work for SMF 1.1 Beta 1?

Beta2 will have that feature built in when it comes out.

Whicked! Thanks for letting me know Ben!
Gary M. Gadsdon
Do NOT PM me unless I say so
War of the Simpsons
Bongo Comics Fan Forum
Youtube Let's Plays

^ YT is changing monetisation policy, help reach 1000 sub threshold.

Miraenda

Quote from: MikeMill on May 03, 2005, 01:58:07 PM
Quote from: Ben_S on May 03, 2005, 07:19:44 AM
Quote from: Gazmanafc on April 28, 2005, 04:14:29 PM
Nice. Could come in handy, any chance it could work for SMF 1.1 Beta 1?

Beta2 will have that feature built in when it comes out.
Oh sure steal my thunder ;)

Well, it is a great idea for a mod, and even better than the next Beta will have it in the default.  It makes sense that if you can report a post to a moderator that you should likewise be able to report a PM to the administrator of the forum.  Great job Mike. :)

WOLKA

Quote from: MikeMill on May 03, 2005, 10:11:05 AM
Quote from: Serhiy on May 03, 2005, 06:34:02 AM
Hi,
I have installed this mod, but I don't receive any email...
please help..

On my server sendmail() function is disabled...
Does it use it?
If yes , is it possible to use SMTP instead?

thanks,

This mod uses SMF's mail function.  That function uses smtp or sendmail depending on how you have it configured.

So why I don't receive messages?
(my SMTP is configured correctly - I receive Reply notifications from the forum...)
Thanks,
Serhiy Horobets, [email protected]

Thantos

Try reporting a post and make sure you recieve that email on the admin's account.
I used almost the exact same code as the report to moderator.

Also make sure you aren't reporting one the administrator's PMs.

WOLKA

I receive email on the admin's account
when reporting a post...

BTW:
There is a problem with Uninstaller. It says:
1. Execute Modification ./Themes/default/languages/Modifications.english.php Failure
Serhiy Horobets, [email protected]

Chocobo

This is a great mod.  However, I have installed it, and I can send the emails etc. Only one problem is after I actually send the report with the body etc, the email arrives no problems, all contents there, only in the forum error logs there is about 10 entries along the lines of:
8: Undefined variable: language
File: /www/f/fantasysquar/htdocs/Sources/ReportPm.php
Line: 139

8: Undefined variable: user_info
File: /www/f/fantasysquar/htdocs/Sources/ReportPm.php
Line: 141

8: Undefined variable: language
File: /www/f/fantasysquar/htdocs/Sources/ReportPm.php
Line: 139

etc etc etc.

This happens both on the default skin and my custom one.

Anyone got any ideas for this small problem in the  mod?

Thanks in advance!

Thantos

Thanks for the bug report.  I'll try to get a new package up asap to fix it but till then:
Open ReportPm.php and find
function ReportPM2()
{
	
global 
$txt$scripturl$db_prefix$ID_MEMBER$modSettings$sourcedir;


replace with
function ReportPM2()
{
	
global 
$txt$scripturl$db_prefix$ID_MEMBER$modSettings$sourcedir$language$user_info;

Chocobo


Karecki

Could this mod be made to work on 1.0.3 ?
Lost again!...Thank God it's only temporarily ;D

SeaOfSin

Quote from: Karecki on June 02, 2005, 04:03:35 AM
Could this mod be made to work on 1.0.3 ?

It works fine for me! :)  I'm using 1.03!


Sea Of Sin

Gary

The mod was designed to work in 1.0.3, however, there is no need to bother installing it in 1.1 Beta 2 as it is built in.
Gary M. Gadsdon
Do NOT PM me unless I say so
War of the Simpsons
Bongo Comics Fan Forum
Youtube Let's Plays

^ YT is changing monetisation policy, help reach 1000 sub threshold.

Karecki

I just realised that using the Sitra theme probably makes the difference - and it did! Anyway, I got it working now.

Thanks.  :D
Marlene
Lost again!...Thank God it's only temporarily ;D

d3v

Using SMFOne_Grey template in SMF 1.0.4

Is this mod compatible? Thank you.

dtm.exe

#26
Quote from: d3v on June 11, 2005, 12:01:16 AM
Using SMFOne_Grey template in SMF 1.0.4

Is this mod compatible? Thank you.

Yes.  It should work with the SMFOne theme, but I don't know about it working with SMF 1.0.4.

-Dan The Man

littleone

Some how I got this mod uploaded twice.  So at the bottom of every pm is says "Report this PM to an Adminstrator" two times.  How do I remove one of these?

thanks!

ukrob12

I installed the mod in SMFOne in version 1.0.5, and it just didn't work, no "report pm" thing came up?????

Thantos

As SMF now has a public beta of 1.1 it is no longer is my interest to develop mods for 1.0

As this feature is now standard with 1.1 I am no longer supporting this mod.  I encourage you all to upgrade to 1.1

Thanks

Advertisement: