Home | Advertising Info37 USERS CURRENTLY ONLINE   
PowerASP
   Site Search Contact Us Friday, March 14, 2025  

Active Server Pages asp source code database MS SQL MS Access .mdb adovbs.inc cookies calendar codes sql commands scripts asp programming tutorials iis web server components CJWSoft ASPProtect ASPBanner ASPClassifieds



Blog Entry: 3/25/2006 4:49:18 PM


IMPORTANT UPDATE - READ THIS
http://support.cjwsoft.com/forum/forum_posts.asp?TID=205& ;PN=1


The IPN Subscription Pack which is built in to ASPProtect 7 contains all the pre-built scripts you need to implement PayPal IPN Subscriptions with ASPProtect. IPN stands for (Instant Payment Notification). It allows you to set up scripts on your server so whenever a PayPal payment is processed the PayPal server sends info to your server regarding the transaction and vice versa. This is a fully automated process and allows you to charge users for access by the month or however long you like.

The Subscription feature of PayPal handles recurring billing automatically. The PayPal server will communicate with the ASPProtect system and keep everything up to date with users and their subscriptions.

This Support Pack basically gives you an additional signup and registration directory "paypal_sub_signup" and it should not interfere with any changes or customizations you have made to your ASPProtect setup. New users can register in this directory and sign up for a subscription at the same time. Existing users whether active or expired can be sent to this directory where they can lookup their account and start a subscription. You can also assign various Access and Group Levels during signup and you can set up various prices for various amounts of time as well. This is a real-time setup for the most part. As soon as a user pays via PayPal your system is updated and they will have access.

To use this all you need to do in ASPProtect 7 is enter your PayPal account name into the settings screen. It will be an email address. You'll need a business or premier account with PayPal and you will need log into your PayPal account and turn on IPN in you profile. They make you enter a default IPN URL. We do not use that so if you already have something there leave it there. If you dont have something there you can type in any the full url to any page on your server. It's probably best to send it to an empty ".asp" page or something.

Changing Payment Options

In the "paypal1.asp" file there are some sample payment options set up.

They look like this and you can have as many as you like.

<!-- Begin Payment Option Code -->
<form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_blank">

<% Label = "Membership (1 Month) $9.99 Recurring" %>
<!-- Begin Form Fields You Can Edit.. See PayPal Subscription Manual For Details -->
<input type="hidden" name="no_shipping" value="1">
<input type="hidden" name="no_note" value="1">
<input type="hidden" name="a3" value="9.99">
<input type="hidden" name="p3" value="1">
<input type="hidden" name="t3" value="M">
<input type="hidden" name="src" value="1">
<input type="hidden" name="sra" value="1">
<!-- Field Below must have 2 commas First two values are optional (access level,groups,user ID)-->
<input type="hidden" name="custom" value=",,<% =User_ID %>">
<!-- End Form Fields You Can Edit.. See PayPal Subscription Manual For Details -->

<!--#INCLUDE FILE="form_data_inc.asp"-->
<input type="image" src="https://www.paypal.com/images/x-click-but20.gif" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!">

</form>
<hr>
<!-- End Payment Option Code -->

 

To really understand what these form values mean it is best to look through the PayPal Subscriptions Manual which is a PDF file you can get from the PayPal Site.

This link was valid the last I checked...
Subscriptions and Recurring Payments Manual

It also may be helpful to use their wizard to create some subscription buttons with different settings and then look at the code generated.


Bascially these are the important ones..

  • a3 - amount to billed each recurrence
  • t3 - time period (D=days, W=weeks, M=months, Y=years)
  • p3 - number of time periods between each recurrence
  • The custom field is something we are using to send info from ASPProtect to PayPal.
    it allows you to set the access_level or groups access (groups support require the ASPProtect Option Pack)

    <input type="hidden" name="custom" value=",,<% =User_ID %>">

    or this example where we are setting the access_level to (2) and also giving the user access to groups (3 and 4)

    <input type="hidden" name="custom" value="
    2,*3*4*,<% =User_ID %>">

    Here is how it works.
    The value setting (red) is essentially and array that can be made up 3 elements separated by comma's

    access_level,groups,User_ID

    If you do not want to set the access_level or groups access.. then you don't even need to edit the setting.

    Values must be separated by a comma even if there is no value and there can be no spaces.  If you didn't want to set an access level or groups there would still be 2 commas at the beginning.  etc etc
    Basically there must always be 2 commas but you only have to set last values which is the User_ID from the ASPProtect system.

    The 1st value is the access level you want to user assigned to.
    The 2nd option is the groups you want the user assigned to. (requires option pack)
    The 3rd option is the User_ID which the system takes care of. Do not edit this option. Leave it as <% =User_ID %>

     

    cwilliams38421.7141782407,

    Sorry about earlier post in wrong area-

    I have followed instructions to set up access levels (adding the

    <% CHECKFOR = "4" %>    for user level 4 for instance.) The database is connecting properly and the basic check for login is taking place, but it seems that all users have access to all levels no matter what is on the database; i.e I set up a test page with "checkfor=4" and all users have access to it, even those with lower leve access.

    Any ideas?

    Thanks

    ,



    Humm, its hard to explain but I am not sure that is a good way to be testing that. I hear what you are saying but I am not sure that really means anything. Whatever is going on its some sort of client side issue with the browser and the meta refreshing over a very long period of time during which there really is no user doing anything at the site. ,

    I'll try to help when I get back tues night,, see the contact page for info on where I am
    http://www.cjwsoft.com/contact/default.asp?Subject=CJWSoft+G eneral+Inquiry

    ,

    I installed the ASPProtect.NET project no problem.  I am using VS.NET 2003 on Windows XP SP2 (and fully patched).  I am able to build the project successfully, however I cannot debug the project.  I get an error "Unable to start debugging on the web server. The project is not configured to be debugged."  The web app runs fine just browsing to it.

    I know this is an isolated problem particular to this project.  I have MANY other .NET projects that I can debug without any problems.  I have tried going into IIS and turn on the debugging for server-side script debugging and making sure my IIS application setting were configured correctly.

    Can anyone shed any light on this at all?  Christopher, is there any reason I should not be able to debug this?  (i.e. the aspprotectlicense.dll)

    Thanks,

    K

    ,

    IFRAME is just an client side html thing...

    has nothing to do with .NET

    will work with any page extension or server side technology

    As you see from that compatibilty chart I posted a link to.
    Nearly every modern browser supports it.

     

    cwilliams38155.4462847222, I've had an error I saw described here, couldn't figure out what it was.  My SQL statement was being cut off, though a bit differently because it was created on multiple lines with the amper-underscore string construction design; my statement had no UPDATE, only started with the junk screen characters of the encrypted password.

    So, from what you said above about the vbNullChar, Chris, it looks like I've hit the same problem, maybe from an old version (downloaded March 22, 2005).  Could I request a copy of the updated logic?  Thanks a lot.
    , Just installed sofware everything works fine except I see no way to upload any photos.  There is no reference or link to allow an upload on any of the asp pages (I have surfed them all).  I am sure it is something simple, but I am not aware.  I am using SQL2000.,


    If you want to have a login form on a non protected page that posts
    to a protected ".asp" page use code like this.

    Change the action of the form to the page you want them to log into.
    Make sure to page you send them to is protected by the "check_user_inc.asp" file.


    <center>
      <table border="0" width="400" height="200" bgcolor="#000000">
        <tr>
          <td bgcolor="#F4F4F4">
            <form method="POST" action="memberarea.asp">
              <input type="hidden" name="Status" value="Checkem">
              <p align="center"><font face="Arial">ASPProtect Login</font></p>
              <div align="center">
                 <center>
                 <table border="0" bgcolor="#C0C0C0">
                   <tr>
                     <td bgcolor="#EBEBEB"><strong><small><font face="Arial">Username</font></small></stro ng></td>
                     <td><input type="text" name="Username" size="10"></td>
                   </tr>
                   <tr>
                     <td bgcolor="#EBEBEB"><strong><small><font face="Arial">Password</font></small></stro ng></td>
                     <td><input type="Password" name="Password" size="10"></td>
                   </tr>
                   <tr>
                     <td bgcolor="#EBEBEB" colspan="2"><font face="Verdana, Arial, Helvetica" size="-1"><input type="checkbox" name="KEEPMESIGNEDIN" value="True">Keep
                       me signed in on this computer unless I log off.</font></td>
                   </tr>
                 </table>
                 </center>
              </div>
              <div align="center">
                 <center>
                 <p>&nbsp;<input type="submit" value="Login"></p>
                 </center>
              </div>
           
            </form>
          </td>
        </tr>
      </table>
      </center>

    ,

    I'll send you something..

    ,

    Editing the look of the login page.

    In this version editing the look of the login page is very easy.
    You can make this login page look exactly like you web site if you like.

    You want to edit the "scripts/login_form_inc.asp" file.

    It can be edited with any editor as long as the existing bits of server side code in it and the login form remain in tact.

    The best thing to do is back it up before you start editing it.
    Then if you goof it up you can revert back to the original.

    If you edit this page with FrontPage enable the "show all" feature.
    Its the little PIE sign in your icons. It will show the server side code as yellow things on the screen so you know where they are and can be careful not to delete them.

    see screenshot

    cwilliams38448.8132638889,

    trust me, they (serverobjects) do not check processors.. as a matter of fact they haven't answered support emails for about 3 years. All they do is sell those components like hotcakes and take in mad crazy cash. But I will say the stuff does work well and always has. (that guy probably took all the money he made/makes from those components and took off to Jamaica or something sitting on the beach drinking margaritas)

    regardless,
    ASP just cant resize pictures on it's own.
    It' just not possible. You need a 3rd Party component.

    There isn't much to say about the ASP.NET thing.

    If your server has ASP.NET installed (meaning you can run aspx pages on your server and the ASP.NET framework is installed) and running you just pick that option in the config file and ASP Photo Gallery will use ASP.NET to make dynamic thumbnails for you.

    To run ASP.NET it must be a 2000 or 2003 server.

    ,

    It appears there was a flag problem. When reading it into SQL Server, it converted the True/False in Access to 1/0 in SQL Server.

     

    ,

    OK, I updated the server with the SP 8 Jet updates and this had no effect.

    Then I loaded the asptest file and put in the correct path. The results were:

    Failed: Database could not be connected to....

    Error reported from server:
    Error source: Microsoft OLE DB Provider for ODBC Drivers
    Error number: -2147467259
    Error description: [Microsoft][ODBC Microsoft Access Driver]General error Unable to open registry key 'Temporary (volatile) Jet DSN for process 0x784 Thread 0x854 DBC 0x2101014 Jet'.

    ,

    These are 4 valid examples of calling a flash movie.

    The more simple examples may cause problems for people that don't have the flash plugin installed. I really do not know as I am no flash expert. All these work fine for me. Of course I have the latest flash plugin installed. Perhaps some of you can shed some light in this. The 3rd and 4rth examples are obviously only slightly different and mention different versions of flash as far as downloading the plugin goes.

     

    <EMBED src=" http://www.aspbanner.com/test/aspbanner/images/banners/power asp.swf" WIDTH="468" HEIGHT="60">

     

     

    <object width="120" height="22">
    <param name="movie" value=" http://www.aspbanner.com/test/aspbanner/images/banners/power asp.swf">
    <embed src=" http://www.aspbanner.com/test/aspbanner/images/banners/power asp.swf" width="468" height="60">
    </embed>
    </object>

     

     

    <OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase=" http://download.macromedia.com/pub/shockwave/cabs/flash/swfl ash.cab#version=6,0,40,0"WIDTH="468 " HEIGHT="60" id="myMovieName">
    <PARAM NAME=movie VALUE=" http://www.aspbanner.com/test/aspbanner/images/banners/power asp.swf">
    <PARAM NAME=quality VALUE=high>
    <PARAM NAME=bgcolor VALUE=#FFFFFF>
    <EMBED src=" http://www.aspbanner.com/test/aspbanner/images/banners/power asp.swf" quality=high bgcolor=#FFFFFF WIDTH="468" HEIGHT="60" NAME="mybannername" ALIGN="" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer">
    </EMBED>
    </OBJECT>

     

     

    <OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase=" http://active.macromedia.com/flash2/cabs/swflash.cab#version =4,0,0,0" ID=banner WIDTH="468" HEIGHT="60">
     <PARAM NAME=movie VALUE=" http://www.aspbanner.com/test/aspbanner/images/banners/power asp.swf">
     <PARAM NAME=quality VALUE=high>
     <PARAM NAME=bgcolor VALUE=#FFFFFF>
     <embed src=" http://www.aspbanner.com/test/aspbanner/images/banners/power asp.swf" quality="high" bgcolor="#3CBDCD" WIDTH="468" HEIGHT="60" TYPE="application/x-shockwave-flash" PLUGINSPAGE=" http://www.macromedia.com/shockwave/download/index.cgi?P1_Pr od_Version=ShockwaveFlash">
    </OBJECT>

    cwilliams38089.6129513889,

    I am trying to find out where I can enter the ttle for the application.

    There is a variableor field called App_Name into which it would be good to insert a generic name. Can this be edited?

    I have searched high and low but cannot find anything to do with it.

    , [QUOTE=afifm]

    I was actually able to do similar thing by allowing our dedicated search engine to access the site unchallanged.

    <%
    If Trim(Left(Request.ServerVariables("HTTP_USER_AGENT"),11)) = "MYPASSWORD" Then  
     SearchFlag = True
    End If
     
    If SearchFlag <> True Then
    If Session("Access_Level") > CHECKFOR or Session("Access_Level") = "" Then 
    %>
    <!--#include virtual="/Auth/check_user_Code.asp" -->
    <head>
    <title>My Title</title>

    </head>

    <body>

    My Protected stuff here

    </body>

    </html>

    For this to work, the search engine must pass the PW to the web site. I just was not sure how to do the same thing with IPs. I will play with the code and see what happens. If it works, I will post it here to help others, if this is OK with forum rules.

    Thanks,

    Mo

    [/QUOTE]

    I just added couple of lines and it works fine

    If (Request.ServerVariables("REMOTE_ADDR")) = "xxx.xx.xxx.xxx" Then 
     ' Session("PasswordAccess") = "Yes"
     SearchFlag = true
    End If

    , As I'd said in my previous response, I found those databases and they didn't work. All three databases in asptest do work.,

    all I can say is try other things...  like

    mail.yoursite.com

    or

    smtp.yoursite.com

    etc etc etc

    replacing yoursite with the name of your domain of course


    the settings for sending email via ASP are no different then the settings you would use in outlook or something... except sometimes on the server level localhost works as the email server because they set it up to allow that

    and of course those 3rd party emailing components need to actually be installed on the server

    ,

    Hello,

    I do not really understand what you mean?
    There are no country and city lists in ASPClassifieds.

    cwilliams38391.0301388889, At the bottom of my "users" list page, it asks the question "number of users displayed per page"?  After hitting a larger number than the default of 1-25, it increases the number of users per page to that number.  But as soon as I leave that page, it goes back to the default.  Any thoughts?,

    yup. that is correct... they can't log in so they can't see any pages you protect

    its the nature of forms based authetication

    ,

    Sorry, there is no option for that.

    I'll take it into consideration, but the way the banner rotation logic works would make adding such an option very complicated.

    Just give it  an expiration date way into the future if you do not want an ad to expire anytime soon.

    I usually just make all my ads expire in like 2020 or something like that since I don't want them to stop running either on some of my sites.

    cwilliams38247.1116319444,

    Not really.  The way I thought activity would work is that I would always see the last 50 users.  Not sure what controls that and why I wasn't seeing it, but it sounds like it is an IIS thing and since my site is not all that busy, it will not show the users if some process has reset the numbers.  Not a big deal.

    As for the log files, I think it is related to my other question regarding the export directory.  I have the ISP looking into things at thier end to see if they are doing anything that could cause the directories to disappear.

    Thanks,

    Dave

    ,

    basically one at a time because of limitations of the file uploads that browsers can support 

    more on that here
    http://www.aspphotogallery.com/pro_add_ons.asp


    An Admins can however ftp a bunch of pics to the import folder and import them into any album all at once pretty easily

     

    , That worked...but when I tried importing the test user, the password was imported in an add formated...like it was encrypted, and I can't log in using the User ID that I imported.,

    Chris,

    Yesterday when I would access the get_me_in page with the password key, I was then taken to the default login page.  It did not give me the option to create a user. 

    Today, when I entered the password key into the get_me_in page, I was taken right to the create user page.  So, yes the problem has been resolved.  I have no idea why though.

     

    ,

    Hi,

    How do you know permissions are ok in that folder ?
    Please tell me more on how they were set.

    Please read through my article on how they are set correctly.
    http://support.cjwsoft.com/code/moreinfo136-1.htm

    Often times they are not set correctly or people thingk they set them somehow but in fact did not do it the correct way.

    I would also suggest using the "test_physical_path.asp" page in the "extras" folder to verify if the path you are using to the database mdb file is in fact correct. That page should work whether permissions are set or not. At least then you will know if the path is correct or not and you can go from there.

    ,

    If you still cant see the upload buttons after checking the settings send me a PM with the info and I will take a look at your installation. It will have to be up on a live server of course.

    , remeber too.. you might have to edit code you used on your existing pages in your site so they still call the "check_user_inc.asp" correctly.. though it may very well work out so it works the way it is at the new site

    any redirection code you might have done may need the redirection urls changed if you used full domain urls..

    things like that... etc etc etc,

    Have SQL 2000 backend...
    We just moved from Windows 2000 to Windows 2003, used import data routine in SQL to move data.

    Logged into admin area. When adding new user, no record is created. However, editing record works just fine.

    Any ideas would be appreciated.

    ,

    Christopher
    We are actually having a lot of problems with this software.

    Apart from the above problem of the email not being in the database as details above we also do not get any reply emails from any forms, the mass email button does not appear and the forgotten password does not send emails either.

    We have CDONTS Version: 2.80 Installed as the email system, this is operational on the server. I have tested this with server_info.asp to check.

    I can email you direct any other information you may need.

    Regards

    , it probably means the page you are trying to protect is (not in an iis application or not in the same iis application) which it needs to be

    for a situation like using ASPProtect you really want your root of your virtual directory set up as one big application in IIS. (after you inquired about it your hosting company probably went and set the ASPProtect folder as an application in IIS which means any pages you protect need to be in there as well. (truth is they should have had your entire web starting from the root set as one in the 1st place..... its standard practice for any experienced hosting company) cwilliams38456.9306828704, Seems as though changing the mail settings to "remote email server" did the trick.
    ,

    Hi Chris,

     

    Thank you for your prompt response.

    Our current project requires alot of customization.

     

    Yes, the error is probably a data problem and not due to your code, because we needed to make modifications to the database.  But that's why debugging would be helpful.

     

    Basically our intent to modify the asp protect code stems from the fact that our client doesn’t want certain fields to be recorded or to appear: address, city, state, zip etc…

     

    We are happy to be able to modify the HTML, but we also want to modify some other default behavior, such as which page opens when the "cancel" button is hit in the editaccountinfo.aspx page.

     

     

    ,

    Hello:

     

    When using the Mass Mail feature and selecting the Users to ‘Active’ and the Access Level I want to send to the system will still send e-mails to the ‘Inactive’ users from the same Access Level.

     

    In other words it sends to everyone in the Access Level regardless if you choose “Active” only.

     

    Any ideas to correct?

     

    Thanks,

    -Ricardo

    ,

    More info on the groups session variable.

    Session("Groups") will contain the ID numbers of whatever groups the user is a part of.
    It does not store the descriptive name of that group. It will show the same data that is actually stored in the "Groups" field in the database.

    for example it might hold a value like this

    *2*,*5*,*9*

    meaning a user is part of groups 2, 5, and 9

    so if you wanted to check to see if a user was part of a particular group you would do something like this

    <%
    If InStr(Session("Groups"),"*9*") Then
         Response.Write("You are a member of group 9")
    End If
    %>


    Taking this even further, if you really wanted to get a particular group's name or description you would have to query the database like so. In this case we ask it the name and description for group 9.

     Group_ID=9
     Set ConnPasswords = Server.CreateObject("ADODB.Connection")
     ConnPasswords.Open ConnectionString
     Set cmdTemp = Server.CreateObject("ADODB.Command")
     Set CmdEditGroup = Server.CreateObject("ADODB.Recordset")
     cmdTemp.CommandText = "SELECT " & tbl_label_groups & ".* FROM " & tbl_label_groups & " WHERE (Group_ID = " & Group_ID & ")"
     cmdTemp.CommandType = 1
     Set cmdTemp.ActiveConnection = ConnPasswords
     CmdEditGroup.Open cmdTemp, , 0, 1
      
     Group_Name = CmdEditGroup("Group_Name")
     Group_Desc = CmdEditGroup("Group_Desc")

    , I have been told it does as I got about 5 people or so who upgraded but I have not used SQL 2005 yet. I'll order a copy.,

    I think its great to share a mod.

    I will have  few with the new album.

    ,

    Yes, that’s all I wanted to know. The problem is on my end. The server is not creating the .NET site correctly. I think I got it working now. Thanks.

    In case you wanted to know? The only reason I asked you is because you mentioned that you where having trouble with overseas piracy and my account is new. I figured it was my user error by just though I’d ask you first. Hope you have no more piracy issues and have a good rest of the day.

    Thanks again for the quick response.

    ,


    Timecard Entry: 3/25/2006 4:49:18 PM

    email, daily reports, TI.com Restaurant Reviews, Did some call backs and answered phones., working on getting beth's computer to hook up to the quickbooks server. talked to andy about it, he'll see what he can do., Lunch, evening team meeting, worked on a logo, Met w/Tim, lunch at seminar, email / mail / updates from previous week..., opened and organized bills from last week, CBT, Working on autoresponder contact system stuff for SoftMLS, Running a cable, tracking down a circuit id for a non-working spid, changing the spid in a netserver. , Lifetimedocksandhoists.com: moved all files to new URL, made text changes, began to make graphics changes, Training for Jeff-Lewis, Entered bills, check voice mail/email, Lunch, Travel to Vermont Internet - 7 Miles, finished invoices, Read articles from exhibit magazine. Changed contact name for Alpha Prompt after they freaked out. , timecards and emails to submit timecards, not, Lunch, Work w/ Carol on billing issues and a long distance issue w/ Sharron Stone that took a majority of my time., lunch, Ron and Fred - Training, stuffed invoices with Cathy,

       Active Server Pages Rule The World
    Contact Us  
    All artwork, design & content contained in this site are Copyright © 1998 - 2025 PowerASP.com and Christopher J. Williams
    Banner ads ,other site logos, etc are copyright of their respective companies.
    STATS Unless otherwise noted - All Rights Reserved.

    Active Server Pages what is asp programming how to sample asp example code scripts software asp forum mail sessions applications global.asa CJWSoft ASPProtect ASPBanner ASPClassifieds www.aspclassifieds.com, www.powerasp.com,www.cjwsoft.com,www.aspphotogallery.com,www.codewanker.com,www.aspprotect.com,www.aspbanner.com