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
Is there a way to prevent the subscription email containing the contents of the post?
Avatar
dobbiedada
Member
Free Members
sp_UserOfflineSmall Offline
Feb 11, 2014 - 3:47 pm

Is there a way to prevent the subscription email containing the contents of the post?  E.g. just give the user a link they can click on to see the post or reply in the forum?

Avatar
Brandon
U.S.
SP Wrangler
Free Members
sp_UserOfflineSmall Offline
Feb 11, 2014 - 9:07 pm

dobbiedada said
Is there a way to prevent the subscription email containing the contents of the post?  E.g. just give the user a link they can click on to see the post or reply in the forum?

You can add a filter to the sp_functions file in your SP theme to remove the content.

Something like

add_filter('sph_subs_post_content', 'filter_subs_content',10,3);

function filter_subs_content($post_content, $newpost) {
$newpost= '';
return $newpost;
}

If changing the theme though you should be running a custom one so the changes do not get overwritten on updates.

 

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Feb 11, 2014 - 10:52 pm

was answered in your original post too...  https://simple-press.com/suppo.....-to-forum/

Avatar
dobbiedada
Member
Free Members
sp_UserOfflineSmall Offline
Feb 12, 2014 - 7:56 am

Mr Papa said

was answered in your original post too...  https://simple-press.com/suppo.....-to-forum/

I'm not seeing that the subscription question is related to the question of removing the topic from the body of notification emails, am I missing something?

Avatar
dobbiedada
Member
Free Members
sp_UserOfflineSmall Offline
Feb 12, 2014 - 8:06 am



You can add a filter to the sp_functions file in your SP theme to remove the content.

This is great, many thanks!

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Feb 12, 2014 - 10:51 am

So... good now?

andy-signature.png
YELLOW
SWORDFISH
Avatar
dobbiedada
Member
Free Members
sp_UserOfflineSmall Offline
Feb 12, 2014 - 1:48 pm

Yup, I will give the sp_functions suggestion a try.

Avatar
dobbiedada
Member
Free Members
sp_UserOfflineSmall Offline
Feb 12, 2014 - 6:54 pm

That seems to work great, thanks!

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Feb 12, 2014 - 10:06 pm

cool... thanks for the update...

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