Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 02-20-2006, 01:39 PM
d4v3r5 d4v3r5 is offline
 
Join Date: Dec 2002
Posts: 27
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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
Reply With Quote
  #2  
Old 04-17-2006, 01:37 AM
d4v3r5 d4v3r5 is offline
 
Join Date: Dec 2002
Posts: 27
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

anybody?
Reply With Quote
  #3  
Old 04-17-2006, 02:46 PM
FlyingDutchman's Avatar
FlyingDutchman FlyingDutchman is offline
 
Join Date: Nov 2001
Location: The Netherlands
Posts: 201
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

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

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...
Attached Files
File Type: xml username-bolder-plugins.xml (1.1 KB, 9 views)
Reply With Quote
  #6  
Old 04-17-2006, 03:29 PM
sandrodz sandrodz is offline
 
Join Date: Mar 2006
Posts: 105
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

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:
Originally Posted by FlyingDutchman
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...
holy crap that worked! It IS case sensitive but the username as the last word works fine here. this is awesome! wow, thanks again you rule!

whoops, it doesn't work on new thread. oh well real close.
Reply With Quote
  #8  
Old 04-18-2006, 12:55 AM
FlyingDutchman's Avatar
FlyingDutchman FlyingDutchman is offline
 
Join Date: Nov 2001
Location: The Netherlands
Posts: 201
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #9  
Old 04-18-2006, 01:33 AM
Tralala's Avatar
Tralala Tralala is offline
 
Join Date: Jan 2006
Posts: 1,207
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

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.
Reply With Quote
  #10  
Old 04-18-2006, 03:17 AM
d4v3r5 d4v3r5 is offline
 
Join Date: Dec 2002
Posts: 27
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ok wait...it works as long as there aren't any returns...every name after a return doesn't go bold...hmmm
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 07:05 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.06013 seconds
  • Memory Usage 2,273KB
  • Queries Executed 14 (?)
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
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (1)postbit_attachment
  • (10)postbit_onlinestatus
  • (10)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_postinfo_query
  • fetch_postinfo
  • 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
  • postbit_attachment
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete