View Full Version : Username Linked In Posts.
smooth-c
12-28-2008, 08:46 AM
Is it possible to create a mod where when a members username is typed, once posted the username will be linked to their profile?
This would be soo much easier than hyperlinking every time.
Marco van Herwaarden
12-28-2008, 08:50 AM
Possible yes. But how do you picture this? Just type the members name, or do you want to use a BB-code for it?
smooth-c
12-28-2008, 08:54 AM
Just when typed :)
Dismounted
12-28-2008, 08:55 AM
vB.org has a "BB Code Implementation" of this.
Dismounted
Dismounted
Marco van Herwaarden
12-28-2008, 09:00 AM
Just when typed would be a performence killer i think. It would need to split each post up by words, then check for each word if it is maybe a membername (1 query for each word in the post). And it would not work with membernames that contain spaces or such.
smooth-c
12-28-2008, 09:01 AM
Ah ok - didn't think of the performance aspect of this request. Where can I find the BB Code Implementation of this Dismounted?
Marco van Herwaarden
12-28-2008, 09:05 AM
You can use the standard buildin BB-Code "[ name]":
This:
"Hello smooth-c"
Will result in:
Hello smooth-c
Marco van Herwaarden
12-28-2008, 09:08 AM
Hmm actually this is not a default BB-code.
But you can easily create one with the following replacement text:
<a href="member.php?action=getinfo&username={param}">{param}</a>
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.