Closed (works as designed)
Project:
Advanced Profile Kit
Version:
6.x-1.0
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
28 Nov 2010 at 05:19 UTC
Updated:
24 Apr 2011 at 16:59 UTC
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
Comment #1
michelleDid 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
Comment #2
Shreshtha commentedI 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.
Comment #3
abaddon commentedi 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
Comment #4
michelleGood try but that's not it. Works just fine for me with only copying over the APK version.
Michelle
Comment #5
michelleOld issue that I can't repro. Nothing more to add.
Michelle