Jump to content

Download: (SOS31) Banned Users


Rhuan

Recommended Posts

Posted

Still do not understand much about hooks, but taking one more query to not overload any forum...


Just fixed, thanks for the info ;)
Posted

Additional query for each board reload? It isn't worth..


Did you forget this http://www.codersref...-dp30-my-files/ ?

	public function getOutput()

	{


		/* Downloads app is installed and member logged? */


		if( IPSLib::appIsInstalled( 'downloads' ) && $this->memberData['member_id'] )

		{

			$memberFiles = $this->DB->buildAndFetch( array( 'select' => 'COUNT(file_submitter) as has_files', 'from' => 'downloads_files', 'where' => 'file_submitter = ' . $this->memberData['member_id'] ));

		}


		/* Return data */


		return ( $memberFiles['has_files'] ) ? $this->registry->output->getTemplate( 'global' )->hookdp30MyFiles() : '';

	}


It seems the same for me: additional query in every page.

Everyone has a start!

:)

Archived

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

  • Recently Browsing   0 members

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