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.

David Welch


My Latest Replies (From Various Topics)

Viewing 25 replies - 201 through 225 (of 407 total)
Author Replies
Author Replies
Posted: Saturday Apr 14th, 2012 at 11:11 pm #10834
David Welch
Username: dwbiz05

I haven’t used any specific plugins, but I know there are some. If you are looking for something custom, you’ll probably have to get someone to create it. Otherwise, I would just search for “affiliate” under the new plugin search in wordpress and try them out yourself to see what (if any) will work best for you.

Another option that I think some people are using is to integrate a third party affiliate program. I believe s2member (pro maybe) comes with integrations for some 3rd party affiliate tracking.

Are you looking to have affiliates sign up through your site or just want to track where customers are being re-directed from?

Dave

Posted: Saturday Apr 14th, 2012 at 9:43 pm #10830
David Welch
Username: dwbiz05

Have you updated wodpress and/or those plugins recently? Could be a new version conflict or something.

The iframes are being set inside this span:

<span class="st_fblike_buttons" st_title="EMERGE Entrepreneurs Online – Sign Up" st_url="http://emerge-embrace.com/?page_id=785" displaytext="share" st_processed="yes">
	<span style="text-decoration:none;color:#000000;display:inline-block;cursor:pointer;position:relative;margin:3px 3px 0;padding:0px;font-size:11px;line-height:16px;vertical-align:bottom;overflow:visible;">
		<div id="fb-root" class=" fb_reset">
			<div style="position: absolute; top: -2000px; ">
				<iframe id="fb_xdm_frame_http" name="fb_xdm_frame_http" src="http://static.ak.facebook.com/connect/xd_arbiter.php?version=4#channel=f2931caa0c&amp;origin=http%3A%2F%2Femerge-embrace.com&amp;channel_path=%2F%3Fpage_id%3D785%26fb_xd_fragment%23%3F%3D%26xd_sig%3Df15bdbadd4%26&amp;transport=postmessage"></iframe>
				<iframe id="fb_xdm_frame_https" name="fb_xdm_frame_https" src="https://s-static.ak.facebook.com/connect/xd_arbiter.php?version=4#channel=f2931caa0c&amp;origin=http%3A%2F%2Femerge-embrace.com&amp;channel_path=%2F%3Fpage_id%3D785%26fb_xd_fragment%23%3F%3D%26xd_sig%3Df15bdbadd4%26&amp;transport=postmessage"></iframe>
			</div>
		</div>
		<div data-action="" data-send="false" data-layout="button_count" data-show-faces="false" class="fb-like fb_edge_widget_with_comment fb_iframe_widget" data-href="http://emerge-embrace.com/?page_id=785">
			<span>
				<iframe id="f3529dc04" name="f2f2846748" scrolling="no" style="overflow-x: hidden; overflow-y: hidden; height: 20px; width: 90px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; border-image: initial; " title="Like this content on Facebook." class="fb_ltr" src="http://www.facebook.com/plugins/like.php?channel_url=http%3A%2F%2Fstatic.ak.facebook.com%2Fconnect%2Fxd_arbiter.php%3Fversion%3D4%23cb%3Df3e1855b7%26origin%3Dhttp%253A%252F%252Femerge-embrace.com%252Ff2931caa0c%26domain%3Demerge-embrace.com%26relation%3Dparent.parent&amp;extended_social_context=false&amp;href=http%3A%2F%2Femerge-embrace.com%2F%3Fpage_id%3D785&amp;layout=button_count&amp;locale=en_US&amp;node_type=link&amp;sdk=joey&amp;send=false&amp;show_faces=false&amp;width=90"></iframe>
			</span>
		</div>
	</span>
</span>

This is the facebook “like” button next to your photo on the post. Try removing that like button and see if it goes away. Could the the like button is not being formatted correctly or something.

Dave

  • This reply was modified 4 years, 8 months ago by  David Welch.
  • This reply was modified 4 years, 8 months ago by  David Welch. Reason: Fixed code layout for read-ability
Posted: Saturday Apr 14th, 2012 at 4:50 pm #10818
David Welch
Username: dwbiz05

The PRO version of s2member gives you the option to create registration form shortcodes that you can put on any page. Other than that, there is no standard way to do what you are looking for that I know of.

Hope that helps,
Dave

Posted: Saturday Apr 14th, 2012 at 12:46 am #10784
David Welch
Username: dwbiz05

Clicking on “inspect element” in Chrome I found this extra code which is creating those two iframes over your content (I didn’t copy all the code):

