carnold Posted July 8, 2008 Share Posted July 8, 2008 Hello all! I am trying to code something on my blog, a friends-list. I have the function and have inserted the following code where i want the friends-list to appear: <h2><?php _e('My Friends'); ?></h2> <?php if(function_exists('list_friends') { list_friends($FriendsOfUser, $tagBeginWrap, $tagEndWrap, $bLinkToBlog = True, $ShowPic = true, $pmLink = false, $lilist = false, $picsize = '16', $showname = true) }?> but this gives me a white screen. The error in my apache log is this: PHP Parse error: syntax error, unexpected T_FUNCTION in /srv/www/htdocs/sites/MTwG/wp-content/themes/LivingOS_DELTA/sidebar1.php on line 104 and this: PHP Parse error: syntax error, unexpected '{' in /srv/www/htdocs/sites/MTwG/wp-content/themes/LivingOS_DELTA/sidebar1.php on line 105 From the research i have done, this appears to be a syntax error, a semicolon on bracket not closed. I have tried a number of different combo's and still can not get this to work. Can someone help me with this? Link to comment https://forums.phpfreaks.com/topic/113825-unexpected-t_function/ Share on other sites More sharing options...
lemmin Posted July 8, 2008 Share Posted July 8, 2008 You are missing a close parentheses on the if line, just add one at the end. You should also put a semi-colon at the end of the list_friends function call. Link to comment https://forums.phpfreaks.com/topic/113825-unexpected-t_function/#findComment-584910 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.