[pmwiki-users] FoxForum - Auto create forum thread name

Hans design5 at softflow.co.uk
Sun Jun 22 17:05:18 CDT 2008

Sunday, June 22, 2008, 9:08:21 AM, stevecrisp at gmail.com wrote:

> Is there a way to auto populate the new Topic name used within the
> Forum.CreateNewTopic form?  For example can it be configured to
> automatically fill in the Topic name on the CreateNewTopic page with a
> parameter that I'll pass in (either variable or URL parameter) e.g.
> ?n=Forum.CreateNewTopic&topic=MyTopic

I just remembered an alternative which does not use a foxedit link
and form, but passes on a url parameter into the form, all without
modifications to the fox.php script:

Install http://www.pmwiki.org/wiki/Cookbook/HttpVariables
then use as your action link

* [[Forum.CreateNewTopic?base={*$Group}-{*$Name}|Discuss]]

and use {?base} as variable in your CreateNewTopic form, i.e.

(:input hidden topic '{$?base}':) instead of the 'topic' text field.

Or just as value in that field:

(:input text topic '{$?base}' size=70:)

The topic box is populated if the form is called from the Discuss
link. If it is called form the Forum index page, then it is empty.


More information about the pmwiki-users mailing list