Hi,

I am reading the code, and find the following:

function advanced_profile_preprocess_author_pane(&$variables) {
  if (!empty($variables['caller']) && $variables['caller'] == 'advanced_profile') {
    // If we are calling the Author Pane, use our template.
    $variables['template_files'][] = 'advanced_profile_author-pane';
  }
}

It looks to me, that the advanced_profile will use the customized author-pane template, however, when I set:

function advanced_profile_preprocess_author_pane(&$variables) {
  if (!empty($variables['caller']) && $variables['caller'] == 'advanced_profile') {
    // If we are calling the Author Pane, use our template.

$variables['show_template_location'] = true;

    $variables['template_files'][] = 'advanced_profile_author-pane';
  }
}

And browse the user page, the output shows that, the template file got invoked is author-pane.tpl.php, which is provided by author_pane module, and obviously not the one advanced profile module meant to use.

Any one know how to fix this?

Hang

Comments

michelle’s picture

Category: bug » support
Status: Active » Postponed (maintainer needs more info)

Did you copy the APK version to your theme? This is working just fine for me on both the APK dev site and my own site.

Michelle

Shreshtha’s picture

I too am facing the same issue. As for the earlier suggestion I have copied the advanced_profile_author-pane.tpl.php to the currently used theme folder. Rest all feature are working. Do let me know if you need any other information from my side.
Info: Server is wamp, site is installed locally.
With result from $variables['show_template_location'] = true;
C:\wamp\www\...\sites\all\modules\author_pane\author-pane.tpl.php
Theme currently being used is "framework" on its bare-bone feature at the moment.

And in addition thanks for this wonderful module and accompanying support.

abaddon’s picture

i think i solved this, can anyone double check?
so advanced_profile_author-pane.tpl.php is not used unless you also copy author-pane.tpl.php to your theme folder, you dont need to modify it in any way, just copy it there and clear cache.. i think its like for eg page-something.tpl.php where you also need to have page.tpl.php for the other custom overrides to be checked for existance

michelle’s picture

Good try but that's not it. Works just fine for me with only copying over the APK version.

Michelle

michelle’s picture

Status: Postponed (maintainer needs more info) » Closed (works as designed)

Old issue that I can't repro. Nothing more to add.

Michelle