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

 All Forums
 Community Forums
 Code Support: ASP (Non-Forum Related)
 ASP - New Forum & New Topic via HTTP Post
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

StrikeFriday
Starting Member

3 Posts

Posted - 04 January 2008 :  13:36:53  Show Profile
Hi,

Just installed Snitz and have an ASP question (I know this forum is for for non-Snitz ASP questions...but I felt this was most appropriate place for my question...sorry if it belongs elsewhere).

I would like to create a new Forum for each new registered user at our site (when I say Forum, I am referring to a Forum within a Category). I would like to do this dynamically, maybe by sending an HTTP Post to post.asp from my registration page.

I would also like to create new topics dynamically at various times by, I suppose, using HTTP Posts also.

I could populate the forum tables in the database instead of HTTP Posting, but I'm afraid that by circumventing the Snitz code that I could corrupt the entire Snitz application.

Any ideas on how I can accomplish this would be greatly appreciated.

Thanks,
Kevin

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 04 January 2008 :  14:23:54  Show Profile  Visit HuwR's Homepage
you should be safe writing the new forum record directly to the db, it shouldn't cause any problems or affect anything else.

as for creating topics dynamically could you explain a little more.
Go to Top of Page

StrikeFriday
Starting Member

3 Posts

Posted - 04 January 2008 :  14:43:42  Show Profile
quote:
you should be safe writing the new forum record directly to the db, it shouldn't cause any problems or affect anything else.

When doing it this way, would I just need to populate the forum_forum table and the following fields:
FORUM_ID
F_SUBJECT
F_DESCRIPTION

Would that be sufficient?

quote:
as for creating topics dynamically could you explain a little more.

I will try to keep this short, because it certainly has potential to get long
When a registered user on my site performs a certain action, I would like for there to be a new topic created on the fly so that forum users could comment on this action.

I suppose that I could write this directly to the database as well, but I don't know how all the tables and fields within the tables relate or exactly which fields would have to be populated to keep Snitz operating.

Thanks for your help, HuwR.
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 04 January 2008 :  15:11:21  Show Profile  Visit HuwR's Homepage
to create a forum you should only need to populate
CAT_ID
F_SUBJECT
F_DESCRIPTION

the other fields should get default values, I'm not sure about topics off hand, will have to check
Go to Top of Page

StrikeFriday
Starting Member

3 Posts

Posted - 04 January 2008 :  16:44:08  Show Profile
quote:
to create a forum you should only need to populate
CAT_ID
F_SUBJECT
F_DESCRIPTION


Works perfectly...now to figure out how to properly create a new topic automatically.

Edited by - StrikeFriday on 04 January 2008 16:46:05
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 04 January 2008 :  18:01:57  Show Profile  Visit HuwR's Homepage
well, you could start with the following
CAT_ID
FORUM_ID
T_SUBJECT
T_MESSAGE
T_AUTHOR (someones member_id)
T_DATE (a string representing the date there are forum functions you can use to poulate this, DateToStr() probably in inc_func_common

You will then need to update the topic count for the forum, I think there may be a function that does that too,don't rememberoff hand
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.29 seconds. Powered By: Snitz Forums 2000 Version 3.4.07