Melek Kentmen - Hulis Kentmen - Bloglar - Forum Yazıyoruz

Forum Yazıyoruz

Verdiğim Formu kendine göre editle basit bir forum örneği------- forum.asp - ---------------<% Response.Buffer = True %><% call esasUst %><%islek = Request.QueryString("islek")if islek = "catdel" thencall catdelend if%><%set objForum = server.createobject("ADODB.Recordset")sqlobjForum = "Select * from forumlar order by forumid asc"objForum.open sqlobjForum,baglantim,1,3sf = Request.querystring("sf")if sf="" then sf=1end if%>

<% If Session("Oturum") <> "Acik" Then %><%else%><% end if %><% set oSU = baglantim.execute("Select Top 1 * from UYELER order by U_ID desc") %>
Aktif Kullanıcı Sayısı: Hoş geldin <% If Session("Oturum") <> "Acik" Then %>Ziyaretçi <%else%> <% Set objRead = baglantim.Execute("SELECT Count(*) AS toplam FROM MESAJLAR WHERE GIDEN = '"& Session("Uye_Adi") &"' AND GOR = True") Set objSpe = baglantim.Execute("SELECT Count(*) AS ozel FROM MESAJLAR WHERE TYPE=1") Set objNRead = baglantim.Execute("SELECT Count(*) AS okunmayan FROM MESAJLAR WHERE GIDEN = '"& Session("Uye_Adi") &"' AND OKUNDU = False AND GOR = True") Set getName = baglantim.Execute("SELECT * FROM UYELER WHERE U_ID = "& Session("Uye_Id")) %> <%=getName("AD")%><%end if%>

<%Set cat = Server.CreateObject("ADODB.Recordset")baglac = "Select * from forumcat order by adi asc" cat.Open baglac,baglantim,1,3if cat.eof or cat.bof thenResponse.write "Kategoriye Henüz Bir Forum Eklenmemiş"end if%><% for o=1 to 9999if cat.eof then exit for %> <%Set rec = Server.CreateObject("ADODB.Recordset")baglac = "Select * from forumlar WHERE cat = " & cat("id") & " order by forum asc "rec.Open baglac,baglantim,1,3%><% for i=1 to 777if rec.eof then exit for %><%Set kns = Server.CreateObject("ADODB.Recordset")baglac = "Select * from forumsorular WHERE " &_ "forumid= " & rec("forumid")kns.Open baglac,baglantim,1,3 'Ufak Bi Değişim yapiim dedim.topkn = kns.recordcount%> <%sayi=sayi + 1renk_sec=right(sayi,1) select case renk_seccase "1","3","5","7","9"renk = ""& tablobg1 &""case elserenk = ""& tablobg2 &""end select'By MaxiCooL%> <% rec.movenext %><% next %><% cat.movenext %><% next %>
/cell-background.gif"> Forum Tanımı /cell-background.gif">Konular /cell-background.gif"> Cevaplar /cell-background.gif">Son İleti

<%=cat("adi")%> <% if SESSION("Uye_Seviye")=1 OR SESSION("Uye_Seviye")=3 then %> " onClick="return confirm('Bu Kategoriyi silmek istediğinizden eminmisiniz ?')" name="<%=cat("id")%>"> Kategoriyi Sil ','','width=400,height=235,scrollbars=0')"> Kategoriyi Düzenle ','','width=400,height=235,scrollbars=0')"> Kategori Ekle <% end if %>

