vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Automatically bold mentions of regular user's names... (https://vborg.vbsupport.ru/showthread.php?t=69323)

Borgs8472 09-11-2004 04:43 PM

Automatically bold mentions of regular user's names...
 
When you're talking about other posters, it's common to refer to them as PersonX rather than an unbolded version, so as to avoid confusion over who and what is being talked to.

Might it be possible for a list of users (in my case, a list of regular users, based from the regular users usegroup I created) to have their names automatically bolded when mentioned in posts?

(possible even a link to their member profile, but that's optional)

So if someone were to submit:

Quote:

wordforge.net is the coolest poster, don't you think?
it'd come out as:

Quote:

wordforge.net is the coolest poster, don't you think?
I tried the automatic censorship options, thinking I could basically find and replace a manually entered list of user names with surrounding bold tags, but that's no use.

Anyhow, I'm no coder, but the simpler elements of this potential hack don't seem too tricky, what do people thing? :)

Surtain23 09-11-2004 06:31 PM

Thats a good idea for a hack. I wish I could do it :(

kodeking 09-11-2004 08:22 PM

This would either require a ton of sql queries or a long loop.

Reeve of shinra 09-11-2004 09:59 PM

You might be able to use vb3's replacement features. I havent really used it myself but it might do what your looking for

Borgs8472 09-11-2004 11:29 PM

Quote:

Originally Posted by kodeking
This would either require a ton of sql queries or a long loop.

I can imagine...

It would require an array of valid names to search in though, it wouldn't require looking any deeper...

< my database knowledge is running out! >

Borgs8472 09-12-2004 05:47 PM

Quote:

Originally Posted by Reeve of shinra
You might be able to use vb3's replacement features. I havent really used it myself but it might do what your looking for

You mean replacement variables?

Borgs8472 09-15-2004 08:43 AM

Any more thoughts?

Johnny 09-15-2004 10:58 AM

i thought a hack like this exsits already but the other way around.

if someone posts a certain word a link is shown instead, i think that was vb2 i was looking at but if it is that would be a good mod to release for vb3

Borgs8472 09-15-2004 11:29 PM

anyone got a link to the link hack? :D

Brad 09-16-2004 05:08 AM

I use to do something similar with vBcode. I created a new code called user and whenever someone wanted to post a username they could do as so if they pleased:

[user]Brad.loo[/user]

That tag would basicly hyperlink the name back to the profile, if you are intrested in that I could throw togther some instructions if you don't know how to do it yourself.


All times are GMT. The time now is 11:35 AM.

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.02720 seconds
  • Memory Usage 1,727KB
  • 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
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)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