Author |
Topic |
|
StrikeFriday
Starting Member
3 Posts |
Posted - 04 January 2008 : 13:36:53
|
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
|
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. |
|
|
StrikeFriday
Starting Member
3 Posts |
Posted - 04 January 2008 : 14:43:42
|
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. |
|
|
HuwR
Forum Admin
United Kingdom
20584 Posts |
Posted - 04 January 2008 : 15:11:21
|
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 |
|
|
StrikeFriday
Starting Member
3 Posts |
Posted - 04 January 2008 : 16:44:08
|
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 |
|
|
HuwR
Forum Admin
United Kingdom
20584 Posts |
Posted - 04 January 2008 : 18:01:57
|
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 |
|
|
|
Topic |
|