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.

DrByte


My Latest Replies (From Various Topics)

Viewing 14 replies - 26 through 39 (of 39 total)
Author Replies
Author Replies
Posted: Friday Mar 30th, 2012 at 11:25 pm #9629
DrByte
Username: DrByte

Hi,

NOTE: The Pro Login Widget is only available to s2member Pro

Hope this help:

1- Add this to the your template header (header.php):

<script src="http://jqueryjs.googlecode.com/files/jquery-1.2.6.min.js" type="text/javascript"></script>
<script type="text/javascript">
//SETTING UP OUR POPUP
//0 means disabled; 1 means enabled;
var popupStatus = 0;

//loading popup with jQuery magic!
function loadPopup(){
	//loads popup only if it is disabled
	if(popupStatus==0){
		$("#backgroundPopup").css({
			"opacity": "0.7"
		});
		$("#backgroundPopup").fadeIn("slow");
		$("#popupContact").fadeIn("slow");
		popupStatus = 1;
	}
}

//disabling popup with jQuery magic!
function disablePopup(){
	//disables popup only if it is enabled
	if(popupStatus==1){
		$("#backgroundPopup").fadeOut("slow");
		$("#popupContact").fadeOut("slow");
		popupStatus = 0;
	}
}

//centering popup
function centerPopup(){
	//request data for centering
	var windowWidth = document.documentElement.clientWidth;
	var windowHeight = document.documentElement.clientHeight;
	var popupHeight = $("#popupContact").height();
	var popupWidth = $("#popupContact").width();
	//centering
	$("#popupContact").css({
		"position": "absolute",
		"top": windowHeight/2-popupHeight/2,
		"left": windowWidth/2-popupWidth/2
	});
	//only need force for IE6
	
	$("#backgroundPopup").css({
		"height": windowHeight
	});
	
}


//CONTROLLING EVENTS IN jQuery
$(document).ready(function(){
	
	//LOADING POPUP
	//Click the button event!
	$("#button").click(function(){
		//centering with css
		centerPopup();
		//load popup
		loadPopup();
	});
				
	//CLOSING POPUP
	//Click the x event!
	$("#popupContactClose").click(function(){
		disablePopup();
	});
	//Click out event!
	$("#backgroundPopup").click(function(){
		disablePopup();
	});
	//Press Escape event!
	$(document).keypress(function(e){
		if(e.keyCode==27 && popupStatus==1){
			disablePopup();
		}
	});

});
</script>

<style>
#backgroundPopup{
display:none;
position:fixed;
_position:absolute; /* hack for internet explorer 6*/
height:100%;
width:100%;
top:0;
left:0;
background:#000000;
border:1px solid #cecece;
z-index:1;
}
#popupContact{
display:none;
position:fixed;
_position:absolute; /* hack for internet explorer 6*/
height:384px;
width:408px;
background:#FFFFFF;
border:2px solid #cecece;
z-index:2;
padding:12px;
font-size:13px;
}
#popupContact h1{
text-align:left;
color:#6FA5FD;
font-size:22px;
font-weight:700;
border-bottom:1px dotted #D3D3D3;
padding-bottom:2px;
margin-bottom:20px;
}
#popupContactClose{
font-size:14px;
line-height:14px;
right:6px;
top:4px;
position:absolute;
color:#6fa5fd;
font-weight:700;
display:block;
}
#button{
text-align:center;
margin:100px;
}
</style>

2- Add this to where you want to show the menu button

<div id="button"><input type="submit" value="Log In" /></div>

<div id="popupContact">
		<a id="popupContactClose">x</a>
		<p id="contactArea">
			<?php echo s2member_pro_login_widget(); ?> 
		</p>
	</div>
	<div id="backgroundPopup"></div>
	

You can optimize it the way you want. add the style to your style sheet and add the second JavaScript to a separate file and call it like this [example]

<script src="login_popup.js" type="text/javascript"></script>

Now, since you want to add it to your menu I would remove the

<div> and use <ul> and <li>

instead:

<li id="button"><input type="submit" value="Log in" /></li>

and add your menu custom style like this:

<li id="button" class="your menu style"><input type="submit" value="Log In" /></li>

Hop this help

Sam

  • This reply was modified 4 years, 9 months ago by  DrByte.
Posted: Friday Mar 30th, 2012 at 10:50 pm #9626
DrByte
Username: DrByte

Hi,

is the flash player loaded? Meaning when you view the page, do you see the player but not the video or just a blank page?

a code will be helpful

Sam

Posted: Friday Mar 2nd, 2012 at 7:34 am #7058
DrByte
Username: DrByte

Try the the full url like http://www.site.com/jwplayer/jwplayer.js
&
http://www.site.com/jwplayer/player.swf

Also make sure the video name is correct

Also you have mp4 in at the s2/member inline box

Sam

Posted: Friday Mar 2nd, 2012 at 7:13 am #7054
DrByte
Username: DrByte

here’s what i am using on the second site using s2member file Directory

you can use the shortcode..just remove the /*

<div id="jw-container">JW Player® appears here.</div>
<script type="text/javascript" src="/jwplayer/jwplayer.js"></script>
<script type="text/javascript">
    jwplayer("jw-container").setup({modes: /* JW Player®. */
    [
        /* First try psuedo-streaming with Flash® player. */
        {type: "flash", provider: "http", src: "/jwplayer/player.swf",
            config: {file: "/wp-content/plugins/s2member-files/s2member-file-inline/transformers3_iphone.mp4"}},
            /* Shortcode equivalent: [s2File rewrite="yes" inline="yes" download="transformers3_iphone.mp4" /] */
    
        /* Else, try an HTML5 video tag. */
        {type: "html5", provider: "video",
            config: {file: "/wp-content/plugins/s2member-files/s2member-file-inline/transformers3_iphone.mp4"}},
            /* Shortcode equivalent: [s2File rewrite="yes" inline="yes" download="transformers3_iphone.mp4" /] */
    
        /* Else, this is a safe fallback. */
        {type: "download", /* Download the file. */
            config: {file: "/wp-content/plugins/s2member-files/s2member-file-inline/transformers3_iphone.mp4"}}
            /* Shortcode equivalent: [s2File rewrite="yes" inline="yes" download="transformers3_iphone.mp4" /] */
    ],
    /* Set video dimensions. */ width: 480, height: 270
    });
</script>
  • This reply was modified 4 years, 10 months ago by  DrByte.
Posted: Friday Mar 2nd, 2012 at 7:00 am #7052
DrByte
Username: DrByte

Others pages you may want to try

http://www.codetrac.net/?page_id=572 it a mov file

this is your video

http://www.codetrac.net/?page_id=573

Are you using Amazon at all or just your host directory?

Here is another page using S2member directory.

http://www.codetrac.net/test/wp-admin

test
test

let me know if the video plays on your iphone and ipad

Sam

Look at the code and see if you can copy it to your – the video

Sam

Posted: Friday Mar 2nd, 2012 at 6:30 am #7049
DrByte
Username: DrByte

yes it is

I am using amazon s3/cloudfront

How about your iPad?

Posted: Friday Mar 2nd, 2012 at 6:22 am #7046
DrByte
Username: DrByte

OK,

Can you please go here http://www.codetrac.net/wp-admin

log in info

username: test
password: test

you will see a video

try to play in in you iPad, iPhone …..etc

let me know

Sam

Posted: Friday Mar 2nd, 2012 at 5:52 am #7040
DrByte
Username: DrByte

are you using html5 fallback option?

Posted: Friday Mar 2nd, 2012 at 5:23 am #7038
DrByte
Username: DrByte

Hi,

So let me get this right..

you have an MP4 video file
you were using AWS – stream OK to your Mac but not to your iPad, iPhone
when streaming locally, it works on all (when deleting htaccess)

Can you please show us the full JW Player code you are using on your site.

Sam

Posted: Thursday Feb 23rd, 2012 at 10:02 am #6114
DrByte
Username: DrByte

Hi Bendix

What Coder are using to convert to mp4 and how big is your file?

Jason hack should work unless otherwise you have something in the site main htaccess file.

<?php
add_filter("ws_plugin__s2member_chunk_file_downloads", "__return_false");
add_filter("ws_plugin__s2member_flush_file_downloads", "__return_false");
?>

form my experience with videos, iPads seems to like the m4v container better than others. It seems it relies heavenly on the iTunes and most are m4v.

Others that might help:

add this to your htaccess file

AddType video/mp4 m4v

or

AddType video/mp4
AddType video/x-m4v

Sam

Posted: Wednesday Feb 22nd, 2012 at 12:11 pm #5957
DrByte
Username: DrByte

Hi Matt Barr

Can you please give us a link so we can take a look. Thanks

Sam

Posted: Wednesday Feb 22nd, 2012 at 11:58 am #5956
DrByte
Username: DrByte

HI

Your files are secured till you give access (view/download) to. Having said that, server security I suppose is what you need to look at. If your sever (hosting) is not secured, then you leave hackers gateways to access your root site, therefore reading your files.

Sam

Posted: Wednesday Feb 22nd, 2012 at 11:48 am #5952
DrByte
Username: DrByte

Actually, It’s not a bad idea for Jason to add a small ad to the free version of S2. Why not? Everybody is doing it.

Let’s see, 1/2 mil impression/mo x .005 =’s couple of Maine Lobsters, a huge crab, and beer. Not bad, not bad at all

Sam

Posted: Wednesday Feb 22nd, 2012 at 11:28 am #5948
DrByte
Username: DrByte

Hello,

It depends how you address your links. Are you talking about zip, rar text files or media like music and videos?

There are lots of factors when it comes to encrypted links. Overall, S3m does a good job protecting them.

You might want to look at Amazon (AWS) S3 services too. They offer an extra layer of protection.

Sam

Viewing 14 replies - 26 through 39 (of 39 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.