View Full Version : vB Username Bolder
FlyingDutchman
04-17-2006, 10:00 PM
Current Version: 1.1
Released: april 18 2006
Last Updated: april 22 2006
Current known bugs: none
Important notice about PHP version
If you are using PHP4, you can download the product-usernamebolder-PHP4.xml file instead of the normal one, it is case sensitive, i can't do anything about that... the normal (PHP5) version is case insensitive
What does this hack do?
Whenever you post a new thread or reply it will bold (add tags) to any usernames it finds in the post. As from version 1.1 you can specify what you want to do with the username (bold, italic, etc. any bbcode works).
Example
If I post this message (X123 is a user on the board):
- - I'd like to thank X123 for his support.
It will be posted like this:
- - I'd like to thank X123 for his support.
Installation
Easy, download the product-usernamebolder.xml file, import the product and you're all done
Note: if you are still using PHP4, download the product-usernamebolder-PHP4.xml file. For more info see above.
Upgrade from old version
Easy too, remove old product, download new xml file, import the new product and you're all set
Features
3 vB Options in a new Settinggroup
adjustable look of the replaced text using bbcode
just a single plugin needed
Updates
April 22
Seperate xml for PHP4 as the normal one is only working with PHP5
April 19, update 3
-version 1.1
Bug fixed
Updated code to allow special characters in the usernames
Added 3 Options to the vB Options in a new settinggroup
April 19, update 2
Bug fixed, but another one appeared.
(much) Faster code
April 19, update 1
Tried to fix bug, partially fixed
Important
I moved this hack from beta to stable. It currently is stable. This hack could be a issue for the performance if you have a lot of users.
You will have to install it to see if it's not slowing your board.
Requested
This hack was requested by d4v3r5 in this thread: https://vborg.vbsupport.ru/showthread.php?t=108463
this is cool.I will install as soon as it gets out BETA
Kihon Kata
04-18-2006, 01:10 PM
Uhm, I have a "fairly" large board and this is the result:
Warning: Compilation failed: nothing to repeat at offset 0 in /newthread.php(124) : eval()'d code on line 12
Warning: Compilation failed: nothing to repeat at offset 0 in /newthread.php(124) : eval()'d code on line 12
Warning: Compilation failed: nothing to repeat at offset 0 in /newthread.php(124) : eval()'d code on line 12
Warning: Compilation failed: nothing to repeat at offset 0 in /newthread.php(124) : eval()'d code on line 12
Warning: Compilation failed: nothing to repeat at offset 0 in /newthread.php(124) : eval()'d code on line 12
Warning: Compilation failed: nothing to repeat at offset 0 in /newthread.php(124) : eval()'d code on line 12
Warning: Compilation failed: unmatched parentheses at offset 8 in /newthread.php(124) : eval()'d code on line 12
Warning: Compilation failed: nothing to repeat at offset 0 in /newthread.php(124) : eval()'d code on line 12
on line Warning: Unknown modifier '/' in /newthread.php(124) : eval()'d code12
Warning: Compilation failed: nothing to repeat at offset 0 in /newthread.php(124) : eval()'d code on line 12
Warning: Compilation failed: nothing to repeat at offset 0 in /newthread.php(124) : eval()'d code on line 12
Warning: Compilation failed: nothing to repeat at offset 0 in /newthread.php(124) : eval()'d code on line 12
Warning: Compilation failed: nothing to repeat at offset 0 in /newthread.php(124) : eval()'d code on line 12
Warning: Compilation failed: nothing to repeat at offset 0 in /newthread.php(124) : eval()'d code on line 12
Warning: Compilation failed: nothing to repeat at offset 0 in /newthread.php(124) : eval()'d code on line 12
Warning: Compilation failed: nothing to repeat at offset 0 in /newthread.php(124) : eval()'d code on line 12
Warning: Compilation failed: nothing to repeat at offset 0 in /newthread.php(124) : eval()'d code on line 12
Warning: Compilation failed: nothing to repeat at offset 0 in /newthread.php(124) : eval()'d code on line 12
Warning: Compilation failed: unmatched parentheses at offset 10 in /newthread.php(124) : eval()'d code on line 12
Warning: Compilation failed: nothing to repeat at offset 0 in /newthread.php(124) : eval()'d code on line 12
Warning: Compilation failed: nothing to repeat at offset 0 in /newthread.php(124) : eval()'d code on line 12
Warning: Compilation failed: nothing to repeat at offset 13 in /newthread.php(124) : eval()'d code on line 12
Warning: Compilation failed: nothing to repeat at offset 0 in /newthread.php(124) : eval()'d code on line 12
Warning: Compilation failed: nothing to repeat at offset 0 in /newthread.php(124) : eval()'d code on line 12
Warning: Compilation failed: nothing to repeat at offset 0 in /newthread.php(124) : eval()'d code on line 12
Warning: Compilation failed: nothing to repeat at offset 0 in /newthread.php(124) : eval()'d code on line 12
Warning: Compilation failed: nothing to repeat at offset 0 in /newthread.php(124) : eval()'d code on line 12
Warning: Compilation failed: nothing to repeat at offset 0 in /newthread.php(124) : eval()'d code on line 12
Warning: Compilation failed: nothing to repeat at offset 0 in /newthread.php(124) : eval()'d code on line 12
Warning: Compilation failed: nothing to repeat at offset 0 in /newthread.php(124) : eval()'d code on line 12
Warning: Compilation failed: unmatched parentheses at offset 8 in /newthread.php(124) : eval()'d code on line 12
Warning: Compilation failed: nothing to repeat at offset 0 in /newthread.php(124) : eval()'d code on line 12
on line Warning: Unknown modifier '/' in /newthread.php(124) : eval()'d code12
Warning: Compilation failed: nothing to repeat at offset 0 in /newthread.php(124) : eval()'d code on line 12
Warning: Compilation failed: nothing to repeat at offset 0 in /newthread.php(124) : eval()'d code on line 12
Warning: Compilation failed: nothing to repeat at offset 0 in /newthread.php(124) : eval()'d code on line 12
Warning: Compilation failed: nothing to repeat at offset 0 in /newthread.php(124) : eval()'d code on line 12
Warning: Compilation failed: nothing to repeat at offset 0 in /newthread.php(124) : eval()'d code on line 12
Warning: Compilation failed: nothing to repeat at offset 0 in /newthread.php(124) : eval()'d code on line 12
Warning: Compilation failed: nothing to repeat at offset 0 in /newthread.php(124) : eval()'d code on line 12
Warning: Compilation failed: nothing to repeat at offset 0 in /newthread.php(124) : eval()'d code on line 12
Warning: Compilation failed: nothing to repeat at offset 0 in /newthread.php(124) : eval()'d code on line 12
Warning: Compilation failed: unmatched parentheses at offset 10 in /newthread.php(124) : eval()'d code on line 12
Warning: Compilation failed: nothing to repeat at offset 0 in /newthread.php(124) : eval()'d code on line 12
Warning: Compilation failed: nothing to repeat at offset 0 in /newthread.php(124) : eval()'d code on line 12
Warning: Compilation failed: nothing to repeat at offset 13 in /newthread.php(124) : eval()'d code on line 12
Warning: Compilation failed: nothing to repeat at offset 0 in /newthread.php(124) : eval()'d code on line 12
Warning: Compilation failed: nothing to repeat at offset 0 in /newthread.php(124) : eval()'d code on line 12
Warning: Compilation failed: nothing to repeat at offset 0 in /newthread.php(124) : eval()'d code on line 12
Warning: Compilation failed: nothing to repeat at offset 0 in /newthread.php(124) : eval()'d code on line 12
Warning: Compilation failed: nothing to repeat at offset 0 in /newthread.php(124) : eval()'d code on line 12
Warning: Compilation failed: nothing to repeat at offset 0 in /newthread.php(124) : eval()'d code on line 12
Warning: Compilation failed: nothing to repeat at offset 0 in /newthread.php(124) : eval()'d code on line 12
Warning: Compilation failed: nothing to repeat at offset 0 in /newthread.php(124) : eval()'d code on line 12
Warning: Compilation failed: unmatched parentheses at offset 8 in /newthread.php(124) : eval()'d code on line 12
Warning: Compilation failed: nothing to repeat at offset 0 in /newthread.php(124) : eval()'d code on line 12
on line Warning: Unknown modifier '/' in /newthread.php(124) : eval()'d code12
Warning: Compilation failed: nothing to repeat at offset 0 in /newthread.php(124) : eval()'d code on line 12
Warning: Compilation failed: nothing to repeat at offset 0 in /newthread.php(124) : eval()'d code on line 12
Warning: Compilation failed: nothing to repeat at offset 0 in /newthread.php(124) : eval()'d code on line 12
Warning: Compilation failed: nothing to repeat at offset 0 in /newthread.php(124) : eval()'d code on line 12
Warning: Compilation failed: nothing to repeat at offset 0 in /newthread.php(124) : eval()'d code on line 12
Warning: Compilation failed: nothing to repeat at offset 0 in /newthread.php(124) : eval()'d code on line 12
Warning: Compilation failed: nothing to repeat at offset 0 in /newthread.php(124) : eval()'d code on line 12
Warning: Compilation failed: nothing to repeat at offset 0 in /newthread.php(124) : eval()'d code on line 12
Warning: Compilation failed: nothing to repeat at offset 0 in /newthread.php(124) : eval()'d code on line 12
Warning: Compilation failed: unmatched parentheses at offset 10 in /newthread.php(124) : eval()'d code on line 12
Warning: Compilation failed: nothing to repeat at offset 0 in /newthread.php(124) : eval()'d code on line 12
Warning: Compilation failed: nothing to repeat at offset 0 in /newthread.php(124) : eval()'d code on line 12
Warning: Compilation failed: nothing to repeat at offset 13 in /newthread.php(124) : eval()'d code on line 12
Warning: Compilation failed: nothing to repeat at offset 0 in /newthread.php(124) : eval()'d code on line 12
Warning: Compilation failed: nothing to repeat at offset 0 in /newthread.php(124) : eval()'d code on line 12
Warning: Compilation failed: nothing to repeat at offset 0 in /newthread.php(124) : eval()'d code on line 12
Warning: Compilation failed: nothing to repeat at offset 0 in /newthread.php(124) : eval()'d code on line 12
Warning: Compilation failed: nothing to repeat at offset 0 in /newthread.php(124) : eval()'d code on line 12
Warning: Compilation failed: nothing to repeat at offset 0 in /newthread.php(124) : eval()'d code on line 12
Warning: Compilation failed: nothing to repeat at offset 0 in /newthread.php(124) : eval()'d code on line 12
Warning: Compilation failed: nothing to repeat at offset 0 in /newthread.php(124) : eval()'d code on line 12
Warning: Compilation failed: unmatched parentheses at offset 8 in /newthread.php(124) : eval()'d code on line 12
Warning: Compilation failed: nothing to repeat at offset 0 in /newthread.php(124) : eval()'d code on line 12
on line Warning: Unknown modifier '/' in /newthread.php(124) : eval()'d code12
Warning: Compilation failed: nothing to repeat at offset 0 in /newthread.php(124) : eval()'d code on line 12
Warning: Compilation failed: nothing to repeat at offset 0 in /newthread.php(124) : eval()'d code on line 12
Warning: Compilation failed: nothing to repeat at offset 0 in /newthread.php(124) : eval()'d code on line 12
Warning: Compilation failed: nothing to repeat at offset 0 in /newthread.php(124) : eval()'d code on line 12
Warning: Compilation failed: nothing to repeat at offset 0 in /newthread.php(124) : eval()'d code on line 12
Warning: Compilation failed: nothing to repeat at offset 0 in /newthread.php(124) : eval()'d code on line 12
Warning: Compilation failed: nothing to repeat at offset 0 in /newthread.php(124) : eval()'d code on line 12
Warning: Compilation failed: nothing to repeat at offset 0 in /newthread.php(124) : eval()'d code on line 12
Warning: Compilation failed: nothing to repeat at offset 0 in /newthread.php(124) : eval()'d code on line 12
Warning: Compilation failed: unmatched parentheses at offset 10 in /newthread.php(124) : eval()'d code on line 12
Warning: Compilation failed: nothing to repeat at offset 0 in /newthread.php(124) : eval()'d code on line 12
Warning: Compilation failed: nothing to repeat at offset 0 in /newthread.php(124) : eval()'d code on line 12
Warning: Compilation failed: nothing to repeat at offset 13 in /newthread.php(124) : eval()'d code on line 12
Warning: Compilation failed: nothing to repeat at offset 0 in /newthread.php(124) : eval()'d code on line 12
Warning: Compilation failed: nothing to repeat at offset 0 in /newthread.php(124) : eval()'d code on line 12
Warning: Compilation failed: nothing to repeat at offset 0 in /newthread.php(124) : eval()'d code on line 12
Warning: Compilation failed: nothing to repeat at offset 0 in /newthread.php(124) : eval()'d code on line 12
Warning: Compilation failed: nothing to repeat at offset 0 in /newthread.php(124) : eval()'d code on line 12
Warning: Compilation failed: nothing to repeat at offset 0 in /newthread.php(124) : eval()'d code on line 12
Warning: Compilation failed: nothing to repeat at offset 0 in /newthread.php(124) : eval()'d code on line 12
Warning: Compilation failed: nothing to repeat at offset 0 in /newthread.php(124) : eval()'d code on line 12
Warning: Compilation failed: unmatched parentheses at offset 8 in /newthread.php(124) : eval()'d code on line 12
Warning: Compilation failed: nothing to repeat at offset 0 in /newthread.php(124) : eval()'d code on line 12
on line Warning: Unknown modifier '/' in /newthread.php(124) : eval()'d code12
Warning: Compilation failed: nothing to repeat at offset 0 in /newthread.php(124) : eval()'d code on line 12
Warning: Compilation failed: nothing to repeat at offset 0 in /newthread.php(124) : eval()'d code on line 12
Warning: Compilation failed: nothing to repeat at offset 0 in /newthread.php(124) : eval()'d code on line 12
Warning: Compilation failed: nothing to repeat at offset 0 in /newthread.php(124) : eval()'d code on line 12
Warning: Compilation failed: nothing to repeat at offset 0 in /newthread.php(124) : eval()'d code on line 12
Warning: Compilation failed: nothing to repeat at offset 0 in /newthread.php(124) : eval()'d code on line 12
Warning: Compilation failed: nothing to repeat at offset 0 in /newthread.php(124) : eval()'d code on line 12
Warning: Compilation failed: nothing to repeat at offset 0 in /newthread.php(124) : eval()'d code on line 12
Warning: Compilation failed: nothing to repeat at offset 0 in /newthread.php(124) : eval()'d code on line 12
Warning: Compilation failed: unmatched parentheses at offset 10 in /newthread.php(124) : eval()'d code on line 12
Warning: Compilation failed: nothing to repeat at offset 0 in /newthread.php(124) : eval()'d code on line 12
Warning: Compilation failed: nothing to repeat at offset 0 in /newthread.php(124) : eval()'d code on line 12
Warning: Compilation failed: nothing to repeat at offset 13 in /newthread.php(124) : eval()'d code on line 12
Warning: Compilation failed: nothing to repeat at offset 0 in /newthread.php(124) : eval()'d code on line 12
Warning: Compilation failed: nothing to repeat at offset 0 in /newthread.php(124) : eval()'d code on line 12
d4v3r5
04-18-2006, 06:00 PM
i get this error
Warning: preg_match(): Unknown modifier 'E' in /newthread.php(115) : eval()'d code on line 12
Warning: preg_match(): Compilation failed: nothing to repeat at offset 0 in /newthread.php(115) : eval()'d code on line 12
Warning: preg_match(): Compilation failed: nothing to repeat at offset 0 in /newthread.php(115) : eval()'d code on line 12
Warning: preg_match(): Unknown modifier 'a' in /newthread.php(115) : eval()'d code on line 12
FlyingDutchman
04-18-2006, 06:50 PM
I'm not able to reproduce those errors
I just did some tests with special chars and such and it still all seems to be working for me :S
did you guys post a message with just text or did the text include special chars, bbcode, etc?
d4v3r5
04-18-2006, 07:02 PM
just text. i'm running 3.5.3...gotta upgrade, maybe that's it?
FlyingDutchman
04-18-2006, 07:36 PM
i'm not sure what causes this strange problem
I can only find similar problems on google but they all have to do with special chars, especially *. I'm running 3.5.4 and it works ok for me.
d4v3r5
04-19-2006, 04:53 AM
poop.
upgraded to 3.5.4 and still:
Warning: preg_match(): Unknown modifier 'E' in /newthread.php(124) : eval()'d code on line 12
Warning: preg_match(): Compilation failed: nothing to repeat at offset 0 in /newthread.php(124) : eval()'d code on line 12
Warning: preg_match(): Compilation failed: nothing to repeat at offset 0 in /newthread.php(124) : eval()'d code on line 12
Warning: preg_match(): Unknown modifier 'a' in /newthread.php(124) : eval()'d code on line 12
Warning: preg_match(): Unknown modifier 'E' in /newthread.php(124) : eval()'d code on line 12
Warning: preg_match(): Compilation failed: nothing to repeat at offset 0 in /newthread.php(124) : eval()'d code on line 12
Warning: preg_match(): Compilation failed: nothing to repeat at offset 0 in /newthread.php(124) : eval()'d code on line 12
Warning: preg_match(): Unknown modifier 'a' in /newthread.php(124) : eval()'d code on line 12
Warning: preg_match(): Unknown modifier 'E' in /newthread.php(124) : eval()'d code on line 12
Warning: preg_match(): Compilation failed: nothing to repeat at offset 0 in /newthread.php(124) : eval()'d code on line 12
Warning: preg_match(): Compilation failed: nothing to repeat at offset 0 in /newthread.php(124) : eval()'d code on line 12
Warning: preg_match(): Unknown modifier 'a' in /newthread.php(124) : eval()'d code on line 12
oh and here's the vb error message window:
Unable to add cookies, header already sent.
File: /home/pathtosite/forums/includes/class_core.php
Line: 2984
Nathan2006
04-19-2006, 05:18 AM
Thank you FlyingDutchman
Works great! :)
Install
Just one question?
Is there anyway to have this working with
the Username HTML Markup colors?
Thanks again :)
FlyingDutchman
04-19-2006, 11:21 AM
Thank you FlyingDutchman
Works great! :)
Install
Just one question?
Is there anyway to have this working with
the Username HTML Markup colors?
Thanks again :)
What do you mean with this exactly? I just added the possibility to change the output of the plugin from the admin cp. You can use any bbcode. I'm wondering if that's what you are looking for? if not please tell me what you mean with the Username HTML Markup colors..
Nathan2006
04-19-2006, 11:33 AM
What do you mean with this exactly? I just added the possibility to change the output of the plugin from the admin cp. You can use any bbcode. I'm wondering if that's what you are looking for? if not please tell me what you mean with the Username HTML Markup colors..
Hi,
I mean like this screen shot
The color legend :)
EDIT: Nope it would only be a good idea if members did not change their fonts to others/colors all the time :(
d4v3r5
04-20-2006, 04:04 PM
ok i figured out the problem. This plugin requires php5! i upgraded and now it works fine. Excellent!
Actually it works TOO well. We have a user named "Dandelion" but if somebody is referring to the plant "dandelion" it substitutes for the name.
Zachery
04-20-2006, 04:08 PM
ok i figured out the problem. This plugin requires php5! i upgraded and now it works fine. Excellent!
Actually it works TOO well. We have a user named "Dandelion" but if somebody is referring to the plant "dandelion" it substitutes for the name.
I don't see anything specific in this plugin that would require php5.
All i can say is this will probally stall peoples database if they have a LARGE userbase... of course thats been said.. but still.
I don't see a good way to acomplish this.
FlyingDutchman
04-20-2006, 05:49 PM
I don't see anything specific in this plugin that would require php5.
All i can say is this will probally stall peoples database if they have a LARGE userbase... of course thats been said.. but still.
I don't see a good way to acomplish this.
there probably is no good way to accomplish it... anyway I think I found the best possible approach here...
just released this because it was requested and I thought it might be usefull for someone :cool:
d4v3r5, afaik, the problem was caused by users having special chars in their name, but I fixed that (that explains why it would work on 1 board but not the other, as the users are of course different)
And I chose to make the search caseinsensitive, because I don't expect users to type other user's names in correct casing... I'd rather type flyingdutchman instead of FlyingDutchman
maybe I should create a option for that if it really is a problem...
anyway good to hear it's working now ;)
csidlernet
04-21-2006, 08:58 AM
thanks
Recieved this error after installing?? :banana:
Fatal error: Call to undefined function: str_ireplace() in /home/********/public_html/forum/includes/functions_newpost.php(335) : eval()'d code on line 63
FlyingDutchman
04-22-2006, 09:40 AM
Recieved this error after installing?? :banana:
Fatal error: Call to undefined function: str_ireplace() in /home/********/public_html/forum/includes/functions_newpost.php(335) : eval()'d code on line 63
I just figured out that PHP5 is required...
anyway, I uploaded a PHP4-version of the hack. this one is case sensitive though!
Kihon Kata
04-22-2006, 01:41 PM
Installed and confirm that this is case sensitive on php4. This is a cool hack for smaller boards, but IMHO not for larger boards with many users's names. I had things bolding inside regular words that matched usernames. Looked funny.
I have to uninstall. Thanks Dutchman for a nice hack, but it's just not for me
Zachery
04-23-2006, 06:02 AM
I just figured out that PHP5 is required...
anyway, I uploaded a PHP4-version of the hack. this one is case sensitive though!
Hmm, I didn't notice the i in the replace part O.o
akanevsky
04-23-2006, 02:19 PM
This hack will heavily affect board performance on boards with even 100 users. Just a notice.
donatas
04-29-2006, 08:58 AM
also it's makes links incorrect (if you have some's name in url :)
Svenna
06-13-2006, 11:07 AM
Hello,
I saw straight that this modification represents a small problem for me. If I write in the forum something, and coincidentally a word select, which as user name occurs, then this word also fat one represents. Can one get it not somehow that really only the user name fat is represented, and not any parts of words?
A small example, so that you know which I mean.
Ben is a Username. If I want to then quote a contribution, for example the word ?Benutzer? - Ben - is represented fat.
I hope you understand my broken English :D
regards,
Svenna
JulianWolf
08-27-2006, 07:37 AM
I´m searching for a quick and easy modification and I´m surprised about finding this one.
What I´m searching for is a hack, that puts links behind the usernames. This can be like UserID or automatically with every word that´s a username. Bouth is okay for me, my goal is just to get more communication between the users.
Now there is the hack where every username is bold. Well ... isn´t it easy and much more usefull to make it also a link?
Best wishes, Julian!
JulianWolf
08-27-2006, 08:42 AM
Well, okay, I gave it up.
It was easy to combine this hack with wome own BB-Codes to have that functionality. But with more than 1.600 Users in my board this Hack is definitely too slow. :-(
Best wishes, Julian!
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.