vForums Support > System Improvements :: Suggestions :: > [user] tags in H/F

[user] tags in H/F - Posted By Marc (cr0w) on 3rd Feb 08 at 12:23am
Hey Ross, would it be possible to get something similar to [user] tags to work inside the headers/footers? The reason I ask is that this way, if I'm making a server-side code, I only need to store the username; not the display name as well. Just saves a bit of bandwidth, and that way old database entries don't have to be updated on the coder's end when the user changes their display name. {Wink}

Re: [user] tags in H/F - Posted By Michael (wrighty) on 31st May 08 at 1:29pm
or perhaps a predefined function that would return an array of the info?

Such as:

vf.user('admin');

returns: ['admin','Ross','group0']

{Smile}

Re: [user] tags in H/F - Posted By Marc (cr0w) on 1st Jun 08 at 2:09am
 
or perhaps a predefined function that would return an array of the info?

Such as:

vf.user('admin');

returns: ['admin','Ross','group0']

{Smile}



Ohh, that does sound quite hawt. {Shocked}

Re: [user] tags in H/F - Posted By Ross (admin) on 1st Jun 08 at 9:41pm
I like the sound of that {Smile}

Re: [user] tags in H/F - Posted By Darkmage™ (darkmage) on 1st Jun 08 at 11:34pm
What would a non coder have use for it? will you be able to use if to like:

Admin:[user]admin[ /user]
Mod:[user]User_name[ /user]
and so on.

it be allot easier then:
Code:
 
  1. [url=http://forum_name.vforums.co.uk/action/view_profile/user/user_name/]User Name[/url]
  2.  
 


Darkmage

Re: [user] tags in H/F - Posted By Michael (wrighty) on 1st Jun 08 at 11:35pm
well a non-coder probably wouldn't benefit from this, unless they requested a code.

It would mean that in indexes etc... just the username would have to be stored nad then displayname can constantly update! {Smile}

Re: [user] tags in H/F - Posted By Darkmage™ (darkmage) on 1st Jun 08 at 11:38pm
Oh I see. I like my idea better {Grin} {Cheesy}

Re: [user] tags in H/F - Posted By Michael (wrighty) on 1st Jun 08 at 11:38pm
I don't get what you're use would be wanting! {Unsure} because that already exists! {Unsure}

Re: [user] tags in H/F - Posted By Darkmage™ (darkmage) on 1st Jun 08 at 11:42pm
for the headers and footers not threads, I understand in threads Darkmage™ its something like this

Admin - <user>darkmage</user> so that Darkmage would show up as a link, its much shorter and easier to remember then:
<url=http://forum_name.vforums.co.uk/action/view_profile/user/user_name/>User Name</url>

Re: [user] tags in H/F - Posted By Michael (wrighty) on 1st Jun 08 at 11:44pm
Well with what we've decided on above, a coder could release a code that'll do that.

So I could write a code where you just do:

<script>
var u = 'admin';
document.write(thelink);
</script>

Which would output the exact link you made. But with the way outlined above, it's more useful instead of the way you wanted it done! {Smile}

Re: [user] tags in H/F - Posted By Darkmage™ (darkmage) on 1st Jun 08 at 11:50pm
Oh I see. alright.

what it will be used for is this

Image

and in order to achieve that I would need to put in:
<url=http://forum_name.vforums.co.uk/action/view_profile/user/user_name/>User Name</url>

which is like 3-4 maby even more lines of it.

which gets cluttered at times.

Re: [user] tags in H/F - Posted By Michael (wrighty) on 1st Jun 08 at 11:51pm
Not to mention the fact that it also doesn't update when they change their display names. No, this will definitely help you with that! {Smile}

Re: [user] tags in H/F - Posted By Darkmage™ (darkmage) on 1st Jun 08 at 11:52pm
Unless its JS or Flash {Tongue Out} right?

Re: [user] tags in H/F - Posted By Darkmage™ (darkmage) on 23rd Oct 08 at 8:36pm
I sure hope this does get implemented because the code that Wrighty made ##username## Would work perfectly for this as well.

Like:
the PM center that I am sorta having trouble with at the moment.

Hey ##username## (if guest) please login or register.

Hey ##username## (if member) You have no new private messages.