Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - MOD: Latest Forum Posts for your website
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

MOD: Latest Forum Posts for your website

 Post Reply Post Reply Page  <12345>
Author
wizmike View Drop Down
Newbie
Newbie


Joined: 27 June 2006
Location: Australia
Status: Offline
Points: 10
Post Options Post Options   Thanks (0) Thanks(0)   Quote wizmike Quote  Post ReplyReply Direct Link To This Post Posted: 10 August 2006 at 4:08am
zeli
 
Point your browser at "last_ten_posts.asp" and make sure it is actually working.
 
Back to Top
zeli View Drop Down
Newbie
Newbie


Joined: 06 August 2006
Location: United States
Status: Offline
Points: 10
Post Options Post Options   Thanks (0) Thanks(0)   Quote zeli Quote  Post ReplyReply Direct Link To This Post Posted: 13 August 2006 at 3:05pm
It's working now! thanks!

Back to Top
suedechaser View Drop Down
Groupie
Groupie


Joined: 25 February 2006
Location: USA
Status: Offline
Points: 129
Post Options Post Options   Thanks (0) Thanks(0)   Quote suedechaser Quote  Post ReplyReply Direct Link To This Post Posted: 28 August 2006 at 4:05am
Hi All,

Can anyone please post here the code for MSSQL.

