Does enabling extensions add significant load?
Posted: 05 June 2006 04:25 PM   [ Ignore ]  
Lab Assistant
Avatar
RankRank
Total Posts:  118
Joined  12-29-2004

Sorry if this sounds dumb, but I’m wondering if there’s much overhead by “enabling extensions” - meaning is it adding another query to each page load for ee in every instance of every hook, etc?

Also, as I’m so intent on using ee for a site I’m crazy enough to try to <strike>hack</strike> extend the member profile display, does it make sense to people here who have probably done a lot more customizing of ee than I have to hack in your own extension hook if there is none where you need to hack and at least keep your hacks quarantined to an extension, albeit an “unofficial” one?

Again, I’m just diving into extensions so sorry if these questions are silly…

 Signature 

imagehat studio
the forum user formerly known as lavalamp

Profile
 
 
Posted: 07 June 2006 03:16 PM   [ Ignore ]   [ # 1 ]  
Administrator
Avatar
RankRankRankRankRankRankRank
Total Posts:  15826
Joined  06-03-2002

An extension only adds as much page load as the extension’s code adds.  There are no additional queries unless the extension uses them, and this is only a bad thing if unwise use of the database is made, which is really no different than doing things poorly in a template (i.e. nesting querys / entry tags).

Re: hacking in extension hooks - I have not only done this, but I advocate it thoroughly over “vanilla” hacks.  Even then, though, it should be a last resort maneuver.  There are few things that you cannot work around with creative development that do not require hacks.  Have you posted to the Design and Customization forum with what are needing to accomplish?  If you cannot find a solution that doesn’t involve hacking, it’s possible that someone else might.

 Signature 
Profile
MSG
 
 
Posted: 08 June 2006 11:46 AM   [ Ignore ]   [ # 2 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  118
Joined  12-29-2004

Thanks Derek, and for the tip on your site as well, I guess I wan’t crazy then thinking about adding my own hooks after all. And think I might post in the design/customization forum, but I’m basically wanting to show different profile fields and settings menus for different member groups which I’ve figured out with a member settings extension, not to mention show the member templates inside regular ee templates or embed regular ee templates into the member theme (which I know isn’t possible).

Thanks!

 Signature 

imagehat studio
the forum user formerly known as lavalamp

Profile
 
 
Posted: 08 June 2006 12:13 PM   [ Ignore ]   [ # 3 ]  
Administrator
Avatar
RankRankRankRankRankRankRank
Total Posts:  15826
Joined  06-03-2002

Most of that you could probably do with PHP in a template, or by writing a plugin / module, which would leave your backend unhacked.

 Signature 
Profile
MSG
 
 
   
 
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 1149, on July 16, 2007 09:33 AM
Total Registered Members: 64905 Total Logged-in Users: 57
Total Topics: 81838 Total Anonymous Users: 33
Total Replies: 440016 Total Guests: 252
Total Posts: 521854    
Members ( View Memberlist )