Link to Profile
#1
If you would like to link to a user's profile, then add the following code.

<a href="http://synthd.com/member.php?action=profile&uid={$mybb->user['uid']}">{$mybb->user['username']}</a>.

For the welcome block something like this would be used.

Welcome back, <a href="http://synthd.com/member.php?action=profile&uid={$mybb->user['uid']}">{$mybb->user['username']}.
Reply
#2
Moved and Approved
Best regards,
Michael Malin


MyBB Communnity on Twitter: Follow @mybbcommunity for interesting and informative threads in the Community Forum.
...more...
Reply
#3
(2011-01-13, 08:47 PM)dK JaSon Wrote: Welcome back, <a href="http://synthd.com/member.php?action=profile&uid={$mybb->user['uid']}">{$mybb->user['username']}.

It should be like Welcome back, <a href="http://synthd.com/member.php?action=profile&uid={$mybb->user['uid']}">{$mybb->user['username']}</a>.
Big Grin
Reply
#4
(2011-02-15, 07:28 AM)digital.medics Wrote:
(2011-01-13, 08:47 PM)dK JaSon Wrote: Welcome back, <a href="http://synthd.com/member.php?action=profile&uid={$mybb->user['uid']}">{$mybb->user['username']}.

It should be like Welcome back, <a href="http://synthd.com/member.php?action=profile&uid={$mybb->user['uid']}">{$mybb->user['username']}</a>.
Big Grin

I noticed that after I posted it. Sorry! Smile
Reply
#5
(2011-01-13, 08:47 PM)dK JaSon Wrote: If you would like to link to a user's profile, then add the following code.

<a href="http://synthd.com/member.php?action=profile&uid={$mybb->user['uid']}">{$mybb->user['username']}</a>.

For the welcome block something like this would be used.

Welcome back, <a href="http://synthd.com/member.php?action=profile&uid={$mybb->user['uid']}">{$mybb->user['username']}.

It's better using
$profile = $mybb->settings['bburl'].'/'.build_profile_link($mybb->user['uid']);
<a href="{$profile}">{$mybb->user['username']}</a>.
Reply
#6
Huh

Guys, do you mean editing in the global.lang file?

Quote:$l['welcome_back'] = "<strong>Welcome back, {1}</strong>. You last visited: {2}";

Because by going to the header_welcomeblock_member template, the code there, {$lang->welcome_back}, is what is written in the lang file.

I´m confused where to edit.

Edited: My board is multilanguage.
Reply
#7
Wait, it's redirecting to synthd.
Hi!
Reply
#8
(2011-03-09, 11:49 PM)zZJoennZz Wrote: Wait, it's redirecting to synthd.

Because you need to change it to your url or "/" lol.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)