Viewing 1 replies (of 1 total)
  • Hello guys,
    I was making some changes on my function.php file but suddenly last line was removed and not i am getting an error “Parse error: syntax error, unexpected ‘?> ‘ in /home/civude/public_html/wp-content/themes/smallbiz/functions.php on line 1444”

    Please tell me how do i close my function.php file?
    here is last few lines from my php file.

    // update frontpage — don’t include this with the others to avoid confusion with non-smallbiz
    // page_on_front.
    if(isset($_POST[‘smallbiz_page_on_front’])){
    update_option(‘smallbiz_page_on_front’, stripcslashes($_POST[‘smallbiz_page_on_front’]));
    }

    // Update photo

    if($_POST[‘banner’] == “” && $_FILES[‘new_banner’][‘tmp_name’] != “”){
    // No longer remove old files.
    //unlink(dirname(__FILE__).’/images/banners/’.get_option(‘smallbiz_banner’));
    $newFileName = str_replace(” “, “_”, $_FILES[‘new_banner’][‘name’]);
    @move_uploaded_file($_FILES[‘new_banner’][‘tmp_name’], dirname(__FILE__). ‘/images/banners/’. $newFileName);

    update_option(‘smallbiz_banner’, $newFileName);

    } else if($_POST[‘banner’] != get_option(‘smallbiz_banner’)){
    update_option(‘smallbiz_banner’, stripcslashes($_POST[‘banner’]));
    }

    if($_FILES[‘page_image’][‘tmp_name’] != “”){

    unlink(dirname(__FILE__).’/images/’.get_option(‘smallbiz_page

Viewing 1 replies (of 1 total)

The topic ‘Help code to allow user to add there logo’ is closed to new replies.