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)
 Interacting with Snitz Forum via ASP Code
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

bobhayes
Starting Member

1 Posts

Posted - 28 February 2005 :  21:14:25  Show Profile  Visit bobhayes's Homepage
I have a website (www.bloggernews.net) that uses ASP and I also have a Snitz forum as an adjunct to the site. When people make posts to my site (it's a news aggregator), I want to programatically create a new thread on the forum without the user having to do it manually, and generate a link to that new forum thread. (So that at the bottom of every page of my site, there will be a link that says "go discuss this topic at [link to forum thread]".)

Is there a way to do this programatically?

I've searched for this topic but didn't find anything; please forgive me if this is old news. Any help will be grovelingly appreciated.

DarkDrift
Junior Member

USA
126 Posts

Posted - 07 March 2005 :  16:59:03  Show Profile  Visit DarkDrift's Homepage  Send DarkDrift an AOL message
Quite simple i assume you have a UserName Login system:

here is an idea of what you need to do


strsql = "INSERT INTO " & strTablePrefix & "TOPICS (CAT_ID,FORUM_ID,T_STATUS,T_MAIL,T_SUBJECT,T_MESSAGE,T_AUTHOR,T_REPLIES,T_VIEW_COUNT,T_LAST_POST,T_DATE,T_LAST_POSTER,T_IP,T_LAST_POST_AUTHOR,T_LAST_POST_REPLY_ID,T_ARCHIVE_FLAG,T_STICKY,T_SIG) VALUES (" & _
"'1<< Category ID'," & _
"'1<< Form ID'," & _
"'1<< Sticky or not'," & _
"'0<< mail or not'," & _
"'" & Request.Form("subject") & "'," & _
"'" & Request.Form("message") & "'," & _
"'1<<MEMBER_ID of Person'," & _
"'0'," & _
"'0'," & _
"'0'," & _
"'20050303184111'" & _
"'20050303184111'" & _
"'1<<MEMBER_ID of Person'," & _
"'" & Request.ServerVariables("remote_addr") & "'," & _
"'1'," & _
"'0'," & _
"'0'," & _
"'0'," & _
"'0')"

my_conn.execute(strsql)

If you are NOT in the same database as Snitz is you will need to create another connection string in that page and call it something other than anything already used like my_conn11

make sure you take out my little comments marked by << in the statement

http://www.xcalliber.com - The Future of Boards

Edited by - DarkDrift on 07 March 2005 17:00:19
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