"> <%=rec("forum")%> <% if SESSION("Uye_Seviye")=1 OR SESSION("Uye_Seviye")=3 then %> ','','width=400,height=235,scrollbars=0')"> Düzenle','','width=400,height=235,scrollbars=0')"> YENİ <% end if %>
<%=rec("aciklama")%>
<%=topkn%> <%Set cvps = Server.CreateObject("ADODB.Recordset")baglac = "Select * from forumcevaplar WHERE forumid = " & rec("forumid")cvps.Open baglac,baglantim,1,3topcvp = cvps.recordcount%> <%=topcvp%> <%Set snkn = Server.CreateObject("ADODB.Recordset")baglac = "Select * from forumsorular WHERE forumid = " & rec("forumid") & " order by soruid desc"snkn.Open baglac,baglantim,1,3if not snkn.eof then %>(<%=snkn("tarih")%>)
<%Set rsMember = Server.CreateObject("ADODB.Recordset")baglac = "Select * from UYELER where U_ID = " & snkn("yazan")rsMember.Open baglac,baglantim,1,3%>','','width=500,height=260,scrollbars=0')"><%=rsMember("U_ADI")%><% else %>
Konu Yok<% end if %>
/cell-background.gif"> Forum İstatistikleri
<% Set objList = Server.CreateObject("ADODB.RecordSet") objList.Open "SELECT * FROM UYELER ORDER BY U_ADI", baglantim, 3, 3 %> <%=objList.RecordCount%> kayıtlı kullanıcı, <% Set objList2 = Server.CreateObject("ADODB.RecordSet") objList2.Open "SELECT * FROM forumsorular ORDER BY soruid", baglantim, 3, 3 %> <%=objList2.RecordCount%> Konu açmış ve toplam <% Set objList3 = Server.CreateObject("ADODB.RecordSet") objList3.Open "SELECT * FROM forumcevaplar ORDER BY cevapid desc", baglantim, 3, 3 %> <%=objList3.RecordCount%> cevap göndermiş.
En yeni üyemiz:<% Set rs = Server.CreateObject("ADODB.RecordSet") rs.Open "SELECT * FROM UYELER ORDER BY U_ID Desc", baglantim, 3, 3 %> ', 'Muratsoft', 'height=200,width=400')"> <%=rs("U_ADI")%>

Şu Anki aktif Kullanıcılar: <% Session.LCID = 1033liste = DateAdd("n", -1 * dk_g, Now())Set objList=Server.CreateObject("Adodb.Recordset")Sorgu = "SELECT * FROM UYELER WHERE SON_TARIH >= #"&liste&"# ORDER BY SON_TARIH DESC"objList.Open Sorgu, Baglantim, 3, 3Session.LCID = lcid If objList.EOF Then uNumber = "0" Else uNumber = objList.RecordCount End If If uNumber = "0" Then Response.Write " Şu Anda Online Üye Yok " end if If uNumber = "0" AND Session("Oturum") = "Kapali" Then Response.Redirect Request.ServerVariables("HTTP_URL") For I = 1 To uNumber If Session("Oturum") = "Acik" Then Response.Write ""&objList("U_ADI")&",
" Else Response.Write ""&objList("U_ADI")& ",
" End If objList.MoveNext Next objList.Close Set objList = Nothing%>
Şu Anki Sunucu Saati: <%=now ()%> PM


<% If Session("Oturum") <> "Acik" Then sub catdelid = Request("cat")Set istem = Server.CreateObject("ADODB.RecordSet")baglac = "DELETE from forumcat WHERE id="&id&""istem.Open baglac,baglantim,1,3 %><% end sub %><%end if%><% call esasAlt %>-----------------------------------------------------------------------------forumlar.asp-----------------------------------------------------------------------------<% Response.Buffer = True %><% call esasUst %>
<%goster = request.querystring("goster")goster = replace(goster, "'", "")if goster = "" thencall sorularelseif goster = "sorular" thencall sorularelseif goster = "yenisoru" thencall yenisoruelseif goster = "soruekle" thencall soruekleelseif goster = "cevaplar" thencall cevaplarelseif goster = "cevapla" thencall cevaplaend if sub sorular%><%forumid = request.querystring("forum")IF NOT ISNumeric(forumid) THENresponse.write error1response.endend ifset objForumQ = server.createobject("ADODB.Recordset")sqlobjForumQ = "Select * from forumsorular WHERE forumid = " & forumid & " order by sonctarih desc"objForumQ.open sqlobjForumQ,baglantim,1,3sf = Request.querystring("sf")if sf="" then sf=1end ifobjForumAdi = baglantim.execute("select * from forumlar WHERE forumid = " & forumid & " ")%><% set oSU = baglantim.execute("Select Top 1 * from UYELER order by U_ID desc") %><% if objForumQ.eof thenresponse.write " Bu konuda hiç soru bulunmamaktadır !
"response.write "Geri Dön" %>Yeni konu aç<%else %>
Muratsoft Forum / <%=objForumAdi("forum")%> Hoşgeldin <% If Session("Oturum") <> "Acik" Then %>Ziyaretçi <%else%> <% Set objRead = baglantim.Execute("SELECT Count(*) AS toplam FROM MESAJLAR WHERE GIDEN = '"& Session("Uye_Adi") &"' AND GOR = True") Set objSpe = baglantim.Execute("SELECT Count(*) AS ozel FROM MESAJLAR WHERE TYPE=1") Set objNRead = baglantim.Execute("SELECT Count(*) AS okunmayan FROM MESAJLAR WHERE GIDEN = '"& Session("Uye_Adi") &"' AND OKUNDU = False AND GOR = True") Set getName = baglantim.Execute("SELECT * FROM UYELER WHERE U_ID = "& Session("Uye_Id")) %> <%=getName("AD")%><%end if%>
Yeni konu aç Bütün Forumlar >> <%=objForumAdi("forum")%>
/cell-background.gif"> <%objForumQ.pagesize = 15objForumQ.absolutepage = sfsayfa = objForumQ.pagecountfor i=1 to objForumQ.pagesizeif objForumQ.eof then exit forset objQYazan = baglantim.execute("select * from UYELER WHERE U_ID = " & objForumQ("yazan") & " ")yetki = objQYazan("SEVIYE")set objForumQC = baglantim.execute("select count(*) as cevap from forumcevaplar where soruid = " & objForumQ("soruid") & " ")set objFSC = baglantim.execute("select Top 1 * from forumcevaplar WHERE soruid = " & objForumQ("soruid") & " ORDER by cevapid desc")%> <%objForumQ.movenextnext%>
/cell-background.gif"> /cell-background.gif" style="font-family: Verdana; font-size: 8pt; font-weight: bold"> Konu /cell-background.gif" style="font-family: Verdana; font-size: 8pt; font-weight: bold"> Cevaplar /cell-background.gif" style="font-family: Verdana; font-size: 8pt; font-weight: bold"> Konuyu Açan /cell-background.gif" style="font-family: Verdana; font-size: 8pt; font-weight: bold"> İzlenme /cell-background.gif" style="font-family: Verdana; font-size: 8pt; font-weight: bold"> Son İleti
<% if objForumQ("okunmat")="0" then %> <% end if %> <% if objForumQ("okunmat")= "1" then %> <% end if %> <% if objForumQ("okunmat")<>"2" then %> <% end if %> <% if objForumQ("durum")="on" then %> <%else%> <% end if %> "> <%=left(objForumQ("sorubaslik"),75)%> <% if SESSION("Uye_Seviye")=1 OR SESSION("Uye_Seviye")=3 then %> - ">Değiştir - <% if objForumQ("durum")="on" then %> "> Kitle <%else%> "> Kilit Aç <% end if %> - "> Sil<% end if %> <%=objForumQC("cevap")%> ', 'ASPrehberi', 'height=200,width=400')"> <%=objQYazan("U_ADI")%> <%=objForumQ("okunmat")%> <% if objFSC.eof then response.write "Hiç Cevap yok" else %>
<%=objFSC("tarih")%> <% end if %>
/cell-background.gif" colSpan=7> Sayfa: <%for y=1 to sayfa if CINT(TRIM(sf))=CINT(TRIM(y)) then%>[<%response.write "" & y %>]<%elseresponse.write " " & y & ""end if%><%next%>
Yeni konu aç Bütün Forumlar >> <%=objForumAdi("forum")%> Sayfa: <%for y=1 to sayfa if CINT(TRIM(sf))=CINT(TRIM(y)) then%>[<%response.write "" & y %>]<%elseresponse.write " " & y & ""end if%><%next%>

