Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
custom-topic
Change Msg Title "Reported Posts" Email Subjest
Avatar
Gezonde Culturen
Rookie
Free Members
sp_UserOfflineSmall Offline
Apr 23, 2016 - 8:53 am
sp_QuotePost Quote

Hi all,

After reading the Codex page for this plugin I know this is a) a very simple, minor edit and b) I know too little php to even manage that 🙁
I understand which line I need to edit, but playing with it didn't get the desired result ...

apply_filters(‘sph_report_post_email_subject’, sprintf(__(‘[%s] questionable post report’, ‘sp-report’), get_option(‘blogname’)), $posted, $reporter)

Since I use 'Post by email' to post reports to a moderator forum, I would very much like the subject to read:
(Name of reporter) reported (name of poster) in (topic title).

Since the subject line becomes the title topic in the mod forum, this would help us all a lot 🙂

Thanks for helping out a gal who needs to buy herself a copy of 'php for idiots' 😀

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Apr 23, 2016 - 12:25 pm
sp_QuotePost Quote

yes, you can change the subject/body of the report post email to be what you like...  you do with the filters..  you would not need to edit the code itself...

if  you need a primer on how wordpress filters work, see:  https://codex.wordpress.org/Plugin_API

to change the subject, you use the filter:  sph_report_post_email_subject

to change the body, you use the filter:  sph_report_post_email_msg

for detailed support on using wp (and our) filters, please open a new topic in the support forum...

Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 649
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 616
Members: 17348
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10118
Posts: 79603