latest stable versions: v150827 (changelog)

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

About: Nordin Chena

Sorry, I've not written a description yet. I'll get to it soon!


Topics I'm Subscribed To

Viewing 3 topics - 1 through 3 (of 3 total)
Topic Count Last Reply
Customized e-mail when manual level change

By:  Nordin Chena in: Community Forum

voices: 2
replies: 8

4 years, 4 months ago  Raam Dev

American cards OK, foreign cards get error

By:  Nordin Chena in: Community Forum

voices: 2
replies: 3

4 years, 4 months ago  Raam Dev

Wp-admin doesnt work after I install s2member

By:  Nordin Chena in: Community Forum

voices: 2
replies: 2

4 years, 5 months ago  Cristián Lávaque

Viewing 3 topics - 1 through 3 (of 3 total)

Topics I've Started

Viewing 3 topics - 1 through 3 (of 3 total)
Topic Count Last Reply
Customized e-mail when manual level change

By:  Nordin Chena in: Community Forum

voices: 2
replies: 8

4 years, 4 months ago  Raam Dev

American cards OK, foreign cards get error

By:  Nordin Chena in: Community Forum

voices: 2
replies: 3

4 years, 4 months ago  Raam Dev

Wp-admin doesnt work after I install s2member

By:  Nordin Chena in: Community Forum

voices: 2
replies: 2

4 years, 5 months ago  Cristián Lávaque

Viewing 3 topics - 1 through 3 (of 3 total)

My Latest Replies (From Various Topics)

Viewing 6 replies - 1 through 6 (of 6 total)
Author Replies
Author Replies
Posted: Wednesday Aug 15th, 2012 at 12:11 pm #22119
Nordin Chena
Username: Nordino

Thanks!! That worked perfect.

The only thing left is that I discovered that new members that register on level 0 (subscriber) also receives this message. I only want it to be sent out automatically if a member is upgraded from level 0 to level 1 (medlem).

I feel bad about asking you all this stuff, and I hope this is just a small edit to the code :)

Posted: Tuesday Aug 14th, 2012 at 1:40 pm #22015
Nordin Chena
Username: Nordino

Thanks Raam, it worked now when I put the code in the bottom but before the last tag.

I managed to configure it somewhat, but I dont know much about php so I didnt get the e-mail how I wanted.

function user_role_update( $user_id, $new_role ) {
        $site_url = get_bloginfo('wpurl');
        $user_info = get_userdata( $user_id );
        $to = $user_info->user_email;
        $subject = "Ditt medlemsskap i TAN er nå aktivert!";
        $message = "Hei " .$user_info->display_name . " , din bruker på ".$site_url." er nå oppgradert til " . $new_role;
        wp_mail($to, $subject, $message);
}
add_action( 'set_user_role', 'user_role_update', 10, 2);

I would like the email to look like this:

Topic: Ditt medlemsskap i TAN er nå aktivert! (fine as it is)

Hei <user>, din bruker på NewUtd.no er nå blitt oppgradert til medlem.
<p>
Du kan nå logge inn på medlemssiden og lese medlemsblader, laste ned høydepunkter, delta i konkurranser og så videre.
<p>
Medlemspakken med det første medlemsbladet, plakat og medlemskort blir sendt ut i september. De to andre bladene blir gitt ut i desember og mai.
<p>
Her er ditt brukernavn og passord til innlogging:
<Username>
<Password>
<p>
Med vennlig hilsen
NewUtd-teamet

Do you know how I can fix the e-mail this way with paragraphs and username/password?

Regarding the translation plugin I experience this error when trying to edit Norwegian language:

Error: The actual loaded translation content does not match the textdomain: s2member
Expect, that any text you translate will not occure as long as the textdomain is mismatching!
This is a coding issue at the source files you try to translate, please contact the original Author and explain this mismatch.

Posted: Tuesday Aug 14th, 2012 at 12:10 am #21947
Nordin Chena
Username: Nordino

The auto-mail when manual level change code you provided actually worked now, but what happens is that everything in admin panel get a blank page.

Maybe there is a specific place in funcions.php I need to put this code?

Posted: Monday Aug 13th, 2012 at 2:40 am #21856
Nordin Chena
Username: Nordino

Thank you for your help, Raam.

Unfortunately I cannot get any of the issues to work. I am probably doing something wrong even though I try my best to stick to the instructions.

Where in theme/funcions.php do I insert the code? I tried to put it on top, in the middle and in the bottom, but in all cases I got an error message or blank page whenever I do something in wp-admin. Restored to the original functions.php and it worked fine again.

Regarding the translation, I downloaded poedit and translated. Saved a .mo file that I uploaded to wp-content/plugins. But the text remains in English :S Any suggestions to what I am doing wrong?

Posted: Saturday Aug 11th, 2012 at 3:18 pm #21783
Nordin Chena
Username: Nordino

I am actually not using Paypal Pro, just the standard version. Maybe that is the issue? It works fine with payments through my webshop.

Posted: Tuesday Aug 7th, 2012 at 9:24 am #21370
Nordin Chena
Username: Nordino

Edit:

I deactivated add plugins and installed s2members first to see if it clashed with any other plugin. I have now reinstalled all plugins again and it doesnt seem like there was a conflict. Weird, but I dont care as long as it works.

Plugin looks fine. Looking forward to configure it today so I can start using it soon. Thanks

Viewing 6 replies - 1 through 6 (of 6 total)

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Contacting s2Member: Please use our Support Center for bug reports, pre-sale questions & technical assistance.