Gönderen Konu: Sadece Belirli Kişilerin Görebileceği Sayfa Yapmak  (Okunma sayısı 3607 defa)

0 Üye ve 1 Ziyaretçi konuyu incelemekte.

Çevrimdışı AdmiN

  • Genel Sorumlu
  • Administrator
  • *
  • İleti: 7977
  • Puan: 750
  • Cinsiyet: Bay
  • ~|| Bilginin Gücü ||~
    • Kişisel Web Sitem
Sadece Belirli Kişilerin Görebileceği Sayfa Yapmak
« : Ekim 08, 2006, 02:56:30 ÖÖ »
Sadece Belirli Kişilerin Görebileceği Sayfa Yapmak:
Bazen sitemizde sadece yetkili kişilerin girebileceği sayfalar yapmak isteriz.Aşağıda yönetici, moderatör ve sadece üyelerin girebileceği sayfalar hazırlamak için gerekli kodları göreceksiniz.


A) Sadece Yöneticinin Girebileceği Sayfa Yapmak:
Sayfa açıldığığında sorgulama yapılır.Eğer giren kişi yönetici ise sayfa içeriği görüntülenir.Eğer yönetici değilse sayfa içeriği gösterilmez.Sadece üst kısım ve alt kısım görünür.

Kod: [Seç]

<%
'***********************************************************************
'** Copyright (C) 2001 - 2003 Max Yuan All Rights Reserved
'**
'** By using this program, you are agreeing to the terms of the
'** GNU General Public License.
'**
'** This program is free software; you can redistribute it and/or
'** modify it under the terms of the GNU General Public License
'** as published by the Free Software Foundation; either version 2
'** of the License, or any later version.
'**
'** All copyright notices regarding MaxWebPortal must remain intact
'** in the scripts and in the outputted HTML.
'** The "powered by" text/logo with a link back to
'** http://www.maxwebportal.com in the footer of the pages MUST
'** remain visible when the pages are viewed on the internet or intranet.
'**
'** Support can be obtained from support forums at:
'** http://www.maxwebportal.com
'**
'** Email: maxwebportal@hotmail.com
'** ICQ: 148111300
'***********************************************************************
CurPageType = "Sayfa Başlığı"
CurPageInfoChk = "1"
function CurPageInfo ()
strOnlineQueryString = ChkActUsrUrl(Request.QueryString)
PageName = "Sayfa Başlığı"
PageAction = "Görüntüleniyor<br>"
PageLocation = "sayfa.asp"
CurPageInfo = PageAction & " " & "<a href=" & PageLocation & ">" & PageName & "</a>"

end function
%>
<!-- #INCLUDE FILE="config.asp" -->
<!-- #INCLUDE FILE="inc_functions.asp" -->
<!-- #INCLUDE FILE="inc_top.asp" -->

<% if (mlev = 4) or (lcase(strNoCookies) = "1") then%>  ---> Sorgulama satırı.


BU KISMA SAYFANIN İÇERİĞİNİ OLUŞTURAN KODLAR EKLENİR.

<%end if%>

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




B) Hata Mesajı Gösteren ve Sadece Yöneticinin Girebileceği Sayfa Yapmak:
Sayfa açıldığığında sorgulama yapılır.Eğer giren kişi yönetici ise sayfa içeriği görüntülenir.Eğer yönetici değilse sayfa içeriği yerine bir hata mesajı gösterilir.Sayfada üst kısım, alt kısım ve hata mesajı görünür.


Kod: [Seç]
   
 
<%
'***********************************************************************
'** Copyright (C) 2001 - 2003 Max Yuan All Rights Reserved
'**
'** By using this program, you are agreeing to the terms of the
'** GNU General Public License.
'**
'** This program is free software; you can redistribute it and/or
'** modify it under the terms of the GNU General Public License
'** as published by the Free Software Foundation; either version 2
'** of the License, or any later version.
'**
'** All copyright notices regarding MaxWebPortal must remain intact
'** in the scripts and in the outputted HTML.
'** The "powered by" text/logo with a link back to
'** http://www.maxwebportal.com in the footer of the pages MUST
'** remain visible when the pages are viewed on the internet or intranet.
'**
'** Support can be obtained from support forums at:
'** http://www.maxwebportal.com
'**
'** Email: maxwebportal@hotmail.com
'** ICQ: 148111300
'***********************************************************************
CurPageType = "Sayfa Başlığı"
CurPageInfoChk = "1"
function CurPageInfo ()
strOnlineQueryString = ChkActUsrUrl(Request.QueryString)
PageName = "Sayfa Başlığı"
PageAction = "Görüntüleniyor<br>"
PageLocation = "sayfa.asp"
CurPageInfo = PageAction & " " & "<a href=" & PageLocation & ">" & PageName & "</a>"

