PDA

View Full Version : Conditional New Post template for specific forum


Christian96
05-04-2018, 02:44 PM
I have a forum thread where users can upload files. I need to change the toolbar for the Create New Topic toolbar for post id = XXX. As a first step, I'm trying to use the conditional statement:

<vb:if condition="$forum[forumid] == XXX"><p>I am from User App Submission</p></vb:if>

To get content to show when posting "New Topic" for this thread only, but it doesn't show up anywhere. What is the correct method for showing different toolbars on "New Topic" UI for specific threads? I also need to eliminate the standard text box and include text inputs for "Title", "Description", "thumbnail" etc - is this possible?

delicjous
05-05-2018, 04:12 PM
At first, where did you enter this? Did you hook it into a template?

Did not check it, but try $forum['nodeid'].

It is not possible to fill the content with the use of html about a template. You need to use jQuery or javaScript.