Public area => The Pub => Features => Topic started by: Arantor on November 1st, 2011, 09:47 AM
Title: Not supplying profile links if no permission
Post by: Arantor on November 1st, 2011, 09:47 AM
This is something I've thought about more than once, and went far enough as to implement a helper function in SimpleDesk for it.
If you can't see other user profiles (e.g. you're a guest), why show the link? It'd save bandwidth, because it's not adding the variety of links per page, plus it means search engines aren't given links to your user's profiles - which means they don't try access them, which saves you a fairly surprising amount of server load.
The downside is *doing it*. Gut instinct tells me it should done after the member group colour replace operation so that we don't have to stick conditional logic throughout the templates.
Title: Re: Not supplying profile links if no permission
Post by: Nao on November 1st, 2011, 10:12 AM
Errrrrrrrrrrr.......
I believe I wrote that into Wedge months ago ;)
Look into ob_sessrewrite, there's a preg replace on profile links. One less thing to do ;)
Title: Re: Not supplying profile links if no permission
Post by: Arantor on November 1st, 2011, 10:32 AM
PHPSESSID breaks it. (And in some cases it breaks your recolouring test too)
Posted: November 1st, 2011, 10:24 AM
But at least it's something I can remove from WedgeDesk now...