end function
%>
<!-- #INCLUDE FILE="config.asp" -->
<!-- #INCLUDE FILE="inc_functions.asp" -->
<!-- #INCLUDE FILE="inc_top.asp" -->

<% if (mlev = 4) or (lcase(strNoCookies) = "1") then%>


BU KISMA SAYFANIN İÇERİĞİNİ OLUŞTURAN KODLAR EKLENİR.
<%else%>
BU SAYFAYI SADECE YÖNETİCİ GÖREBİLİR.

<%end if%>

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




C) Sadece Yönetici ve Moderatörün Girebileceği Sayfa Yapmak:
Sayfa açıldığığında sorgulama yapılır.Eğer giren kişi yönetici veya moderatör ise sayfa içeriği görüntülenir.Eğer yönetici veya moderatör değilse sayfa içeriği yerine sadece üst kısım ve alt kısım görünür.

Kod: [Seç]
     
 
<%
'***********************************************************************
'** Copyright (C) 2001 - 2003 Max Yuan All Rights Reserved
'**
'** By using this program, you are agreeing to the terms of the
'** GNU General Public License.
'**
'** This program is free software; you can redistribute it and/or
'** modify it under the terms of the GNU General Public License
'** as published by the Free Software Foundation; either version 2
'** of the License, or any later version.
'**
'** All copyright notices regarding MaxWebPortal must remain intact
'** in the scripts and in the outputted HTML.
'** The "powered by" text/logo with a link back to
'** http://www.maxwebportal.com in the footer of the pages MUST
'** remain visible when the pages are viewed on the internet or intranet.
'**
'** Support can be obtained from support forums at:
'** http://www.maxwebportal.com
'**
'** Email: maxwebportal@hotmail.com
'** ICQ: 148111300
'***********************************************************************
CurPageType = "Sayfa Başlığı"
CurPageInfoChk = "1"
function CurPageInfo ()
strOnlineQueryString = ChkActUsrUrl(Request.QueryString)
PageName = "Sayfa Başlığı"
PageAction = "Görüntüleniyor<br>"
PageLocation = "sayfa.asp"
CurPageInfo = PageAction & " " & "<a href=" & PageLocation & ">" & PageName & "</a>"

end function
%>
<!-- #INCLUDE FILE="config.asp" -->
<!-- #INCLUDE FILE="inc_functions.asp" -->
<!-- #INCLUDE FILE="inc_top.asp" -->

<% if (mlev = 3) or (mlev = 4) or (lcase(strNoCookies) = "1") then %>


BU KISMA SAYFANIN İÇERİĞİNİ OLUŞTURAN KODLAR EKLENİR.

<%end if%>

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




D) Sadece Üyelerin Girebileceği Sayfa Yapmak:
Sayfa açıldığığında sorgulama yapılır.Eğer giren kişi üye ise sayfa içeriği görüntülenir.Eğer üye değilse sayfa içeriği gösterilmez.

Kod: [Seç]

<%
'***********************************************************************
'** Copyright (C) 2001 - 2003 Max Yuan All Rights Reserved
'**
'** By using this program, you are agreeing to the terms of the
'** GNU General Public License.
'**
'** This program is free software; you can redistribute it and/or
'** modify it under the terms of the GNU General Public License
'** as published by the Free Software Foundation; either version 2
'** of the License, or any later version.
'**
'** All copyright notices regarding MaxWebPortal must remain intact
'** in the scripts and in the outputted HTML.
'** The "powered by" text/logo with a link back to
'** http://www.maxwebportal.com in the footer of the pages MUST
'** remain visible when the pages are viewed on the internet or intranet.
'**
'** Support can be obtained from support forums at:
'** http://www.maxwebportal.com
'**
'** Email: maxwebportal@hotmail.com
'** ICQ: 148111300
'***********************************************************************
CurPageType = "Sayfa Başlığı"
CurPageInfoChk = "1"
function CurPageInfo ()
strOnlineQueryString = ChkActUsrUrl(Request.QueryString)
PageName = "Sayfa Başlığı"
PageAction = "Görüntüleniyor<br>"
PageLocation = "sayfa.asp"
CurPageInfo = PageAction & " " & "<a href=" & PageLocation & ">" & PageName & "</a>"

