Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Snitz Forums 2000 MOD-Group
 MOD Add-On Forum (W/O Code)
 Tweak To Calendar
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

JJenson
Advanced Member

USA
2121 Posts

Posted - 23 January 2008 :  10:49:38  Show Profile  Visit JJenson's Homepage  Reply with Quote
I was wondering if anyone had done this.

Basically I want to hide the forum I am using for the calendar from view on default.asp but would like all the contents to still be vieable in the calendar.

Anyone done this before?

Thanks
Jeff<

muzishun
Senior Member

United States
1079 Posts

Posted - 23 January 2008 :  10:53:25  Show Profile  Visit muzishun's Homepage  Reply with Quote
So basically, you don't want people to be able to view the forum via forum.asp and default.asp, but still be able to access the individual topics through the calendar itself?

I'd think you would just need a check in forum.asp and default.asp to not display the forum if it's a certain FORUM_ID. Probably wouldn't be too much to add.<

Bill Parrott
Senior Web Programmer, University of Kansas
Co-Owner and Code Monkey, Eternal Second Designs (www.eternalsecond.com)
Personal Website (www.chimericdream.com)
Go to Top of Page

JJenson
Advanced Member

USA
2121 Posts

Posted - 23 January 2008 :  11:10:46  Show Profile  Visit JJenson's Homepage  Reply with Quote
hmm ok i will take a look thanks<
Go to Top of Page

Lon
Starting Member

USA
47 Posts

Posted - 23 January 2008 :  23:03:12  Show Profile  Reply with Quote
Somebody helped me with this same issue in the past, this is what I did in the default.asp. I'm sure I'd need an "end if", but I cannot remember where I put it. That should get you in the right direction.

Place this:
if ChkDisplayForum(ForumPrivateForums,ForumFPasswordNew,ForumID,MemberID) and ForumSubject <> "Events Calendar" then

Just before this line:
if ForumFType <> "1" then<
Go to Top of Page

JJenson
Advanced Member

USA
2121 Posts

Posted - 24 January 2008 :  11:20:21  Show Profile  Visit JJenson's Homepage  Reply with Quote
I will try that when I get home tonight.

Thanks<
Go to Top of Page

JJenson
Advanced Member

USA
2121 Posts

Posted - 09 February 2008 :  14:06:55  Show Profile  Visit JJenson's Homepage  Reply with Quote
quote:
Originally posted by Lon

Somebody helped me with this same issue in the past, this is what I did in the default.asp. I'm sure I'd need an "end if", but I cannot remember where I put it. That should get you in the right direction.

Place this:
if ChkDisplayForum(ForumPrivateForums,ForumFPasswordNew,ForumID,MemberID) and ForumSubject <> "Events Calendar" then

Just before this line:
if ForumFType <> "1" then



OK I tried this and nothing has changed.

REMOVED BAD CODE SEE RIGHT CODE BELOW

Do I need to edit any of the properties of the forum category to get it to not display to everyone?<

Edited by - JJenson on 09 February 2008 14:29:57
Go to Top of Page

JJenson
Advanced Member

USA
2121 Posts

Posted - 09 February 2008 :  14:28:56  Show Profile  Visit JJenson's Homepage  Reply with Quote
Nevermind I got it

replace this:

if ChkDisplayForum(ForumPrivateForums,ForumFPasswordNew,ForumID,MemberID) then


with this:

if ChkDisplayForum(ForumPrivateForums,ForumFPasswordNew,ForumID,MemberID) and ForumSubject <> "Events" then
<

Edited by - JJenson on 09 February 2008 14:29:11
Go to Top of Page

muzishun
Senior Member

United States
1079 Posts

Posted - 09 February 2008 :  20:57:35  Show Profile  Visit muzishun's Homepage  Reply with Quote
I would probably refrain from using the ForumSubject and use the ForumID instead. That way it'll be a bit more scalable. If or when you edit the subject line of the forum (for whatever reason), you won't have to worry about changing your code to reflect the new subject.<

Bill Parrott
Senior Web Programmer, University of Kansas
Co-Owner and Code Monkey, Eternal Second Designs (www.eternalsecond.com)
Personal Website (www.chimericdream.com)
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.1 seconds. Powered By: Snitz Forums 2000 Version 3.4.07