Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
0 votes
1.8k views
in Plugins by

Both plugins override the function q_list_and_form($q_list) (see layer.php) as follows:

https://github.com/svivian/q2a-user-activity-plus/

    function q_list_and_form($q_list)
    {
        qa_html_theme_base::q_list_and_form($q_list);
        $handle_raw = $this->user_handle();

        // output activity links under recent activity
        if ( $this->template === 'user' )
        {
            $this->output(
                '<div class="qa-useract-page-links">',
                qa_lang_html('useractivity/more_activity') . ':',
                '    <a href="' . qa_path('user-activity/questions/'.$handle_raw) . '">' . qa_lang_html('useractivity/all_questions') . '</a>',
                '    &bull; ',
                '    <a href="' . qa_path('user-activity/answers/'.$handle_raw) . '">' . qa_lang_html('useractivity/all_answers') . '</a>',
                '</div>'
            );
        }
    }
 

https://github.com/NoahY/q2a-history

    function q_list_and_form($q_list)
    {
        if($this->template == 'user' && qa_opt('user_act_list_active') && qa_opt('user_act_list_replace'))
            return;
            
        qa_html_theme_base::q_list_and_form($q_list);
    }
 

q2a executes plugins by alphabetically order!

Having user-activity executed first and then history plugin, overrides the function above, and the useractivity/more_activity lines will not be printed.

Any chance to prevent this?

by
Doesn't the history plugin have the list of user activity? Because Noah forked the history plugin from my user activity plugin, I thought he just took that and added some stuff to it.

Please log in or register to answer this question.

...