Welcome, Guest ( Customer Panel | Login )




 All Forums
 VPCart Forum
 General help me questions
 Users Online
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

gupster
VP-CART New User

101 Posts

Posted - August 27 2006 :  15:05:05  Show Profile  Visit gupster's Homepage  Reply with Quote
At the bottom of my store where it says "Copyright © Reaction Vision 2005 - 2006 - VPASP Cart" i would like to bit that says

"Copyright © Reaction Vision 2005 - 2006 - VPASP Cart - There are 1 Users Online"

Is this a simple piece of code i can paste in??

Thanks

www.reactionclubwear.co.uk
www.reactionclothing.co.uk
www.reactionlingerie.co.uk
www.reactionvision.co.uk

jubjub
VP-CART New User

110 Posts

Posted - August 28 2006 :  04:07:47  Show Profile  Reply with Quote
You can do that with global.asa. Found this in google, http://www.spoono.com/asp/tutorials/tutorial.php?id=16
Go to Top of Page

gupster
VP-CART New User

101 Posts

Posted - August 28 2006 :  09:41:38  Show Profile  Visit gupster's Homepage  Reply with Quote
So all i need to do is open the global.asa file in my site then put this somewhere in there:-

<script language="vbscript" runat="server">
Sub Application_OnStart
Application("numvis")=0
End Sub
Sub Session_OnStart
Application.Lock
Application("numvis")=Application("numvis") + 1
Application.UnLock
End Sub
Sub Session_OnEnd
Application.Lock
Application("numvis")=Application("numvis") - 1
Application.UnLock
End Sub
</script>


Does the location matter.

Then next to the copyright bit add this:-

<html>
<head><title>Spoono Rocks!</title>
</head>
<body>
There are <%response.write(Application("numvis"))%>
online now!
</body>
</html>


Does it matter that where the copyright bit is it is a html file???

www.reactionclubwear.co.uk
www.reactionclothing.co.uk
www.reactionlingerie.co.uk
www.reactionvision.co.uk
Go to Top of Page

jubjub
VP-CART New User

110 Posts

Posted - August 28 2006 :  23:51:37  Show Profile  Reply with Quote
You need to put the global.asa file in the root directory of your website. Then to display it next to copyright, change your shoppage_header.htm to something like <%=getlang("langCommonCopyright") & " - There are " & Application("numvis") & " users online"%>
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000
0 Item(s)
$0.00