PDA

View Full Version : Automatically bold mentions of regular user's names...


Borgs8472
09-11-2004, 05:43 PM
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:

wordforge.net is the coolest poster, don't you think?

it'd come out as:

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, 07:31 PM
Thats a good idea for a hack. I wish I could do it :(

kodeking
09-11-2004, 09:22 PM
This would either require a ton of sql queries or a long loop.

Reeve of shinra
09-11-2004, 10: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-12-2004, 12:29 AM
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, 06:47 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
You mean replacement variables?

Borgs8472
09-15-2004, 09:43 AM
Any more thoughts?

Johnny
09-15-2004, 11: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-16-2004, 12:29 AM
anyone got a link to the link hack? :D

Brad
09-16-2004, 06: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:

Brad.loo

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.

Borgs8472
09-24-2004, 10:02 AM
^ ^
yes please!

Borgs8472
09-27-2004, 01:35 PM
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:

Brad.loo

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.
No got a reply from a pm regarding this, does anyone else know how to use that [user] tag?

Borgs8472
10-22-2004, 10:08 PM
user tag?

Xenon
10-23-2004, 03:48 PM
custom bb code:

Title: User
Tag: user
replacement: <a href="member.php?do=getinfo&username={param}">{param}</a>

Borgs8472
10-23-2004, 08:57 PM
^ ^
OMG!111 Unsecured code!!!!!1111

;)

Thanks a lot. :)

On that note, is thread a database of [ code tag ] add-ons anywhere? I really like them, the sign on a stick is my latest fav for example. More would be great. :)

Xenon
10-24-2004, 06:05 PM
Hmm, actually i don't know of a DB somewhere.

sorry