Community Support Forums — WordPress® ( Users Helping Users ) — 2011-12-20T09:52:36-05:00 http://www.primothemes.com/forums/feed.php?f=40&t=13319 2011-12-20T09:52:36-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13319&p=58084#p58084 <![CDATA[s2Member v111220 / Source Code: s2member-p...]]>
s2Member v111220
Source Code: s2member-pro\includes\menu-pages\clickbank-menu-pages-s-min.js
Docs updated: December 20, 2011, 9:52 am

Open for public discussion.
(!-- s-words :: --)n/a(!-- :: s-words --)

Statistics: Posted by System Robot — December 20th, 2011, 9:52 am


]]>
2011-12-07T01:05:58-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13319&p=55766#p55766 <![CDATA[s2Member v111206 / Source Code: s2member-p...]]>
s2Member v111206
Source Code: s2member-pro\includes\menu-pages\clickbank-menu-pages-s-min.js
Docs updated: December 7, 2011, 1:06 am

Open for public discussion.
(!-- s-words :: --)n/a(!-- :: s-words --)

Statistics: Posted by System Robot — December 7th, 2011, 1:05 am


]]>
2011-11-05T19:28:27-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13319&p=52139#p52139 <![CDATA[s2Member v111105 / Source Code: s2member-p...]]>
s2Member v111105
Source Code: s2member-pro\includes\menu-pages\clickbank-menu-pages-s-min.js
Docs updated: November 5, 2011, 8:28 pm

Open for public discussion.
(!-- s-words :: --)n/a(!-- :: s-words --)

Statistics: Posted by System Robot — November 5th, 2011, 7:28 pm


]]>
2011-10-29T20:38:18-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13319&p=50235#p50235 <![CDATA[s2Member v111029 / Source Code: s2member-p...]]>
s2Member v111029
Source Code: s2member-pro\includes\menu-pages\clickbank-menu-pages-s-min.js
Docs updated: October 29, 2011, 9:38 pm

Open for public discussion.
(!-- s-words :: --)n/a(!-- :: s-words --)

Statistics: Posted by System Robot — October 29th, 2011, 8:38 pm


]]>
2011-10-17T15:42:27-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13319&p=48031#p48031 <![CDATA[s2Member v111017 / Source Code: s2member-p...]]>
s2Member v111017
Source Code: s2member-pro\includes\menu-pages\clickbank-menu-pages-s-min.js
Docs updated: October 17, 2011, 1:42 pm

Open for public discussion.
(!-- s-words :: --)n/a(!-- :: s-words --)

Statistics: Posted by System Robot — October 17th, 2011, 3:42 pm


]]>
2011-10-11T14:38:22-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13319&p=46431#p46431 <![CDATA[s2Member v111011 / Source Code: s2member-p...]]>
s2Member v111011
Source Code: s2member-pro\includes\menu-pages\clickbank-menu-pages-s-min.js
Docs updated: October 11, 2011, 12:38 pm

Open for public discussion.
(!-- s-words :: --)n/a(!-- :: s-words --)

Statistics: Posted by System Robot — October 11th, 2011, 2:38 pm


]]>
2011-10-03T15:50:57-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13319&p=44560#p44560 <![CDATA[s2Member v111003 / Source Code: s2member-p...]]>
s2Member v111003
Source Code: s2member-pro\includes\menu-pages\clickbank-menu-pages-s-min.js
Docs updated: October 3, 2011, 1:50 pm

Open for public discussion.
(!-- s-words :: --)n/a(!-- :: s-words --)

Statistics: Posted by System Robot — October 3rd, 2011, 3:50 pm


]]>
2011-10-03T03:44:52-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13319&p=43267#p43267 <![CDATA[s2Member v111002 / Source Code: s2member-p...]]>
s2Member v111002
Source Code: s2member-pro\includes\menu-pages\clickbank-menu-pages-s-min.js
Docs updated: October 3, 2011, 1:44 am

Open for public discussion.
(!-- s-words :: --)n/a(!-- :: s-words --)

Statistics: Posted by System Robot — October 3rd, 2011, 3:44 am


]]>
2011-09-27T05:29:10-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13319&p=41509#p41509 <![CDATA[s2Member v110927 / Source Code: s2member-p...]]>
s2Member v110927
Source Code: s2member-pro\includes\menu-pages\clickbank-menu-pages-s-min.js
Docs updated: September 27, 2011, 3:29 am

Open for public discussion.
(!-- s-words :: --)n/a(!-- :: s-words --)

Statistics: Posted by System Robot — September 27th, 2011, 5:29 am


]]>
2011-09-26T21:05:40-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13319&p=40265#p40265 <![CDATA[s2Member v110926 / Source Code: s2member-p...]]>
s2Member v110926
Source Code: s2member-pro\includes\menu-pages\clickbank-menu-pages-s-min.js
Docs updated: September 26, 2011, 7:06 pm

Open for public discussion.
(!-- s-words :: --)n/a(!-- :: s-words --)

Statistics: Posted by System Robot — September 26th, 2011, 9:05 pm


]]>
2011-09-17T17:04:57-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13319&p=38409#p38409 <![CDATA[s2Member v110915 / Source Code: s2member-p...]]>
s2Member v110915
Source Code: s2member-pro\includes\menu-pages\clickbank-menu-pages-s-min.js
Docs updated: September 17, 2011, 3:05 pm

