Rhuan Posted June 16, 2010 Share Posted June 16, 2010 File Name: (SOS31) Banned UsersFile Submitter: PatolinoFile Submitted: 16 Jun 2010File Updated: 17 Jun 2010File Category: Hooks and PluginsDescription Shows the amount of banned users on top of the forum. :thumbsup:Click here to download this file Link to comment
DawPi Posted June 17, 2010 Share Posted June 17, 2010 Additional query for each board reload? It isn't worth.. :P Edit: and session in link hook.xml: :o Link to comment
Amfidiusz-PL Posted June 17, 2010 Share Posted June 17, 2010 But the query is generated only when admin views a board index, isn't it? Link to comment
DawPi Posted June 17, 2010 Share Posted June 17, 2010 Admin or anyone from 'staff' - they often visit their board, right? :P Link to comment
Rhuan Posted June 17, 2010 Author Share Posted June 17, 2010 Still do not understand much about hooks, but taking one more query to not overload any forum... Just fixed, thanks for the info ;) Link to comment
Rymich13 Posted June 17, 2010 Share Posted June 17, 2010 I made a similar script to this. Eh. :P Link to comment
Adriano Faria Posted June 20, 2010 Share Posted June 20, 2010 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! :) Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.