News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

From script: post text+image in a new thread?

Started by Rick33, May 31, 2020, 12:03:16 PM

Previous topic - Next topic

Rick33

From a php script, how-to:
- start a new thread...
- ...post some text...
- ...and attach 1-3 jpg images?
- And, if it's possible, set the post date to an older date.

The user is admin.

SMF 2.0.17

(If the answer is right under my nose somewhere in this forum then you can call me ugly names :)

Rick33

update:

found a very old file (on my old hard drive),
that had been used to post text (not attachments).
It's using functions (like createPost()) in
SSI.php and Subs-Post.php

Maybe this is fixable without too much hassle, we'll see.

vbgamer45

Yes you can do with the createPost function. Attachments are possible as well.
I have some examples of that function my RSS Feed Poster mod.
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Advertisement: