[BBCODE] User (Profile) Tags

A perfect place for code snippets to small to be a MOD or a library.
Or for examples on how to use our libraries.
Post Reply
User avatar
bonelifer
Administrator
Administrator
Posts: 477
Joined: 24 Jun 2006, 17:48
Real name: William
Location: htpc.MythBuntu

[BBCODE] User (Profile) Tags

Post by bonelifer »

This post was originally posted by Kenny at 6 String MODs.

Requested by jackinthexbox in [url=http://www.phpbb.com/community/viewtopic.php?f=46&t=1511965]this topic[/url]. This simple little BBCode allows you to easily link to a users profile.

Please note that by default, profile pages are hidden from public view in phpBB 3. You can change this, but it's not recommended. Keep this in mind if you plan on linking to another site like phpBB.com


BBCode Usage:

Code: Select all

[phpbb]{SIMPLETEXT}[/phpbb]

HTML Replacement:

Code: Select all

<a href="memberlist.php?mode=viewprofile&amp;un={SIMPLETEXT}" class="postlink">{SIMPLETEXT}</a>

Change the URL to something like

Code: Select all

<a href="http://www.phpbb.com/community/memberlist.php?mode=viewprofile&amp;un={SIMPLETEXT}" class="postlink">{SIMPLETEXT}</a>

If you want to link to a phpBB.com profile. All you need to do is specify the username :)
Post Reply