Open for public discussion.
(!-- s-words :: --)n/a(!-- :: s-words --)

Statistics: Posted by System Robot — September 17th, 2011, 5:04 pm


]]>
2011-09-14T01:30:05-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13319&p=36987#p36987 <![CDATA[s2Member v110913 / Source Code: s2member-p...]]>
s2Member v110913
Source Code: s2member-pro\includes\menu-pages\clickbank-menu-pages-s-min.js
Docs updated: September 13, 2011, 11:30 pm

Open for public discussion.
(!-- s-words :: --)n/a(!-- :: s-words --)

Statistics: Posted by System Robot — September 14th, 2011, 1:30 am


]]>
2011-09-13T12:05:05-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13319&p=35715#p35715 <![CDATA[s2Member v110912 / Source Code: s2member-p...]]>
s2Member v110912
Source Code: s2member-pro\includes\menu-pages\clickbank-menu-pages-s-min.js
Docs updated: September 13, 2011, 10:05 am

Open for public discussion.
(!-- s-words :: --)n/a(!-- :: s-words --)

Statistics: Posted by System Robot — September 13th, 2011, 12:05 pm


]]>
2011-08-15T15:18:51-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13319&p=31823#p31823 <![CDATA[s2Member v110815 / Source Code: s2member-p...]]>
s2Member v110815
Source Code: s2member-pro\includes\menu-pages\clickbank-menu-pages-s-min.js
Docs updated: August 15, 2011, 4:19 pm

