Notifications
Clear all

wpForo 1.x.x [Solved] How to add a topic automatically?

3 Posts
2 Users
0 Reactions
602 Views
Posts: 35
Topic starter
(@tahtu)
Member
Joined: 4 years ago

I would like to forward a user directly to adding a topic inside a specific forum.

My idea to realize this: Createing a link to /community/?addtopic=Forum

Than I add JavaScript code to the forum (I already done this), which analyzes the url and detect the forum name.

Now my JavaScript code should click to the [Add Topic] button and select the forum from the shown drop down box.

Where can I find the java script code, you are using doing this? I would like to understand it and overtake to my script.

2 Replies
Alvina
Posts: 1867
Moderator
(@alvina)
Member
Joined: 5 years ago

Hi @tahtu,

Please follow the Sofy's answer in this support topic: https://wpforo.com/community/how-to-and-troubleshooting-2/is-there-any-way-to-add-new-posts-to-the-forum-programatically/#post-32888

1 Reply
(@tahtu)
Joined: 4 years ago

Member
Posts: 35

@alvina

Ah, this is great to know! Thanks a lot for this feature.