Support Forum

if function_exists is returning false

RI rickandersonaia
rickandersonaia
Member

So, the plugin is installed and functioning properly.  In a function I’m using in my WordPress theme I am trying to call the logged in user’s avatar.  The function below returns “whoops” –

if(function_exists('sp_UserAvatar')){
 sp_UserAvatar('tagClass=spImg spLeft');
 }else{
 echo 'whoops';
 }

do I need to include any API files before using this function?

3 Answers

New Answer

YS Yellow Swordfish
Yellow Swordfish
Member

Start by making a call to:

sp_forum_api_support();

which may be all you need. Let me know if that works for you.