Arantor

  • As powerful as possible, as complex as necessary.
  • Posts: 14,278
Not supplying profile links if no permission
« 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.
When we unite against a common enemy that attacks our ethos, it nurtures group solidarity. Trolls are sensational, yes, but we keep everyone honest. | Game Memorial

Nao

  • Dadman with a boy
  • Posts: 16,082
Re: Not supplying profile links if no permission
« Reply #1, 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 ;)

Arantor

  • As powerful as possible, as complex as necessary.
  • Posts: 14,278
Re: Not supplying profile links if no permission
« Reply #2, 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...