Author Topic: Pretty Profile URLs-- without a mod and actually in SMF already!  (Read 1216 times)

0 Members and 1 Guest are viewing this topic.

Offline ccbtimewiz

  • Dreamer
  • Guru
  • *
  • Posts: 1304
  • Karma: 2100
  • Gender: Male
  • $info->close();
    • Dream Portal
  • SMF Version: SMF 2.0 RC4
I actually -just- found this in SMF and it isn't even used.. it's pretty awesome and you won't really need to configure Apache at all!

In Profile.php (in SMF 2.0), there is this:

:
if (isset($_REQUEST['user']))
$memberResult = loadMemberData($_REQUEST['user'], true, 'profile');

This means, you can request profile ids by name by adding a 'user' parameter. Try it out:

http://smfhelper.info/forum/index.php?action=profile;user=bigguy
http://smfhelper.info/forum/index.php?action=profile;user=ccbtimewiz

Pretty cool, imo. I'll make a quick mod so all links will be like this by default. Just thought I'd share it before hand though. ;)

Offline tyty1234

  • V.I.P.
  • *
  • Posts: 823
  • Karma: 1109
  • Gender: Male
    • tytyweb
  • SMF Version: 2.0.2
Re: Pretty Profile URLs-- without a mod and actually in SMF already!
« Reply #1 on: May 22, 2009, 12:15:33 PM »
This is pretty cool. It would also be cool if it was for 1.1.x too. :grin

Offline AST3R1X

  • V.I.P.
  • *
  • Posts: 1210
  • Karma: 1002
  • Gender: Male
    • Demon Pixels
  • SMF Version: SMF 2.0 Gold
Re: Pretty Profile URLs-- without a mod and actually in SMF already!
« Reply #2 on: May 22, 2009, 12:54:34 PM »
Nice find ccb  :)

Offline Cholo

  • Global Moderator
  • *
  • Posts: 1737
  • Karma: 681
  • Gender: Male
    • The Tarheel Forum
Re: Pretty Profile URLs-- without a mod and actually in SMF already!
« Reply #3 on: May 22, 2009, 11:24:32 PM »
cool, nice find

Offline tyty1234

  • V.I.P.
  • *
  • Posts: 823
  • Karma: 1109
  • Gender: Male
    • tytyweb
  • SMF Version: 2.0.2

Offline ccbtimewiz

  • Dreamer
  • Guru
  • *
  • Posts: 1304
  • Karma: 2100
  • Gender: Male
  • $info->close();
    • Dream Portal
  • SMF Version: SMF 2.0 RC4
Re: Pretty Profile URLs-- without a mod and actually in SMF already!
« Reply #5 on: May 23, 2009, 01:16:27 PM »
Ahahahaha. That's pretty interesting.