Web Wiz - Green Windows Web Hosting - Celebrating 25 Years!

  New Posts New Posts RSS Feed - Getting total number of active topics.
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Getting total number of active topics.

 Post Reply Post Reply
Author
niugiovanni View Drop Down
Groupie
Groupie


Joined: 20 July 2004
Status: Offline
Points: 43
Post Options Post Options   Thanks (0) Thanks(0)   Quote niugiovanni Quote  Post ReplyReply Direct Link To This Post Topic: Getting total number of active topics.
    Posted: 11 February 2005 at 11:31pm
I'm just finishing up a site integration of WebWiz (http://www.heatofbattle.net/new/) and the last thing I want to do is query the Active Topics to find two things:

1. How many topics have been posted in since the last visit.

2. If any of these topics are from a certain Category.

The category-specific query is easy once I figure out a good way to finish goal #1.  I'm wondering if anyone has any suggestions towards the logic for this?  My initial thought is to execute a complete Active Topics process (without Response.write) and count the amount of loops.  The topics per page and great amount of code necessary for this leads me to believe that there's another solution that I'm missing.

Thanks in advance!
Back to Top
dj air View Drop Down
Senior Member
Senior Member
Avatar

Joined: 05 April 2002
Location: United Kingdom
Status: Offline
Points: 3627
Post Options Post Options   Thanks (0) Thanks(0)   Quote dj air Quote  Post ReplyReply Direct Link To This Post Posted: 12 February 2005 at 7:02am
the active topics page already can be set to check for "since last visit"

so if you look in the code you should see some where   , where it gets the last visit date value and adds it to the query.
Back to Top
niugiovanni View Drop Down
Groupie
Groupie


Joined: 20 July 2004
Status: Offline
Points: 43
Post Options Post Options   Thanks (0) Thanks(0)   Quote niugiovanni Quote  Post ReplyReply Direct Link To This Post Posted: 12 February 2005 at 11:37am
FYI, what I did was a standard call to every forum_ID that I'd like to check for.  It removes the last 25 posts and checks to see if any of them are newer than your cookie.  This isnot ideal and I hope to use some of the Active Topics code.  I'm just not smart enough yet to extract exactly what I need.
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.