We hope you enjoy your visit.

You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.


Join our community!


If you're already a member please log in to your account to access all of our features:

Username:   Password:
Locked Topic
[ C ] Username appears as your own; [you] tag
Topic Started: Nov 9 2017, 05:10 PM (204 Views)
Jon Galt
Member
[ * ]
I'm looking for a way so that if I write something like " {you} " it will display the username of whoever is viewing the thread.


Is this possible?

I searched and found nothing.

This will be a tool to spoof members. So that anyone can make a topic stating:

{you} has racing stripes in their underwear!

If it's me logged in (John Galt)

When I see this topic in a forum, subforum, trending topics, whatever, it appears as "John Galt has racing stripes in their underwear!"

Thanks
Offline Profile Goto Top
 
Cory
Member Avatar
Member
[ *  *  *  *  *  *  *  *  * ]
Admin CP Posted Image Themes Posted Image Board Template Posted Image Below the Board
Code:
 
<script type="text/javascript">
//<![CDATA[
$('td:contains([you]):not(:has(textarea)), div.search_results:contains([you]), #blog blockquote:contains([you])').each(function() {
$(this).html($(this).html().replace(/\[you\]/gi, '<span class="you"></span>'));
});

$('span.you').text($('#top_info strong a').text());
//]]>
</script>
Syntax:
Code:
 
[you]
Offline Profile Goto Top
 
Jon Galt
Member
[ * ]
Thank you Cory!
Where do I put the syntax?
I got it!
Edited by Jon Galt, Nov 10 2017, 12:16 PM.
Offline Profile Goto Top
 
Helena
Member Avatar
M is for Mod

Completed!

Your request has been completed. If you have any questions or concerns regarding the state of your request, please feel free to contact me via PM.
Online Profile Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · Closed Requests · Next Topic »
Locked Topic