Metal Storm logo
How do the user tags work?



Posts: 9   Visited by: 71 users
07.03.2009 - 00:52
corrupt
With a lowercase c
I can't figure this out. I can link to a user profile by framing his nick with the [user] tag. But how exactly does it work? Users obviously have an id as a primary key and that is used to refer to their profile page, but obviously the username is parsed to find that number once the post is displayed. But what if a user changes his name? Will that break the reference or is there some database magic working that I'm unaware of?
----
Loading...
08.03.2009 - 15:01
GT
Coffee!!
I'm pretty sure the "magic" stops when a user changes his/her name
----


Dreams are made so we don't get bored when we sleep
Loading...
08.03.2009 - 15:22
corrupt
With a lowercase c
Written by GT on 08.03.2009 at 15:01

I'm pretty sure the "magic" stops when a user changes his/her name

Any way to reference users by id then? The obvious way to just insert an into a user tag doesn't work:


Reference by GT's id: 12648

Reference by GT's nick: GT
----
Loading...
08.03.2009 - 18:06
GT
Coffee!!
Written by corrupt on 08.03.2009 at 15:22

Written by GT on 08.03.2009 at 15:01

I'm pretty sure the "magic" stops when a user changes his/her name

Any way to reference users by id then? The obvious way to just insert an into a user tag doesn't work:


Reference by GT's id: GT

Reference by GT's nick: GT

The only way to do that is by using the [url ][/url]-tag: GT
----


Dreams are made so we don't get bored when we sleep
Loading...
08.03.2009 - 18:37
corrupt
With a lowercase c
Written by GT on 08.03.2009 at 18:06

Written by corrupt on 08.03.2009 at 15:22

Written by GT on 08.03.2009 at 15:01

I'm pretty sure the "magic" stops when a user changes his/her name

Any way to reference users by id then? The obvious way to just insert an into a user tag doesn't work:


Reference by GT's id: 12648

Reference by GT's nick: GT

The only way to do that is by using the [url ][/url]-tag: GT

Yeah, that's possible. I was wondering if there's a way to have the system replace the name with the current one. Static linking yields a static name. But OK then. If it's not possible, that's what I'll do.
----
Loading...
28.03.2009 - 16:32
Ivan
Retired Admin
Written by corrupt on 08.03.2009 at 15:22

Written by GT on 08.03.2009 at 15:01

I'm pretty sure the "magic" stops when a user changes his/her name

Any way to reference users by id then? The obvious way to just insert an into a user tag doesn't work:


Reference by GT's id: 12648

Reference by GT's nick: GT

Use [ user_id ]12648[ /user_id ].
Loading...
28.03.2009 - 17:32
corrupt
With a lowercase c
Written by Ivan on 28.03.2009 at 16:32

Written by corrupt on 08.03.2009 at 15:22

Written by GT on 08.03.2009 at 15:01

I'm pretty sure the "magic" stops when a user changes his/her name

Any way to reference users by id then? The obvious way to just insert an into a user tag doesn't work:


Reference by GT's id: 12648

Reference by GT's nick: GT

Use [ user_id ]12648[ /user_id ].

Nice, that's what I meant. Thanks.
----
Loading...
30.03.2009 - 15:54
GT
Coffee!!
Ah nice. Didn't know that code
----


Dreams are made so we don't get bored when we sleep
Loading...
01.03.2010 - 02:34
prem123

Yeah, I got that code and will use to user tag.
Loading...