![]() |
Username bolded in posts.
Is there a way to automatically bold any usernames in posts? Anybody know?
example: --------- Hello, joeblow that's a good question you should check out that other thread where jane quoted frank. --------- The bolding would happen automatically on submit. Thanks :) |
anybody?
|
This is probably quite easy, but it will most likely need to check for every word in a new post if it is a user or not... and depending on the size of your forums it could really slow the forums down..
|
well thanks for the reply FlyingDutchman. :) I was hoping it could parse like the smiley code but if it adds strain on the server then maybe it's not worth it.
|
1 Attachment(s)
well i pulled up 2 quick plugins which add this functionality...
only drawback is that it might slow your board (I only tested it on my test-board) and that if the username is the last word of the message it doesn't seem to work too i'm not sure about casing but i suppose it only works with exact casing atm (not sure though!!) maybe you should just give it a try and see if it works (well) or not... |
<a href="https://vborg.vbsupport.ru/showthread.php?t=113237" target="_blank">https://vborg.vbsupport.ru/showthread.php?t=113237</a>
here is the idea based on this one... |
wow that's so awesome FlyingDutchman! I'll give it a try tonight. the bolded username has become somewhat of a standard form of etiquette on our board and i think works well. An automated process would be great to keep things consistent and easy on the users.
Quote:
whoops, it doesn't work on new thread. oh well real close. :) |
hmm it should work on new thread
do you have both plugins that are in the xml file correctly installed and activated ? (which should be default I assume) sorry but I can give you no other explanation of why it wouldn't work... it works on my test board, and i just exported the xml... The xml seems quite normal too hmm i'll look into it tomorrow |
Quote:
Just tested this out and it worked for me, on a new post. Pretty cool! However, I noticed it's really picky. For example if a username has a comma right after it, it won't be bolded. |
ok wait...it works as long as there aren't any returns...every name after a return doesn't go bold...hmmm
|
tralala: true, that's just the way it's checking atm
okay the code I put in here isn't working perfect, I'll create some new code in the next few hours or so, which will hopefully work flawlessly Anyway, I'm still wondering how this hack works performance-wise? Could you please tell me what size your board is, i.e. how many (active?) users? If the result turn out to be good, I could release it here on vb.org of course.. I really think this is a nice addition that's why I'd like to know if this approach works fast enough ;) |
1 Attachment(s)
okay, I created a new product for this, you can disable the old plugins if you still have them active. Import the product in this xml file and you're ready to go
I just run a test on my board by posting a message with all possible ways a username could show up, like strange casing, end of a line (before a return), before a comma, after a character, after a return, etc. it all seems to work pretty nicely now the only thing I need is performance numbers :) - then i'll spice it up a bit and release it on here anyway, tell me how it works please, thanks ;) edit: posted hack now, keeping it in beta stage i'd like to move discussion to that thread now https://vborg.vbsupport.ru/showthread.php?p=952761 |
woah that's exciting! i have 17,00 users on my board. not too much action.
|
All times are GMT. The time now is 06:07 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|