Jump to content

unexpected T_FUNCTION


carnold

Recommended Posts

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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.