Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Try Vanilla Forums Cloud product

Ready to contribute?

Amazing! Sign our contributors' agreement and then join us on GitHub.

Vanilla 2.3 fully supports PHP 7. Get it now!
Please upgrade to 2.3 here. The 2.2 and earlier branches are no longer being updated.

How to change order of side panel objects?

ntuyelikntuyelik New
edited March 2011 in Vanilla 2.0 - 2.2
Is there any way to change order of side panel objects?

Comments

  • lucluc ✭✭
    In the configuration, change those to whatever you need.
    $Configuration['Modules']['Garden']['Panel'] = array('UserPhotoModule', 'UserInfoModule', 'GuestModule', 'Ads');
    $Configuration['Modules']['Vanilla']['Panel'] = array('NewDiscussionModule', 'SignedInModule', 'GuestModule', 'Ads');
    $Configuration['Modules']['Conversations']['Panel'] = array('NewConversationModule', 'SignedInModule', 'GuestModule', 'Ads');
  • ntuyelikntuyelik New
    edited March 2011
    Thank you @luc...
    Where can I find a full list of all modules?
    For example I would like to put Whos Online box on top etc...
  • AnonymooseAnonymoose ✭✭
    edited January 2013

    Here's how to get the Ask a Question to go in the right order after the Start a New Discussion button.

    $Configuration['Plugins']['QnA']['UseBigButtons'] = TRUE;

    $Configuration['Modules']['Vanilla']['Panel'] = array('NewDiscussionModule', 'NewQuestionModule', 'SignedInModule', 'GuestModule', 'Ads');

    UnderDog
  • AnonymooseAnonymoose ✭✭
    edited January 2013

    @ntuyelik said:
    For example I would like to put Whos Online box on top etc...

    Put 'WhosOnlineModule', at the start of your Modules array.

    Like this:

    $Configuration['Modules']['Vanilla']['Panel'] = array('WhosOnlineModule', 'NewDiscussionModule', 'NewQuestionModule', 'SignedInModule', 'GuestModule', 'Ads');

    UnderDogxVal
  • Jumping in on an old thread, but wondering how to configure the side panel DiscussionFilter to show only the "My Discussions" count and no other links?

    The default Panel array is (from config-default.php)
    $Configuration['Modules']['Vanilla']['Panel'] = array('MeModule', 'UserBoxModule', 'GuestModule', 'NewDiscussionModule', 'DiscussionFilterModule', 'SignedInModule', 'Ads');

    I'm not sure how that correlates to the side panel box, which currently shows links for:
    Categories
    Latest Discussions
    Activity
    My Discussions

    But no matter what changes I make to that array, the side panel box doesn't change what it's showing. I just want to show a link for "My Discussions" and not the others.

    I'm using Vanilla 2.3

  • R_JR_J Cheerleader & Troubleshooter Munich Moderator

    You should really begin new discussions instead of using old ones which in fact aren't really dealing with your exact problem.

    What you are speaking about is the DiscussionFilter. You can move it around, but changing its contents is a complete different topic.

    You could hide the other links with CSS. Look at the html source code, find out the class names of the entries you do not want to see, get the CSSEdit plugin and google what the css command display: none would do.

  • Another option for this question which is very versatile is to create a file custom.js under the /js folder and use the insertBefore or insertAfter jQuery.

    eg.
    `(function($) {
    jQuery(document).ready(function() {

    jQuery('div.YourDiv').insertBefore('div.SomeDiv');

    })
    })(jQuery);
    `

Sign In or Register to comment.