Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Change Order of Post Type
gabessdsp
New
I have a plugin installed that let's users mark their post as a question instead of a discussion. My forum is mostly for discussion though so I would like the default selected option to be "discussion" instead of "question". Is there any way to do this?
0
Comments
Well, is the plugin you're using called Q&A? (Staff Members, if you are wondering @gabessdsp's Vanilla Version, it's 2.0.18.8)
Yes, sorry if I am consistently lacking details in my forum posts, I will aim at improving my posting quality.
Well, New Discussion should be the default option, not the question. The "New Question" choice only appears when you click on the arrow (as I know of)
This is how it appears when I click "new discussion"
Wait.. You're using Vanilla 2.0.18.8? Oh.. I didn't test it on 2.0.18.8. I tested it on 2.1 Beta 2. I don't know then
So no idea if I could even go into code somewhere and change that around? What about sidebar things? I would like to re-arrange some of the widgets in my sidebar.
What theme do you use?
I use the default theme, at least until I finish making my own theme.(will probably be a while)
Dynamic sidebar modules can be sorted using a configuration option.
http://vanillaforums.org/discussion/24995/tutorial-how-to-change-the-order-of-modules-and-menu-items
Search first
Check out the Documentation! We are always looking for new content and pull requests.
Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.
i posted the answer to how to change the order and set other defaults quite some time ago. search and ye shall find.
Vanilla Wiki, Tastes Great! 31,000 viewers can't be wrong. || Plugin Development Explained
to be clear, im referring to the order and default of the qna tabs, not the order of the modules.
Vanilla Wiki, Tastes Great! 31,000 viewers can't be wrong. || Plugin Development Explained
Well I posted because I couldn't find in search, mind linking?
Thanks!
I'll see if I can modify the plugin
one must master the art of the keyword. "qna discussion default" 3rd result take you here.
http://vanillaforums.org/discussion/18012/simple-tweak-to-default-to-start-a-discussion
Vanilla Wiki, Tastes Great! 31,000 viewers can't be wrong. || Plugin Development Explained
Except I tried following your solution on there, but there is nothing on line 395 for me. And if I search for the code you said to change it sends me to line 412 which is the line of code you said we shouldn't edit
line numbers may not match up, look for the syntax statements, and use the line numbers to give you a ball park idea of where you should be.
Vanilla Wiki, Tastes Great! 31,000 viewers can't be wrong. || Plugin Development Explained
Like I said though, if I copy the line you said to replace, and I Search for it in the document the only one is on line 412, which you specifically said in that forum to not change
so you dont find any lines that say
$Form->SetValue('Type', 'Question');
?
Vanilla Wiki, Tastes Great! 31,000 viewers can't be wrong. || Plugin Development Explained
I give up, this is going in circles.
Thank you though, I figured it out.