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)
 Events Mod Question
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

grbicking
Starting Member

8 Posts

Posted - 13 October 2002 :  23:12:41  Show Profile  Visit grbicking's Homepage  Send grbicking an AOL message
I was wondering how I can have anyone add an event, but when they add it only have a choice to add it to my "Events" category.

As it is now, only the admin can add an event and it shows all forums can hold the event.

Thanks

red1
Junior Member

355 Posts

Posted - 14 October 2002 :  00:37:11  Show Profile
To allow all members to post events, open cal_constants.asp and change line 12.


I have not added anything yet to limit the forums that can hold events. However, you can do this: First remove the "New Event" links in forum.asp and topic.asp, then open cal_functions.asp and look for
sub AddEventForm
Replace that entire thing with this:

'#######################################################
sub AddEventForm(dateToAdd)                          '##
'#######################################################
if dateToAdd="" then 
	dateToAdd=DateValue(strForumTimeAdjust)
else
	dateToAdd=CDate(dateToAdd)
end if

if mlev >= intAllowedtoPostEvent then
	Response.Write	"<form name=""FORUM_ID"" method=""get"" action=""post.asp"">" & vbnewline & _
			"	<INPUT type=""hidden"" name=""event"" value=""1"">" & vbnewline & _
			"	<INPUT type=""hidden"" name=""method"" value=""Topic"">" & vbnewline & _
			"	<INPUT type=""hidden"" name=""date"" value=""" & dateToAdd & """>" & vbnewline & _
			"	<FONT face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """ color=""" & strForumFontColor & """>" & strCalAddEvent & vbnewline & _
			"	<SELECT name=""forum_id"">" & vbnewline & _
			"		<option value=""Forum_ID"">Forum_Title</option>" & vbNewline & _
			"	</SELECT></FONT>" & vbnewline & _
			"<INPUT type=""submit"" value=""" & strCalGo & """></FORM>"
end if
End sub '### AddEventForm ###


Replace Forum_ID with the number corresponding to your events forum, and Forum_Title with the title of the forum. You can repeat that line for every forum that you want to add events to.

It's not completely foolproof, but it should be enough for your purposes.

Maybe in the future I will finally make an admin page so that all these settings are done automatically.

My Mods:
New Events Calendar
New Non-database Active Users

Edited by - red1 on 14 October 2002 00:39:12
Go to Top of Page

grbicking
Starting Member

8 Posts

Posted - 14 October 2002 :  13:59:16  Show Profile  Visit grbicking's Homepage  Send grbicking an AOL message
Thanks, I actually modified the sql string to get the id needed.

Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.26 seconds. Powered By: Snitz Forums 2000 Version 3.4.07