How to create a post

Discussion forum for Extension Writers regarding Extension Development.
Post Reply
drooid
Registered User
Posts: 81
Joined: Tue Mar 31, 2009 9:15 am

How to create a post

Post by drooid » Sun Sep 03, 2017 8:39 am

I try to create automated post adding function in my extension.
New post should have simply new topic and short message text, both based on two variables filled into separate template and also stored in separate table.
I've done my table creation, but I stucked at new post sreation.
Is it possible to call external funnction submit_post form /incluses/functions_posting.php? How should I implement this call in my controller/handle main function?

drooid
Registered User
Posts: 81
Joined: Tue Mar 31, 2009 9:15 am

Re: How to create a post

Post by drooid » Mon Sep 04, 2017 7:09 pm

I have another problem with parsing message.
How insert cr and lf in message? <br> is accepted and properly displayed, but its non visible (removed) in post edit mode.

User avatar
Ger
Registered User
Posts: 1151
Joined: Wed Jan 02, 2008 7:35 pm
Location: 192.168.1.100
Contact:

Re: How to create a post

Post by Ger » Fri Sep 08, 2017 7:33 am

Checkout my extensions: Simple CMS, Feed post bot, Modbreak, Magic OGP links and Live topic update

Like my work? Buy me a coffee to keep it coming. :ugeek:

Post Reply

Return to “Extension Writers Discussion”

Who is online

Users browsing this forum: No registered users and 8 guests

cron