<span class="st_plusone_buttons" st_title="EMERGE Entrepreneurs Online – Sign Up" st_url="http://emerge-embrace.com/?page_id=785" displaytext="share" st_processed="yes">
	<div style="display:inline-block;overflow:hidden;line-height:0px;position:relative;vertical-align:middle;bottom:0px;width:36px; height:21px;">&nbsp;
		<div id="___plusone_0" style="height: 20px; width: 32px; display: inline-block; text-indent: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; float: none; line-height: normal; font-size: 1px; vertical-align: baseline; background-position: initial initial; background-repeat: initial initial; ">
			<iframe allowtransparency="true" frameborder="0" hspace="0" id="I1_1334378261254" marginheight="0" marginwidth="0" name="I1_1334378261254" scrolling="no" src="https://plusone.google.com/_/+1/fastbutton?url=http%3A%2F%2Femerge-embrace.com%2F%3Fpage_id%3D785&amp;size=medium&amp;count=false&amp;hl=en-US&amp;jsh=m%3B%2F_%2Fapps-static%2F_%2Fjs%2Fgapi%2F__features__%2Frt%3Dj%2Fver%3DAPFQGAQnwxA.en_US.%2Fsv%3D1%2Fam%3D!-SXmuOx1_3GIepEFVA%2Fd%3D1%2Frs%3DAItRSTMlfm3bL-ILx7qCdIEu6V-RmTkDAQ#id=I1_1334378261254&amp;parent=http%3A%2F%2Femerge-embrace.com&amp;rpctoken=774953212&amp;_methods=onPlusOne%2C_ready%2C_close%2C_open%2C_resizeMe%2C_renderstart" style="width: 32px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; height: 20px; position: static; left: 0px; top: 0px; visibility: visible; " tabindex="0" vspace="0" width="100%" title="+1">
			</iframe>
		</div>
	</div>
</span>

Looks like maybe a facebook and/or google plugin not working correctly maybe?

Hope that helps,
Dave

Posted: Friday Apr 13th, 2012 at 10:02 pm #10777
David Welch
Username: dwbiz05

Do you have open registration turned off?

s2member->general settings

Dave

Posted: Thursday Apr 12th, 2012 at 3:52 pm #10689
David Welch
Username: dwbiz05

hm. I have to admit it’s got me stumped. Maybe someone else can chime in!

Dave

Posted: Thursday Apr 12th, 2012 at 2:16 pm #10680
David Welch
Username: dwbiz05

hm… that first url is what shows if you hover over the logout link on your menu too?

Dave

Posted: Thursday Apr 12th, 2012 at 1:44 pm #10678
David Welch
Username: dwbiz05

Try replacing this:

wp_logout_url('index.php')

with this:

wp_logout_url( home_url() )

See if that works.

Dave

Posted: Thursday Apr 12th, 2012 at 1:05 pm #10675
David Welch
Username: dwbiz05

What is the function in your menu look like?

Dave

Posted: Thursday Apr 12th, 2012 at 9:46 am #10656
David Welch
Username: dwbiz05

Yes, admin will trigger a false if someone else created it. However, the rest of the post access routine will give the admin access based on the admin role.

No problem, I hope it works well for you.

Dave

Posted: Thursday Apr 12th, 2012 at 9:44 am #10655
David Welch
Username: dwbiz05

You can add the access to post via a third party Role plugin, however limiting what category they post in may require more programming if the Role plugin doesn’t have that option.

Dave

Posted: Wednesday Apr 11th, 2012 at 10:34 pm #10624
David Welch
Username: dwbiz05

This page tells you how to create shortcodes. You will need to create a function that pulls the user’s data and then does what you want the shortcode to do. (like print information, etc.)

http://codex.wordpress.org/Function_Reference/add_shortcode

NOTE: s2member custom user fields are stored in a serialized array in the database.

Hope that helps!

Dave

PS. If you are not a programmer, you may want to find one to do this for you as there is more involved than just using s2member API variables.

Posted: Wednesday Apr 11th, 2012 at 10:30 pm #10623
David Welch
Username: dwbiz05

You can do this by adding a function to your functions.php file in your theme or to a new file under wp-content/mu-plugins/s2hacks.php (you may need to create this directory and file).

The Function:

<?php

function my_post_filter($bool, $vars=array()){

	//This checks to see if the user is logged in and if the user is the author. 
	if(is_user_logged_in() && $vars['post']->post_author == S2MEMBER_CURRENT_USER_ID){
		//This tells s2member to ignore post access checking
		return true;
	}
	else {
		//This tells s2member to continue with post access checking
		return false;
	}
	
}
add_filter('ws_plugin__s2member_check_post_level_access_excluded','my_post_filter',10,2); //hooks into the s2member filter.

?>

Hope that helps,

Dave

Posted: Wednesday Apr 11th, 2012 at 3:44 pm #10603
David Welch
Username: dwbiz05

For those looking at this later…

The reason adding an extra “s” worked is because in the s2member code, they are parsing the post type using “all-” your post type here “s”. So if your post type is a plural, you have to add an extra “s” to get it to be parsed correctly.

Return Page:

I believe the correct file is found in your directory here:
wp-content/plugins/s2member/includes/templates/returns/default-return.php

I have not messed with this file, so I’m not 100% sure that’s it.

Post Viewing:

I’m sure this is possible using the API scripts, or at least doing your own scripting using the API constants or something. However, without knowing your system, I couldn’t tell you the best way to pull it off! lol! But, it’s probably possible.