The link previously posted in this thread ( http://b2.iportalx.net/forum_posts.asp?TID=88&PID=797 ) appears to be a dead link.

thanks in advance

suede
Back to Top
wizmike View Drop Down
Newbie
Newbie


Joined: 27 June 2006
Location: Australia
Status: Offline
Points: 10
Post Options Post Options   Thanks (0) Thanks(0)   Quote wizmike Quote  Post ReplyReply Direct Link To This Post Posted: 28 August 2006 at 4:59am
Originally posted by suedechaser suedechaser wrote:


Can anyone please post here the code for MSSQL.
 
 
Try this.
 
 
.


Edited by wizmike - 28 August 2006 at 5:01am
Back to Top
MadDog View Drop Down
Mod Builder Group
Mod Builder Group
Avatar

Joined: 01 January 2002
Status: Offline
Points: 3008
Post Options Post Options   Thanks (0) Thanks(0)   Quote MadDog Quote  Post ReplyReply Direct Link To This Post Posted: 28 August 2006 at 6:20am
Sorry about that was in the process of changing servers, http://b2.iportalx.net is back up.

MOD is located at http://b2.iportalx.net/forum_posts.asp?TID=88&PID=797
Back to Top
suedechaser View Drop Down
Groupie
Groupie


Joined: 25 February 2006
Location: USA
Status: Offline
Points: 129
Post Options Post Options   Thanks (0) Thanks(0)   Quote suedechaser Quote  Post ReplyReply Direct Link To This Post Posted: 28 August 2006 at 7:35am
Hi,

Thanks MadDog. ( and Mike, but your link pointed back to this same thread )

regards

suede

Back to Top
rahimi View Drop Down
Groupie
Groupie
Avatar

Joined: 12 January 2004
Location: Iran
Status: Offline
Points: 53
Post Options Post Options   Thanks (0) Thanks(0)   Quote rahimi Quote  Post ReplyReply Direct Link To This Post Posted: 03 September 2006 at 4:18pm
hi
can i use this code to show latest forum post in wwf 8.3 ,
i use this cod in versione 7.9
tnx
 
<%
'#################################################
'#              #
'#      MELODIK      #
''#              #
''#     www.melodik.net     #
'#              #
'#################################################
Dim strLatestForumPostSubject
Dim strFirstPostMsg
 Dim rsLatestPosts
 Dim strTopicSubject
 Dim NumberOfPosts
 Dim rowType
 Dim LastLatestPostsDateTime
 Dim LastLatestPostsDate
 Dim LastLatestPostsTime
 Dim rsLatestPosts2
 Dim sql2
%>

<%
 NumberOfPosts = 0

 Set rsLatestPosts = Server.CreateObject("ADODB.Recordset")
 strSQL = "SELECT tblTopic.Topic_ID, tblTopic.Subject, tblTopic.Last_entry_date, tblForum.Forum_ID, tblForum.Forum_name, tblForum.[Read] FROM (tblForum INNER JOIN tblTopic ON tblForum.Forum_ID = tblTopic.Forum_ID) WHERE ((tblForum.Password) Is Null) ORDER BY tblTopic.Last_entry_date DESC;"

 rsLatestPosts.Open strSQL, adoCon

  Response.Write "<table cellpadding=""0"" cellspacing=""0"" width=""100%"">"

 If rsLatestPosts.EOF Then
  Response.Write "<tr><td class=""smText"">No Forum Posts Made</td></tr>"  'English
  'Response.Write "<tr><td class=""smText"">Forumda yeni mesaj yok</td></tr>" ' Turkish
 Else

  Do while NOT rsLatestPosts.EOF And NumberOfPosts < 20
   intForumID = CInt(rsLatestPosts("Forum_ID"))
   intForumReadRights = CInt(rsLatestPosts("Read"))
   Call forumPermisisons(intForumID, intGroupID, intForumReadRights, 0, 0, 0, 0, 0, 0, 0, 0, 0)

If rowType = strTableOddRowColour Then
rowType = strTableEvenRowColour
Else
rowType = strTableOddRowColour
end if

   'If the user has no read rights then skip the post
   If blnRead = True Then

    If len(rsLatestPosts("Subject"))>40 then
     strTopicSubject = left(rsLatestPosts("Subject"),40) & "..."
    Else
     strTopicSubject = rsLatestPosts("Subject")
  strFirstPostMsg = removeHTML(strFirstPostMsg)
  strFirstPostMsg  = Mid(Trim(strFirstPostMsg), 1, 250)

    End If
    NumberOfPosts = NumberOfPosts + 1

 LastLatestPostsDateTime = rsLatestPosts("Last_entry_date")
 LastLatestPostsDate = DateFormat(LastLatestPostsDateTime, saryDateTimeData)
 LastLatestPostsTime = TimeFormat(LastLatestPostsDateTime, saryDateTimeData)

 Set rsLatestPosts2 = Server.CreateObject("ADODB.Recordset")
 sql2 = "SELECT tblThread.Thread_ID, tblThread.Topic_ID, tblAuthor.Username, tblAuthor.Author_ID FROM (tblAuthor INNER JOIN tblThread ON tblAuthor.Author_ID = tblThread.Author_ID) WHERE Topic_ID= "&rsLatestPosts("Topic_ID")&" order by Message_date desc"
 rsLatestPosts2.Open sql2, adoCon

 Response.Write("<tr bgcolor="""&rowType&"""><td class=""Text""><a href=""forum_posts.asp?TID=" & rsLatestPosts("Topic_ID") & "&get=last#"&rsLatestPosts2("Thread_ID")&""" target=""_blank"" class=""smLink"" title=""" & strFirstPostMsg & """ - ("&rsLatestPosts("Forum_name")&")"">" & strTopicSubject & "</a></td><td class=""smText"" >"&rsLatestPosts2("Username") &"</td><td class=""Text"" align=""right"" >" & LastLatestPostsDate & "-" & LastLatestPostsTime & "</td>")

   End If
  
  rsLatestPosts.MoveNext
  If blnRead = True Then
   If NOT rsLatestPosts.EOF Then Response.Write("</tr>")
  End If
  Loop

  If NumberOfPosts = 0 Then
   Response.Write "<tr><td class=""smText"">No Sufficient Permission to View Latest Forum Posts</td></tr>" 'English
   'Response.Write "<tr><td class=""smText"">Son mesajlar‎ gِrme yetkiniz yok</td></tr>" ' Turkish
  End If
 End If

  Response.Write "</table>"

 rsLatestPosts2.Close
 Set rsLatestPosts2 = Nothing
 rsLatestPosts.Close
 Set rsLatestPosts = Nothing
%>

Mohammad Rahimi ,
Astronomer and Web Developer.
Back to Top
pomme View Drop Down
Newbie
Newbie


Joined: 04 September 2006
Status: Offline
Points: 1
Post Options Post Options   Thanks (0) Thanks(0)   Quote pomme Quote  Post ReplyReply Direct Link To This Post Posted: 04 September 2006 at 2:05pm
I've added this to my website homepage and it works very well. My forum is running 7.93. I seem to have a problem now with my forum; after posts are made to the forum (or pm), the next screen is a screen saying this page cannot be viewed. The URL has this page request forum/post_message.asp?PN=0
 
I don't know why I'm getting this error, but when you return to the forum topic, you can see that the new post has been added.
 
Has anyone had this type of error, and maybe you can let me know how to fix it?
 
Thanks
Back to Top
 Post Reply Post Reply Page  <12345>

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.