Need help with a small php edit

Discussion in 'PHP' started by lukey372, Dec 15, 2011.

  1. #1
    So I have been trying to add a google +1 button from a wordpress plugin and I am getting errors when adding in the php part of the script I have gotten:

    <?php
    if(function_exists('wp_socializer'){
    echo wp_socializer('plusone-button', array(Settings));
    }
    ?>

    Could anyone point me in the right direction / edit the code for me :)?

    Regards

    Luke
     
    Solved! View solution.
    lukey372, Dec 15, 2011 IP
  2. dujmovicv

    dujmovicv Member

    Messages:
    62
    Likes Received:
    2
    Best Answers:
    4
    Trophy Points:
    48
    #2
    What exactly error message do you get?
     
    dujmovicv, Dec 15, 2011 IP
  3. #3
    change this line :
    
    if(function_exists('wp_socializer'){
    
    PHP:
    to this :
    
    if(function_exists('wp_socializer')){
    
    PHP:
    You missed one closing bracket....
     
    dujmovicv, Dec 16, 2011 IP
  4. blackemerald

    blackemerald Member

    Messages:
    86
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    41
    #4
    yup, you are missed one closing bracket.
    If it still error, just read parameter from those function.
     
    blackemerald, Dec 16, 2011 IP