Dave

Posted: Wednesday Apr 11th, 2012 at 3:22 pm #10599
David Welch
Username: dwbiz05

EDIT: I’m an idiot… lol!

try “all-hostss” with the extra “s” on it like I have it… just for kicks.. :)

Dave

  • This reply was modified 4 years, 9 months ago by  David Welch.
  • This reply was modified 4 years, 9 months ago by  David Welch.
Posted: Wednesday Apr 11th, 2012 at 2:56 pm #10596
David Welch
Username: dwbiz05

Do they have access to that specific page or is it just showing in the blog roll?

Check this setting:
s2member-> Restrictions -> Alternative View Protection -> Filter ALL WordPress® queries; protecting all Alternative Views.

Dave

Posted: Wednesday Apr 11th, 2012 at 1:15 pm #10570
David Welch
Username: dwbiz05

I don’t think s2member has this as a native function. You will probably have to create your own shortcode for this one.

Dave

Posted: Wednesday Apr 11th, 2012 at 10:57 am #10556
David Welch
Username: dwbiz05

1. Yes you can create subfolders.

2. I don’t know if this will work, because it depends on whether jwplayer will parse shortcode, unless you are creating your file access string using the php method. usually to access a file in the secured folder you would do something like this:

<a href="[s2File download='subfolder/myvideo.mp4' skip_confirmation='yes' download_key='yes']">The file name</a>

So, since you are using the shortcode method, the way it should work is something like this:

[jwplayer config="My_player_settings" file="[s2File download='subfolder/myvideo.mp4' skip_confirmation='yes' download_key='yes']"]

The php version is a little more work if jwplayer doesn’t parse shortcodes.

Without knowing much about jwplayer, that should be how to play files that are in the protected folder. I’m not sure about the user’s ability to move through the file though.

Hope that helps.

Dave

Posted: Wednesday Apr 11th, 2012 at 10:03 am #10554
David Welch
Username: dwbiz05

I don’t know of any native way to do this, but you could probably accomplish this with a little jquery and manipulation of the paypal button code that’s generated.

Just use the html form given by s2member instead of the shortcode and change the input type of the price to “text.”

Then add some jquery to check the value of the input price when the form is submitted to see if it is 100.00 or greater and return false if not.

Hope that points you in the right direction.

Dave

Posted: Tuesday Apr 10th, 2012 at 10:54 am #10470
David Welch
Username: dwbiz05

is the file you are trying to load in the s2member-files folder? Meaning, is it a protected file?

Is it on a protected page? If not, what is the url?

Dave

Posted: Tuesday Apr 10th, 2012 at 10:48 am #10469
David Welch
Username: dwbiz05

have you tried just adding an image via an html image tag? I have no clue if it will work but it’s worth a shot! :)

<img src="http://yourste.com/your-image-file" />

Hope that helps,

Dave

Posted: Tuesday Apr 10th, 2012 at 9:28 am #10459
David Welch
Username: dwbiz05

I’m not sure where the css is located in the code. However, they do provide several hooks to add or filter the css being sent to the browser.

Check those out here:
http://www.s2member.com/codex/stable/s2member/login_customizations/package-filters/

Hope that helps point you in the right direction.

Dave

Posted: Tuesday Apr 10th, 2012 at 9:24 am #10458
David Welch
Username: dwbiz05

I believe s2member uses bbpress. However, I have no idea what (if any) modifications they have made to make it work with their user levels.

Dave

Posted: Tuesday Apr 10th, 2012 at 9:17 am #10456
David Welch
Username: dwbiz05

What comes before the ” JW Player® appears here.” because it looks like your missing some code or something.

Dave

Posted: Sunday Apr 8th, 2012 at 6:06 pm #10335
David Welch
Username: dwbiz05

If you just want to have anyone register for level 0, simply allow “Open Registration” in your s2member settings. Any one who registers without going through a paypal payment is automatically set up as a level 0 user.

The registration form is the standard WP registration form found at: yoursite.com/wp-login.php?action=register

Now, if you want the membership options page to be the actual registration form, that’s not a native function of the free version of s2member. So you could add a link from your membership options page to your registration form, or you could add a small hack to s2member via their hook system to circumvent the redirection if a user clicks on a non-public page.

You could add this to your functions.php file in your theme or in a new file like s2hacks.php in the directory wp-content/mu-plugins/s2hacks.php

<?php
function dw_redirect($vars = array()){
	wp_redirect(site_url('/wp-login.php?action=register')); //This redirects to the login page.
	exit();
}

add_action("ws_plugin__s2member_before_wp_redirect_w_mop_vars","dw_redirect"); //Adds the function to the hook.
add_action("ws_plugin__s2member_before_wp_redirect_wo_mop_vars","dw_redirect"); //Adds the function to the hook.
?>

Hope that helps or points you in the right direction.

Dave

Viewing 25 replies - 201 through 225 (of 407 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.