vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   vB Username Bolder (https://vborg.vbsupport.ru/showthread.php?t=113326)

FlyingDutchman 04-17-2006 10:00 PM

vB Username Bolder
 
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

Ziki 04-18-2006 10:50 AM

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:
Code:


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
Code:

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:
Code:

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:
Quote:

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

Quote:

Originally Posted by Nathan2006
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..


All times are GMT. The time now is 09:41 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
  • Page Generation 0.01073 seconds
  • Memory Usage 1,821KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete