06-01-2007, 02:27 AM
06-01-2007, 02:37 AM
and .. (LOL)
I have two levels of membership, One free(level 1) and one Pay (level 2)
could this be done for ONLy the pay members?
and finally, for now, how does the member know they have a folder created just for them and where it is?
I have two levels of membership, One free(level 1) and one Pay (level 2)
could this be done for ONLy the pay members?
and finally, for now, how does the member know they have a folder created just for them and where it is?
06-01-2007, 12:14 PM
Yes you can set the chmod at 755 or 777 or whatever you need
<?php
mkdir("/uploaded_images/$_POST[email]", 0777);
?>
here the chmod is set at 777
<?php
mkdir("/uploaded_images/$_POST[email]", 0755);
?>
here the chmod is set at 755
Yes if you use two levels and you do not want the Free level members to have a directory made then your code that goes at the top of your interface/subscribed.php file
would be:
{php}
if
($_POST[groups]=="2")
{mkdir("uploaded_images/$_POST[email]");
}
{/php}
this will only create a directory with level 2 users.
And finally since in this example we are using your members email to create the name of there folder, and if your members email was name@anywebsite.com then
the folder created for your member in this example would be on your web server here:
uploaded_images/name@anywebsite.com
I have created a form element to upload pictures and files on my members page.
and use this url to post the pictures/data to my server:
uploaded_images/$_SESSION[mm_email]
I hope this makes sense
<?php
mkdir("/uploaded_images/$_POST[email]", 0777);
?>
here the chmod is set at 777
<?php
mkdir("/uploaded_images/$_POST[email]", 0755);
?>
here the chmod is set at 755
Yes if you use two levels and you do not want the Free level members to have a directory made then your code that goes at the top of your interface/subscribed.php file
would be:
{php}
if
($_POST[groups]=="2")
{mkdir("uploaded_images/$_POST[email]");
}
{/php}
this will only create a directory with level 2 users.
And finally since in this example we are using your members email to create the name of there folder, and if your members email was name@anywebsite.com then
the folder created for your member in this example would be on your web server here:
uploaded_images/name@anywebsite.com
I have created a form element to upload pictures and files on my members page.
and use this url to post the pictures/data to my server:
uploaded_images/$_SESSION[mm_email]
I hope this makes sense
06-03-2007, 04:20 PM
Thanks for that, its very helpful.
Just one thing i dont understand is the email variable, you use [email] and [mm_email], is that for any reason?
Just one thing i dont understand is the email variable, you use [email] and [mm_email], is that for any reason?
06-03-2007, 06:12 PM
Yes it is for a reason,
I use $_SESSION[mm_email] in my form, this is a secure page that I created
look at the example page that came with the download "secure/index.php" to see how it is used to pull other information into your page.
in order to use this veriable you need to have
<?php
require_once("../login_require.php");
visitor_login($groups="1");
?>
placed before the html tag see the example on how to set up a secure page.
now you can use $session variable to customize info in your php pages such as name, email etc...
I used the $_POST[email] variable in there interface templates so that I can simply post a variable that is already in use in there pages. That is why they need to be surounded by {php} {/php} see example on how to insert php and CSS into a template.
I hope this makes sence
I use $_SESSION[mm_email] in my form, this is a secure page that I created
look at the example page that came with the download "secure/index.php" to see how it is used to pull other information into your page.
in order to use this veriable you need to have
<?php
require_once("../login_require.php");
visitor_login($groups="1");
?>
placed before the html tag see the example on how to set up a secure page.
now you can use $session variable to customize info in your php pages such as name, email etc...
I used the $_POST[email] variable in there interface templates so that I can simply post a variable that is already in use in there pages. That is why they need to be surounded by {php} {/php} see example on how to insert php and CSS into a template.
I hope this makes sence
07-18-2007, 03:27 PM
Could some please explain how i get the new client to know that they have a special folder or how to include a link to that folder on some part of the site?
Or is it solely for uploads? (this being the default folder for their own uploads?
Or is it solely for uploads? (this being the default folder for their own uploads?
07-18-2007, 03:36 PM
In the control panel user view template you could use PHP code to add the URL/email@address.com
IE:
{php}
<a href="http://www.url-here.com/members/$_SESSION[mm_email]/">Link Title Here</a>
{/php}
IE:
{php}
<a href="http://www.url-here.com/members/$_SESSION[mm_email]/">Link Title Here</a>
{/php}
Pages: 1 2