Home | Advertising Info110 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:16 PM

Not the way it ships. You would have to add that functionality by editing the source code and database., Thanks Chris.

Yes i never actually considered that they should log in twice.

The site uses two main url and the cookie was being stored for only one of  them. I have fixed the double login issue by making changes to menu to ensure that they are always logging only via the url stored in the cookie.

Thanks for your hep,

Stuart
,



The links to view that info are on the main users screen of the admin area.

Down below...

They wont show up unless you have that stuff enabled in the settings screen as well.

 

, ok thanks,

I have reviewed the permissions requirements for folders from the support documentation but do not see the 'internal guest' account shown in our system to allow internet access to read/write to the access database. 

How else can we locate the proper account (or is it possible there is none?) to use to allow permissions to access the Data directory if it doesn't show up as 'Internal Guest'?

cwilliams38417.7773032407, 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., So do I just replace the four folders that came with aspprotect with the four (in my case domain directory) folders in the patch or just move the files?, sounds like the data/export folde does not have permissions,

Christopher

I have gone back to your original files and uploaded them to another server folder and instead of using a DSN I have tried this with a DSN less connection and changed the database to MS Access 2002.

This has corrected the problem.
I will check this out again using the DSN with access 2002 to see if this was the problem. It may be something to do with an older format of database on this particular server.

I will let you know what I find.

Thanks for your  quick reply.

,

Same here.  Thinking it might be server load or the bandwidth to the server.

Thanks for checking!
Lance

,

whether you use SSL or not really does not effect aspprotect in any way

I say, the smart thing to do there is too not start them off at a http:// url

one way to do it is put a simple ASP redirect on that default page and send them to an SSL version of the page instead...

http://www.powerasp.com/content/code-snippets/redirects.asp

another way would be not start them off on a protected page right off the bat and offer links to the the protected area...

in my opinion thats pretty odd to be starting them off on a protected page anyway
SLL maybe, but protected right from the time they hit the default page of the site.. thats just odd.. usually you want o say a little something about the site your at and then link people to protected areas or give them a login form which posts to a protected area.


Regardless if you always want users at your site under https:// you should have code on every single page in your site checking the url info at every page load. Then if someone ever hits a page and is not using the https://  you can do something about it like redirect them to the SSL home poge or redirect to that same page but with the https:// in the url..

, I have ASP Photogallery running and it seems to be great, but I would like to allow uploads using DUNDAS the problem is I can't seem to find it on the linked website. I did find an EXE install in another place but I am running on a Shared Host (Godaddy) and can't run an executable on it. Where can I find Dundas and is there a way to install it without running an EXE??, Bingo! that did it.  Somehow the data must have gotten corrupted. 

Hopefully that will do for me. Seems like everything is humming along and looks great!

Thanks again,

Laura
,
Christopher,
 
When viewing a list of albums with the navigation option 1, is there a way to get the Time Created sort to list Newest to Oldest, instead of Oldest to Newest.
 
Looking at the code in albums_navigation1_inc.asp, I can not determine how this works.
 
Thanks for your help!
 
- Jason
 
p.s. I always forget how addicting this stuff can be...lol.
 
,

well, assuming that function works and is vbscript not vb
(if it is vb code it may need some conversion work)

anyway

in "users/add_new_account.asp"

you would put the code for that function anywhere in the page.. it does not matter where as long as it is in code tags <% %>

then.. right under this part of the same page

If Zipcode_Postal_Code_Required = True Then
 If  Zipcode_Postal_Code = "" Then
  ErrorMessage = ErrorMessage & Server.URLEncode("You need to enter a Zipcode_Postal_Code.\n\n")
 End IF
End If


add this

If Check_Postcode(Zipcode_Postal_Code) <> True Then
  ErrorMessage = ErrorMessage & Server.URLEncode("You need to enter a Valid Zipcode_Postal_Code.\n\n")
End If

No guarantees but that is the gist of it

cwilliams38381.6456828704, I will give you permission to move it since you asked.,

It seems that if a user attempts to access a page that is not in their access level or they do not have the group permission they are redirected to the login page.  Re entering their ID generates an eror and they cannot go back to the pages they are alowed to access.  Is there a way for them to simply be blocked and return to the previous page or to a defined page so they can continue using the site?

thankyou 

,

the following error message appears, but only when attempting to log off. all other parts of the program seem to be working.

[Microsoft][ODBC Microsoft Access Driver]General error Unable to open registry key 'Temporary (volatile) Jet DSN for process 0xa04 Thread 0xa38 DBC 0x21ff024 Jet'.

