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.

Free Registration

Home Forums Community Forum Free Registration

This topic contains 1 reply, has 2 voices. Last updated by  Cristián Lávaque 4 years, 10 months ago.

Topic Author Topic
Posted: Thursday Mar 8th, 2012 at 2:04 am #7602
Matthew
Username: beyonddesign

I have a real problem with the method described in this older post….

http://www.primothemes.com/forums/viewtopic.php?f=36&t=2819&view=unread

My code below shows what I’ve done. Trouble is, it allows for the registration link no problem, but then creates an EOT time automatically set to 24 hours after the registration.

Anyway, I’d like to know what I’m doing wrong.

<?php
$item_number = '1:general,echo:1 L';
$subscr_id = $_POST['purchase-code'];
$link = c_ws_plugin__s2member_register_access::register_link_gen('ThemeForest', time(), $_SERVER["HTTP_HOST"] , $item_number, true);
echo "<a id='register' href='$link;'>Click here to activate your registration &raquo;</a>";
?>

List Of Topic Replies

Viewing 1 replies (of 1 total)
Author Replies
Author Replies
Posted: Thursday Mar 8th, 2012 at 5:11 am #7608

Hi Matthew.

I’m not fully sure if this is the reason, but I noticed in your item number that you separated the Level, ccaps and fixed term with colons, but the function’s documentation separates them with pipes.
http://www.s2member.com/codex/stable/s2member/registrations/c_ws_plugin__s2member_register_access/#src_doc_register_link_gen%28%29

int|str $item_number – An s2Member-generated [hilite mono]item_number[/hilite] ( i.e. [hilite mono]1[/hilite] for Level 1, or [hilite mono]level|ccaps|fixed-term[/hilite], or [hilite mono]sp|ids|expiration[/hilite] ).

Could you try that and see if it works right?

I hope it helps.

Viewing 1 replies (of 1 total)

This topic is closed to new replies. Topics with no replies for 2 weeks are closed automatically.

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.