Hi
I tried customizing the User Profile page and part of it worked. But now I have seconds thoughts on the customization so when I try to backout the change I run into this error
Fatal error: Call to undefined function _phptemplate_callback() in /home/prudentc/public_html/community/sites/all/themes/mysite/template.php on line 187
Here is what I did
Step1 . Added the following function to my template.php
function phptemplate_user_profile($account, $fields = array()) {
// Pass to phptemplate, including translating the parameters to an associative array. The element names are the names that the variables
// will be assigned within your template.
/* potential need for other code to extract field info */
return _phptemplate_callback('user_profile', array('account' => $account, 'fields' => $fields));
}
Step2. Added the user-profile.tpl.php in the theme's root folder.
<?php if($account->picture): ?>
<div class="picture">
<img src="/<?php print $account->picture ?>">
</div>
<?php endif; ?>
<div class="custom_profiles">
<div class="fields">Name: <?php print check_plain($account->profile_first_name); ?> <?php print check_plain($account->profile_last_name); ?></div>
<div class="fields">Mom/Dad: <?php print check_plain($account->profile_momordad) ;?></div>
</div>
Later when I decided not to go forward with the customization, I did the following
Step3: Deleted the function from template.php
Step4: Deleted the user-profile.tpl.php file from the theme's root folder.
Any light you can throw on why I keep getting that message would be appreciated. Is there any table that I need to update/delete a record?