Jump to content
DevFuse Forums
  • Sign in to follow this  

    Legacy redirect

    • Fixed IP.Board Version: IP.Board 4.2.x

    Need to setup some legacy redirects.

    Manual Patch

    Open applications/collections/Application.php


    	 * [Node] Get Icon for tree
    	 * @note	Return the class for the icon (e.g. 'globe')
    	 * @return	string|null
    	protected function get__icon()
    		return 'database';

    Add BELOW:

         * Perform some legacy URL parameter conversions
         * @return	void
        public function convertLegacyParameters()
            /* Redirect to profile tab now */
            if ( isset( \IPS\Request::i()->do ) AND \IPS\Request::i()->do == 'item_list' AND isset( \IPS\Request::i()->search_field ) AND \IPS\Request::i()->search_field == 'member_id' AND isset( \IPS\Request::i()->search_term ) )
                $member = \IPS\Member::load( \IPS\Request::i()->search_term );
                if( $member->member_id )
                    \IPS\Output::i()->redirect( $member->url()->setQueryString( array( 'tab' => 'node_collections_Collections' ) ) );


    Sign in to follow this  

    User Feedback

    Recommended Comments

    Join the conversation

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

    Add a comment...

    ×   Pasted as rich text.   Paste as plain text instead

      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.

  • Status Definitions

    Pending = We are still working on this report.

    Fixed = The issue has been fixed and the resolution will be available in the next version.

    Closed = Feedback or opinion better posted on our forum for discussion. Also for reports we cannot reproduce or need more information. In this case just add a comment and we will review it again.


  • Create New...