Open for public discussion.
(!-- s-words :: --)Source Code Documentation Packages ( Overview ) Classes Deprecated Todo Index Source Code jQuery(window).load(function(){ if(typeof location.hash === 'string' && location.hash.match(/^#/)) jQuery('olli'+location.hash).addClass('hilite'); }); jQuery(window).bind('hashchange', function(){ if(typeof location.hash === 'string' && location.hash.match(/^#/)) jQuery('olli').removeClass('hilite'); jQuery('olli'+location.hash).addClass('hilite'); }); [ full view ]s2member-pro\includes\menu-pages\clickbank-menu-pages-s-min.js jQuery(document).ready(function($){var esc_attr=esc_html=function(str){return String(str).replace(/"/g,""").replace(/\/g,"<").replace(/\/g,">")};if(location.href.match(/page\=ws-plugin--s2member-pro-clickbank-ops/)){$("select#ws-plugin--s2member-auto-eot-system-enabled").change(function(){var $this=$(this),val=$this.val();var $viaCron=$("p#ws-plugin--s2member-auto-eot-system-enabled-via-cron");if(val==2){$viaCron.show()}else{$viaCron.hide()}})}else{if(location.href.match(/page\=ws-plugin--s2member-pro-clickbank-buttons/)){$("div.ws-menu-page select[id]").filter(function(){return this.id.match(/^ws-plugin--s2member-pro-level[1-9][0-9]*-type$/)}).change(function(){var button=this.id.replace(/^ws-plugin--s2member-pro-(.+?)-type$/g,"$1");var termDisabled=($(this).val()==="recurring")?true:false;var periodsDisabled=($(this).val()==="standard")?true:false;$("p#ws-plugin--s2member-pro-"+button+"-term-line").css("display",(termDisabled?"none":""));$("p#ws-plugin--s2member-pro-"+button+"-periods-line").css("display",(periodsDisabled?"none":""));(termDisabled)?$("select#ws-plugin--s2member-pro-"+button+"-term").val("1-M"):null;(periodsDisabled)?$("select#ws-plugin--s2member-pro-"+button+"-p1").val("0-D"):null;(periodsDisabled)?$("select#ws-plugin--s2member-pro-"+button+"-p3").val("1-M"):null}).trigger("change");$("div.ws-menu-page input[id]").filter(function(){return this.id.match(/^ws-plugin--s2member-pro-level[1-9][0-9]*-ccaps$/)}).keyup(function(){var value=this.value.replace(/^(-all|-al|-a|-)[;,]*/gi,""),_all=(this.value.match(/^(-all|-al|-a|-)[;,]*/i))?"-all,":"";if(value.match(/[^a-z_0-9,]/)){this.value=_all+$.trim($.trim(value).replace(/[ \-]/g,"_").replace(/[^a-z_0-9,]/gi,"").toLowerCase())}});ws_plugin__s2member_pro_clickbankButtonGenerate=function(button){var shortCodeTemplate='[s2Member-Pro-ClickBank-Button %%attrs%% image="default" output="anchor" /]',shortCodeTemplateAttrs="",labels={};var codeHrefTemplate="http://%%item%%.%%vendor%%.pay.clickbank.net/?s2_invoice=%%invoice%%&s2_desc=%%desc%%&s2_custom=%%custom%%";var vendor='?php echo c_ws_plugin__s2member_utils_strings:: esc_sq ( $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "o" ] [ "pro_clickbank_username" ] ) ; ?';var currentUserIp='?php echo c_ws_plugin__s2member_utils_strings:: esc_sq ( $_SERVER [ "REMOTE_ADDR" ] ) ; ?';eval("?php echo c_ws_plugin__s2member_utils_strings:: esc_dq ( $vars [ 'labels' ] ) ; ?");var shortCode=$("input#ws-plugin--s2member-pro-"+button+"-shortcode");var code=$("textarea#ws-plugin--s2member-pro-"+button+"-button");var level=button.replace(/^level/,"");var label=labels["level"+level].replace(/"/g,"");var desc=$.trim($("input#ws-plugin--s2member-pro-"+button+"-desc").val().replace(/"/g,""));var prodType=$("select#ws-plugin--s2member-pro-"+button+"-type").val().replace(/[^A-Z]/gi,"").toLowerCase();var prodItem=$("input#ws-plugin--s2member-pro-"+button+"-item-number").val().replace(/[^0-9]/g,"");if(prodType==="standard"){var trialPeriod="0",trialTerm="D";var regPeriod=$("select#ws-plugin--s2member-pro-"+button+"-term").val().split("-")[0].replace(/[^0-9]/g,"");var regTerm=$("select#ws-plugin--s2member-pro-"+button+"-term").val().split("-")[1].replace(/[^A-Z]/g,"");var regRecur="0"}else{if(prodType==="recurring"){var trialPeriod=$("select#ws-plugin--s2member-pro-"+button+"-p1").val().split("-")[0].replace(/[^0-9]/g,"");var trialTerm=$("select#ws-plugin--s2member-pro-"+button+"-p1").val().split("-")[1].replace(/[^A-Z]/g,"");var regPeriod=$("select#ws-plugin--s2member-pro-"+button+"-p3").val().split("-")[0].replace(/[^0-9]/g,"");var regTerm=$("select#ws-plugin--s2member-pro-"+button+"-p3").val().split("-")[1].replace(/[^A-Z]/g,"");var regRecur="1"}}var cCaps=$.trim($.trim($("input#ws-plugin--s2member-pro-"+button+"-ccaps").val()).replace(/^(-all|-al|-a|-)[;,]*/gi,"").replace(/[ \-]/g,"_").replace(/[^a-z_0-9,]/gi,"").toLowerCase());cCaps=($.trim($("input#ws-plugin--s2member-pro-"+button+"-ccaps").val()).match(/^(-all|-al|-a|-)[;,]*/i))?((cCaps)?"-all,":"-all")+cCaps.toLowerCase():cCaps.toLowerCase();var levelCcapsPer=(prodType==="standard"&®Term!=="L")?level+":"+cCaps+":"+regPeriod+" "+regTerm:level+":"+cCaps;levelCcapsPer=levelCcapsPer.replace(/\:+$/g,"");if(!prodItem){alert("— Oops, a slight problem: —\n\nPlease supply a valid ClickBank® Product Item #.");return false}else{if(!desc){alert("— Oops, a slight problem: —\n\nPlease type a Description for this Button.");return false}}codeHrefTemplate+='&s2_customer_ip=?php echo esc_html ( "?php echo S2MEMBER_CURRENT_USER_IP; ?" ) ; ?';codeHrefTemplate=(prodType==="recurring")?codeHrefTemplate.replace(/%%invoice%%/g,"%%invoice%%&s2_p1=%%p1%%&s2_p3=%%p3%%")+'&s2_subscr_id=s2-?php echo esc_html ( "?php echo uniqid(); ?" ) ; ?':codeHrefTemplate;codeHrefTemplate=codeHrefTemplate.replace(/%%item%%/g,encodeURIComponent(prodItem)).replace(/%%vendor%%/g,encodeURIComponent(vendor)).replace(/%%invoice%%/g,encodeURIComponent(levelCcapsPer)).replace(/%%desc%%/g,encodeURIComponent(desc));codeHrefTemplate=codeHrefTemplate.replace(/%%p1%%/g,encodeURIComponent(trialPeriod+" "+trialTerm)).replace(/%%p3%%/g,encodeURIComponent(regPeriod+" "+regTerm));codeHrefTemplate=codeHrefTemplate.replace(/%%custom%%/g,encodeURIComponent('?php echo c_ws_plugin__s2member_utils_strings:: esc_sq ( $_SERVER [ "HTTP_HOST" ] ) ; ?'));code.html(code.html().replace(/ href\="(.*?)"/,' href="'+esc_attr(codeHrefTemplate)+'"'));shortCodeTemplateAttrs+='cbp="'+esc_attr(prodItem)+'" level="'+esc_attr(level)+'" ccaps="'+esc_attr(cCaps)+'" desc="'+esc_attr(desc)+'" custom="?php echo c_ws_plugin__s2member_utils_strings:: esc_sq ( esc_attr ( $_SERVER [ "HTTP_HOST" ] ) ) ; ?"';shortCodeTemplateAttrs+=' tp="'+esc_attr(trialPeriod)+'" tt="'+esc_attr(trialTerm)+'" rp="'+esc_attr(regPeriod)+'" rt="'+esc_attr(regTerm)+'" rr="'+esc_attr(regRecur)+'"';shortCode.val(shortCodeTemplate.replace(/%%attrs%%/,shortCodeTemplateAttrs));$("div#ws-plugin--s2member-pro-"+button+"-button-prev").html(code.val().replace(/\a/,'a target="_blank"').replace(/(s2_customer_ip\=)(.+?)(&|")/,"$1"+currentUserIp+"$3").replace(/(s2_subscr_id\=)(.+?)(&|")/,"$1s2-"+Math.round(new Date().getTime())+"$3"));alert("Your Button has been generated.\nPlease copy/paste the Shortcode Format into your Membership Options Page.");shortCode.each(function(){this.focus(),this.select()});return false};ws_plugin__s2member_pro_clickbankSpButtonGenerate=function(){var shortCodeTemplate='[s2Member-Pro-ClickBank-Button %%attrs%% image="default" output="anchor" /]',shortCodeTemplateAttrs="";var codeHrefTemplate="http://%%item%%.%%vendor%%.pay.clickbank.net/?s2_invoice=%%invoice%%&s2_desc=%%desc%%&s2_custom=%%custom%%";var vendor='?php echo c_ws_plugin__s2member_utils_strings:: esc_sq ( $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "o" ] [ "pro_clickbank_username" ] ) ; ?';var currentUserIp='?php echo c_ws_plugin__s2member_utils_strings:: esc_sq ( $_SERVER [ "REMOTE_ADDR" ] ) ; ?';var shortCode=$("input#ws-plugin--s2member-pro-sp-shortcode");var code=$("textarea#ws-plugin--s2member-pro-sp-button");var prodItem=$("input#ws-plugin--s2member-pro-sp-item-number").val().replace(/[^0-9]/g,"");var leading=$("select#ws-plugin--s2member-pro-sp-leading-id").val().replace(/[^0-9]/g,"");var additionals=$("select#ws-plugin--s2member-pro-sp-additional-ids").val()||[];var hours=$("select#ws-plugin--s2member-pro-sp-hours").val().replace(/[^0-9]/g,"");var desc=$.trim($("input#ws-plugin--s2member-pro-sp-desc").val().replace(/"/g,""));if(!prodItem){alert("— Oops, a slight problem: —\n\nPlease supply a valid ClickBank® Product Item #.");return false}else{if(!leading){alert("— Oops, a slight problem: —\n\nPlease select a Leading Post/Page.\n\n*Tip* If there are no Posts/Pages in the menu, it's because you've not configured s2Member for Specific Post/Page Access yet. See: s2Member - Restriction Options - Specific Post/Page Access.");return false}else{if(!desc){alert("— Oops, a slight problem: —\n\nPlease type a Description for this Button.");return false}}}for(var i=0,ids=leading;iadditionals.length;i++){if(additionals[i]&&additionals[i]!==leading){ids+=","+additionals[i]}}var spIdsHours="sp:"+ids+":"+hours;codeHrefTemplate+='&s2_customer_ip=?php echo esc_html ( "?php echo S2MEMBER_CURRENT_USER_IP; ?" ) ; ?';codeHrefTemplate=codeHrefTemplate.replace(/%%item%%/g,encodeURIComponent(prodItem)).replace(/%%vendor%%/g,encodeURIComponent(vendor)).replace(/%%invoice%%/g,encodeURIComponent(spIdsHours)).replace(/%%desc%%/g,encodeURIComponent(desc));codeHrefTemplate=codeHrefTemplate.replace(/%%custom%%/g,encodeURIComponent('?php echo c_ws_plugin__s2member_utils_strings:: esc_sq ( $_SERVER [ "HTTP_HOST" ] ) ; ?'));code.html(code.html().replace(/ href\="(.*?)"/,' href="'+esc_attr(codeHrefTemplate)+'"'));shortCodeTemplateAttrs+='cbp="'+esc_attr(prodItem)+'" sp="1" ids="'+esc_attr(ids)+'" exp="'+esc_attr(hours)+'" desc="'+esc_attr(desc)+'"';shortCodeTemplateAttrs+=' custom="?php echo c_ws_plugin__s2member_utils_strings:: esc_sq ( esc_attr ( $_SERVER [ "HTTP_HOST" ] ) ) ; ?"';shortCode.val(shortCodeTemplate.replace(/%%attrs%%/,shortCodeTemplateAttrs));$("div#ws-plugin--s2member-pro-sp-button-prev").html(code.val().replace(/\a/,'a target="_blank"').replace(/(s2_customer_ip\=)(.+?)(&|")/,"$1"+currentUserIp+"$3"));alert("Your Button has been generated.\nPlease copy/paste the Shortcode Format into your WordPress® Editor.");shortCode.each(function(){this.focus(),this.select()});return false};ws_plugin__s2member_pro_clickbankRegLinkGenerate=function(){var level=$("select#ws-plugin--s2member-pro-reg-link-level").val().replace(/[^0-9]/g,"");var subscrID=$.trim($("input#ws-plugin--s2member-pro-reg-link-subscr-id").val());var custom=$.trim($("input#ws-plugin--s2member-pro-reg-link-custom").val());var cCaps=$.trim($.trim($("input#ws-plugin--s2member-pro-reg-link-ccaps").val()).replace(/[ \-]/g,"_").replace(/[^a-z_0-9,]/gi,"").toLowerCase());var fixedTerm=$.trim($("input#ws-plugin--s2member-pro-reg-link-fixed-term").val().replace(/[^A-Z 0-9]/gi,"").toUpperCase());var $link=$("p#ws-plugin--s2member-pro-reg-link"),$loading=$("img#ws-plugin--s2member-pro-reg-link-loading");var levelCcapsPer=(fixedTerm&&!fixedTerm.match(/L$/))?level+":"+cCaps+":"+fixedTerm:level+":"+cCaps;levelCcapsPer=levelCcapsPer.replace(/\:+$/g,"");if(!subscrID){alert("— Oops, a slight problem: —\n\nPaid Subscr. ID is a required value.");return false}else{if(!custom||custom.indexOf('?php echo c_ws_plugin__s2member_utils_strings:: esc_sq ( $_SERVER [ "HTTP_HOST" ] ) ; ?')!==0){alert("— Oops, a slight problem: —\n\nThe Custom Value MUST start with your domain name.");return false}else{if(fixedTerm&&!fixedTerm.match(/^[1-9]+ (D|W|M|Y|L)$/)){alert("— Oops, a slight problem: —\n\nThe Fixed Term Length is not formatted properly.");return false}}}$link.hide(),$loading.show(),$.post(ajaxurl,{action:"ws_plugin__s2member_reg_access_link_via_ajax",ws_plugin__s2member_reg_access_link_via_ajax:'?php echo c_ws_plugin__s2member_utils_strings:: esc_sq ( wp_create_nonce ( "ws-plugin--s2member-reg-access-link-via-ajax" ) ) ; ?',s2member_reg_access_link_subscr_gateway:"clickbank",s2member_reg_access_link_subscr_id:subscrID,s2member_reg_access_link_custom:custom,s2member_reg_access_link_item_number:levelCcapsPer},function(response){$link.show().html('a href="'+esc_attr(response)+'" target="_blank" rel="external"'+esc_html(response)+"/a"),$loading.hide()});return false};ws_plugin__s2member_pro_clickbankSpLinkGenerate=function(){var leading=$("select#ws-plugin--s2member-pro-sp-link-leading-id").val().replace(/[^0-9]/g,"");var additionals=$("select#ws-plugin--s2member-pro-sp-link-additional-ids").val()||[];var hours=$("select#ws-plugin--s2member-pro-sp-link-hours").val().replace(/[^0-9]/g,"");var $link=$("p#ws-plugin--s2member-pro-sp-link"),$loading=$("img#ws-plugin--s2member-pro-sp-link-loading");if(!leading){alert("— Oops, a slight problem: —\n\nPlease select a Leading Post/Page.\n\n*Tip* If there are no Posts/Pages in the menu, it's because you've not configured s2Member for Specific Post/Page Access yet. See: s2Member - Restriction Options - Specific Post/Page Access.");return false}for(var i=0,ids=leading;iadditionals.length;i++){if(additionals[i]&&additionals[i]!==leading){ids+=","+additionals[i]}}$link.hide(),$loading.show(),$.post(ajaxurl,{action:"ws_plugin__s2member_sp_access_link_via_ajax",ws_plugin__s2member_sp_access_link_via_ajax:'?php echo c_ws_plugin__s2member_utils_strings:: esc_sq ( wp_create_nonce ( "ws-plugin--s2member-sp-access-link-via-ajax" ) ) ; ?',s2member_sp_access_link_ids:ids,s2member_sp_access_link_hours:hours},function(response){$link.show().html('a href="'+esc_attr(response)+'" target="_blank" rel="external"'+esc_html(response)+"/a"),$loading.hide()});return false}}}}); [ full view ]s2member-pro\includes\menu-pages\clickbank-menu-pages-s-min.js Source Code Documentation Packages ( Overview ) Classes Deprecated Todo Index Source Code(!-- :: s-words --)

Statistics: Posted by System Robot — August 15th, 2011, 3:18 pm


]]>
2011-07-11T17:37:24-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13319&p=27985#p27985 <![CDATA[s2Member v110710 / Source Code: s2member-p...]]>
s2Member v110710
Source Code: s2member-pro\includes\menu-pages\clickbank-menu-pages-s-min.js
Docs updated: July 11, 2011, 6:37 pm

Open for public discussion.
(!-- s-words :: --)Source Code Documentation Packages ( Overview ) Classes Deprecated Todo Index Source Code jQuery(window).load(function(){ if(typeof location.hash === 'string' && location.hash.match(/^#/)) jQuery('olli'+location.hash).addClass('hilite'); }); jQuery(window).bind('hashchange', function(){ if(typeof location.hash === 'string' && location.hash.match(/^#/)) jQuery('olli').removeClass('hilite'); jQuery('olli'+location.hash).addClass('hilite'); }); [ full view ]s2member-pro\includes\menu-pages\clickbank-menu-pages-s-min.js jQuery(document).ready(function($){var esc_attr=esc_html=function(str){return String(str).replace(/"/g,""").replace(/\/g,"<").replace(/\/g,">")};if(location.href.match(/page\=ws-plugin--s2member-pro-clickbank-ops/)){$("select#ws-plugin--s2member-auto-eot-system-enabled").change(function(){var $this=$(this),val=$this.val();var $viaCron=$("p#ws-plugin--s2member-auto-eot-system-enabled-via-cron");if(val==2){$viaCron.show()}else{$viaCron.hide()}})}else{if(location.href.match(/page\=ws-plugin--s2member-pro-clickbank-buttons/)){$("div.ws-menu-page select[id]").filter(function(){return this.id.match(/^ws-plugin--s2member-pro-level[1-9][0-9]*-type$/)}).change(function(){var button=this.id.replace(/^ws-plugin--s2member-pro-(.+?)-type$/g,"$1");var termDisabled=($(this).val()==="recurring")?true:false;var periodsDisabled=($(this).val()==="standard")?true:false;$("p#ws-plugin--s2member-pro-"+button+"-term-line").css("display",(termDisabled?"none":""));$("p#ws-plugin--s2member-pro-"+button+"-periods-line").css("display",(periodsDisabled?"none":""));(termDisabled)?$("select#ws-plugin--s2member-pro-"+button+"-term").val("1-M"):null;(periodsDisabled)?$("select#ws-plugin--s2member-pro-"+button+"-p1").val("0-D"):null;(periodsDisabled)?$("select#ws-plugin--s2member-pro-"+button+"-p3").val("1-M"):null}).trigger("change");$("div.ws-menu-page input[id]").filter(function(){return this.id.match(/^ws-plugin--s2member-pro-level[1-9][0-9]*-ccaps$/)}).keyup(function(){var value=this.value.replace(/^\+/,""),plus=(this.value.match(/^\+/))?"+":"";if(value.match(/[^a-z_0-9,]/)){this.value=plus+$.trim($.trim(value).replace(/[ \-]/g,"_").replace(/[^A-Z_0-9,]/gi,"").toLowerCase())}});ws_plugin__s2member_pro_clickbankButtonGenerate=function(button){var shortCodeTemplate='[s2Member-Pro-ClickBank-Button %%attrs%% image="default" output="anchor" /]',shortCodeTemplateAttrs="",labels={};var codeHrefTemplate="http://%%item%%.%%vendor%%.pay.clickbank.net/?s2_invoice=%%invoice%%&s2_desc=%%desc%%&s2_custom=%%custom%%";var vendor='?php echo c_ws_plugin__s2member_utils_strings:: esc_sq ( $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "o" ] [ "pro_clickbank_username" ] ) ; ?';var currentUserIp='?php echo c_ws_plugin__s2member_utils_strings:: esc_sq ( $_SERVER [ "REMOTE_ADDR" ] ) ; ?';var timeStamp=Math.round(new Date().getTime()/1000);eval("?php echo c_ws_plugin__s2member_utils_strings:: esc_dq ( $vars [ 'labels' ] ) ; ?");var shortCode=$("input#ws-plugin--s2member-pro-"+button+"-shortcode");var code=$("textarea#ws-plugin--s2member-pro-"+button+"-button");var level=button.replace(/^level/,"");var label=labels["level"+level].replace(/"/g,"");var desc=$.trim($("input#ws-plugin--s2member-pro-"+button+"-desc").val().replace(/"/g,""));var prodType=$("select#ws-plugin--s2member-pro-"+button+"-type").val().replace(/[^A-Z]/gi,"").toLowerCase();var prodItem=$("input#ws-plugin--s2member-pro-"+button+"-item-number").val().replace(/[^0-9]/g,"");if(prodType==="standard"){var trialPeriod="0",trialTerm="D";var regPeriod=$("select#ws-plugin--s2member-pro-"+button+"-term").val().split("-")[0].replace(/[^0-9]/g,"");var regTerm=$("select#ws-plugin--s2member-pro-"+button+"-term").val().split("-")[1].replace(/[^A-Z]/g,"");var regRecur="0"}else{if(prodType==="recurring"){var trialPeriod=$("select#ws-plugin--s2member-pro-"+button+"-p1").val().split("-")[0].replace(/[^0-9]/g,"");var trialTerm=$("select#ws-plugin--s2member-pro-"+button+"-p1").val().split("-")[1].replace(/[^A-Z]/g,"");var regPeriod=$("select#ws-plugin--s2member-pro-"+button+"-p3").val().split("-")[0].replace(/[^0-9]/g,"");var regTerm=$("select#ws-plugin--s2member-pro-"+button+"-p3").val().split("-")[1].replace(/[^A-Z]/g,"");var regRecur="1"}}var cCaps=$.trim($.trim($("input#ws-plugin--s2member-pro-"+button+"-ccaps").val()).replace(/[ \-]/g,"_").replace(/[^A-Z_0-9,]/gi,"").toLowerCase());cCaps=($.trim($("input#ws-plugin--s2member-pro-"+button+"-ccaps").val()).match(/^\+/))?"+"+cCaps.toLowerCase():cCaps.toLowerCase();var levelCcapsPer=(prodType==="standard"&®Term!=="L")?level+":"+cCaps+":"+regPeriod+" "+regTerm:level+":"+cCaps;levelCcapsPer=levelCcapsPer.replace(/\:+$/g,"");if(!prodItem){alert("— Oops, a slight problem: —\n\nPlease supply a valid ClickBank® Product Item #.");return false}else{if(!desc){alert("— Oops, a slight problem: —\n\nPlease type a Description for this Button.");return false}}codeHrefTemplate+='&s2_customer_ip=?php echo esc_html ( "?php echo S2MEMBER_CURRENT_USER_IP; ?" ) ; ?';codeHrefTemplate=(prodType==="recurring")?codeHrefTemplate.replace(/%%invoice%%/g,"%%invoice%%&s2_p1=%%p1%%&s2_p3=%%p3%%")+'&s2_subscr_id=s2-?php echo esc_html ( "?php echo time(); ?" ) ; ?':codeHrefTemplate;codeHrefTemplate=codeHrefTemplate.replace(/%%item%%/g,encodeURIComponent(prodItem)).replace(/%%vendor%%/g,encodeURIComponent(vendor)).replace(/%%invoice%%/g,encodeURIComponent(levelCcapsPer)).replace(/%%desc%%/g,encodeURIComponent(desc));codeHrefTemplate=codeHrefTemplate.replace(/%%p1%%/g,encodeURIComponent(trialPeriod+" "+trialTerm)).replace(/%%p3%%/g,encodeURIComponent(regPeriod+" "+regTerm));codeHrefTemplate=codeHrefTemplate.replace(/%%custom%%/g,encodeURIComponent('?php echo c_ws_plugin__s2member_utils_strings:: esc_sq ( $_SERVER [ "HTTP_HOST" ] ) ; ?'));code.html(code.html().replace(/ href\="(.*?)"/,' href="'+esc_attr(codeHrefTemplate)+'"'));shortCodeTemplateAttrs+='cbp="'+esc_attr(prodItem)+'" level="'+esc_attr(level)+'" ccaps="'+esc_attr(cCaps)+'" desc="'+esc_attr(desc)+'" custom="?php echo c_ws_plugin__s2member_utils_strings:: esc_sq ( esc_attr ( $_SERVER [ "HTTP_HOST" ] ) ) ; ?"';shortCodeTemplateAttrs+=' tp="'+esc_attr(trialPeriod)+'" tt="'+esc_attr(trialTerm)+'" rp="'+esc_attr(regPeriod)+'" rt="'+esc_attr(regTerm)+'" rr="'+esc_attr(regRecur)+'"';shortCode.val(shortCodeTemplate.replace(/%%attrs%%/,shortCodeTemplateAttrs));$("div#ws-plugin--s2member-pro-"+button+"-button-prev").html(code.val().replace(/\a/,'a target="_blank"').replace(/(s2_customer_ip\=)(.+?)(&|")/,"$1"+currentUserIp+"$3").replace(/(s2_subscr_id\=)(.+?)(&|")/,"$1s2-"+timeStamp+"$3"));alert("Your Button has been generated.\nPlease copy/paste the Shortcode Format into your Membership Options Page.");shortCode.each(function(){this.focus(),this.select()});return false};ws_plugin__s2member_pro_clickbankSpButtonGenerate=function(){var shortCodeTemplate='[s2Member-Pro-ClickBank-Button %%attrs%% image="default" output="anchor" /]',shortCodeTemplateAttrs="";var codeHrefTemplate="http://%%item%%.%%vendor%%.pay.clickbank.net/?s2_invoice=%%invoice%%&s2_desc=%%desc%%&s2_custom=%%custom%%";var vendor='?php echo c_ws_plugin__s2member_utils_strings:: esc_sq ( $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "o" ] [ "pro_clickbank_username" ] ) ; ?';var currentUserIp='?php echo c_ws_plugin__s2member_utils_strings:: esc_sq ( $_SERVER [ "REMOTE_ADDR" ] ) ; ?';var shortCode=$("input#ws-plugin--s2member-pro-sp-shortcode");var code=$("textarea#ws-plugin--s2member-pro-sp-button");var prodItem=$("input#ws-plugin--s2member-pro-sp-item-number").val().replace(/[^0-9]/g,"");var leading=$("select#ws-plugin--s2member-pro-sp-leading-id").val().replace(/[^0-9]/g,"");var additionals=$("select#ws-plugin--s2member-pro-sp-additional-ids").val()||[];var hours=$("select#ws-plugin--s2member-pro-sp-hours").val().replace(/[^0-9]/g,"");var desc=$.trim($("input#ws-plugin--s2member-pro-sp-desc").val().replace(/"/g,""));if(!prodItem){alert("— Oops, a slight problem: —\n\nPlease supply a valid ClickBank® Product Item #.");return false}else{if(!leading){alert("— Oops, a slight problem: —\n\nPlease select a Leading Post/Page.\n\n*Tip* If there are no Posts/Pages in the menu, it's because you've not configured s2Member for Specific Post/Page Access yet. See: s2Member - Restriction Options - Specific Post/Page Access.");return false}else{if(!desc){alert("— Oops, a slight problem: —\n\nPlease type a Description for this Button.");return false}}}for(var i=0,ids=leading;iadditionals.length;i++){if(additionals[i]&&additionals[i]!==leading){ids+=","+additionals[i]}}var spIdsHours="sp:"+ids+":"+hours;codeHrefTemplate+='&s2_customer_ip=?php echo esc_html ( "?php echo S2MEMBER_CURRENT_USER_IP; ?" ) ; ?';codeHrefTemplate=codeHrefTemplate.replace(/%%item%%/g,encodeURIComponent(prodItem)).replace(/%%vendor%%/g,encodeURIComponent(vendor)).replace(/%%invoice%%/g,encodeURIComponent(spIdsHours)).replace(/%%desc%%/g,encodeURIComponent(desc));codeHrefTemplate=codeHrefTemplate.replace(/%%custom%%/g,encodeURIComponent('?php echo c_ws_plugin__s2member_utils_strings:: esc_sq ( $_SERVER [ "HTTP_HOST" ] ) ; ?'));code.html(code.html().replace(/ href\="(.*?)"/,' href="'+esc_attr(codeHrefTemplate)+'"'));shortCodeTemplateAttrs+='cbp="'+esc_attr(prodItem)+'" sp="1" ids="'+esc_attr(ids)+'" exp="'+esc_attr(hours)+'" desc="'+esc_attr(desc)+'"';shortCodeTemplateAttrs+=' custom="?php echo c_ws_plugin__s2member_utils_strings:: esc_sq ( esc_attr ( $_SERVER [ "HTTP_HOST" ] ) ) ; ?"';shortCode.val(shortCodeTemplate.replace(/%%attrs%%/,shortCodeTemplateAttrs));$("div#ws-plugin--s2member-pro-sp-button-prev").html(code.val().replace(/\a/,'a target="_blank"').replace(/(s2_customer_ip\=)(.+?)(&|")/,"$1"+currentUserIp+"$3"));alert("Your Button has been generated.\nPlease copy/paste the Shortcode Format into your Membership Options Page.");shortCode.each(function(){this.focus(),this.select()});return false};ws_plugin__s2member_pro_clickbankRegLinkGenerate=function(){var level=$("select#ws-plugin--s2member-pro-reg-link-level").val().replace(/[^0-9]/g,"");var subscrID=$.trim($("input#ws-plugin--s2member-pro-reg-link-subscr-id").val());var custom=$.trim($("input#ws-plugin--s2member-pro-reg-link-custom").val());var cCaps=$.trim($.trim($("input#ws-plugin--s2member-pro-reg-link-ccaps").val()).replace(/[ \-]/g,"_").replace(/[^A-Z_0-9,]/gi,"").toLowerCase());var fixedTerm=$.trim($("input#ws-plugin--s2member-pro-reg-link-fixed-term").val().replace(/[^A-Z 0-9]/gi,"").toUpperCase());var $link=$("p#ws-plugin--s2member-pro-reg-link"),$loading=$("img#ws-plugin--s2member-pro-reg-link-loading");var levelCcapsPer=(fixedTerm&&!fixedTerm.match(/L$/))?level+":"+cCaps+":"+fixedTerm:level+":"+cCaps;levelCcapsPer=levelCcapsPer.replace(/\:+$/g,"");if(!subscrID){alert("— Oops, a slight problem: —\n\nPaid Subscr. ID is a required value.");return false}else{if(!custom||custom.indexOf('?php echo c_ws_plugin__s2member_utils_strings:: esc_sq ( $_SERVER [ "HTTP_HOST" ] ) ; ?')!==0){alert("— Oops, a slight problem: —\n\nThe Custom Value MUST start with your domain name.");return false}else{if(fixedTerm&&!fixedTerm.match(/^[1-9]+ (D|W|M|Y|L)$/)){alert("— Oops, a slight problem: —\n\nThe Fixed Term Length is not formatted properly.");return false}}}$link.hide(),$loading.show(),$.post(ajaxurl,{action:"ws_plugin__s2member_reg_access_link_via_ajax",ws_plugin__s2member_reg_access_link_via_ajax:'?php echo c_ws_plugin__s2member_utils_strings:: esc_sq ( wp_create_nonce ( "ws-plugin--s2member-reg-access-link-via-ajax" ) ) ; ?',s2member_reg_access_link_subscr_gateway:"clickbank",s2member_reg_access_link_subscr_id:subscrID,s2member_reg_access_link_custom:custom,s2member_reg_access_link_item_number:levelCcapsPer},function(response){$link.show().html('a href="'+esc_attr(response)+'" target="_blank" rel="external"'+esc_html(response)+"/a"),$loading.hide()});return false};ws_plugin__s2member_pro_clickbankSpLinkGenerate=function(){var leading=$("select#ws-plugin--s2member-pro-sp-link-leading-id").val().replace(/[^0-9]/g,"");var additionals=$("select#ws-plugin--s2member-pro-sp-link-additional-ids").val()||[];var hours=$("select#ws-plugin--s2member-pro-sp-link-hours").val().replace(/[^0-9]/g,"");var $link=$("p#ws-plugin--s2member-pro-sp-link"),$loading=$("img#ws-plugin--s2member-pro-sp-link-loading");if(!leading){alert("— Oops, a slight problem: —\n\nPlease select a Leading Post/Page.\n\n*Tip* If there are no Posts/Pages in the menu, it's because you've not configured s2Member for Specific Post/Page Access yet. See: s2Member - Restriction Options - Specific Post/Page Access.");return false}for(var i=0,ids=leading;iadditionals.length;i++){if(additionals[i]&&additionals[i]!==leading){ids+=","+additionals[i]}}$link.hide(),$loading.show(),$.post(ajaxurl,{action:"ws_plugin__s2member_sp_access_link_via_ajax",ws_plugin__s2member_sp_access_link_via_ajax:'?php echo c_ws_plugin__s2member_utils_strings:: esc_sq ( wp_create_nonce ( "ws-plugin--s2member-sp-access-link-via-ajax" ) ) ; ?',s2member_sp_access_link_ids:ids,s2member_sp_access_link_hours:hours},function(response){$link.show().html('a href="'+esc_attr(response)+'" target="_blank" rel="external"'+esc_html(response)+"/a"),$loading.hide()});return false}}}}); [ full view ]s2member-pro\includes\menu-pages\clickbank-menu-pages-s-min.js Source Code Documentation Packages ( Overview ) Classes Deprecated Todo Index Source Code(!-- :: s-words --)

Statistics: Posted by System Robot — July 11th, 2011, 5:37 pm


]]>
2011-07-09T06:18:01-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13319&p=25614#p25614 <![CDATA[s2Member v111220 / Source Code: s2member-p...]]>
s2Member v111220
Source Code: s2member-pro\includes\menu-pages\clickbank-menu-pages-s-min.js
Docs updated: December 20, 2011, 9:52 am

Open for public discussion.
(!-- s-words :: --)n/a(!-- :: s-words --)

Statistics: Posted by System Robot — July 9th, 2011, 6:18 am


]]>