1 (edited by FruitCake 2006-11-22 14:12)

Topic: [requests] show name tag :)

[requests] show name tag

tag like this

[name]

when use this tag it show username

ex.

Hello [name]

Member Name is : Peter

come in this topic it show

Hello Peter

Member Name is : Admin

come in this topic it show

Hello Admin




sorry my bad english sorry sorry

2

Re: [requests] show name tag :)

strange request hmm

Re: [requests] show name tag :)

strange ? smile:):)

Re: [requests] show name tag :)

I've seen this in some forums: it doesn't appeal to me personally (although it's fun for playing tricks on people) tongue
Anyways, moved to Modifications

Re: [requests] show name tag :)

It's a parser.php thing tongue

In the parse_message() function, before the return, put something like this:

$text = str_ireplace('[name]', $pun_user['username'], $text);

Re: [requests] show name tag :)

thank work !

$text = str_replace('[name]', $pun_user['username'], $text);

your code have "i" in "str_ireplace"

thank thank

Re: [requests] show name tag :)

Yes, the "i" means case insensitive. But I guess it isn't really needed smile

Re: [requests] show name tag :)

hi

how to use [name] in signature

can't use this tag in signature ??

help me..