Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Active topics mod
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Active topics mod

 Post Reply Post Reply
Author
Zamal View Drop Down
Mod Builder Group
Mod Builder Group


Joined: 27 February 2003
Location: Netherlands
Status: Offline
Points: 95
Post Options Post Options   Thanks (0) Thanks(0)   Quote Zamal Quote  Post ReplyReply Direct Link To This Post Topic: Active topics mod
    Posted: 26 April 2003 at 11:32am

I've seen quite a few people mentioning the fact that you see all topics in the active topics page, even those in forums you may not access. Personally I found that a greater problem then some speed loss with an extra permission check. So I made a little mod Smile

The following you'll have to change in active_topics.asp:

On line 261 add the following after directly topic , " & strDbTable & "Permissions "
Insert after line 262 the following line:
 strSQL = strSQL & "AND (" & strDbTable & "Forum.Forum_ID = " & strDbTable & "Permissions.Forum_ID AND " & strDbTable & "Permissions.Group_ID = " & intGroupID & " AND " & strDbTable & "Permissions.[Read] = TRUE )"

One requirement for this to work correctly is that you must set the permissions for all groups. Only grouppermissions will be looked at.

Sorry for the SQL users but this is Access only.

Back to Top
Zamal View Drop Down
Mod Builder Group
Mod Builder Group


Joined: 27 February 2003
Location: Netherlands
Status: Offline
Points: 95
Post Options Post Options   Thanks (0) Thanks(0)   Quote Zamal Quote  Post ReplyReply Direct Link To This Post Posted: 26 April 2003 at 1:17pm

And the same mod for search.asp

On line 196 add between topic and WHERE , " & strDbTable & "Permissions
On line 224 add directly after topic , " & strDbTable & "Permissions "
On line 264 add directly after thread.topic_ID , " & strDbTable & "Permissions "
Insert at line 272 the following line:
 strSQLResultsQuery = strSQLResultsQuery & "AND (" & strDbTable & "Topic.Forum_ID = " & strDbTable & "Permissions.Forum_ID AND " & strDbTable & "Permissions.Group_ID = " & intGroupID & " AND " & strDbTable & "Permissions.[Read] = TRUE )"

This one might actually alos work for SQL since this query hasn't got a stored procedure version afaik.

ps. I would have posted this in the mod forum, but I couldn't.

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.