Simple Machines Community Forum

SMF Support => SMF 1.1.x Support => Aiheen aloitti: BowtomePhil - kesäkuu 01, 2011, 04:23:17 AP

Otsikko: Can I start a topic from within my PHP script
Kirjoitti: BowtomePhil - kesäkuu 01, 2011, 04:23:17 AP
Sorry if it is answered, I did search and found nowt.

I just want to start a new topic from within a PHP script.

I guess it is possible?
Otsikko: Re: Can I start a topic from within my PHP script
Kirjoitti: IchBin™ - kesäkuu 01, 2011, 05:27:58 IP
Assuming you mean outside of SMF in a PHP script? You could probably include SSI.php and then call some functions from there. I haven't looked into it, but I would assume you could use createPost() (http://support.simplemachines.org/function_db/index.php?action=view_function;id=323) and get the job done.
Otsikko: Re: Can I start a topic from within my PHP script
Kirjoitti: BowtomePhil - kesäkuu 03, 2011, 11:37:37 AP
That looks good thanks, just now need to work out where to put it :)
Otsikko: Re: Can I start a topic from within my PHP script
Kirjoitti: Aleksi "Lex" Kilpinen - kesäkuu 27, 2011, 02:35:24 AP
Hi, did you get this figured out or do you still need assistance with this? :)