Happily, this one is compatible with vBulletin 3.5 to 3.9…

What it does is simple… when you use the tag [user] to identify a certain member of the site, its real username with markup will appear. you can even use the option to change its name with this technique:

[ user]1[ /user] will generate the link like this: [user]1[/user]
you can do the same with the username…[ user]nexia[/user ]

and if you want to have a custom text for the link, here we go:

[ user=1]the master of this domain[ /user] will give [user=1]the master of this domain[/user] …

the funny part is that the link will always be generated with the username markup… that’s the goal of this addon…

when you edit a post in wysiwyg, the tag is not parsed, so you can edit it.

here’s a screenshot « in case » the bbcode is deactivated:

nex_bbcode_musername.jpg

note: on wed. august 19th 2009, due to [user]Taragon[/user]’s shrewdness, a bug was discovered, and corrected, when you were using a comma in a username… file updated

Réponses

  1. xOBKx

    For that bit of « polish » to this modification, you could probably add the [user] tag to the misc.php?do=bbcode listing using these variables as make-do hooks, I think..
    $template[bbcodelinks]
    $template[bbcodebits]

    I went ahead and edited the templates manually to have it added under « Post Linking », but I know how you like these automated things.. 😉
    http://www.gamingvoice.co.uk/forums/misc.php?do=bbcode

  2. Jean-Pierre Auteur du sujet

    see, i knew i was missing something…

    i’ll see if we can add to these without editing a template or phrase, then i’ll do like you’ve done.

    also i’ll try to see if we can add the tag to the bbcode list.. but this is secondary, i have no idea how to do it.. rofl

    btw, OBK you want a situation here?… 😉

  3. Shelley

    I’m sure you have had this suggested and even thought about it yourself. Instead of using bbcode for showing the markup why not whenever a name of a person (maybe this could be limited with permissions to certain groups admin, smod) but when a name is typed the markup shows without the need to insert the bbcode.

  4. xOBKx

    @nexia 22020 wrote:

    btw, OBK you want a situation here?… 😉

    Pardon? I think something got mixed up in translation :).

    Please feel free to send me a PM about anything you have in mind.

    @Shelley 22021 wrote:

    I’m sure you have had this suggested and even thought about it yourself. Instead of using bbcode for showing the markup why not whenever a name of a person (maybe this could be limited with permissions to certain groups admin, smod) but when a name is typed the markup shows without the need to insert the bbcode.

    Ah, like AME behaviour with video embedding.. I like the idea! Implementing it could be rather tricky though, especially if you had both modifications installed. There could be some conflict if you tried to use a username in a video title or something?

  5. Shelley

    @xOBKx 22022 wrote:

    Pardon? I think something got mixed up in translation :).

    Please feel free to send me a PM about anything you have in mind.

    Ah, like AME behaviour with video embedding.. I like the idea! Implementing it could be rather tricky though, especially if you had both modifications installed. There could be some conflict if you tried to use a username in a video title or something?

    Yeah, I think there could be room for conflicts. I would suggest then that the automatic markup be limited for admins, and staff. So whenever anyone types a name of a admin or staff member the markup appears.

    Chances are, that the amount of staff anyone forum has won’t be that great in numbers, lowering the chances of any conflicts.

  6. Jean-Pierre Auteur du sujet

    hum, ok, and if you have a database of 50000 users?!… AME is good as you have like 250 types of videos, not 50000… 250 checks in a str_replace is way smaller than 50000, and it is done in the post cache, so it’s done once. my system is also sending the tag in the post cache, but if you have too much users, each post would take seconds to do each time… i though of this when coding the « Who Quoted Me »…. but it’s complicated as well…

    and OBK, i was not refering to something negative.. lol… i’m open to staff who comment my work and add features and enhancements… like Shelley… 🙂 (who is not officially staff because she did not want to.. rofl)

  7. xOBKx

    @nexia 22025 wrote:

    and OBK, i was not refering to something negative.. lol… i’m open to staff who comment my work and add features and enhancements… like Shelley… 🙂 (who is not officially staff because she did not want to.. rofl)

    I didn’t think for one minute that you’d say anything negative either to or at me.. (Y). The translation is quite comical though, a « situation » commonly refers to a last minute panic of some kind.

    Yes, if you’re looking for staff then I certainly wouldn’t mind helping out. I have quite a lot of your modifications installed, as you’ve no doubt seen!

  8. Jean-Pierre Auteur du sujet

    😉

    so, the idea of checking 50 000 usernames for a post is not that bad?… rofl… i prefer the [user ] tag if you don’t mind, Shelley… your idea is amazing, i would prefer it myself, i would be able to do so much more with that technique… but PHP is not perfect, vBulletin either… lol

  9. Shelley

    That’s okay nexy, though, Here’s another suggestion. How about a [group] tag for user groups linking to the staff page (the forum leaders link)? I think this could be a very usefull feature in conjunction with anyone posting introductions and the administrator replies with a response « welcome to domain.com here are the features blah blah if you have any issues please don’t hesitate to contact an administrator or moderator) with the administrator/moderators markup being displayed in the post. Of course, you could carry on using the [user] tag or add a new [group][/group] tag into the script.

    Hopefully, I explained that correctly. personally, i would just carry on using the [user] tag but allow groups to be carried into it.

  10. Taragon

    Haven’t got this installed myself yet, so I can’t tell for sure..

    This is currently causing a db error: [use r]Nexia’s[/user]
    This isn’t: [use r]Nexia[/user]’s

    So I probably should be using: [use r=1]Nexia’s[/user]

    Still, I’m reporting this since db errors tend to freak people out a bit..

  11. trotskid

    There is a problem with this hack on my forum. When it’s used a bold+cursive style appears following the musename. Something like that:

    ornare tincidunt nunc nunc ut lorem. Lorem ipsum dolor sit amet, consectetur adipiscing elit [use r]Nexia[/user] Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam tempus libero et eros adipiscing pellentesque. Nulla nunc turpis, condimentum et condimentum in