,


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,

    I'm getting this error when I try to login:

     Active Server Pages error 'ASP 0131'

    Disallowed Parent Path

    /gallery/users/login.asp, line 19

    The Include file '..dataconn_inc.asp' cannot contain '..' to indicate the parent directory.

    ,

    Chris:

    I just got done trying it myself and it worked great for me too. I was aware of the security issue, but I'd already planned on using SSL for this particular call, as well as for the secured pages accessed through the normal process, so the bad guys will be kept at bay.

    Thanks for the help.

    ,

    OK, I just spent like an hour in your site.. I almost gave up

    1st off... I don't know what FTP Program/Settings or what OS you are using but all the ASP Protect Files had been reformatted in a odd way which was causing some issues and the database also had problems. Your somehow introducing all sorts of UNIX line breaks to all the files and the database was actually missing some crucial parts of itself and was corrupted. So I had to update everything which means a new database. I have never seen anything like it but I fixed it all. Its something you are doing but I do not know what. Maybe your unzipping method again ?


    So to get back into the admin area...

    admin
    test

    Now, the reason  the albums were not showing is because you are using the ole connection string which causes problems like that. However because you host has like the worst setup ever with that network path crap for the site that was the only connection string that would work for some reason.

    I highly suggest a new host with a proper setup for running ASP. www.alentus.com
    Your hosting companies setup is horrid as far as I am concerned.
    Access Databases are not meant to be connected to via a network path.
    http://www.aspfaq.com/show.asp?id=2168

    Anyway, I rewrote some of the code because of the ole connection and got the albums showing up for you.. who knows what other problems that OLE connection may bring up in the future.. for now things I tested seem ok.

    As for your broken image in the your header/footer...  You cant link to images and links using virtual pathing in those includes because the files are called from different directories and will work in some and not others

    so when your in the root you see the image, when in a different folder you see a broken image

    In other words.

    link to

    http://www.vickerylightning.com/gallery/vickery_template5_r2 _c1.jpg

    not just

    vickery_template5_r2_c1.jpg

    The same goes for hyperlinks.. use the full url paths


    Whatever you do...Back up the gallery folder with my changes before you go doing anything.

    , Please try this URL www.telepedia.net/pages/chem_periex.asp
    It is protected by GROUPACCESS "6" and the username:dimitris and password:tele
    In the administration area, I have arranged this username as member of the group 6.
    Thank you in advance for your help
    ,

    question 2 is answered best here

    http://support.cjwsoft.com/code/code_info.asp?TID=319&KW =paypal

    I should also mention that the paypal scenarios used in ASPProtect can not be tested using PayPal's sandbox. Also test using two real PayPal accounts and on a live setup. (You'll allowed two paypal accounts)

    then you can log into the other and refund the transctions and of course it makes sense to use low amount like 1 cent and what not.

    Also, I'd love to see what you came up with with the integration. I have been working on it here as well and took it in a different direction as I plan to sell directions for it as an add-on for aspprotect. I have it all working here but so far I dont see an easy way to let other people do it as I had to change things in both systems in a lot of places. Utimately if done under a SQL environment triggers should be used at the database level and that is another consideration.

     

    , thanks thats what i was guessing. ,

    I am brought to a logon page in which I cannot access the page.  This must be due to the check_user_inc.asp include.  Without the include I get a blank page.

    , You shouldn't be renaming or moving anything... unless you really really understand what you are doing and are at an expert level expert as far as ASP coding goes.

    like I said earlier..
    http://support.cjwsoft.com/code/code_info.asp?TID=354&ge t=last#1130

    redirecting with version 6 is not supported but this thread tells you exactly how to set it up (I showed you this thread in an that earlier post)

    http://support.cjwsoft.com/code/code_info.asp?TID=17&KW= redirect


    This thread below may also help in case the page you want to start on with a login form should not be password protected..

    http://support.cjwsoft.com/code/moreinfo18-2.htm ,

    Nobody ever asked me, so i guess npegley sorted it.

    The solution is indeed a single line added to your button form code ..

    eg :

    <input type='hidden' name='return' value='http://www.your-return-url/here.asp'>

    This will overwrite any settings you have in your paypal preferences.

    I posted this reply for anyone stumbling on here with the same problem. Hope it helps. :)

    Dave.

    , at some point I can do  the users in mass correct using the import feature in aspprotect right?,

    ok.. There are various spots that call the end_date variable.  That is why I am asking.  Then incorporating it into the forms that have been developed, made me wonder.

     

    ,

    Hi,

    Could you please advise what may be causing this error:

    Microsoft OLE DB Provider for ODBC Drivers error '80004005'

    [Microsoft][ODBC Microsoft Access Driver]General error Unable to open registry key 'Temporary (volatile) Jet DSN for process 0x57a4 Thread 0x5474 DBC 0xf03a704 Jet'.

    /ASPProtect/check_user_inc.asp, line 292

     

    Funny thing is that if I refesh the page with the above error it gives me the following eror:

    /ASPProtect/check_user_inc.asp, line 292

    and after few times of refreshing the page it shows me the page I am after.

    Is this my promlem or ISP's.

    Thank you

    , I've been working on it for quite some time.... doesn't seem to be working as of yet :(, That helped very much.  Thank you.  Hope you enjoyed your dinner.,

    Our webhost changed converted all sites from c: to d:, and without us doing anything else, our customers now get the following error message when trying to access our Classifieds site:

    ***********

    Microsoft][ODBC Microsoft Access Driver] Not a valid password.

    This means there is most likely a problem with the "ConnectionString" info that you specified.

    If you are using a DSN-Less Connection with MSACCESS.

    Check that the physical path to the database has been specified correctly.
    It has to be perfect and correct. It cannot be specified using "http://" or by using "server.mappath".
    It has to be specified like the following example.

    ConnectionString = "DBQ=D:\Inetpub\wwwroot\advpass_pro\_database\passwords.mdb;Driver={Microsoft Access Driver (*.mdb)};UID=admin;PASSWORD=Xpass"

    If this is running on an NT server or Win2000 Server make sure that permissions have been set on the database.
    Only the server admins can do this. If you are not the admin you will have to ask for this to be done.

    If you are using a System DSN

    It is not set up correctly. Again, make sure the permissions have been set for the database and that the system DSN has been set up correctly by the server admins.

    ************************************************************ *********************

    We did everything the web host asked us to do, that is, changed all references to the C drive to new references to the D drive, but the error is still there.  We also never changed any passwords (as far as we can remember).  Can someone please tell us where to look (also which file might tell us what the correct password is in case it has in fact been changed.

     

    Scaramouche38306.4845833333,

    New question...

    When someone edits their personal information, such as address, is there any way to set it so that someone in the office can receive an e-mail noting the changes?

     

    Thanks.

    , I just got home from a lonnng trip.. I will try to answer this 1st thing in the morning.

    CJW,

    Chris, that fixed it.  Found 2-references to guestbook2 in the file show_messages_inc.asp located in the \guestbook\ directory.

    Suggestion for future release.  Create an option to email the admin when a message is posted.  If this code already exists please advise.

    Thanks, Lance

    , The path is correct for the logfile directory.  This is still not working. , do you want my help making the database with your import file ?,

    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

    ,


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

    JOHSONLOGHOMES.COM DATA ENTRY OF INFORMATION FOR PLANS AND CATEGORY SECTIONS, Working on configuring Emerald and Imail and configuring both to work in conjunction of one another so email accounts do not have to be entered seperately, Working on the pocket realestate download part of softmls, Fine tuning & printing So. Jeff Soft Grades Pres., #1 Chinese , Working on development of interface to track partner cd hand outs, Lunch, Checked RadLog and called back any customers that needed it., Chris Williams circuit troublehooting w/ Verizon on the phone., rescheduled meeting with ef for ticc marketing plan. organized notes from calls., Registered for CT show and made reservations for Inman and CT shows. Reviewed exhibitor info for SF show, updated minutes and task sheets, printed for meeting and emailed. lm for beverly about ASR's., respond to monitor .. lowville number down due to telenet backbone down, Channel, took tech calls and as well tried to do some callbacks but it was mostly tech calls tonight, filled in modem maintenance log in outlook., Email exchange w/reporter for Syracuse Business Journal, Fairpoint LD call, g3 installations, A bunch of calls... quieted down around 8:30, General duties, met with Ron, a couple techs, phone calls, met with Steve Woodfin about Regional web sites., Working on prep of timecard system to go to sql and exchange servers, Working with Ben B to move wstarmls.com to the correct server so we can put the mls code into the site, teched calls - steady, Times - Entering basketball roster for TI. Save basketball input form to database., Nortel, discuss with Paul softmls, Checked radlog again, TICC Team Mtg, Met with howard regarding the tracking of the promotions,

       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