News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Getting the url of a thread created with createPost()

Started by bobdole2281, June 08, 2013, 02:36:35 AM

Previous topic - Next topic

bobdole2281

I just created a thread with the function createPost()

It works great, but now I need to save the url to the freshly created topic to a variable. Does anyone know how to approach this?

Kays

Once the topic is created, $topicOptions['id'] will be set to the id for the new topic. So the url will be:

$scripturl . '?topic=' . $topicOptions['id'] . '.0'

If at first you don't succeed, use a bigger hammer. If that fails, read the manual.
My Mods

Advertisement: