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

Active Server Pages ASP control controls class classes module script Scripts applet CJWSoft ASPProtect ASPBanner ASPClassifieds



Blog Entry: 3/25/2006 4:55:29 PM

Hi

ASPBanner is great...

I have a little problem I have a ASP site http://www.bythebeach.com.au/

I understand how Zones (location on a pages) works but i need only to display those banners that pertain only to that catorgries or sub catorgries.

How would i do that would ....  Would i have to add a new field in the database...?

Any help would be greatly apprecaited

regards

Domenic

Sydney, Australia

,

I am getting the same error looking at the previous post, I looked in settings and my Registration-URL is pointing at the correct location.

 

Is there any other thoughts on this issue

Thank you!

Matt2112

,



Did you see this thread. It shows how to set up the project in Visual Studio in detail.

http://support.cjwsoft.com/code/moreinfo85-1.htm

 

,

Protecting ASP Pages

To protect a page without using the Access_Level or Groups feature simply add this code to the top of that page.

Put this under the <%@ LANGUAGE="VBSCRIPT" %>

<!--#INCLUDE FILE="check_user_inc.asp"-->

This is an example of a File Server Side Include. You could also use a Virtual Server Side Include.

The following URL explains what Server Side Includes are.
http://www.powerasp.com/content/code-snippets/includes.asp

Now when someone runs that page they will prompted to login. They will not be allowed access to that page until they successfully logged in.

An example of doing this is provided in the "default.asp" file included in the root of the Password System.
Look at the source code with a text editor to see the working code. It is quite simple.


 Protecting ASP Pages Using Access Levels

To protect a page using the Access Level feature simply add this code to the top of that page.
You simply specify the Access Level before the include file is called. In this example we are protecting the page with Access Level 4.

Put this under the <%@ LANGUAGE="VBSCRIPT" %>

<% CHECKFOR = "4" %>
<!--#INCLUDE FILE="check_user_inc.asp"-->

This is an example of a File Server Side Include. You could also use a Virtual Server Side Include.

The following URL explains what Server Side Includes are.
http://www.powerasp.com/content/code-snippets/includes.asp

Now when someone runs that page they will prompted to login. They will not be allowed access to that page until they successfully logged in as a Level 4 user.

Examples of managing Access Levels are provided in the "multiple_access_levels" folder included in the root of the Password System.
Look at the source code of the ASP pages in that folder with a text editor to see the working code. Again, It is quite simple to follow.


Protecting ASP Pages Using Groups

Please see the code generators in the admin are for the code to do that.

cwilliams38403.6864351852,

Adding Support For ServerObjects ASPMail

ASPProtect as you know does not support ServerObjects ASPMail component by default.

Here are directions to make it work.

In the ASPProtect admin settings area simply pretend as if you are using the softartisans sasmtp mailer component.
ASPMail and that sasmtp component share the same properties… and the code used for them is nearly identical.

So search through the code for any place where email is sent and simply change

Set Mailer = Server.CreateObject("SoftArtisans.SMTPMail")

To

Set Mailer = Server.CreateObject("SMTPsvg.Mailer")

It is about 4 places. They are not too hard to find.

That’s the easy way to get all the emailing functions working with ASPMail

