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

Active Server Pages ASP a directory of ASP tutorials applications scripts components and articles for the novice to professional developer. CJWSoft ASPProtect ASPBanner ASPClassifieds



Blog Entry: 3/25/2006 1:48:24 PM

Alternate Method to call banners from non ".asp" pages.

<iframe src ="http://localhost/aspbanner/aspbanner/aspbanner_inc.asp?Ban nerZone=4" width="468" height="60" frameborder="0" marginwidth="0" marginheight="0" scrolling="no"></iframe>

Be sure to delete the space in the BannerZone variable above. I am not sure why it is doing that in this post.


You can try calling the banners in an simple iframe like so.
This method should work much better than the javascript method because users with javascript turned off will still see the banners. You also will not have any of the limitations the javascript method has. Iframe is now supported by most recent browsers so it is now a good solution. Here is a chart that shows which browser versions support iframe.

Be sure however to edit the height and width values accordingly as that is very important.

cwilliams38105.8437384259,
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.
 
,



In addition to that I just noticed the </href> you have in there.. man that is some scary stuff you came up with.. that may appear to work and make a link but it is not correct. Each link will work but never truly be closed.

That is just not valid proper use of the anchor tag.
You make a link in html like so

<a href = "somepage.htm">somepage.htm</a>
http://www.w3schools.com/tags/tag_a.asp

Then your surrounding each link with <span lang="en-us"> </span>
Not sure why ?

,

Hello,

Thank you for the feedback.

I would like to point out the requirements of the application however as this is something I am aware of and do address.

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

These requirments are directly linked to from the ASPProtect v7 web page, so its not like I dont try to tell people the deal regarding SQL server.

Basically I only have the resources to provide scipts and instructions for using SQL Enterprise Manager and that is all I officially support. I also personally think anyone using a SQL Server should be using SQL Enterprise Manager because later on down the road there are things you may want to do such as backups/etc etc

Take Care,

Chris Williams
www.CJWSoft.com

, Verison 8 is superior in every way and the code is much more optimized so yes I think it would handle it better. It is still a lot of banners on one page though which means a lot of hits to the database if you call them all individually with zone calling code. SQL server would make sense more than MSACCESS.

Now, the only reason I said make one zone for all those banners on the home page is because a banner has to be associated with a zone. It would make sense to put them all in one because if you just tracked the clicks like I mentioned you really wouldnt be using the zone except for maybe when you go to view stats. , 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
,

When I add a user, I can not activat it.

What do you have the registration type set to in the settings ?
They wont be activated automatically unless you have "automatically" selected ?

It sends me back to log on and will now allow me to log in as admin???

I am not quite sure I understand ? Seems to me like that would be normal because you can always log in as the admin at any time. If you cant log in as the user you just signed up as that could be for a couple reasons relating to the registration type you have slected in the settings. There are 3 types all epxlained in the settings screen. Some require manual activation byt the admin, some involve a registration email.. etc etc

I can restart the APP and log in as Admin, but the user I added
is still not activated??

How and why are you restarting the applicaton ? Please explain what your doing there.

My system will also not allow me to set the Stay Loged in FLag.
It just ignores it....

As I told you in an email earlier cookies must be enabled for authentication to work. You mentioned now you can not log off ? I am not sure I know what you mean by that. I assume you know to close all browser windows when testing things like this and I assume you know you have specifically log off and confim it in order to remove the remember me cookie and have to log in again when you return to the site.

, humm, I am curious

If these people are employees and sales reps why are are you using expiration dates at all ? and why the renewing issues... etc etc

I am sure there is a reason but you did not explain.

it might help me to better understand and possibly think about new features for new versions in the future.,

Humm, I can see all those pages loading just fine at both domains so you got me pretty confused at this point as you just said they didnt load.

regardless, the data connection tests are failing with both of them.

so let me ask you again how are you setting permissions on the database folders?

,

ASPProtect v7.x runs on Microsoft IIS servers only.
That means Windows XP Pro, Windows 2000 server and Windows 2003 server. The web server must have ASP support enabled and support Data Connections. 99% of them do as it's a pretty normal thing, but you should ask and make sure your hosting plan supports it.

ASPProtect can use a Microsoft Access Database or Microsoft SQL Server as it's data source.  We provide the access databases and everything you need to create the SQL database, however customer's using Microsoft SQL Server are required to have SQL Enterprise Manager and SQL Query Analyzer in order to setup and maintain the SQL database. Other scenarios are possible but we do not support them.

