That _phptemplate_callback function was supposedly used to call a template file called &quot;user_profile.tpl.php&quot; in your theme directory, and pass it the 2 variables $account and $fields.<br>As of Drupal 6, this is default behaviour. You should check the file user-profile.tpl.php in /modules/user/ to see the default implementation in Drupal 6. If you would want to customize the user profile template, you could just copy this user-profile.tpl.php file into your themes directory and modify it to suit your needs. <br>
<br>Of course we don&#39;t know what logic is currently in your user_profile.tpl.php (D5) file, but you will probably have to change all the references to $account and $fields, and replace them with the values that come from the 2 default variables in the D6 template file: $user_profile and $profile.<br>
<br>Sven<br><br><div class="gmail_quote">2009/6/12 Neil Coghlan <span dir="ltr">&lt;<a href="mailto:neil@esl-lounge.com">neil@esl-lounge.com</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">






<div bgcolor="#ffffff">
<div><font face="Arial" size="2">I&#39;ve decided to bite the bullet on this and give it 
a go myself.</font></div>
<div><font face="Arial" size="2"></font> </div>
<div><font face="Arial" size="2">I installed D6 and then uploaded the customised 
theme with an info file with the customised regions listed.</font></div>
<div><font face="Arial" size="2"></font> </div>
<div><font face="Arial" size="2">I followed the advice here: <a href="http://wtanaka.com/drupal/convert-theme-6" target="_blank">http://wtanaka.com/drupal/convert-theme-6</a></font></div>
<div><font face="Arial" size="2"></font> </div>
<div><font face="Arial" size="2">and renamed some of the variables throughout the 
theme. I&#39;m currently stuck at number 5 on that page as I have the following in 
my custom theme&#39;s template.php</font></div>
<div><font face="Arial" size="2"></font> </div>
<div><font face="Arial" size="2">/**<br>* Catch the theme_profile_profile function, 
and redirect through the template api<br>*/<br>function 
phptemplate_user_profile($user, $fields = array()) {<br>  // Pass to 
phptemplate, including translating the parameters to an associative array. The 
element names are the names that the variables<br>  // will be assigned 
within your template.<br>  /* potential need for other code to extract 
field info */<br>return _phptemplate_callback(&#39;user_profile&#39;, array(&#39;account&#39; 
=&gt; $user, &#39;fields&#39; =&gt; $fields));<br>  }</font></div>
<div><font face="Arial" size="2"></font> </div>
<div><font face="Arial" size="2">When I try to go to user/1 on my new D6 site, I get 
this:</font></div>
<div><font face="Arial" size="2"></font> </div>
<div><font><b>Fatal error</b>: Call to undefined function 
_phptemplate_callback() in <b>/d6/sites/all/themes/xxx/template.php</b> on line 
<b>115</b></font></div>
<div><font face="Arial" size="2"></font> </div>
<div><font face="Arial" size="2">and I presume it&#39;s something to do with this. The 
above page says to get rid of phptemplate_callback () but not what to replace it 
with. </font></div>
<div><font face="Arial" size="2"></font> </div>
<div><font face="Arial" size="2">I would appreciate any help with this. I think I&#39;m 
about 70% of the way towards a 6.x theme and this would be another big 
step.</font></div>
<div><font face="Arial" size="2"></font> </div>
<div><font face="Arial" size="2">Thanks</font></div>
<div><font face="Arial" size="2"></font> </div><font color="#888888">
<div><font face="Arial" size="2">Neil</font></div></font></div>
<br>--<br>
[ Drupal support list | <a href="http://lists.drupal.org/" target="_blank">http://lists.drupal.org/</a> ]<br></blockquote></div><br>