Jump to content

oEmbed for topics


Spanner

Recommended Posts

Quick fix:

forum/applications/forums/sources/Topic/Topic.php

find and replace

/**
	 * Get content for embed
	 *
	 * @param	array	$params	Additional parameters to add to URL
	 * @return	string
	 */
	public function embedContent( $params )
	{
        $url = $this->url();

        if( isset( $params[ 'page' ] ) )
        {
            $url = $url->setPage( 'page', $params[ 'page' ] );
            unset( $params[ 'page' ] );
        }

		\IPS\Output::i()->cssFiles = array_merge( \IPS\Output::i()->cssFiles, \IPS\Theme::i()->css( 'embed.css', 'forums', 'front' ) );
		return \IPS\Theme::i()->getTemplate( 'global', 'forums' )->embedTopic( $this, $url->setQueryString( $params ) );
	}

 

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...