end function
%>
<!-- #INCLUDE FILE="config.asp" -->
<!-- #INCLUDE FILE="inc_functions.asp" -->
<!-- #INCLUDE FILE="inc_top.asp" -->

 <% if not strDBNTUserName = "" Then %>


BU KISMA SAYFANIN İÇERİĞİNİ OLUŞTURAN KODLAR EKLENİR.

<%end if%>

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



Şimdi Sorgulama Kodlarını Tekrarlayalım:


-Sadece yöneticilerin girebileceği sayfa yapmak Yçin

     
 
<% if (mlev = 4) or (lcase(strNoCookies) = "1") then%>

<%end if%>
 



-Sadece moderatörlerin girebileceği sayfa yapmak Yçin

 
 
<% if (mlev = 3) or (lcase(strNoCookies) = "1") then %>

<%end if%>
 



-Sadece yönetici ve moderatörlerin girebileceği sayfa yapmak Yçin

 
 
<% if (mlev = 3) or (mlev = 4) or (lcase(strNoCookies) = "1") then %>

<%end if%>
 



-Sadece üyelerin girebileceği sayfa yapmak Yçin

 
 
  <% if not strDBNTUserName = "" Then %>

<%end if%>
« Son Düzenleme: Ocak 13, 2007, 20:14:50 ÖS Gönderen: AdmiN »
Konuyu Paylaş:
  delicious  facebook  twitter  google

Çevrimdışı dewawa222

  • İleti: 39
  • Puan: 1
Ynt: Sadece Belirli Kişilerin Görebileceği Sayfa Yapmak
« Yanıtla #1 : Ocak 13, 2007, 18:40:17 ÖS »
üye olmayanlar nasıl bir hata mesajı görüyorlar ve o hata mesajını istediğimiz gibi değiştirebilirmiyiz?

Çevrimdışı burajan

  • Web Programcısı
  • Administrator
  • *
  • İleti: 5109
  • Puan: 334
  • Cinsiyet: Bay
  • Web Programcısı
    • Burak ŞİMŞEK - Kişisel İnternet Sitesi
Ynt: Sadece Belirli Kişilerin Görebileceği Sayfa Yapmak
« Yanıtla #2 : Ocak 14, 2007, 11:18:56 ÖÖ »
Kod: [Seç]
<% if not strDBNTUserName = "" Then %>
Buraya kodlar
<% else %>
Üye olmayanların göreceği uyarı mesajı
<%end if%>
Yukarıdaki else değerini koyarak istediğin bir mesajı çıkartabilirsin.
Kişisel İnternet Sitem => buraksimsek.com.tr - http://www.buraksimsek.com.tr

Lütfen özel mesaj ile destek istemeyiniz. Önce forumda arama yapınız daha sonra forumda ilgili bölüme konu açınız.

Çevrimdışı reallegendone

  • İleti: 22
  • Puan: 1
-Sadece Belirli Kişilerin Görebileceği Sayfa Yapmak
« Yanıtla #3 : Mart 15, 2007, 17:35:38 ÖS »
Hocam üye olmayanların girememesi ve uyarı mesajı alması için FHOME.ASP dosyasına hangi kodları ve neresine ekleyecem? Zahmet olacak ama cevaplarsanız sevinirim.

Çevrimdışı burajan

  • Web Programcısı
  • Administrator
  • *
  • İleti: 5109
  • Puan: 334
  • Cinsiyet: Bay
  • Web Programcısı
    • Burak ŞİMŞEK - Kişisel İnternet Sitesi
-Sadece Belirli Kişilerin Görebileceği Sayfa Yapmak
« Yanıtla #4 : Mart 15, 2007, 20:24:30 ÖS »
<!--#INCLUDE FILE="inc_top.asp" --> bu kodu bul altına şu kodu ekle:
<% if not strDBNTUserName = "" Then %>

