Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Mod req: search function ?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Mod req: search function ?

 Post Reply Post Reply
Author
FoLo View Drop Down
Newbie
Newbie


Joined: 24 November 2003
Location: Denmark
Status: Offline
Points: 17
Post Options Post Options   Thanks (0) Thanks(0)   Quote FoLo Quote  Post ReplyReply Direct Link To This Post Topic: Mod req: search function ?
    Posted: 12 August 2006 at 8:57pm
Hi, can it really be right that it is not possible to hide topics/posts in the search function, if a forum is hidden or private forum ?

I only found this about it: http://forums.webwiz.net/forum_posts.asp?TID=18945&KW

please help...

Also I found this in a readme file from a old mod (version 7 I think, not sure who did it):


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
One requirement for this to work correctly is that you must set the permissions for all groups. Only grouppermissions will be looked at. Not at userpermissions or passworded forums. This was to make the performance impact not to big

Installing: just copy active_topics.asp and search.asp in your forum directory, or apply the changes if you have already modified versions of those files.


The following changes are made 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 )"

Sorry for the SQL users but this is Access only.

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.

Back to Top
FoLo View Drop Down
Newbie
Newbie


Joined: 24 November 2003
Location: Denmark
Status: Offline
Points: 17
Post Options Post Options   Thanks (0) Thanks(0)   Quote FoLo Quote  Post ReplyReply Direct Link To This Post Posted: 15 August 2006 at 7:49pm
hmm.. I guess nobody knows ?
Back to Top
Mikey View Drop Down
Senior Member
Senior Member

1979

Joined: 06 October 2003
Location: United Kingdom
Status: Offline
Points: 839
Post Options Post Options   Thanks (0) Thanks(0)   Quote Mikey Quote  Post ReplyReply Direct Link To This Post Posted: 15 August 2006 at 9:43pm
By default the forum software will only find in a search, posts that the person doing the searching, has permission to see/read. No need for a mod.
Handyman man?
Back to Top
FoLo View Drop Down
Newbie
Newbie


Joined: 24 November 2003
Location: Denmark
Status: Offline
Points: 17
Post Options Post Options   Thanks (0) Thanks(0)   Quote FoLo Quote  Post ReplyReply Direct Link To This Post Posted: 16 August 2006 at 1:13pm
Hi Mikey, thanks for replying, I just found out that my permissions system got f**ked up in my conversion to version 8.

Please close this topic, thx
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.