Print Page | Close Window

:Mod Request: Hide latest 10 posts

Printed From: Web Wiz Forums
Category: Web Wiz Web App Support Forums
Forum Name: Web Wiz Forums Modifications
Forum Description: Mod's and Add-on's for Web Wiz Forums.
URL: https://forums.webwiz.net/forum_posts.asp?TID=20004
Printed Date: 28 March 2026 at 9:09am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: :Mod Request: Hide latest 10 posts
Posted By: Epperson
Subject: :Mod Request: Hide latest 10 posts
Date Posted: 23 May 2006 at 6:10pm
Is there any code I can add to hide the latest ten posts from anyone that is not logged into the forum such as guests?
 
Thanks in advance


-------------
http://www.surplus.cc



Replies:
Posted By: gölge
Date Posted: 24 May 2006 at 10:22am
here is the code:
 
if intgroupid<>2 then
 
%><table cellspacing="1" cellpadding="3" class="tableBorder" align="center">
<tr class="tableLedger">
  <td colspan="5">Last Topics</td>
</tr>
 <tr class="tableSubLedger">
    <td width="30%" align="center">Forum</td>
    <td width="40%" align="center">Topic</td>
 <td width="10%" align="center">User</td>
 <td width="10%" align="center">Reply</td>
    <td width="10%" align="center">Read</td>
 </tr>
 
<%
 
Dim intcount
 
strSql = "Select tblTopic.Subject, tblTopic.Topic_ID,  tblForum.Forum_ID, tblForum.Forum_name, tblTopic.Last_Thread_ID,  tblTopic.No_of_views, tbltopic.no_of_replies, tblAuthor.Author_ID, tblAuthor.Username "
strSql = strSql & "From  tblTopic,  tblForum, tblthread, tblAuthor Where tblTopic.Hide = 0 And tblTopic.Forum_ID = tblForum.Forum_ID AND tblthread.thread_ID =tblTopic.Last_Thread_ID AND tblAuthor.Author_ID =tblthread.Author_ID  Order By tblTopic.Last_Thread_ID desc"

rscommon.Open strSQL, adoCon
For intcount = 1 to 10
if rscommon.Eof Then Exit For
 
Response.Write "<tr class=""tableRow""><td><a href=""forum_topics.asp?FID=" & rsCommon("Forum_ID") & """ title=""Main forum page"">" & rsCommon("Forum_name") & "</a></td><td><a href=""forum_posts.asp?TID=" & rsCommon("Topic_ID") & """><img border=""0"" src=""" & strImagePath & "right_arrow.gif"" alt=""Last message"" /></a>&nbsp;<a href=""forum_posts.asp?TID=" & rsCommon("Topic_ID") & "&get=last#" & rsCommon("Last_Thread_ID") & """ title=""Show Topic"">" & rsCommon("Subject") & "</a></td><td align=""center""><a href=""member_profile.asp?PF=" & rsCommon("Author_ID") & """ title=""User"">" & rsCommon("username") & "</a></td><td align=""center"">"  & rsCommon("no_of_replies") & "</td><td align=""center"">"  & rsCommon("No_of_views") & "</td></tr>"
 
rsCommon.MoveNext
Next
rscommon.close
%></table>

 
else
response.write("You have not permission to see last ten posts!")
 
end if


Posted By: GopCa
Date Posted: 27 May 2006 at 3:36pm
ingilizcem pek yokta gölge acaba bu kod misafirlerin son yazılan mesajları görmesini enlgelleyen kodmu. az bişi öyle anladım gibideSmile

-------------
Türkçe Web Wiz Forum Desteğine http://Gopca.Net - http://Gopca.Net adresinden ulaşabilirsiniz...


Posted By: gölge
Date Posted: 27 May 2006 at 3:48pm
evet


Posted By: Epperson
Date Posted: 30 May 2006 at 2:19am
Thanks for the info but where would I stick the code on the page?

-------------
http://www.surplus.cc



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net