Jump to content


Photo
- - - - -

Member ID BBCODE [Member=ID]


  • Please log in to reply
5 replies to this topic

#1 rAv3nzZ

rAv3nzZ

    Member

  • Members
  • PipPip
  • 13 posts
  • IP.Board Version:3.2

Posted 26 July 2012 - 04:16 PM

So i want to know how it can be possible to make work this bbcode:
[Member=rAv3nzZ] - [Member=Username]
With id? So it would be
[Member=1] - [Member=ID]
So it will show it like
[Member=Username]
-> rAv3nzZ

#2 rAv3nzZ

rAv3nzZ

    Member

  • Members
  • PipPip
  • 13 posts
  • IP.Board Version:3.2

Posted 26 July 2012 - 06:33 PM

Maybe bump?

#3 Michael

Michael

    Administrator

  • Management
  • 3,456 posts
  • Location:Columbus, OH
  • IP.Board Version:3.4
Contributor

Posted 27 July 2012 - 08:11 AM

This may or may not work (it probably won't), this is untested. Open the /admin/sources/classes/bbcode/custom/default.php file. Find:

$existing[ $_option ] = IPSMember::load( $_option, 'core', 'displayname' );

Change to:

$existing[ $_option ] = is_numeric( $_option ) ? IPSMember::load( $_option, 'core', 'id' ) : IPSMember::load( $_option, 'core', 'displayname' );

Save and upload.

Oh, and you don't need to bump a topic 2 hours after you opened it.
My Stuff: My Forum · My Resources · My Tutorials
Contact Me: Email · Facebook · Twitter · Google+
Follow Invision Focus: On Facebook · On Twitter

#4 Adriano

Adriano

    Advanced Member

  • Resource Authors
  • PipPipPipPipPip
  • 925 posts
  • Location:Brazil
  • IP.Board Version:3.2
Contributor

Posted 27 July 2012 - 09:43 AM

Yeap, it works perfectly nice.

To avoid that file edit, I put this together in a hook:

Attached File  bbcodeMemberID.xml   5.58K   6 downloads

#5 Michael

Michael

    Administrator

  • Management
  • 3,456 posts
  • Location:Columbus, OH
  • IP.Board Version:3.4
Contributor

Posted 27 July 2012 - 12:13 PM

There'll be issues with this people have numeric names, though.
My Stuff: My Forum · My Resources · My Tutorials
Contact Me: Email · Facebook · Twitter · Google+
Follow Invision Focus: On Facebook · On Twitter

#6 Adriano

Adriano

    Advanced Member

  • Resource Authors
  • PipPipPipPipPip
  • 925 posts
  • Location:Brazil
  • IP.Board Version:3.2
Contributor

Posted 27 July 2012 - 12:14 PM

True.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users