DawPi

(DP34) Tag [you]

Recommended Posts

File Name: (DP34) Tag [you]

File Submitter: DawPi

File Submitted: 05 Jul 2009

File Category: Performance

Add tag [you] to your forum.
Adds a new bbcode to your forums [you] becomes the name of the person viewing the topic/profile containing [you].

Example:
Hello , [you] would become Hello , yourusername.

here to download this file

Share this post


Link to post
Share on other sites

Sure.

Open file: admin/sources/classes/bbcode/custom/dp30youbbcode.php
Find:

$txt = str_replace( "[you]", ( ( $this->settings['auth_allow_dnames'] ) ? $this->memberData['members_display_name'] : $this->memberData['name'] ) , $txt );

Change to:

$txt = str_replace( "[you]", IPSLib::makeNameFormatted( ( ( $this->settings['auth_allow_dnames'] ) ? $this->memberData['members_display_name'] : $this->memberData['name'] ) , $this->memberData['member_group_id'] ) , $txt );


Save and upload.

Share this post


Link to post
Share on other sites

I've been looking for a tag like this for IPB. I would also like to find a [random] tag. Where a random name is pulled from the userlist and added into the space. They have one for one of the vB boards I moderate, but I'd like one for my board which of course runs IPB. :)

Share this post


Link to post
Share on other sites

Hi DawPi. I like the idea of this tag, but I'm having a problem. When I tested it, the two times I did it, it only shows the name of the person making the post, no matter who looks at it. I made a post with one account, and looked at the post from 3 different accounts, and it still says the name of the original account that made the post. Any help would be greatly appreciated. Thanks.

Share this post


Link to post
Share on other sites

Hi DawPi. I like the idea of this tag, but I'm having a problem. When I tested it, the two times I did it, it only shows the name of the person making the post, no matter who looks at it. I made a post with one account, and looked at the post from 3 different accounts, and it still says the name of the original account that made the post. Any help would be greatly appreciated. Thanks.



I also have the same problem :(

Share this post


Link to post
Share on other sites

Hi DawPi. I like the idea of this tag, but I'm having a problem. When I tested it, the two times I did it, it only shows the name of the person making the post, no matter who looks at it. I made a post with one account, and looked at the post from 3 different accounts, and it still says the name of the original account that made the post. Any help would be greatly appreciated. Thanks.




Same problem here as well

Share this post


Link to post
Share on other sites

Thank you DawPi! It works perfectly now! Yeah, I think you should add that to the Read Me file. Until you posted this, I noticed something weird, and didn't know why it was doing it. But now that this has been explained, I know why it was doing what it was doing, lol. Thanks again.

Share this post


Link to post
Share on other sites

I don't know what I'm doing wrong, but I type in something like [you] is testing the youtag. And it shows up exactly like that. [you] in brackets, no name.



http://community.invisionpower.com/topic/295299-download-dp31-tag-you/page__view__findpost__p__2079549

Share this post


Link to post
Share on other sites

  • Recently Browsing   0 members

    No registered users viewing this page.