Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
general-topic
Subforum order & Selectable Forums for Recent posts
Avatar
Kaledo
Member
Free Members
sp_UserOfflineSmall Offline
Jan 23, 2014 - 8:18 pm

Yellow Swordfish said
Well now you are going off in a different direction to your original request  (having an option to send out emails or not for subscribed topics). It was just a suggestion on my part that might have helped with your original request.

An alternative wold be the 'watch' plugin - which are really a form of bookmarks. More or less the same as subscriptions but without the emails. But no - there is no watch whole forum option so I guess that wont do either.

So - going back to the original question then sorry - but no.

Then can I put a copy of the subscribe plugin in another folder, renaming it and remove all the mail functions in it? Could it work? Do I need to change anything else to not conflict with the original unmodified version?

Thanks for your answer

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Jan 23, 2014 - 8:56 pm

you would have to change all the function names and global stuff...  and the name of the plugin and files...  lest you get duplicate definition problems..  so no...

if what you really want is subscriptions but no emails, that is, as Andy said, really just the watches plugin...  alas, you cannot watch a forum, just a topic... 

so depending on how much you wanted to remove the email part from subscriptions, you could just use a hook to prevent emails from getting sent...  something like:

add_filter('sph_subscriptions_combined_list', 'my_subs_remove_email');
function my_subs_remove_email($users) {
    return '';
}

so no emails will get sent...

Avatar
Kaledo
Member
Free Members
sp_UserOfflineSmall Offline
Jan 26, 2014 - 12:27 pm

Mr Papa said
you would have to change all the function names and global stuff...  and the name of the plugin and files...  lest you get duplicate definition problems..  so no...

if what you really want is subscriptions but no emails, that is, as Andy said, really just the watches plugin...  alas, you cannot watch a forum, just a topic... 

so depending on how much you wanted to remove the email part from subscriptions, you could just use a hook to prevent emails from getting sent...  something like:

add_filter('sph_subscriptions_combined_list', 'my_subs_remove_email');
function my_subs_remove_email($users) {
    return '';
}

so no emails will get sent...

Yes, I'm willing to sacrifice the email sending completely until i rewrite the subs plugin. So this seems the solution to my problem for now. Where do I have to insert that filter exactly?

Thanks

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Jan 26, 2014 - 2:47 pm

The file spFunctions.php in the /templates folder if your SP theme is really intended fro those custom code snippets.

As always we recommend that you create your own SP theme so that any customisation is not lost during a future update. (http://codex.simple-press.com/.....g-a-theme/)

andy-signature.png
YELLOW
SWORDFISH
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: 17361
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10127
Posts: 79625