Results 1 to 1 of 1

Thread: Mod for anyone using php < 5.3

  1. #1
    dimitris's Avatar
    Join Date
    Oct 2011
    Location
    Earth
    Posts
    20,617
    Thanks
    222
    Thanked 1,873 Times in 1,770 Posts

    Mod for anyone using php < 5.3

    Halo!

    If you really need to keep your old php version you can hack the plugin directly to make it work without giving this error

    PHP Code:
    Parse errorsyntax errorunexpected T_FUNCTION in /home/www/web179/html/my_ebike/wp-content/plugins/shortys-classipress/includes/admin/admin.php on line 99 
    Steps:

    1.download the plugin from your dashboard.
    2.unzip it
    3.you should have a folder 'shortys-classipress' in your hard drive.
    4.open the folder and go to 'shortys-classipress/includes/admin/admin.php'
    5.open the file and add this code

    Code:
    	function line_break() {
      return '<hr/>';
      }
    above this code

    Code:
    function page_content() {
    
    
    		echo html( 'em', __( 'Use the shortcode builder to quickly generate customized ad listings. The shortcode is generated instantly. When you\'re finished copy & paste it to your custom page.', CP_SHC_TD ) );
    7.thats 50% of the mod.

    8.replace every instance of this code

    Code:
    'render'=> function() { return '<hr/>'; },
    with this code

    Code:
    'render'=> array( $this, 'line_break' ),
    9.save
    9.5.make sure you changed the exact code, we recommend using the 'find/replace' function of your editor.
    10.zip your modded plugin making it a 'zip' file

    11.upload and enjoy!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)