News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Force Members to go to the forum to read announcements

Started by Bobn, May 15, 2011, 12:39:48 PM

Previous topic - Next topic

Bobn

I would like to Force Members to go to the forum to read announcements with just a simple message "You have to click here (Link) to read this message. I have several members to lazy to go to the forum to read them ;)

CapadY

Take a look at the MOD-site.

There is a MOD that show members a topic once as soon they log in. It wouldn't be updated for RC5 but maybe it is usefull or it needs only a small modification.
Please, don't PM me for support unless invited.
If you don't understand this, you will be blacklisted.

Bobn

Thanks! But I think I need to comment the message out in the code. Is this the right area? EmailTemplate

{REGARDS}',
),
'new_announcement' => array(
/*
@additional_params: new_announcement
TOPICSUBJECT: The subject of the topic being announced.
MESSAGE: The message body of the first post of the announced topic.
TOPICLINK: A link to the topic being announced.
@description:

*/
'subject' => 'New announcement: {TOPICSUBJECT}',
'body' => '{MESSAGE}
You must to click here to read this message in the Bands Forum:
{TOPICLINK}

CapadY

I think this is a different thing.

The MOD force people to read a specific topic. It can be an announcement but shouldn't have to be.
So, the piece of code you've posted is about the announcement mail thats send. It have nothing to do with the MOD I pointed to.
Please, don't PM me for support unless invited.
If you don't understand this, you will be blacklisted.

Bobn

Quote from: CapadY on May 15, 2011, 05:53:59 PM
I think this is a different thing.

The MOD force people to read a specific topic. It can be an announcement but shouldn't have to be.
So, the piece of code you've posted is about the announcement mail thats send. It have nothing to do with the MOD I pointed to.

Thank you for trying,, What im looking for is a way to remove the message in the code so only the notification and the link to the announcement post are in the email they receive. We dont do allot of announcements but some of our members just read the email and respond so the post is never created.

Bobn

I have tried commenting out some of that code but it does not work. I think its actually in a different file but I cannot find it

CapadY

Give it a try with the next:


{REGARDS}',
),
'new_announcement' => array(
/*
@additional_params: new_announcement
TOPICSUBJECT: The subject of the topic being announced.
MESSAGE: The message body of the first post of the announced topic.
TOPICLINK: A link to the topic being announced.
@description:

*/
'subject' => 'New announcement: {TOPICSUBJECT}',
'body' => '{MESSAGE}
You must to click here to read this message in the Bands Forum:
{TOPICLINK}


In that way you will only remove the message out of the mailing.

Please, don't PM me for support unless invited.
If you don't understand this, you will be blacklisted.

Bobn

Sorry that didnt work,, anything else?

CapadY

Oops, I see the row I stroke isn't stroked in the code :s
Prety logical it doesn't work :D

Remove the line "MESSAGE: The message body of the first post of the announced topic."

By the way, also empty your forum cache.
Please, don't PM me for support unless invited.
If you don't understand this, you will be blacklisted.

Bobn


CapadY

It look likes we are talking about different things.

By removing that row only the anouncement mail is changed. Nothing in the forum software.
I'll have a look at it when I'm at home.
Please, don't PM me for support unless invited.
If you don't understand this, you will be blacklisted.

Bobn

Quote from: CapadY on May 16, 2011, 10:01:32 AM
It look likes we are talking about different things.

By removing that row only the anouncement mail is changed. Nothing in the forum software.
I'll have a look at it when I'm at home.

Perhaps,, By taking out that line (and clearing the cache) when submitted, the announcement window in the forum goes to a blank page.

CapadY

So, with the complete sourcecode it's working a lot easier.

This is the orriginal cod:

'new_announcement' => array(
/*
@additional_params: new_announcement
TOPICSUBJECT: The subject of the topic being announced.
MESSAGE: The message body of the first post of the announced topic.
TOPICLINK: A link to the topic being announced.
@description:

*/
'subject' => 'New announcement: {TOPICSUBJECT}',
'body' => '{MESSAGE}

To unsubscribe from these announcements, login to the forum and uncheck "Receive forum announcements and important notifications by email." in your profile.

You can view the full announcement by following this link:
{TOPICLINK}

{REGARDS}',
),


Replace this by:


'new_announcement' => array(
/*
@additional_params: new_announcement
TOPICSUBJECT: The subject of the topic being announced.
MESSAGE: The message body of the first post of the announced topic.
TOPICLINK: A link to the topic being announced.
@description:

*/
'subject' => 'New announcement: {TOPICSUBJECT}',

To unsubscribe from these announcements, login to the forum and uncheck "Receive forum announcements and important notifications by email." in your profile.

You can view the full announcement by following this link:
{TOPICLINK}

{REGARDS}',
),
Please, don't PM me for support unless invited.
If you don't understand this, you will be blacklisted.

Bobn


Bobn


Illori

you are best to look for an existing mod or post in the mod requests board for further help.

Bobn

Quote from: Illori on May 17, 2011, 07:47:41 AM
you are best to look for an existing mod or post in the mod requests board for further help.

Thanks! But you would think its in the code somewhere just // it out

Illori

not everything people need is already in the code that is why we have mods ;)

CapadY

With the last code I've post here the complete announcement message is removed out of the confirmation email.

When you still receive the message in the email it's a cache problem or you have mail templates in the specific theme you are using.
I didn't have a RC5 forum running myself. Last night I've installed one to be able to test it and it was working as you wish.

Please, don't PM me for support unless invited.
If you don't understand this, you will be blacklisted.

Bobn

Quote from: CapadY on May 17, 2011, 03:07:56 PM
With the last code I've post here the complete announcement message is removed out of the confirmation email.

When you still receive the message in the email it's a cache problem or you have mail templates in the specific theme you are using.
I didn't have a RC5 forum running myself. Last night I've installed one to be able to test it and it was working as you wish.

I may have neglected to tell you I still have Rc 3 :(  Im going to try it again right now with clear cache

CapadY

I think there wouldn't be a big difference between the emails in RC3 and RC5.
Please, don't PM me for support unless invited.
If you don't understand this, you will be blacklisted.

Bobn

Quote from: CapadY on May 17, 2011, 03:22:54 PM
I think there wouldn't be a big difference between the emails in RC3 and RC5.

Must be cause it wont work.

Illori

in admin -> features and options do you have don't allow post text in notifications checked? i am not sure if this is related to what you are asking about.

Michael Vail

Sorry to revive an old thread, but after searching for an hour here in the forums trying to find the solution, I have yet to come across a fix for this All I can find is a bunch of duplicate posts all relating the some issue with no fix. A simple "It cannot be done" is fine with me, I just want to know so I don't waste any more time on it.
My request is this: Is there a way to prevent the original text of an announced post from being included in the email announcement message that is sent to the forum users when someone announces a new post on SMF 1.1.5? I want our users to go to our website to read the original posted text and replies and not simply read the posted message in the announcement email they receive.
I already have the "Don't allow post text in notifications?" option checked in the Admin settings and this has not resolved the issue for me.
If SMF 1.1.5 doesn't provide this feature, so SMF 2.0 allow it?
Thanks in advance for reading.

Illori

please open a separate topic for your question in the correct support board, this thread belongs to someone else. also please do not bump old topics

Advertisement: