Gönderen Konu: Forumda en çok okunanlar bloğu  (Okunma sayısı 2753 defa)

0 Üye ve 1 Ziyaretçi konuyu incelemekte.

Çevrimdışı massive

  • İleti: 66
  • Puan: 3
  • Cinsiyet: Bay
    • KPSS Hazırlık
Forumda en çok okunanlar bloğu
« : Mart 24, 2008, 12:31:05 ÖS »
Forumda en çok okunan konuları blok haline getirdim. Ben en çok okunan 10 konuya göre ayarladım. Siz ordaki 10 yazan yeri isteğe göre değiştirirsiniz. Dosyayı Ekten indirebilirsiniz.  Veya bu  kodu kopyalayarak blok haline getirip eklersiniz.

Kod: [Seç]
<%
mwpThemeTitle= "En Çok Okunan 10 Konu"
mwpThemeBlock_open()%>


<%if strDBNTUserName = "" then
doNotLoggedInForm
else

dim intReadTopics

intReadTopics = 10 ' number of top read topics to display
%>



<% if (mlev = 4 or mlev = 3) then%>

    <%=displayReadTopics%>
 
<%
end if
mwpThemeBlock_close()%>

<%



function displayReadTopics()
dim rs
set rs = server.CreateObject("adodb.recordset")

strSql = "SELECT TOP " & intReadTopics & " TOPIC_ID, T_SUBJECT, T_VIEW_COUNT FROM " & strTablePrefix & "TOPICS ORDER BY T_VIEW_COUNT DESC"
rs.Open strSql, my_Conn
%>
<table border="0" cellpadding="0" cellspacing="5" width="100%">
<tr>
<td valign="middle" width="10%"><font face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize %>" color="<% =strDefaultFontColor %>"><b>No.</b></font></td>
<td valign="middle" align="left"><font face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize %>" color="<% =strDefaultFontColor %>"><b>Konu Başlığı</b></font></td>
<td valign="middle" align="center"><font face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize %>" color="<% =strDefaultFontColor %>"><b>Okunma Sayısı</b></font></td>
</tr>
<%
dim intCounter
intCounter = 1
do while not rs.EOF%>
<tr>
<td><font face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize %>" color="<% =strDefaultFontColor %>"><%= intCounter%>.</font></td>
<td align="left"><a href="link.asp?TOPIC_ID=<%=rs("TOPIC_ID")%>"><font face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize %>" color="<% =strDefaultFontColor %>"><%= rs("T_SUBJECT")%></font></a></td>
<td align="center"><font face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize %>" color="<% =strDefaultFontColor %>"><%= rs("T_VIEW_COUNT")%></font></td>
</tr>
<%
intCounter = intCounter + 1
rs.movenext
loop
rs.Close
set rs = nothing
end function
end if
%>
</div></table>
Konuyu Paylaş:
  delicious  facebook  twitter  google

Çevrimdışı aliuykun42

  • İleti: 148
  • Puan: 42
-Forumda en çok okunanlar bloğu
« Yanıtla #1 : Ağustos 24, 2008, 22:13:51 ÖS »
anasayfa orta blogo inclu yaptım fakat bloklar kaydı en alta sağ blok en yukarudan başladı...

Çevrimdışı burajan

  • Web Programcısı
  • Administrator
  • *
  • İleti: 5109
  • Puan: 334
  • Cinsiyet: Bay
  • Web Programcısı
    • Burak ŞİMŞEK - Kişisel İnternet Sitesi
-Forumda en çok okunanlar bloğu
« Yanıtla #2 : Ağustos 24, 2008, 22:28:38 ÖS »
aliuykun42, ekteki dosyayı dene bakalım.
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ışı aliuykun42

  • İleti: 148
  • Puan: 42
-Forumda en çok okunanlar bloğu
« Yanıtla #3 : Eylül 20, 2008, 18:32:31 ÖS »
şimdi biraz karışma var gibi linki vereyim bakın isterseniz.
http://www.aksehirliyizbiz.com/forum/ddefault.asp
en  altta 

Çevrimiçi AdmiN

  • Genel Sorumlu
  • Administrator
  • *
  • İleti: 7976
  • Puan: 750
  • Cinsiyet: Bay
  • ~|| Bilginin Gücü ||~
    • Kişisel Web Sitem
-Forumda en çok okunanlar bloğu
« Yanıtla #4 : Eylül 21, 2008, 23:35:40 ÖS »
Blok dağınıklığı sorunun düzeltip kontrol ettim.Dosyayı ekten indirebilirsin.

Çevrimdışı aliuykun42

  • İleti: 148
  • Puan: 42
