• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Add Account Wrapper to Conversations 1.0.1

No permission to download
Adds the My Account wrapper (sidebar) to Conversations pages

Chris D

XenForo developer
Staff member
#1
Chris Deeming submitted a new resource:

Add Account Wrapper to Conversations (version 1.0.0) - Adds the My Account wrapper (sidebar) to Conversations pages

This add-on was originally requested here: http://xenforo.com/community/threads/account-settings-sidebar-in-conversations.47483/

The code is inspired by Jake Bunce's directions here:
http://xenforo.com/community/threads/account-settings-sidebar-in-conversations.47427/#post-509358

I have expanded Jake's code to add the Account sidebar to the conversation list, conversation view and conversation add screens:

...
Read more about this resource...
 

Morgain

Well-known member
#2
Wondering about compatibility with Syndol's Conversation essentials as his addon replaces several Conversation templates.
 

DRE

Well-known member
#4
Thanks! I knew I was going to have problems though. My sidebar is on the left so it looks weird as hell.

So basically I just need to remove my Conversation sidebar? That sucks.

I'm going to try to put conversation sidebar info above the wrapper or something.

Screen Shot 2013-03-29 at 10.36.26 PM.png
 

Steve F

Well-known member
#7
Looks great except in conversation_view with a fixed width style. Can you possibly add a option to remove it from that view, or I can use CSS but not my first choice.
 

DRE

Well-known member
#9
Code:
.conversation_view .accountSideBar
{
    display: none !important;
}
This is nice but it sucks cause I still want the account wrapper. I should've said, how do I disable the sidebar in conversation_view

I'm guessing I go in conversation_view template and remove the sidebar there, but that's not a good idea. I'm gonna see if I can add it to the wrapper somehow.
 

DRE

Well-known member
#16
Okay I got it working the way I want now, I just am not able to do it on my site because I don't have write permissions. Can you check my account please?

I copied the whole account_wrapper template and put it inside the conversation_view template.

Then in library/ConversationsWrapper/ControllerPublic/Conversation.php

Removed

Code:
    public function actionView()
    {
        $parent = parent::actionView();
        
        return $this->_getWrapper(
            'conversations', 'view',
            $parent
        );        
        
        return $parent;
    }
worked3.jpg
 

DRE

Well-known member
#17
Alright I got it looking the way I want after removing
Code:
    <div class="accountContent section sectionMain">
        <xen:hook name="account_wrapper_content">{xen:raw $_subView}</xen:hook>
    </div>
from my account_wrapper edit inside conversation_view then removed the if can start convo permission from the account_wrapper edit as well.

Looks like this now:

improved convo.jpg
 

DRE

Well-known member
#18
This ended up breaking my conversations so I'm just gonna put manual template edits instead. Thanks anyway!

8thos
Server Error

Undefined index: conversations
  1. XenForo_Application::handlePhpError() in ConvEss/ControllerPublic/Conversation.php at line 23
  2. ConvEss_ControllerPublic_Conversation->actionIndex() in XenForo/FrontController.php at line 310
  3. XenForo_FrontController->dispatch() in XenForo/FrontController.php at line 132
  4. XenForo_FrontController->run() in /home/user/public_html/index.php at line 13
 

Chris D

XenForo developer
Staff member
#19
That error is thrown by Conversations Essentials.

My add-on doesn't even call the "conversations" index.

You should report this to Syndol, there's nothing there for me to fix.
 

FredC

Well-known member
#20
this plugin seems to break the fluidness of the text area when enabled.. This puts the right sidebar over the content on smaller resolution screens. At least those are the reports im getting from members