Tau Empire Codex 2013 | Army Builder Program
Dark Angels Codex 2013
Chaos Daemons Codex 2013
Chaos Space Marines Codex 2012

Warhammer 40k Forum Tau Online

 

Warhammer 40K Forum

[uid] BB code
Reply
Old 10 Mar 2009, 22:20   #1 (permalink)
Shas'La
 
Join Date: Aug 2008
Location: Illinois
Posts: 266
Default [uid] BB code

EDIT: changed the suggestion line because it seems you're now parsing the command and it was screwing up the post.
Suggestion: Add a "uid" bbcode into the forums.

The way that I am most familiar with the "uid" bbcode is that it would take
Code:
[uid=8909]
and turn it into (essentially)
Code:
John Locke
resulting in the final user post showing:
Quote:
John Locke
Server side
The text of the hyperlink is derived from the "name" attribute of the profile of user 8909.
The hyperlink destination is the user's profile page itself.
User side
To create the "uid" tag the posting user would just need to mouse-over the username of the person they are quoting or referring to (probably from a previous post in a thread) and look at the end of the url. The trailing digits in the url are the "user id" or "uid".
The benefit of this is that when you say someone's name in a forum post, instead of saying "John Locke" of example, you would use the "uid" bbcode to refer to them so if the user ever changed their forum name (which is easy, and some people do it often,) your post would reflect their name change and it wouldn't seem like you were referring to someone who doesn't exist.

I know it has limited use, but it's a relatively easy code to implement if your forum code base doesn't already include it, and when it does its job right it saves old posts from becoming confusing because they are referencing old user names. There are two downsides I know of with this code, one is if the forum database reuses old user ids then referencing a number could reference a newly recycled user account, but I'd only be speculating if this was or wasn't the case. The other case is that each post containing a "uid" bbcode would require another access of the database to look up the target user information and return their name.
Xanzar is offline   Reply With Quote
Old 16 Mar 2009, 07:25   #2 (permalink)
Shas'O
 
Join Date: Apr 2004
Location: Retired back into the depths of the Internets.
Posts: 6,440
Send a message via MSN to mace
Default Re: [uid] BB code

Well, it could be useful, but it depends on the forum code. I haven't looked into how it's done but I would assume it's fairly efficient, as it needs to look up the names for a particular user id anyway for the 'sidebar' information on each post. I would think that it looks up the post content first, keeps a list of user id's, then looks all these up in one go, then uses these two bits of information to create the page. If that is the case, then it shouldn't be that hard to parse uid tags within posts and add the user id to the list of id's that need to be looked up.

But yeah, it just depends on the order of operations which are done by SMF. So it's up to FT.
__________________
mace is offline   Reply With Quote
Old 16 Mar 2009, 20:34   #3 (permalink)
Ethereal
 
Join Date: Apr 2004
Location: United Kingdom
Posts: 16,024
Default Re: [uid] BB code

It would certainly have it's uses. I'll look into it certainly .
FTyross is offline   Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Appearing code. greatmaju Tau Online Comments/Suggestions 8 05 Mar 2010 22:05
Code 43. WTF? Jeff Computers, Science and Technology 3 05 Mar 2010 11:55
Anyone here know anything about Code Analysis? RonanB1011 Computers, Science and Technology 15 29 May 2009 18:16
How so you put the code thingy... -Unforgiven- Computers, Science and Technology 7 30 Nov 2004 09:42