Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - :Mod Request: Hide latest 10 posts
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

:Mod Request: Hide latest 10 posts

 Post Reply Post Reply
Author
Epperson View Drop Down
Newbie
Newbie


Joined: 08 November 2003
Status: Offline
Points: 26
Post Options Post Options   Thanks (0) Thanks(0)   Quote Epperson Quote  Post ReplyReply Direct Link To This Post Topic: :Mod Request: Hide latest 10 posts
    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
Back to Top
gölge View Drop Down
Groupie
Groupie


Joined: 16 April 2005
Location: Turkey
Status: Offline
Points: 182
Post Options Post Options   Thanks (0) Thanks(0)   Quote gölge Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
GopCa View Drop Down
Newbie
Newbie


Joined: 03 May 2006
Status: Offline
Points: 22
Post Options Post Options   Thanks (0) Thanks(0)   Quote GopCa Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
gölge View Drop Down
Groupie
Groupie


Joined: 16 April 2005
Location: Turkey
Status: Offline
Points: 182
Post Options Post Options   Thanks (0) Thanks(0)   Quote gölge Quote  Post ReplyReply Direct Link To This Post Posted: 27 May 2006 at 3:48pm
evet
Back to Top
Epperson View Drop Down
Newbie
Newbie


Joined: 08 November 2003
Status: Offline
Points: 26
Post Options Post Options   Thanks (0) Thanks(0)   Quote Epperson Quote  Post ReplyReply Direct Link To This Post Posted: 30 May 2006 at 2:19am
Thanks for the info but where would I stick the code on the page?
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.