-Forumda en çok okunanlar bloğu
« Yanıtla #5 : Eylül 24, 2008, 02:49:58 ÖÖ »
burdaki verdiğiniz dosya en çok cevaplanan  ben en çok okunan düzenli halini istiyordum..
yoğunluktan karıştır herhalde..

Çevrimdışı kavalu

  • İleti: 16
  • Puan: 0
-Forumda en çok okunanlar bloğu
« Yanıtla #6 : Eylül 27, 2009, 15:49:59 ÖS »
Üyeler bu bloğu görebilirle mi?

Çevrimiçi AdmiN

  • Genel Sorumlu
  • Administrator
  • *
  • İleti: 7976
  • Puan: 750
  • Cinsiyet: Bay
  • ~|| Bilginin Gücü ||~
    • Kişisel Web Sitem
-Forumda en çok okunanlar bloğu
« Yanıtla #7 : Eylül 27, 2009, 18:45:50 ÖS »
Üyeler blok içeriğini göremiyor.Görebilmesi için kodların içinde bulunan aşağıdaki kodları ve yine kodların içindeki en altteki end if kodunu silmen gerekir.

Kod: [Seç]
if strDBNTUserName = "" then
doNotLoggedInForm
else

Çevrimdışı kavalu

  • İleti: 16
  • Puan: 0
-Forumda en çok okunanlar bloğu
« Yanıtla #8 : Eylül 27, 2009, 21:09:11 ÖS »
Dediklerinizi uyguladım ama olmadı.  :no

Çevrimdışı kavalu

  • İleti: 16
  • Puan: 0
-Forumda en çok okunanlar bloğu
« Yanıtla #9 : Eylül 27, 2009, 21:13:24 ÖS »
<%
mwpThemeTitle= "En Çok Okunan 10 Konu"
mwpThemeBlock_open()%><tr><td>


<%if strDBNTUserName = "" then
   doNotLoggedInForm
else

dim intReadTopics

intReadTopics      = 10   ' number of top read topics to display
%>



<% if (mlev = 4 or mlev = 3) then%>

    <%=displayReadTopics%>
 
<%
end if
%>
</td></tr>
<%
mwpThemeBlock_close()%>

<%



function displayReadTopics()
   dim rs
   set rs = server.CreateObject("adodb.recordset")

   strSql = "SELECT TOP " & intReadTopics & " TOPIC_ID, T_SUBJECT, T_VIEW_COUNT FROM " & strTablePrefix & "TOPICS ORDER BY T_VIEW_COUNT DESC"
   rs.Open strSql, my_Conn
   %>
<table border="0" cellpadding="0" cellspacing="5" width="100%">
   <tr>
      <td valign="middle" width="10%"><font face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize %>" color="<% =strDefaultFontColor %>">No.</font></td>
      <td valign="middle" align="left"><font face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize %>" color="<% =strDefaultFontColor %>">Konu Başlığı</font></td>
      <td valign="middle" align="center"><font face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize %>" color="<% =strDefaultFontColor %>">Okunma Sayısı</font></td>
   </tr>
   <%
   dim intCounter
   intCounter = 1
   do while not rs.EOF%>
   <tr>
      <td><font face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize %>" color="<% =strDefaultFontColor %>"><%= intCounter%>.</font></td>
      <td align="left"><a href="link.asp?TOPIC_ID=<%=rs("TOPIC_ID")%>"><font face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize %>" color="<% =strDefaultFontColor %>"><%= rs("T_SUBJECT")%></font>[/url]</td>
      <td align="center"><font face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize %>" color="<% =strDefaultFontColor %>"><%= rs("T_VIEW_COUNT")%></font></td>
   </tr>
      <%
   intCounter = intCounter + 1
   rs.movenext
   loop
   rs.Close
      set rs = nothing
end function
end if
%>
</div></table>

 

Benzer Konular

  Konu / Başlatan Yanıt Son İleti
0 Yanıt
1052 Gösterim
Son İleti Şubat 17, 2007, 22:36:53 ÖS
Gönderen: tekniker
3 Yanıt
2102 Gösterim
Son İleti Şubat 12, 2008, 16:15:50 ÖS
Gönderen: massive
10 Yanıt
2379 Gösterim
Son İleti Eylül 28, 2009, 11:52:45 ÖÖ
Gönderen: kavalu
16 Yanıt
2248 Gösterim
Son İleti Ağustos 29, 2008, 00:02:29 ÖÖ
Gönderen: AdmiN
0 Yanıt
850 Gösterim
Son İleti Ağustos 14, 2010, 18:16:40 ÖS
Gönderen: AdmiN