<!--#INCLUDE FILE="inc_footer.asp" --> kodu bul üstüne şu kodu ekle:
<% else %>
Üye olmayanların göreceği uyarı mesajı
<%end if%>

Ben denemedim ama normalde bu şekilde olması gerekiyor. Not: fhome.asp dosyasına bu kodları eklemen forum konularına ulaşılmasını engellemez. Bu nedenle forumu açarken üyelere özel açmak daha iyi olur. Eğer böyle birşey düşünüyorsan
Kişisel İnternet Sitem => buraksimsek.com.tr - http://www.buraksimsek.com.tr

Lütfen özel mesaj ile destek istemeyiniz. Önce forumda arama yapınız daha sonra forumda ilgili bölüme konu açınız.

Çevrimdışı AYAS

  • İleti: 207
  • Puan: 3
-Sadece Belirli Kişilerin Görebileceği Sayfa Yapmak
« Yanıtla #5 : Nisan 29, 2007, 17:03:40 ÖS »
hocam bu kodları hankı dosyaya eklememiz gerekli sadece uyelerin gormesi icin

Çevrimdışı burajan

  • Web Programcısı
  • Administrator
  • *
  • İleti: 5109
  • Puan: 334
  • Cinsiyet: Bay
  • Web Programcısı
    • Burak ŞİMŞEK - Kişisel İnternet Sitesi
-Sadece Belirli Kişilerin Görebileceği Sayfa Yapmak
« Yanıtla #6 : Nisan 29, 2007, 17:06:06 ÖS »
Hangi sayfaya girmelerini engellemek istiyorsan o sayfaya.
Kişisel İnternet Sitem => buraksimsek.com.tr - http://www.buraksimsek.com.tr

Lütfen özel mesaj ile destek istemeyiniz. Önce forumda arama yapınız daha sonra forumda ilgili bölüme konu açınız.

Çevrimdışı AYAS

  • İleti: 207
  • Puan: 3
-Sadece Belirli Kişilerin Görebileceği Sayfa Yapmak
« Yanıtla #7 : Nisan 29, 2007, 17:13:16 ÖS »
mesela galeriye ekleyecem ama galerinin hanki dosyasina hepsinemi

Çevrimdışı burajan

  • Web Programcısı
  • Administrator
  • *
  • İleti: 5109
  • Puan: 334
  • Cinsiyet: Bay
  • Web Programcısı
    • Burak ŞİMŞEK - Kişisel İnternet Sitesi
-Sadece Belirli Kişilerin Görebileceği Sayfa Yapmak
« Yanıtla #8 : Nisan 29, 2007, 17:41:13 ÖS »
Sitendeki galeri sayfalarını gezerken adres çubuğunda hangi sayfaları ziyaretçilere kapatmak istiyorsan o sayfalara ekle. Mesela adres çubuğunda gözüken adres www.siteadi.com/pic_add_form.asp sayfası ise ve bu sayfayı ziyaretçilere kapatmak istiyorsan pic_add_form.asp dosyasında gerekli kodlamaları giriyorsun.
Kişisel İnternet Sitem => buraksimsek.com.tr - http://www.buraksimsek.com.tr

Lütfen özel mesaj ile destek istemeyiniz. Önce forumda arama yapınız daha sonra forumda ilgili bölüme konu açınız.

Çevrimdışı AYAS

  • İleti: 207
  • Puan: 3
-Sadece Belirli Kişilerin Görebileceği Sayfa Yapmak
« Yanıtla #9 : Nisan 29, 2007, 18:08:06 ÖS »
ekliyorum ama buseferde sayfa goruntulenmiyor

 

Benzer Konular

  Konu / Başlatan Yanıt Son İleti
0 Yanıt
2957 Gösterim
Son İleti Ekim 08, 2006, 02:49:39 ÖÖ
Gönderen: AdmiN
1 Yanıt
993 Gösterim
Son İleti Kasım 27, 2007, 08:46:40 ÖÖ
Gönderen: burajan
3 Yanıt
965 Gösterim
Son İleti Kasım 04, 2008, 14:09:13 ÖS
Gönderen: atakur
0 Yanıt
607 Gösterim
Son İleti Nisan 08, 2009, 21:29:15 ÖS
Gönderen: romeoo
10 Yanıt
1840 Gösterim
Son İleti Ağustos 23, 2009, 00:06:09 ÖÖ
Gönderen: aliuykun42