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

  New Posts New Posts RSS Feed - Several forums - one memberbase
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Several forums - one memberbase

 Post Reply Post Reply Page  <123>
Author
FreeMen View Drop Down
Groupie
Groupie


Joined: 19 November 2003
Location: Denmark
Status: Offline
Points: 132
Post Options Post Options   Thanks (0) Thanks(0)   Quote FreeMen Quote  Post ReplyReply Direct Link To This Post Posted: 01 September 2004 at 9:05am

Got a problem.

Now I've switched to SQL...

How is this done here? Not the same I found out...

TomTom-User.dk
Running WWF SQL with more than 32.000 members...
Back to Top
FreeMen View Drop Down
Groupie
Groupie


Joined: 19 November 2003
Location: Denmark
Status: Offline
Points: 132
Post Options Post Options   Thanks (0) Thanks(0)   Quote FreeMen Quote  Post ReplyReply Direct Link To This Post Posted: 01 September 2004 at 9:23am

Sorry...

Found out.

Never worked with SQL before, but found a StoredProcedure...

Thanks!

TomTom-User.dk
Running WWF SQL with more than 32.000 members...
Back to Top
FreeMen View Drop Down
Groupie
Groupie


Joined: 19 November 2003
Location: Denmark
Status: Offline
Points: 132
Post Options Post Options   Thanks (0) Thanks(0)   Quote FreeMen Quote  Post ReplyReply Direct Link To This Post Posted: 06 October 2004 at 3:57am

This thing works like a charm...

But when I make an announcement in one section, I just want it to show there an not in alle the other sections!?

Can this be done!?

TomTom-User.dk
Running WWF SQL with more than 32.000 members...
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 06 October 2004 at 4:10am
There are two types of Announcements you need to sellect:-

Announcement (this forum)

and not:-

Announcement (all forums)
Back to Top
FreeMen View Drop Down
Groupie
Groupie


Joined: 19 November 2003
Location: Denmark
Status: Offline
Points: 132
Post Options Post Options   Thanks (0) Thanks(0)   Quote FreeMen Quote  Post ReplyReply Direct Link To This Post Posted: 06 October 2004 at 4:20am

I know, but I want to set All forums and then only get it to show in the 10 categories assignet to that section...

I have devided my database into 9 sections, where if you enter section A on my website you only see cat id 1-10, Section B = cat id 11-20 and so on...

So I want to make an announcement in all forums in Section A but not in section B...

Hope you get this!?

To do so I used StoredProcedures to devide...

TomTom-User.dk
Running WWF SQL with more than 32.000 members...
Back to Top
DiffToRegister View Drop Down
Newbie
Newbie


Joined: 29 March 2005
Location: Spain
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote DiffToRegister Quote  Post ReplyReply Direct Link To This Post Posted: 29 March 2005 at 12:23pm
Well thanks to all of the contributers, above.  I've got the forums filtered by category.  Using the same skin, though.
My version of WWF is 7.9, using MSAccess.
 
My process was:
1.  Add the new Categories to the Categories table.
1.5 Oh, and add forums to those Categories.
2.  Create a cookie in my own application saving the Category number that the user is going to use.  This will be our filter Response.Cookies("COG")("C") = "4", for example
3.  As mentioned many times above, changed Default.asp:
  • (Line 117?) Obtain filter

intCatShow = Request.Cookies("COG")("C")

  • (Line 133?) Apply SQL filter to Categories shown.

strSQL = "SELECT " & strDbTable & "Category.Cat_name, " & strDbTable & "Category.Cat_ID FROM " & strDbTable & "Category WHERE " & strDbTable & "Category.Cat_ID = " & intCatShow & " ORDER BY " & strDbTable & "Category.Cat_order ASC;"

4.  Oh, had to change the search function too!  See search_form.asp:

  • (Line 167?) Add to SQL Where clause our cookie category filter

strSQL = "SELECT " & strDbTable & "Forum.* FROM " & strDbTable & "Forum WHERE " & strDbTable & "Forum.Cat_ID = " & Request.Cookies("COG")("C") & " ORDER BY " & strDbTable & "Forum.Cat_ID ASC, " & strDbTable & "Forum.Forum_Order ASC;"

  • (Line 161?) Comment out HTML default "select all" option:

(Better not paste html in here)

  • I wreckon I've missed something...  Erm, later...
Well that's all folks!
 
ian_scho
Back to Top
fathom View Drop Down
Groupie
Groupie
Avatar

Joined: 06 October 2004
Location: South Africa
Status: Offline
Points: 58
Post Options Post Options   Thanks (0) Thanks(0)   Quote fathom Quote  Post ReplyReply Direct Link To This Post Posted: 29 November 2005 at 11:16am
Hi Maddog,

can you please send me an example of your default.asp file so I can see exactly where to edit the CAT=ID bit?
Back to Top
DiffToRegister View Drop Down
Newbie
Newbie


Joined: 29 March 2005
Location: Spain
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote DiffToRegister Quote  Post ReplyReply Direct Link To This Post Posted: 14 December 2005 at 5:11am
I told you I'd forgotten something:

4.  Change the search engine to filter by category.
  • In search_form.asp - following from the example above (Line 165?).
strSQL = "SELECT " & strDbTable & "Forum.* FROM " & strDbTable & "Forum WHERE " & strDbTable & "Forum.Cat_ID = " & Request.Cookies("COG")("C") & " ORDER BY " & strDbTable & "Forum.Cat_ID ASC, " & strDbTable & "Forum.Forum_Order ASC;"

5.  Change Active Topics to filter by category.
  • In active_topics.asp add the following (Line 286?), just in front of the ORDER BY clause:
strSQL = strSQL & " AND tblCategory.Cat_Id = " & Request.Cookies("COG")("C") & " "

ian_scho
Back to Top
 Post Reply Post Reply Page  <123>

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.