Yeni Mesajlar Yeni Mesaj Yok
Yeni Sıcak Konu Sıcak Konu
Kilitli Yeni Mesajlar Kilitli Mesajlar




<% end if %><% end sub %><% sub cevaplar %><%forumid = request.querystring("forum")IF NOT ISNumeric(forumid) THENresponse.write error1response.endend ifsoruid = request.querystring("soru")IF NOT ISNumeric(soruid) THENresponse.write error1response.endend ifset objForumC = server.createobject("ADODB.Recordset")sqlobjForumC = "Select * from forumcevaplar WHERE soruid = " & soruid & " ORDER by cevapid asc"objForumC.open sqlobjForumC,baglantim,1,3set objSoru = server.createobject("ADODB.Recordset")sqlobjSoru = "select * from forumsorular WHERE soruid = " & soruid & " "objSoru.open sqlobjSoru,baglantim,1,3objSoru("okunmat") = objSoru("okunmat") + 1objSoru.updatesf = Request.querystring("sf")if sf="" then sf=1end ifset objForumbs = baglantim.execute("select * from forumlar where forumid = " & forumid & " ")%><%set objQYazan = baglantim.execute("select * from UYELER WHERE U_ID = " & objSoru("yazan") & " ")%>
<%=objSoru("sorubaslik")%> Hoşgeldin <% If Session("Oturum") <> "Acik" Then %>Ziyaretçi <%else%> <% Set objRead = baglantim.Execute("SELECT Count(*) AS toplam FROM MESAJLAR WHERE GIDEN = '"& Session("Uye_Adi") &"' AND GOR = True") Set objSpe = baglantim.Execute("SELECT Count(*) AS ozel FROM MESAJLAR WHERE TYPE=1") Set objNRead = baglantim.Execute("SELECT Count(*) AS okunmayan FROM MESAJLAR WHERE GIDEN = '"& Session("Uye_Adi") &"' AND OKUNDU = False AND GOR = True") Set getName = baglantim.Execute("SELECT * FROM UYELER WHERE U_ID = "& Session("Uye_Id")) %> <%=getName("AD")%><%end if%>
Bütün Forumlar >> ">[<%=objForumbs("forum")%>] >> <%=objSoru("sorubaslik")%> (<%=objSoru("tarih")%>)
/cell-background.gif"> Kullanıcı /cell-background.gif" colSpan=0>
Mesaj
<% if objForumC.eof then %> <% else %>

" href="mailto:<%=objQYazan("EMAIL")%>"> &i=go">
<%if len(objQYazan("resim"))>0 then%> "><% else %> <%end if%>
', 'ASPrehberi', 'height=200,width=400')"> <%=objQYazan("U_ADI")%>
<% mesaj = objQYazan("forummsg") if mesaj<10 and mesaj>0 then rank = "Yeni Üye" elseif mesaj>10 and mesaj<50 then rank = "Üye" elseif mesaj>50 and mesaj<100 then rank = "Deneyimli Üye" end if %><%=rank%>

İletiler: <%=objQyazan("forummsg")%>
Katıldığı Tarih: <%=objQYazan("U_TARIHI")%>
Yaş : <% yas2 = ROUND(Year(now)-objQyazan("yas"), 1) response.write yas2 %>

<%=objSoru("sorubaslik")%>

<%=objSoru("soru")%>


<%=objQYazan("IMZA")%>
Bu Konuya Henüz Yanıt Verilmedi..
<%objForumC.pagesize = 10objForumC.absolutepage = sfsayfa = objForumC.pagecountfor i=1 to objForumC.pagesizeif

Asp KodBank
Deprecated: strtotime(): Passing null to parameter #1 ($datetime) of type string is deprecated in /var/www/vhosts/melekkentmen.com/httpdocs/config.php on line 1077
60 yıl önce
Melek Kentmen 11521