Web Templates
Web Templates  
Photoshop Layouts  
Flash Templates  
Templates Resource - Web Templates
   
 
  Sign UpPassword
Templates Resource Services Support Specials Members View Cart
 
  Photoshop Tutorials
  HTML Tutorials
  ASP Tutorials
  CSS Tutorials
  Javascript Tutorials
  PHP Tutorials
  XML Tutorials
  Flash Tutorials
  Fireworks Tutorials
  3D Studio Max Tutorials
  Cinema 4d Tutorials
  Graphics
  Website Tools
  Web Templates
  About Templates Resource
  Affiliates Program
  TR Support
  Webmaster Resources
 Columbia Tech Support

WebDesignHelper.co.uk


 

Tutorials: ASP - Active Server Pages

AIM Profile Screenname Viewer

Beginner

 

This tutorial will show you how to make a script to see who has seen your AOL Instant Messenger profile.

PART I - CREATING THE FLAT FILE
First, make a file called "sn.html" inside a folder (I've chosen my database folder even though this is a flat file). leave it blank.
CAUTION: IF you have access, you MUST give the IUSR_ user read/write permissions to the file. Otherwise, your host probably has it set to that already.

PART II - CREATING THE VIEWER PAGE
Now that were done, we need a page to view the screen names, as well as input them. Here's the code:

<%
Dim fileLOC
Dim ScreenName

If request("sn") <> "" then
ScreenName = Request("sn")
Set objFSO = Server.CreateObject("Scripting.FileSystemObject")
fileLOC = Server.MapPath ("db/sn.html")
Set File = objFSO.OpenTextFile (fileLOC, 8)
File.Write("" & ScreenName & "<br>" & vbcrlf)
File.Close
Set objFSO = Nothing
End If
%>

And there's your code. objFSO loads the file using the FileSystemObject for appending (notice the "8"?), writes the screen name, followed by an html linebreak "<br>", and "vbcrlf" is the VB's command to go to insert a line break within the html file. It's important to close the files and set the objects to nothing, or else cpu time will be wasted even long after the user as closed his/her browser, shut down his computer, and fallen sleep.

PART III - PUTTING THE LINK IN YOUR PROFILE
Now, put this piece of code in your profile by going to My Aim > Edit Profile in AOL Instant Messenger and inserting this link:

<a href="http://www.yoursite.com/sn.asp?sn=%n" target="_self">Click Here to See Who's Seen My Profile</a><br>

To see who has read it, just erase the "?sn=%n" from the url, or go to your "db/sn.html" page.

 

This tutorial is provided to you by Spoono

More Tutorials
 

Active Server Pages Tutorials

AIM Screennames Viewer
This tutorial will show you how to make a script to see who has seen your AOL Instant Messenger profile.

Intermediate

Alternating Row Colors
Learn the basics of creating wonderfully abstract objects.

Intermediate

Browser Redirect
Learn how to do a Browser Redirect using the power of ASP.

Beginner

Cookies
Learn how to use cookies in ASP.

Intermediate

Counter
Learn how to make a hit counter in ASP.

Beginner

Database Connection
Learn the different ways to connect to different databases.

Intermediate

Database Insert
Learn how to insert a row into a MS Access database.

Beginner

Displaying Database
Learn a quick and easy way to display information from a database.

Beginner

Form Mail via CDONTS
Learn how to send mail using ASP and CDONTS

Intermediate

Form Mail via CDOSYS
Learn how to send mail using ASP and CDOSYS.

Intermediate

Number of Users Online
Use this code to display the number of users browsing.

Intermediate

Requests
Learn how to make use of requests.

Beginner

Sessions
Learn an alternative and effective solution to cookies in ASP using sessions.

Intermediate

String Functions
Learn the basic string functions available in ASP using VBScript

Beginner

XML Parsing
Use this nifty script to parse XML into HTML

Intermediate

Get help using .ASP here!

Get Free ASP Scripts here!

More Tutorials

Featured Web Templates

Web Template Preview 92312501

User Level:

Intermediate

Category:

Flash


Web Template Preview 92312601

User Level:

Intermediate

Category:

Flash



Web Template Preview 92312701

User Level:

Intermediate

Category:

Flash


Web Template Preview 92312801

User Level:

Intermediate

Category:

Flash


Web Template Preview 92312901

User Level:

Intermediate

Category:

Flash


Web Template Preview 92313001

User Level:

Intermediate

Category:

Flash


Web Template Preview 92313101

User Level:

Intermediate

Category:

Flash


Web Template Preview 92313201

User Level:

Intermediate

Category:

Flash


Web Template Preview 92313301

User Level:

Intermediate

Category:

Flash



Web Template Preview 92313401

User Level:

Intermediate

Category:

Flash

 

 

 

Templates Resource FAQ Services Terms of Use Site Map Support View Cart

© Copyright 2003-2008 Templates Resource