I get the following error:
Fatal error: Call to undefined function: clangroups() in /home/mod/public_html/Sources/Profile.php on line 311
and line 310/311 is:
// Call the appropriate subaction function.
$_REQUEST['sa']($memID);
and what i added above was (Line: 230/231):
$context['profile_areas']['edit_profile']['areas']['forumProfile'] = '<a href="' . $scripturl . '?action=profile;u=' . $memID . ';sa=forumProfile">' . $txt['forumProfile'] . '</a>';
$context['profile_areas']['edit_profile']['areas']['clangroups'] = '<a href="' . $scripturl . '?action=profile;u=' . $memID . ';sa=clangroups">' . $txt['clangroups'] . '</a>';
any idea's?
As it says, there isn't a function called clangroups.
where is clangroups() located? And is that file being included?
Well, i'm trying to make another page in the profile section. Like the extra info about the MSN and AIM links and stuff. But this is just info about a clan. But I think I messed something up. I just made another function template_clangroups() in the profile.template.php.
There needs to be a corresponding function in Profile.php
Can you tell me how?
The template doesn't know what to display unless your function called clangroups tells it what to display.
but shouldn't it read the profile.template.php file for that info?
Source functions do not belong in the template files.
Go look at my ignore boards mod for an example of how to add another page to the profile.
ok thanks. I'll look at it tomorrow. I have enough toime for 6 hours of sleep before school. Thanks for the help! (I'll look back here tomorrow)