Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
plugins-topic
Filter to remove post content in subscription email
Avatar
Brandon
U.S.
SP Wrangler
Free Members
sp_UserOfflineSmall Offline
Nov 3, 2012 - 10:28 pm

I need to remove the post content from the email sent to users on a site.

I want to remove this part.

     $msg.= __('Post', 'sp-subs').": ".$eol.$post_content.$eol.$eol;

In the plugin it would be easy to comment out that line.

# subscribers message
        $msg = '';
        $msg.= __('New post on a forum or topic you are subscribed to at', 'sp-subs').' '.get_option('blogname').':'.$eol.$eol;
        $msg.= __('From', 'sp-subs').': '.$newpost['postername'].$eol;
        $msg.= __('Group', 'sp-subs').': '.$groupname.$eol;
        $msg.= __('Forum', 'sp-subs').': '.$forumname.$eol;
        $msg.= __('Topic', 'sp-subs').': '.$topicname.$eol;
        $msg.= __('URL', 'sp-subs').': '.urldecode($newpost['url']).$eol.$eol;
#        $msg.= __('Post', 'sp-subs').": ".$eol.$post_content.$eol.$eol;
        $msg.= __('To unsubscribe, please visit your profile', 'sp-subs').': '.sp_get_sfqurl(sp_url('profile')).'ptab=subscriptions&pmenu=topic-subscriptions'.$eol;

        # let plugins hook into this email
        $msg = apply_filters('sph_subscriptions_notification', $msg, $newpost);

But so I would not have to be concerned with future updates how would the best way to use the filter to do this?

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: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 619
Members: 17363
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10127
Posts: 79625