ASPProtect v7.supports 13 different emailing methods and components so chances are you will have no problem finding one that will work for you.

CDONTS
CDOSYS
ASPEMAIL
ASPMAIL
ASPSMARTMAIL
DUNDASMAILER
JMAIL
SASMTPMAIL
Bamboo Mail
Simple Mail
ASPQMail
QuickSoft EasyMail Objects
OCXMail


We extensivley support all implemenations of CDOSYS which is installed on all the servers by default. We also support outgoing SMTP authentication requirements. If you can not send emails from the application using one of our 13 methods and you have an ASP solution that can send an email on your server we will work with you to make sure the application can send emails.


FINALLY

ASPProtect v7.x does not run under Chillisoft ASP. That means it does not run under Unix, Linux, Apache, etc etc. ASPProtect v7.x can not use a MySQL database. MySQL and Microsoft SQL are not the same thing.

If you are wondering if your web server runs Windows or Linux you can try using the header check here.
http://www.port80software.com/support/p80tools

Be warned however it will not always be accurate because some people cloak that information or show something different than what they are running to trick potential hackers. With commerical hosting though the the header information is usually accurate.
,


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,

    ya, thats basically what I was gonna do..

    BTW.. if that other app is going crazy with an access database it could be the cause of all the slowdown with ASPProtect... what happens there is it is using so much database driver time that it robs other things that also access a database... so basically ASPProtect isn't asking its database for much but your other application and database are cripping that part of the system and causing it to run like crapola

    If your other app is using a system dsn try changing it to use a dsn-less connection... it might actually help

    ,

    I think its great to share a mod.

    I will have  few with the new album.

    ,

    [QUOTE=cwilliams]Humm, Did you make any changes to the code ?
    Solid Black is not the default so it must have changed at least once.[/quote]

    I did change the top_logo.gif and the associated link. That was on the default page not the Solid Black skin which is unchanged. After downloading/uploading the skins I tried changing it to one of the Beach skins and that's when it changed to Solid Black and has been stuck there ever since.

    [quote]Otherwise it might be some sort of application variable problem.
    I would make sure the web is and "application" in the IIS console.[/quote]I don't have access to the Microsoft IIS console as this is a host site. I can access the site's "control panel" but it does allow for those type of settings. Mostly just permissions, DSN entries, etc.

    Thanks.
    Al

    , if you are talking about IPN subscriptions and how they work paypal has detailed manauls on their site.. if you are talking about asp.net in general there are probably a lot of good books..

    the reason I said look at the aspprotect 7 code is cause the applications and database are very similar and the same techniques will apply for the most part as far as how the ipn subscription posts from paypal talk to the database and what happens during the various post events.. etc etc etc ,

    pretty clever...

    If anyone is interested in what the Mod function actually does this article explains it nicely. They even use it for the same purpose in the examples.

    http://www.asp101.com/articles/steven/mod/default.asp

    cwilliams38210.6791898148,

    For pay signups you set the groups during signup it like this thread tells you to

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

    only difference is you need to specify the groups info like so
    (basically getting rid of the commas and just leaving behind the group numbers with a * around everything)

    Also be sure to have no double asterisks

    so, *1*,*2* would just be *1*2*

    so, *1*,*2*,*5* would just be *1*2*5*

    cwilliams38460.5969444444,

    Is there a way to know if it is a SQL server with IIS5? My database type is MSACCESS.

    Thanks!
    Rhona (rookie)

    ,

    ahhh ok.. I was going to wait till morning to answer this one..

    glad ya figured it out

     

    ,

    Hope the wedding went well.  I have one this weekend.

    I was successful at performing an upload.  The free upload software was either not configure properly (probably) or not working.  I downloaded the trial version of softartisan's upload (which is like over $300) and it started working. 

    Can more than one photo be uploaded at one time (like a whole folder full of photos) or does each have to be done individually?

    , I get the following message when trying to  look up the sysdiag.aspx and the default.aspx files. Why? I have followed all the install instructions.

    Server Error in '/' Application.

    Runtime Error

    Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.

    Details: To enable the details of this specific error message to be viewable on remote machines, please create a <customErrors> tag within a "web.config" configuration file located in the root directory of the current web application. This <customErrors> tag should then have its "mode" attribute set to "Off".

    <!-- Web.Config Configuration File -->

    <configuration>
    <system.web>
    <customErrors mode="Off"/>
    </system.web>
    </configuration>

    Notes: The current error page you are seeing can be replaced by a custom error page by modifying the "defaultRedirect" attribute of the application's <customErrors> configuration tag to point to a custom error page URL.

    <!-- Web.Config Configuration File -->

    <configuration>
    <system.web>
    <customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>
    </system.web>
    </configuration>

    cwilliams38454.4276388889, Is there somthing I need to change in the settings to get the hit count to update?,

    ok, I am home.. missed flight.. just got home an hour ago.

    lets see.. I really need more info...

    For starters are you using the delayed stats feature ? that is expirmental and could cause that problem

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

    Hello

    I have a strange problem with the thumbnails in the ASPClassifieds.
    If i upload some pictures in an ad, the 2nd picture always shows with an x, as the picture doesn´t exists. But if i click on the 2nd thumbnail, the picture shows okay. I haven´t changed enything from the original code.
    Does anyone have any idea, where it goes wrong ?

    With best regards, Erling Larsen

    ,

    ok, I moved this thread..

    The code in the ASP application handles all encryption and un-encrpytion of passwords in the database. I uses the vbscript RC4 function and the password encryption key specific to your installation to do this.

    The whole idea is that if someone gets your database and opens it up that they will not get the passwords (utilitiies to crack access databases are common and work well so they can easily get by the main password)

    That being said when you open the database manually your not supposed to see clear text passwords. Your also not supposed to have an easy way to make them clear text. It's a security thing. 

    Though I am not officially supporting it I will tell you what I think would be the easisest way to make an export file with clear text passwords in it.

    Use the export fire creator in the admin area of aspprotect.
    Mosdify "export.asp"

    change

    Password = CmdDataExport("Password")

    to

    Password = RC4(CmdDataExport("Password"), PasswordEncryptionKey)

    Then make an export file and see if that worked.
    you can then import the export file into and access database or do whatever you like with it.

    , My client has  a  list of  13,000 members that  have already  been assigned  ID's and passwords with a homegrown system.

    When doing a bulk import, will we be able to retain the userid and password or will a new id be assigned during the bulk load?

    Thanks in advance for your help.
    ,

    You not getting a blank page.. you getting an error. You just can't see it because it appears you edited the page background to black.

    error '80040211'

    /aspprotect/scripts/emailing_subs_inc.asp, line 174

    ,

    Great software.

    How easy would it be to copy the email address entered at registration directly into the login id field so that the user's email address is automatically used as the login id? 

    Also, where in the code can I turn off the random password generator - I'd rather force people to pick something they can remember themselves.

    Thanks,

    Nick

    ,

    I'll give it a shot loading it on the laptop and publishing it, if it doesn't work I'll let you know and you can take a look at it tomorrow afternoon.  Thanks for all the help tonight...

    Good luck pouring that concrete!

    ,

    I am an experienced ASP developer. Can you tell me whether this would be a very involved process, or whether it is pretty straightforward? I don't yet have a merchant account, so I am not yet familiar with any aspect of accepting credit cards online.

    Thanks.

    ,

    I have a customer who is asking the following:

    ... could you make a link from it to our website and is there a way to see what traffic goes from us to them.  They are going to pay a commission on sales, however I need to be able to track who views their site...

    Wishful thinking or could you add code to track their IP address and display in the report section?  Not sure that would be enough to satisfy this request.   Suggestions?

    Thanks, Lance

    ,

    While my host says the permissions are now correct....its still trying to download the setup ASP file instead of executing it.

    I really need to get this application working asap too.  I noticed the purchasing page said that install came free.....so any help would reaallly be great.

     

    re

    , "do you know a way around the BinaryRead problem with ASPProtect?"

    Let me rephrase:

    Do you know a way in which ASPProtect can be modified to get around the BinaryRead problem?

    Thanks,
    Michelle
    ,

    I'm using Aspimage and SQL. Photos are 2464 x 1632 px, tried the upload and import directory methods, same results: thumbnails ok, full images 0 bytes.

    ServerSoftware Microsoft-IIS/6.0
    ServerName www.larrysampas.com
    ServerProtocol HTTP/1.1
    PathInfo /gallery2/extras
    PathTranslated d:\Customers\user1095000\www\gallery2\extras
     
    FILE SYSTEM OBJECT Installed
    ADODB (ActiveX Data Object) Version: 1.2 Installed  
    CDONTS Version: 2.80 Installed  
    SMTPMail Version: SMTPMail Retail Version V2, 2, 1, 0 Installed  
    JMail Version: 4.1.2 Installed  
    AspEmail Installed
    AspMail Installed
    SAFILEUP Installed
    Dundas Upload Not Installed  
    ASPImage Version: 2.31 Installed  
    AspJpeg Not Installed  
    ImgWriter Not Installed  
     
    Script Engine 
    Type VBScript
    Version 5.6
    Build 8515

    ,

    Permissions and Folder Locations

    By default and to keep things clean we store everything in folder called "data"

    That folder then has it in 4 sub folders

    database (where the .mdb and temporary .ldb files are handled)
    export (where the aspprotect export files are saved)
    logfiles (where the aspprotect logfiles are saved)
    user_pics (where the user pictures are saved)

    Doing it this way makes it very easy for a system administrator to right click on one folder and set permissions for that folder and all of it's child folders.

    Now, that being said.. you do not have to use these folders.

    For example if you already have a folder in your web with modify permissions for the anonymous webserver account then you can use that one folder to store all of the 4 things above.

    You'd simply edit your data connection string to point to that folder and then edit the other paths in the settings area of ASPProtect.

    We did it that way so you would have options in case your hosting company was being difficult with your ASP hosting needs.

    cwilliams38403.6837962963,

    Banners no longer show up on my site ?

    If banners were working fine and now they are just not showing up.
    1st check to see that you are calling a valid zone with live banners in it.
    If you are then most likely this it what hapened.

    The web server must have crashed or lost power and now the application variables are in limbo/not working.

    I have seen this happen a few times.

    Basically the application variable system gets messed up because it was not shut down properly.

    The way to cure it is as follows.

    Edit and save a banner in the system. Hopefully that gets things going again.

    If this happens a lot it is a server issue, not ASPBanner's fault.

    cwilliams38415.0978935185,

    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.

     

    , no, but in the standard version it probably will not run so great with more than 75 or so.

    The unlimited version can handle pretty much whatever., Alright...I'll try those out.  Also, if I do the data import on my laptop initially and just publish it to the server do you think that will help?,


    Timecard Entry: 3/25/2006 1:48:24 PM

    sales meeting, had a few people with email problems. did some callbacks, amoritization schedule with Michele, LUNCH, read and sent emails, tech support supv duties, helping techs, radlog, voice mail, ask us a questions, dial up issues, callbacks.... emails and follow ups... calles handed up to me from techs... Changed the tech room as well .... cleaned the tech room with help from other techs. , filed from last weeks payments, Didnt get anything done.. Felt crappy Please just take off my sick time., Quality checked sign ups, taking sign ups, callbacks from voicemail, checked emails, incident report, making invoice copies, answering phone. , WBDR LOGO - TRADE, CBT training, printed, reviewed, mailed invoices, cancels for nonpayment, finished separating dsl waiting vs online signups, consolidated signed contract paperwork, answered phone-signups, cancels, acct changes, printed open incident report, readied money for clayton, Printing & alphabetizing invoices & statements, Creat MRTG automated reporting on Excel, evaluation meeting with Jim and Jodi, worked on voice mails and emails, Holiday, Manning NOC. Resetting modems, watching network, backing up servers., Meetings in Watertown, recived training from bill and ron on tech support issues, took calls, sorted envelopes, contacted customers on rad log, Drive to Saratoga (220 miles), Watertown Chamber, GO OVER WEB SITE WORK ORDER WITH HOWRD AND CHRIS. PAUL WORJ ON EXCEL SGHEET FOR CHRIS FOR PROJECTS GREEN CONECTION - GO OVER WEB SITE WHITES LUMBER - CONTACT FOR MEETING, Met with Nic- made arrangement for the Bravo Festival called dom-spoke to customer regarding ISDN in NYC, Lovelynx.com - .htaccess files limit authors to having an IP starting with 206.112.140. -called customer and left message on numbers to try that have these IP's, busy. phone, billing issues, sign ups, Non stop phone calls!, Training at JCC, Amber Whattum interview, working on a email problem between DANC and SWMF....for some reason danc is receive mail fine from swmf but any mail destined from DANC to swmf is lost at their server.....looks to be some sort of mail filter is dropping it off.....they host their own mail and we began working with Bill Seifried to fix the problem......looks to be an issue with qmail on their end.......Dave will continue with the troubleshoot on Monday.,

       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 help tutorial how to ASP Help ASP Tutorials ASP Programming ASP Code - ASP Free 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