Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Post number count in thread
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Post number count in thread

 Post Reply Post Reply Page  <12
Author
Hades View Drop Down
Newbie
Newbie


Joined: 17 January 2005
Status: Offline
Points: 23
Post Options Post Options   Thanks (0) Thanks(0)   Quote Hades Quote  Post ReplyReply Direct Link To This Post Posted: 02 November 2006 at 5:20pm
Erm.. I'm not quite sure I understood what you're asking here, but if it is, the value you're looking for (i.e. the Post counter for each topic) is already stored in intCurrentRecord..
 
So, let's assume I understood your request.. Find these lines :

  'Display message post date and time
  Response.Write(strTxtPosted & " " & DateFormat(dtmPostDate) & " " & strTxtAt & " " & TimeFormat(dtmPostDate))
 
And add intCurrentRecord +1 in front of it.. The plus 1 is because like everything in ASP, counters start at 0..
Here would be an example :

  Response.Write("#" & intCurrentRecord + 1 & "-" & strTxtPosted & " " & DateFormat(dtmPostDate) & " " & strTxtAt & " " & TimeFormat(dtmPostDate))
Back to Top
dpyers View Drop Down
Senior Member
Senior Member


Joined: 12 May 2003
Status: Offline
Points: 3937
Post Options Post Options   Thanks (0) Thanks(0)   Quote dpyers Quote  Post ReplyReply Direct Link To This Post Posted: 03 November 2006 at 3:32pm
Originally posted by Praveen Praveen wrote:

What else. Enough information is given. Any idea of the date to be released? Should I be of help in any way??


Sorry, I got distracted by other things and forgot about this.
The solution Hades posted should work.

Lead me not into temptation... I know the short cut, follow me.
Back to Top
Praveen View Drop Down
Senior Member
Senior Member
Avatar

Joined: 09 December 2005
Location: India
Status: Offline
Points: 218
Post Options Post Options   Thanks (0) Thanks(0)   Quote Praveen Quote  Post ReplyReply Direct Link To This Post Posted: 03 November 2006 at 5:23pm
ok. anyway i will try to frame that code in 2 day. if not, dpyers please take the responsiblity and upload the file. can you?
Back to Top
Praveen View Drop Down
Senior Member
Senior Member
Avatar

Joined: 09 December 2005
Location: India
Status: Offline
Points: 218
Post Options Post Options   Thanks (0) Thanks(0)   Quote Praveen Quote  Post ReplyReply Direct Link To This Post Posted: 03 November 2006 at 5:49pm
ya finished done.
Back to Top
WWInk View Drop Down
Newbie
Newbie


Joined: 03 October 2006
Status: Offline
Points: 16
Post Options Post Options   Thanks (0) Thanks(0)   Quote WWInk Quote  Post ReplyReply Direct Link To This Post Posted: 05 November 2006 at 1:14am
Hey guys - I really appreciate all the help on this.  I will check it out tonight.
 
Thanks!
Back to Top
Praveen View Drop Down
Senior Member
Senior Member
Avatar

Joined: 09 December 2005
Location: India
Status: Offline
Points: 218
Post Options Post Options   Thanks (0) Thanks(0)   Quote Praveen Quote  Post ReplyReply Direct Link To This Post Posted: 05 November 2006 at 4:23pm
You are Welcomed
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.