Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
vB Username Bolder Details »»
vB Username Bolder
Version: 1.1, by FlyingDutchman FlyingDutchman is offline
Developer Last Online: Feb 2009 Show Printable Version Email this Page

Version: 3.5.4 Rating:
Released: 04-17-2006 Last Update: 04-21-2006 Installs: 10
Uses Plugins
 
No support by the author.

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

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 04-19-2006, 11:33 AM
Nathan2006's Avatar
Nathan2006 Nathan2006 is offline
 
Join Date: Feb 2006
Location: UK
Posts: 862
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by FlyingDutchman
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
Reply With Quote
  #13  
Old 04-20-2006, 04:04 PM
d4v3r5 d4v3r5 is offline
 
Join Date: Dec 2002
Posts: 27
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #14  
Old 04-20-2006, 04:08 PM
Zachery's Avatar
Zachery Zachery is offline
 
Join Date: Jul 2002
Location: Ontario, Canada
Posts: 11,440
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by d4v3r5
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.
Reply With Quote
  #15  
Old 04-20-2006, 05:49 PM
FlyingDutchman's Avatar
FlyingDutchman FlyingDutchman is offline
 
Join Date: Nov 2001
Location: The Netherlands
Posts: 201
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Zachery
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

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
Reply With Quote
  #16  
Old 04-21-2006, 08:58 AM
csidlernet csidlernet is offline
 
Join Date: Apr 2003
Location: sydney
Posts: 183
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks
Reply With Quote
  #17  
Old 04-21-2006, 10:30 PM
49er 49er is offline
 
Join Date: Nov 2005
Location: UK
Posts: 153
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #18  
Old 04-22-2006, 09:40 AM
FlyingDutchman's Avatar
FlyingDutchman FlyingDutchman is offline
 
Join Date: Nov 2001
Location: The Netherlands
Posts: 201
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by teepeg
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!
Reply With Quote
  #19  
Old 04-22-2006, 01:41 PM
Kihon Kata Kihon Kata is offline
 
Join Date: Nov 2003
Posts: 763
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #20  
Old 04-23-2006, 06:02 AM
Zachery's Avatar
Zachery Zachery is offline
 
Join Date: Jul 2002
Location: Ontario, Canada
Posts: 11,440
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by FlyingDutchman
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
Reply With Quote
  #21  
Old 04-23-2006, 02:19 PM
akanevsky akanevsky is offline
 
Join Date: Apr 2005
Posts: 3,972
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This hack will heavily affect board performance on boards with even 100 users. Just a notice.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 12:23 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04671 seconds
  • Memory Usage 2,305KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (5)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete