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
Subscription plugin change request: include topic text & post author in digest
Avatar
Natalya Murphy
Member
Free Members
sp_UserOfflineSmall Offline
Jan 27, 2013 - 9:55 am

We would like to be able to see at least some of the text for each topic included in the digest, as well as the topic author. 

 

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Jan 27, 2013 - 10:28 am

we talked about this when digests were added and decided against it... for busy forums this would could be a resource drain... and would either require more db storage or more queries and resources at email time...

so we chose to keep it lean and mean for performance... but we did give you the option to add it in yourself using our filters... when each digest entry is added to the email, you can hook into and add whatever content you want...

we can consider it in the future, but probably low priority since it can already be done with a filter... do you know how to use filters?

Avatar
Natalya Murphy
Member
Free Members
sp_UserOfflineSmall Offline
Jan 29, 2013 - 10:21 am

Mr Papa said
we talked about this when digests were added and decided against it... for busy forums this would could be a resource drain... and would either require more db storage or more queries and resources at email time... so we chose to keep it lean and mean for performance... but we did give you the option to add it in yourself using our filters... when each digest entry is added to the email, you can hook into and add whatever content you want... we can consider it in the future, but probably low priority since it can already be done with a filter... do you know how to use filters?

Do you mean the filters described at http://codex.simple-press.com/.....criptions/?  Didn't realize these were available -- thanks!

 

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Jan 29, 2013 - 2:25 pm

You got it.

andy-signature.png
YELLOW
SWORDFISH
Avatar
Omar Jordan
Member
Free Members
sp_UserOfflineSmall Offline
Feb 1, 2014 - 1:56 pm

Hi,

I'm not familiar with how to use filters and I would love to use them to modify the actions of the Subscription plugin. Could you point me in the right direction?

Thanks so much.

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Feb 1, 2014 - 2:51 pm

http://codex.wordpress.org/Plugin_API

tells you have actions and filter works...

what are you trying to do?  post content for digests is already an option...

Avatar
Omar Jordan
Member
Free Members
sp_UserOfflineSmall Offline
Feb 2, 2014 - 7:27 am

I am trying to implement the following: 

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

 

function filter_subs_content($post_content, $newpost) {

$post_content= '';

return $post_content;

But I'm not sure how...where to put the filter.

Avatar
Brandon
U.S.
SP Wrangler
Free Members
sp_UserOfflineSmall Offline
Feb 2, 2014 - 10:17 am

You would put that in the spFunctions.php file of your SP theme.
You should be running a custom theme if you do because any changes to supplied themes will be overwritten on updates.

Avatar
Omar Jordan
Member
Free Members
sp_UserOfflineSmall Offline
Feb 2, 2014 - 3:23 pm

Thank you so much.

That's exactly what I needed to know.

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

you are welcome...

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