I'm replacing the My Profile stuff with Advanced Search. Having Community Builder, the profilebox thingy is a bit redundant so I had to erase it. Now, I'd love to add a Advanced Search option on one of the tabs. At first I though that replacing this:
Code:
if ($my_id != 0)
{
$header .= ' <li ';
if ($func == 'myprofile' ) $header .= ' class="Kunena_item_active" ';
$header .=' >'.CKunenaLink::GetMyProfileLink($fbConfig, $my_id, '<span>'.(array_key_exists('profile', $fbIcons) ? '<img src="' . KUNENA_URLICONSPATH . $fbIcons['profile'] . '" border="0" alt="' . _GEN_MYPROFILE . '" title="' . _GEN_MYPROFILE . '"/>' : _GEN_MYPROFILE).'</span>');
$header .= '</li>';
}
With this:
Code:
if ($my_id != 0)
{
$header .= ' <li ';
if ($func == 'search' ) $header .= ' class="Kunena_item_active" ';
$header .=' >'.CKunenaLink::GetSearchLink('<span>'.(array_key_exists('search', $fbIcons) ? '<img src="' . KUNENA_URLICONSPATH . $fbIcons['search'] . '" border="0" alt="' . _KUNENA_SEARCH_ADVSEARCH . '" title="' . _KUNENA_SEARCH_ADVSEARCH . '"/>' : _KUNENA_SEARCH_ADVSEARCH).'</span>');
$header .= '</li>';
}
Would change it to Advanced Search, but it only displays the following errors:
Warning: Missing argument 2 for CKunenaLink::GetSearchLink(), called in /home/dik45n/public_html/components/com_kunena/template/tdi/fb_layout.php on line 212 and defined in /home/dik45n/public_html/components/com_kunena/lib/kunena.link.class.php on line 294
Warning: Missing argument 3 for CKunenaLink::GetSearchLink(), called in /home/dik45n/public_html/components/com_kunena/template/tdi/fb_layout.php on line 212 and defined in /home/dik45n/public_html/components/com_kunena/lib/kunena.link.class.php on line 294
Warning: Missing argument 4 for CKunenaLink::GetSearchLink(), called in /home/dik45n/public_html/components/com_kunena/template/tdi/fb_layout.php on line 212 and defined in /home/dik45n/public_html/components/com_kunena/lib/kunena.link.class.php on line 294
Warning: Missing argument 5 for CKunenaLink::GetSearchLink(), called in /home/dik45n/public_html/components/com_kunena/template/tdi/fb_layout.php on line 212 and defined in /home/dik45n/public_html/components/com_kunena/lib/kunena.link.class.php on line 294
Warning: Missing argument 6 for CKunenaLink::GetSearchLink(), called in /home/dik45n/public_html/components/com_kunena/template/tdi/fb_layout.php on line 212 and defined in /home/dik45n/public_html/components/com_kunena/lib/kunena.link.class.php on line 294
Maybe it's creating a conflict with the other search function?
Any help is appreciated, and thanks in advance! =]