Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Çevrim içi ziyaretçi rekoru!
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Çevrim içi ziyaretçi rekoru!

 Post Reply Post Reply
Author
Ancestor View Drop Down
Newbie
Newbie


Joined: 07 October 2005
Location: Turkey
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ancestor Quote  Post ReplyReply Direct Link To This Post Topic: Çevrim içi ziyaretçi rekoru!
    Posted: 23 September 2007 at 8:37pm
Merhabalar,

Kendi siteme bir eklenti yaptım. Bu eklentiye yönelik birçok eposta alıyorum. Burada da yayınlamak istedim, hoşunuza gideceğini düşünüyorum.
Sayfanın altında Çevrim içi üyelerin altında o ana kadar ki çevrim içi kullanıcı rekorunu yazıyor.

Kodlara geçmeden önce örnek için www.halidiye.com/YeniForum adresine bakabilirsiniz.

Şöyle başlayalım..
İlk önce default.asp dosyasında aşağıdaki kod satırlarını bulun;
 
'Calculate the number of members 
online and total people online
 intActiveUsers = UBound(saryActiveUsers, 2)
 intActiveMembers = intActiveUsers - intActiveGuests
 
 Response.Write(strTxtInTotalThereAre & " " & intActiveUsers & " <a href=""active_users.asp" & strQsSID1 & """>" & strTxtActiveUsers & "</a> " & strTxtOnLine & ", " & intActiveGuests & " " & strTxtGuestsAnd & " " & intActiveMembers & " " & strTxtMembers)
 If strMembersOnline <> "" Then Response.Write(vbCrLf & "   <br />" & strTxtMembers & " " & strTxtOnLine & ": " & strMembersOnline)
End If
 
Bu kodların hemen altına aşağıda verdiğim kodları ekleyin;
 
Response.Write "<br /><br 
/>"
Dim MetinDosyasi2, sayi, metin
Set DosyaSistemi = Server.CreateObject("Scripting.FileSystemObject")
Set MetinDosyasi = DosyaSistemi.OpenTextFile(Server.MapPath("rekorsayi.txt"),1,-1)
Set MetinDosyasi2 = DosyaSistemi.OpenTextFile(Server.MapPath("rekormetin.txt"),1,-1)
sayi = MetinDosyasi.ReadAll
MetinDosyasi.Close
MetinDosyasi2.Close
 
if CInt(intActiveUsers) > CInt(sayi) then
Set MetinDosyasi = DosyaSistemi.CreateTextFile(Server.MapPath("rekorsayi.txt"))
Set MetinDosyasi2 = DosyaSistemi.CreateTextFile(Server.MapPath("rekormetin.txt"))
      'Set MetinDosyasi = DosyaSistemi.OpenTextFile(Server.MapPath("rekorsayi.txt"),8,-1)
      'Set MetinDosyasi2 = DosyaSistemi.OpenTextFile(Server.MapPath("rekormetin.txt"),8,-1)
MetinDosyasi.Write CStr(intActiveUsers)
metin = "Site çevrim içi kullanıcı rekorumuz "& now() &" tarihinde <B>"& intActiveGuests &"</B> ziyaretçi ve <B>"& intActiveMembers &"</B> üye ile toplam <B>"& intActiveUsers &"</B> kişidir."
MetinDosyasi2.Write CStr(metin)
MetinDosyasi.Close
MetinDosyasi2.Close
end if
 
Set MetinDosyasi2 = DosyaSistemi.OpenTextFile(Server.MapPath("rekormetin.txt"),1,-1)
metin = MetinDosyasi2.ReadAll
MetinDosyasi2.Close
 
Set DosyaSistemi = Nothing
Response.Write metin
 
 
Bunları yaptıktan sonra sitenin dosyalarının arasına (Default.asp nin yanına) iki tane metin belgesi açmalısınız.
rekormetin.txt
rekorsayi.txt
 
Bunlara kontrol panelinizden yazma izni vermeniz lazım, yoksa hata verir.
Bunları yaptıktan sonra çalışacaktır.

Kolay gelsin, iyi çalışmalar.

Not: İngilizce bilmem, çevirmek isteyen arkadaşlar çeviriversinler.

Back to Top
unitrakya View Drop Down
Newbie
Newbie
Avatar

Joined: 06 June 2006
Location: Turkey
Status: Offline
Points: 29
Post Options Post Options   Thanks (0) Thanks(0)   Quote unitrakya Quote  Post ReplyReply Direct Link To This Post Posted: 29 September 2007 at 12:01pm
çalışmadı
it doesn't work
Back to Top
Ancestor View Drop Down
Newbie
Newbie


Joined: 07 October 2005
Location: Turkey
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ancestor Quote  Post ReplyReply Direct Link To This Post Posted: 02 October 2007 at 8:46am
Merhaba!
 
rekorsayi.txt dosyasının içine 1 yazıp kaydedin. Daha sonra tekrar deneyin.
Muhtemelen herhangi bir sayı değeri olmadığı için hata aldınız.
 
Kolay gelsin, iyi çalışmalar.
Back to Top
unitrakya View Drop Down
Newbie
Newbie
Avatar

Joined: 06 June 2006
Location: Turkey
Status: Offline
Points: 29
Post Options Post Options   Thanks (0) Thanks(0)   Quote unitrakya Quote  Post ReplyReply Direct Link To This Post Posted: 04 October 2007 at 10:44am
i got this error..
 
 

Microsoft VBScript compilation error '800a0409'

Unterminated string constant

/forum/anasayfa.asp, line 806

Response.Write "<br /><br
Back to Top
Ancestor View Drop Down
Newbie
Newbie


Joined: 07 October 2005
Location: Turkey
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ancestor Quote  Post ReplyReply Direct Link To This Post Posted: 04 October 2007 at 11:44am
Pekâlâ.. Buradaki mesaj alanına yazdığımda kodlar sorunlu çıkmış. Dosyaları yükledim aşağıdaki adresten indirebilirsiniz.
1.txt isimli dosyanın içinde kodları default.asp dosyasında bulun.
2.txt isinli dosyanın içindekileri de devamına yapıştırın, yukarıdaki sistem yani..

rekorsayi.txt dosyasının için 1 yazıp kaydedin. Daha sonra kontrol panelinizden bu iki dosyaya (rekorsayi.txt ve rekormetin.txt) yazma izni verin.

Sorunsuz çalışacaktır.
Kolay gelsin, iyi çalışmalar.

İndirme adresi: http://www.hazirindir.com/wwf-rekor.rar



Edited by Ancestor - 04 October 2007 at 11:45am
Back to Top
unitrakya View Drop Down
Newbie
Newbie
Avatar

Joined: 06 June 2006
Location: Turkey
Status: Offline
Points: 29
Post Options Post Options   Thanks (0) Thanks(0)   Quote unitrakya Quote  Post ReplyReply Direct Link To This Post Posted: 05 October 2007 at 1:00pm

Microsoft VBScript runtime error '800a01f4'

Variable is undefined: 'DosyaSistemi'

/forum/anasayfa.asp, line 808

bu sefer de değişken tanımsız hatası verdi yukarıdaki gibi..
Back to Top
Ancestor View Drop Down
Newbie
Newbie


Joined: 07 October 2005
Location: Turkey
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ancestor Quote  Post ReplyReply Direct Link To This Post Posted: 07 October 2007 at 6:11pm
Dim DosyaSistemi

diye ekleyiverin üstüne
Back to Top
unitrakya View Drop Down
Newbie
Newbie
Avatar

Joined: 06 June 2006
Location: Turkey
Status: Offline
Points: 29
Post Options Post Options   Thanks (0) Thanks(0)   Quote unitrakya Quote  Post ReplyReply Direct Link To This Post Posted: 09 October 2007 at 6:09am
kodlarda birsürü hata var, denemeden yayınlamasana arkadaşım..
 
there are lots of error in this codes. this is a mod about number of online visitors record but it is not working.
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.