cwilliams38419.7864351852,


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, Simply not possible, that feature is one of the most complicated things I have ever coded. I am very serious when I say that. There is simply no way to make it do that without spending like 80+ hours on the code and even then I do not know how it would work.  There is some very slick stuff going on there and there is no simple way to change it like that. , Do what it says so you can see the real error and then post that information here. It could be anything from incorrect permissions to whatever.cwilliams38454.4272916667, I am running into problems with the import function.  I have 25 photos loaded into the import folder.  The page see all of the photos.  But after I click on the import process it takes me Picture Manager with no pictures loaded.  I have hit the refresh button, but there is nothing there.  dr_bones38394.676412037,

    ALL FIXED.. tested with real paypal accounts and a live system
    works perfectly

    THIS FIX IS ONLY FOR PAYPAL SUBSCRIPTIONS

    Download this file "ipn.asp" and put it in the "paypal_sub_signup" folder
    2005-03-10_164645_aspprotect_subscription_fix.zip

    Basically somehow an older version of the this file was in the original download archive.

    I am VERY SORRY

    Anyone who purchased ASPProtect 7 before March 11, 2005 should download this fix.

    cwilliams38421.7018055556,

    I'll send you something..

    ,

    It's probably something I could do for you as a custom project if you are interesting in paying to have that work done, but it is probably not something that will be added to this version of aspbanner as it is in my opinion a feature more suited for a more expensive software package.

    It is also difficult to get ASP code to do things on it's own. Scheduling something to run on the server or some other clever scenario is necessary and that usually means it would be unique to each persons setup.

    http://www.cjwsoft.com/custom_work.asp

     

    ,

    Version 7 uses.. RC4

    The upgrade process is described here in detail including a procedure to convert existing clear text passwords to the encrypted versions. (Your passwords will need to be clear text as the system shipped of course for the conversion to do its thing)

    http://support.cjwsoft.com/code/info24.htm

    It is also covered in the downloadbale docs
    http://support.cjwsoft.com/code/moreinfo221-1.htm

    Many people have done the upgrade without any issues and Version 7 is getting great feedback.

    Should you decide to go with it there is upgrade pricing.
    http://www.aspprotect.com/purchase_v7_upgrade_pricing.asp

    ,

    Yes, thats cool.. post it here for sure.

    Also, the way you allowed for your search engine is clever and probably was the easiest way to go.

    You could do the same thing with the IP. Much easieri than the way I was thinking of doing it.

     

    ,

    No worries

    then..

    is there any way I can get rid of those information shown on User activity screen, so I can at least know who logged in current day?

    thank you in advance

    ,

    The Double DIM needs to be removed for this code to work properly.

    <%
    Dim BannerZone, BannerConnectionString, BannerDatabaseType, ConnBannerSystem
    Dim CmdCheckUser, CmdGetConfiguration, App_Name, Config_SQL, BodyTag, BanDataConn
    Dim CmdBannerTemp, CmdGetZones, ZoneString, ZoneArray, ZoneIndex, CmdUpdateWaiting
    Dim CmdUpdateExpired, CmdRetrieveImpLimitedAds, CmdRetrieveImpressions
    Dim CmdUpdateImpHit, CmdRetrieveAds, CycleBannerTotal, CycleList, NewCycleList
    Dim Dim LoopBanner, CycleLoop, CycleListArray, CycleListArrayIndex, BannerCycleData
    Dim Banner_Array, CurrentBanner, NewCycleListArray, Banner_Array2, LocationIndex
    Dim Stop_Processing, Keep_Processing, CmdUpdateStats
    %>

    ,

    I am having problems with a password a user wants to use.  He wants HANNAH.  When he (or I) try to log in with his username and password, I get a syntax error  -

    Syntax error in string in query expression '(Username = 'changedforsecurity') AND (Password = ' éG'.
    pathOnComputer../1protect/check_user_inc.asp, line 114

    I've obviously changed the username and the server path in the info above for security. 

    I have not messed with the encryption.   

    What is it that the system doesn't like in the word HANNAH as a password?  I would just change his password for him but this guy has enough trouble just turning the computer on!  Confusing him with a new password would take weeks to set him straight. 

    Thanks,
    Mick


    ,

    Yes worked fine

    thanks

    , ok, now were getting somewhere

    I didn't know you imported from another system,

    chances are you are missing field information that an ASPProtect user requires.

    Start off from scratch with a new aspprotect database... create a new user and look at the info that gets entered by default for every field in the database

    make sure when you import a user that you mimic it all

    dont import directly using access because the passwords will not get converted to encrypted versions of themselves correctly.. and the whole process will be usesless as no passwords will be correct

    Use the import feature built into ASPProtect.. because it is smart enough to take the clear text passwords and encrypt them accordingly

    if you want to know a correctly formatted import file needs to look like make one and check it out

    do one user at a time and make sure you can log in to an example protected page till you get it right...

    once you get that working do them all

    Thats really the best advice I can give you. ,

    What about browser caching ? It can happen easily especially if you update pictures over one another.

    emtpy out the temp files of ie (take a while usually).. close all ie windows and go back..

    Otherwise I need detailed info on the problem. What you told me is not enough to troubleshoot. There are so many factors like what image  image rezie component you are using, the size of the pictures before conversion, server resources, what your doing regarding 3 albums.... etc etc

    I have imported 100 pics at a time into an album on a fast server with no issues. Thats using any of the image resizing components.

    If an album is new what your describing should never happen. Again, it think what your seeing is browser caching playing tricks on you. We have anticaching things in place so thumbnails never do that but not for the large images.

    cwilliams38235.5737615741,

    Flash Code Generator

    Until I have time to make one I suggest using the one on the banmanpro support site as it is pretty nice.

    http://www.banmanpro.com/support/flashgenerator.asp

     

    cwilliams38291.6146875,

    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.

     

    ,

    the menu file.. "menu.asp" or something... just follow the logic of the code to find things like that. Look for server side include files and what not in the source code.

    This is a good article on figuring out what pages to edit as well as other things.
    http://www.powerasp.com/content/hintstips/common_sense.asp

    If it was working and you changed code you could have possible messed up how all of that works... you may need to revert back and be really careful as you make changes testing every step of the way.

    cwilliams38308.0683449074, ok, that is what you are suppose to do... not having that path info set can cause all sorts of trouble.,

    It's real easy actually if ya sniff around the source code.
    ASP is so easy to (work with/edit) even if you dont know any code.


    edit   "save.asp" with a text editor

    change

    If Request("First_Name") = "" Then
      ErrorMessage = ErrorMessage & Server.URLEncode("You must enter a First Name.\n\n")
    End If

    to

    If Request("Company_Name") = "" Then
      ErrorMessage = ErrorMessage & Server.URLEncode("You must enter a Company Name.\n\n")
    End If



    From looking at that save code I dont see where Last_Name was required. The only name I saw required was a 1st name.

    Also.. making the First_Name not required may break something somwhere else. I dont think it will but it might. You are warned.

    cwilliams38326.5102662037, re-edit the banner to ensure your change was saved..

    if it has been written to the database thats good.. if not it is a data connection issue most likely..

    if it did get saved... though it usually should not take time to apply  it make take up to an hour for the change to take effect in the actual banner rotation.. give it a little time,

    When a new user adds themselves to the db thru the registration page, no user id is assigned in the User_id field.  I can't access the page on-line due to an user_id related error on the page.  I must use access itself and add the user id.  After that, everything works as expected.

    What have I done?

    , To finalize this thread.. a target was added to the form by the customer by accident thus causing the situation,

    I got ya. Well hey, that's what's great about the iframe right?

    ,

    Its still not there as labeled 'internet guest'.  There's a 'guest' and a host of others.  Is there a way to identify it as the proper guest account to use with ASPProtect?

    Also, looking through support documentation, I see other possibilities it could be (http://www.powerasp.com/content/hintstips/permissions.asp).  Is there a way of telling which the problem is and whether we use a dsn connection or not?

    The error we are getting is

     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 0x1340 Thread 0x17a4 DBC 0x162becc Jet'.

    /aspprotect/scripts/populate_config_variables_inc.asp, line 11

    ,

    Hi Chris,

    Our company has a big dilemma on how to manage the database for accounts that are expiring/expired.

    We saw the function to email a batch of users who are expiring soon but this doesn't help us to complete the renewal process.

    Once the email is sent, what happens afterwards? how can we setup the system so that we can renew their expiry dates or accounts without too much hassle?

    The system currently doesn't have any renewal functions or to allow batch changes on multiple accounts at the same time so we have to manually edit one account at a time. This is extremely tedious if we have over 1000 accounts to manage (and we will).

    If you have anything to suggest on all this I would appreciate it :)

    Thanks alot
    Sylvain

    ,

    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

    ,

    It almost seems like allow images is denied.  When I look at the ad it doesn't even show a place where the thumbnail or image would go:

    Columns now are Ad Name/ Price / Expires / Hits

    There used to be one before Ad Name.

    Even unchecked (saved) and checked
    Use_Picture_Upload < = value=True name=Use_Picture_Upload> Check this if you will be using the picture uploading feature.

     

     

    ,

    if it is your own XP machine there is no reason you should edit that config file manually.

    simply set permissions on the data folder and all the folders in it and the application will write to the config files on its own... if you are having problems chances are you are not setting permissions correctly.. please read all of this
    http://support.cjwsoft.com/code/moreinfo56-1.htm

    if is not an XP machine (your post was confusing and I am not sure) then this is an article for 2003 server
    http://support.cjwsoft.com/code/moreinfo136-1.htm

    Most importantly whats the real error ? error 500 does not help figure out anything
    http://support.cjwsoft.com/code/moreinfo11-1.htm

    lastly make sure you go into iis and make that web its own application

    ,

    Is there a way to upload photos to individual user directories? I don't want all the picture files in a single directory.

     

    Thanks,

     

    Steve

    ,

    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'.

    , its in this thread.. you use the InStr function
    http://support.cjwsoft.com/code/code_info.asp?TID=17&KW= instr

    Please use a little bit more descriptive subject the next time you post. "question" does not tell much to someone looking through threads.. and I like to keep things clean and organized in the forums

    I edited it for you this time..

    thx ,

    you have to check the session variables for groups a little differently.. info on that is here

    http://support.cjwsoft.com/code/moreinfo198-1.htm

    ,

    Need to know more about ASP ?
    Check out these links.

      PowerASP
    This site was started on October 8th, 1998 and is a great resource.
      ASP101
    This site has been around a long time.
      ASPSchools Intro to ASP
    Good intro to asp
      15 Seconds
    Free resource for developers working with Microsoft Internet Solutions. 15 Seconds is the biggest IIS and ASP development resource in the world.
      ASP FAQ
    Have a question about ASP? Check the ASP FAQ site. They've probably got the answer.
      ASP Free
    Your 1st source for free ASP and ASP.NET live demos, downloads and more!!!
      ASP Connections
    ASP Connections Conference for the ASP Developer features sessions on ASP Performance, IIS 5.0, ASP 3.0, XML, ADO, E-Commerce, VID, COM, COM+, MTS, DHTML, load balancing, and more. Speakers include Mike Amundsen, Wayne Berry, Charles Carroll, Michael Corning, Jeff Niblack, & Ken Spencer.
      4GuysFromRolla
    4GuysFromRolla: Web Technology, Programming, Humor... All this and it counts as work!
      CoverYourASP.com
    A great new site. It's got some great stuff and is using JScript! A must see!
      askASP
    Promising new site! Check out the question archives!
      CodeHound
    CodeHound ASP - The ASP Developer's Search Engine!
      CodeAve.com
    A neat ASP reference with some interesting features. Check out their "Script Writers"
      ASPZone
    The website for advanced ASP developers.
      Programmer's Resource
    This site is geared towards Activer Server Pages and Access developers.
      Planet Source Code
    Search over half a million lines of free code!
      DevASP
    A relatively new ASP site. Straight forward and informative.
      www.LearnASP.com
    This in another site maintained by Charles Carroll, and it specializes in Active Server Pages programming issues. Contains links to a wide range of resources and articles.
      ASPin.com
    The ASP Resource Index. Here you will find the stuff you need to take advantage of ASP and make your website an interactive mecca.
      411ASP.NET
    The ASP.NET Resource Directory
      ASP Sites
    A great place to go to find ASP resources fast!
      Haneng.com
    A different ASP site.
      Macromedia - DevNet
    While much of the content is Dreamweaver MX-centric, they also have a fair amount of plain vanilla ASP.NET content as well.
      The Web Developer's Virtual Library
    The WDVL is part encyclopedia and part e-zine dedicated to covering all sorts of information about developing web sites... including ASP.
     

    cwilliams38431.8787152778, It is not something I did when I wrote the emailing sub routines. You would have to edit the email sub routine for CDONTS and add something to it most likely. The email sub routines are in the "scripts" folder in the "emailing_subs_inc.asp" file.

    I am not sure you can do that when using CDONTS though I think you can do it with CDOSYS. You would have to do some research and edit the code like I mentioned.
    ,


    Timecard Entry: 3/25/2006 4:55:29 PM

    Generate CSR for vtone.com, worked on the TIITC zip code function, Wadhams proposal and revise3d contract for wireless , phone calls with darrell, SamaritanMedical .. Programmed addition SamaritanMedical .. Programmed addition items in java scroller and chat room (Again Not Billable), team meeting. , Place two orders for channel parter w/ Jim Gilbert, Worked with JC on Realtor mag ad., Thanksgiving, not very busy, checked radlog, did online reports, to watertown office to meet with jw about bundle and compague vendor. s/w howard about letter and set up appt to review ticc products. lm for eds in hornell. , Newton Quotes, Phone System ADC Info, Other Tasks. , Emails, Phone Tasks, check and reply to e-mail, Worked on MBO's, held staff meeting on MBO's, talked to Paul about Bob Nelson and Goldmine., same as above, report Chamber ISDN circuit to Bell Atlantic, travel back to watertown, Conference call - 911, The night went great and was not overly stressful. , Resetting open modems., Very busy. Numbers busy and all types of problems. Emailed Ron about the night, Working on new partner system, drive to h2o, North Country Insurance. Trying to find why I can't access this from home but displays fine from office! Something to do with DNS servers not being updated to reflect the domain name???, gen admin, Worked technical support with customers , tech support supervisor dutied and helped techs with issues, greeted visitors to our building, callbacks, follow ups ,emails (dsl issues), and went to view the ribbon cutting, radlog, ask us a questions, dial up issues,, Posted accounts and did a detail of checks and cash for a bank deposit. Ans. phone, credit card authorozations, customer inquiries, matched up QB invoices to Bank Deposit. Made the deposit., Worked on the problem reports page but I had to take calls here and there because it was really busy, worked on exchange server some more,

       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 ASP programs help tutorial tutorials routine routines jobs listserve mailinglist bulletin board bulletin boards programming snippet snippets 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