Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - New topics by time of posting
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

New topics by time of posting

 Post Reply Post Reply Page  12>
Author
AnaMaria View Drop Down
Groupie
Groupie


Joined: 12 May 2005
Status: Offline
Points: 37
Post Options Post Options   Thanks (0) Thanks(0)   Quote AnaMaria Quote  Post ReplyReply Direct Link To This Post Topic: New topics by time of posting
    Posted: 08 May 2006 at 9:21am
Is there a way to make new topic to be ordered by the time of posting, not by forums. I am speaking of page forum_topic.asp. I would like this to be just like in Php forums.
And th name of forums can be in the same line as the name of topic, not like a Subject in the top...
Back to Top
AnaMaria View Drop Down
Groupie
Groupie


Joined: 12 May 2005
Status: Offline
Points: 37
Post Options Post Options   Thanks (0) Thanks(0)   Quote AnaMaria Quote  Post ReplyReply Direct Link To This Post Posted: 14 May 2006 at 2:01pm
BORG, can you answer me? Anybody?
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: 15 May 2006 at 12:18am
can you give detailed information about this?
sorry but i cant understand what u want, clearly
Back to Top
AnaMaria View Drop Down
Groupie
Groupie


Joined: 12 May 2005
Status: Offline
Points: 37
Post Options Post Options   Thanks (0) Thanks(0)   Quote AnaMaria Quote  Post ReplyReply Direct Link To This Post Posted: 15 May 2006 at 1:12pm
Whan I open activ topics active_topics.asp, I get a list of new posts,
ordered by forums thay are posted, here it is the same thing. But I whant
them to be ordered by time of posting, just like in php forums, I whant to
now whitch one is last posted... etc.
I thing you understad now.
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: 15 May 2006 at 11:00pm
in active_topic.asp  file line 295 :
 
strSQL = strSQL & "ORDER BY " & strDbTable & "Category.Cat_order ASC, " & strDbTable & "Forum.Forum_Order ASC, " & strSortBy & " "
 
delete that red shown code now it must be like this:
 
strSQL = strSQL & "ORDER BY " & strDbTable & "Category.Cat_order ASC, " & strSortBy & " "
 
and in line 160 change
 
strSortDirection = "asc"
 
to
 
strSortDirection = "Desc"
 
good  luck...
 

 
 


Edited by gölge - 15 May 2006 at 11:15pm
Back to Top
AnaMaria View Drop Down
Groupie
Groupie


Joined: 12 May 2005
Status: Offline
Points: 37
Post Options Post Options   Thanks (0) Thanks(0)   Quote AnaMaria Quote  Post ReplyReply Direct Link To This Post Posted: 15 May 2006 at 11:46pm
in line  295 I had to put this:
 

strSQL = strSQL & "ORDER BY " & strSortBy & " "
 
It works, only I have one more thing I am interested.
 
The names of forums are displayed in topic of table. is there any posibility the names of the forums to be somewhere else, for examle like this, between two ().
example: (forum name).
 
Asking too much? Wink
 


Edited by AnaMaria - 15 May 2006 at 11:47pm
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: 16 May 2006 at 3:24am
in line 575 delete that codes:
 
 
Quote  'If the forum name is different to the one from the last forum display the forum name
  If sarryTopics(1,intCurrentRecord) <> strForumName Then
 
   'Give the forum name the new forum name
   strForumName = sarryTopics(1,intCurrentRecord)
 
   'Display the new forum name
   Response.Write vbCrLf & " <tr class=""tableSubLedger""><td colspan=""7""><a href=""forum_topics.asp?FID=" & intForumID & strQsSID2& """>" & strForumName & "</a></td></tr>"
  End If
 
 
and if you want to add the forum names in () so change this code (line684)
 
Response.Write(""" title=""" & strFirstPostMsg & """>" & strSubject & "</a>")
 
to this:
 
Response.Write(""" title=""" & strFirstPostMsg & """>" & strSubject & " ("&sarryTopics(1,intCurrentRecord)")</a>")
Back to Top
AnaMaria View Drop Down
Groupie
Groupie


Joined: 12 May 2005
Status: Offline
Points: 37
Post Options Post Options   Thanks (0) Thanks(0)   Quote AnaMaria Quote  Post ReplyReply Direct Link To This Post Posted: 16 May 2006 at 12:58pm
Originally posted by gölge gölge wrote:

 
and if you want to add the forum names in () so change this code (line684)
 
Response.Write(""" title=""" & strFirstPostMsg & """>" & strSubject & "</a>")
 
to this:
 
Response.Write(""" title=""" & strFirstPostMsg & """>" & strSubject & " ("&sarryTopics(1,intCurrentRecord)")</a>")
 
This doesn't work :(
The name of subforum can be in the same table, in diferent row, if it is posible, it is not nesesery to be in (). Only to be displayed somewhere.
Back to Top
 Post Reply Post Reply Page  12>

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.