Hi all ,
i do experience a problem with my forum if i use :
<?php if ( $bb_current_user->ID ) : ?>
<li><h2 class="vcard">Profile</h2></li>
<li>
<?php profile_menu(); ?>
</li>
<?php endif; ?>
instead of :
<?php if ( is_bb_profile() ) : ?>
<li><h2 class="vcard">Profile</h2></li>
<li>
<?php profile_menu(); ?>
</li>
<?php endif; ?>
I wanted only that it displays the avaible profile menu for the connected user if no other profile is viewed , but it doesnt work and returns this error message :
Warning: Invalid argument supplied for foreach() in /home/httpd/bouazza/bouazza.franceserv.com/sbouazza/forums/bb-includes/template-functions.php on line 59
Can someone help me ?
Thanks and merry christmas !
Bouazza .