View Full Version : [you] - Use the person who is viewings username in a post.
Dean C
07-29-2005, 10:00 PM
[ [you] - replace bbcode with a username]
Information
vBulletin Version: 3.5.x
Author: Dean Clatworthy (http://www.deanclatworthy.com)
Copyright: You may use this modification at your own risk. I cannot and will not be held responsible for any damage you may cause to your forums during installation or thereafter. You may not distribute this modification in whole or parts and anyone found doing so faces risk of prosecution. All my modifications are released at vBulletin.org and anyone found releasing them elsewhere also faces risk of prosecution. You may not translate this modification without my prior permission.
Donations: I release my modifications for free. If you wish to donate please contact me and I will give you my details. All donations are graciously appreciated.What does this modification do?
If you place [you] inside of a post. It'll replace it with the username of the person who is viewing the thread.
Installation
1/
Upload the you-hack.xml file via the plugin uploader in the AdminCP
Please Click Install!
If you installed this modifcation please click the install button. It'll help you keep up to date with future releases and important bugfixes, security updates.
amykhar
07-29-2005, 10:38 PM
Dean, did you know Kirby just released this as a one-line plugin today? He uses a different replacement code, but, it's this mod from what I can see.
Dean C
07-29-2005, 10:41 PM
Had no idea, did a quick search in the plugins forum and didn't see it. Also can't see it in Kirby's profile :)
https://vborg.vbsupport.ru/member.php?u=47102
Don't wanna step on anyones toes, corrie was requesting it on IRC :)
amykhar
07-29-2005, 10:42 PM
<a href="https://vborg.vbsupport.ru/showthread.php?t=93145" target="_blank">https://vborg.vbsupport.ru/showthread.php?t=93145</a>
Dean C
07-29-2005, 10:46 PM
https://vborg.vbsupport.ru/showthread.php?t=93145
Ah yep. I only searched the releases forums and couldn't find it.
Corriewf
07-29-2005, 10:49 PM
Don't wanna step on anyones toes, corrie was requesting it on IRC :)
I have no idea what you are talking about........... :rolleyes:
Well it is different code.
Boofo
07-29-2005, 10:57 PM
Dean, did you know Kirby just released this as a one-line plugin today? He uses a different replacement code, but, it's this mod from what I can see.
He didn't really release it as a plug-in. He just posted the line needed. ;)
Boofo
07-29-2005, 10:58 PM
Ah yep. I only searched the releases forums and couldn't find it.
Did you ask the author of the vb 3.0 version (*ahem*) if you could release this? ;)
Dean C
07-29-2005, 10:59 PM
Did you ask the author of the vb 3.0 version (*ahem*) if you could release this? ;)
* Dean C sobs
We have to ask for permission when rewriting code differently from scratch? I'm so behind the times :ermm:
Boofo
07-29-2005, 11:02 PM
Well, to tell you the truth, I don't know the official policy on it, but it doesn't give the original author any time to update his hacks for the new version if everyone can just do them with new code, right? ;)
Dean C
07-29-2005, 11:09 PM
For you, anything ;) Want me to delete Bob :)?
Boofo
07-29-2005, 11:13 PM
No, I was just giving you a hard time, Dean. ;)
But leave my forumhome cache stats hack alone! LOL
I would like to be able to see the download in here. Where did it go?
Corriewf
07-29-2005, 11:14 PM
For you, anything ;) Want me to delete Bob :)?
Oh no you cant get out of it that easly......... :devious:
Boofo
07-29-2005, 11:14 PM
Be careful, corrie, I have the power on this one. LOL
Dean C
07-29-2005, 11:17 PM
Back up again. I was originally using a preg_match and preg_replace but then realised I wasn't actually matching anything special so back to str_replace. lol this is too much controversy for one night :p I blame corrie for everything ;)!
Corriewf
07-29-2005, 11:18 PM
Be careful, corrie, I have the power on this one. LOL
Was that "LOL"' a ha ha funny "LOL" or a he he funny "LOL" ?
Corriewf
07-29-2005, 11:19 PM
Back up again. I was originally using a preg_match and preg_replace but then realised I wasn't actually matching anything special so back to str_replace. lol this is too much controversy for one night :p I blame corrie for everything ;)!
HEY! It is rated 5 stars and has an install.....cant argue with the people......
Chris M
07-30-2005, 12:17 AM
Bug in your str_replace :p
Replace:
$this->post['message'] = str_replace('[you'], $this->registry->userinfo['username'], $this->post['message']);
with:
$this->post['message'] = str_replace('[you]', $this->registry->userinfo['username'], $this->post['message']);
Satan
Dean C
07-30-2005, 07:15 AM
Fixed. Thanks Chris :)
aranthorn
08-09-2005, 07:01 PM
I've done something like this in the past, gotta be one of the most fun hacks for new users...
Gizmo5h1t3
08-09-2005, 09:50 PM
big bug in this, with RC2....parse errors start to appear....
wolfyman
08-17-2005, 03:27 AM
added hack and got this when trying to reply or add thread:
Parse error: parse error, unexpected T_STRING in /home/user/public_html/vbulletin_3-5-0/includes/class_postbit.php(279) : eval()'d code on line 1
wolfyman
08-17-2005, 03:28 AM
now my forum is wrecked.
oh well, it had to happen sooner or later :P
wolfyman
08-18-2005, 02:00 AM
since I installed this I have
Parse error: parse error, unexpected T_STRING in /home/user/public_html/vbulletin_3-5-0/includes/class_postbit.php(279) : eval()'d code on line 1
but it's only when viewing a thread - the main page seems fine. ANy ideas?
red_baron2000
08-21-2005, 01:37 AM
same problem here ,,i ended by uninstalling it..
wolfyman
08-21-2005, 02:05 AM
i wasn't so lucky... still trying to get rid of that error.
Casparian
08-21-2005, 11:23 AM
Yeah same error on our forums in RC2 so have uninstalled for now! It'd be great for personalising our news announcements, same as we do by putting $username in the outgoing emails.
wolfyman
08-21-2005, 04:07 PM
does this thing make any database changes or anythign? I uninstalled it but I still have the eror.
Dean C
08-21-2005, 04:46 PM
Should be fixed. I swear I uploaded this fix the day I released this. Sorry about it guys :)
I've done something like this in the past, gotta be one of the most fun hacks for new users...
I started many fights in a forum because of this one.
Brandon Sheley
09-14-2005, 08:07 AM
Should be fixed. I swear I uploaded this fix the day I released this. Sorry about it guys :)
works like a champ now :) tested it, then put it on the live board, no probs :)
Boofo
09-14-2005, 08:12 AM
works like a champ now :) tested it, then put it on the live board, no probs :)
I'll bet it don't work in the archive or thread titles. ;)
I got mine working in my sig even. I just need to update it here. ;)
is there a way to prevent it from working in PMs. I don't want it to parse in PMs.
HellBoy
10-04-2005, 06:07 PM
Can this script be written so it also works for signatures?
amandad
10-20-2005, 03:46 AM
Got it installed, but having issues with the variable to use to get the username to come up!
I've tried using [you] and it doesn't work for me?
What am I doing wrong? :P
Calisse
12-05-2005, 11:42 PM
works well, i like it. Thanks <3
(if it helps i was utterly confused by both threads lol)
zagman76
02-24-2006, 06:17 PM
-bump-
just wondering if this can be restricted to specific forums/sub-forums?
Smiry Kin's
02-27-2006, 04:39 AM
dont work 3.5.4
after 1 hr of looking for it.. lol
hambil
03-10-2006, 01:06 AM
I hope you don't mind, but I took your idea and ran with it a little.
[you] Now works in:
thread titles
signatures
search results
forum and thread displays
and of course - posts
Also, I've made it a product, so the multiple plugins can be installed and uninstalled easily.
It's all yours if you want it, I don't care about credit. I'm just learning my way around vBulletin by tweaking other's hacks :)
It's been tested on 3.5.4
Boofo
03-10-2006, 01:18 AM
I hope you don't mind, but I took your idea and ran with it a little.
[you] Now works in:
thread titles
signatures
search results
forum and thread displays
and of course - posts
Also, I've made it a product, so the multiple plugins can be installed and uninstalled easily.
It's all yours if you want it, I don't care about credit. I'm just learning my way around vBulletin by tweaking other's hacks :)
It's been tested on 3.5.4
Don't forget the Archive. ;)
hambil
03-10-2006, 02:05 AM
Don't forget the Archive. ;)
Arghhh! Okay. I'll get on it :confused:
Talisman
03-10-2006, 02:14 AM
Is this a current remake of Chen's old bbusername thing?
hambil
03-10-2006, 04:11 AM
Now also works in the archive...
Boofo
03-10-2006, 04:35 AM
Now also works in the archive...
How about notification emails for the forum/thread titles and subject? ;)
Sorry I didn't include that in my earlier post. I just remembered it. ;)
zagman76
03-10-2006, 04:48 AM
How about notification emails for the forum/thread titles and subject? ;)
Sorry I didn't include that in my earlier post. I just remembered it. ;)
(you just want to make him work, don't you?) ;) :D
Any chance that the ability to restrict this to specific forums can be added? (I know, I asked already... just being a pushy-pete :)
hambil
03-10-2006, 01:12 PM
Now works in outgoing emails
I can do the forum/usergroup permission thing, but I'll wait to hear from the original author of this plugin.
Edward S
03-10-2006, 02:23 PM
This looks like a pretty decent and useful addition.
I'd like to caution my friends here that it can also cause you some trouble. If you've promised the users on your site even a wee bit of privacy and they see their name in someone's post.. they could wonder how, that person, knew who they were. Many webmasters won't stop at the "You" thing and go for things like, "address, email, etc... " and if those things have been private in the past... whoosh! - It could get ugly.
I remember the fights that used to start back in the old BBS days when someone would read a post that said something like , "BILL has a BIG NOSE".. Everyone who read that, didn't understand what was happening and many of them took offense and began blasting back at the original poster.. Great for a Flame board, but lots of webmasters don't allow flaming on their site...
So, now where's that Install switch again... ? Just tossing in a caution
shiola
06-03-2006, 11:53 PM
Just installed it and hope to create mass confusion. The email addition is a nice touch.
Edward S - good point about possible abuse. To counteract this I did a find and replace on 'you' in Hambil's XML page and replaced it with a long nonsensical word so no-one else can use it except me.
Nachtfalke
06-05-2006, 01:54 PM
Now works in outgoing emails
I can do the forum/usergroup permission thing, but I'll wait to hear from the original author of this plugin.
Funny thing, Hambil! I installed your last version of the product, but instead of showing up the reader's username, it allways shows the writer's name ... Any Idea about that?
Great addition, though ;)
Tulsa
06-05-2006, 09:11 PM
Funny thing, Hambil! I installed your last version of the product, but instead of showing up the reader's username, it allways shows the writer's name ... Any Idea about that?
Great addition, though ;)
Did you look at it through another users account, or your own?
Nachtfalke
06-06-2006, 05:02 AM
*lol* Of course I took another account! I may not be a coder, but I have a brain, too ;-)
sebbe
06-06-2006, 06:33 PM
* sebbe subscribes!
I only found the version of this hack that worked for vB 3. Thanks for this. Gonna install it soon enough! :)
Neo_Angelo
06-07-2006, 11:02 AM
is there a way to change it from [you] to /you ? i prefere /You
peterska2
06-12-2006, 08:47 PM
works on 3.6
Tyegurl
06-17-2006, 07:11 PM
I have been looking for this exact thing....
THANKS! I like to keep it personal on my forum... Like I am actually talking to the user themself. This is perfect!
Tyegurl
06-17-2006, 07:23 PM
one request....can you get it to work with vbshout or is that impossible?
Saskia
06-19-2006, 01:03 PM
Great hack. I've replaced the 'username' field with my 'real name' userfield, so it displays the user's real name instead of their username.
I'm testing it out a little now. Thanks for great hack!
*clicks install*
EDIT: It works great. I've added the userfield conditional to the plugin, so that if a member has no 'real name' listed in the respective userfield, it displays the 'username', so you'll never get a blank.
tei727
06-20-2006, 12:14 PM
too bad that when the [you] is quoted that the readers see the person's name that did the quoting...
Tyegurl
06-22-2006, 01:36 AM
i have the product by Hambil installed on 3.6.0 beta 3 and so far it works in threads titles but haven't really tried it anywhere else.
wolfyman
06-22-2006, 01:59 AM
too bad that when the [you] is quoted that the readers see the person's name that did the quoting...
actually, I''m seeing the exact opposite. when you are quoting someone, it shows the actual [ you ] code, but once they post it, it works just like it does normally, even in the quoted text..
We had an absolute blast with this on my board - I didn't tell anyone about it, just put it into effect. It took the first person 40+ posts to get it, and the last person to get it was after post #170 or so - my fiance thought I turned the whole board against her, it almost wrecked our relationship. Flippin awesome!!!! I can't say Ive had this much fun with anything since I discovered vaseline at age..errr... sorry bout that, nevermind.
zagman76
08-09-2006, 05:54 PM
is there any way to make it so that a user can sign up with the [you] code in their name, and have it "trick" people even if they don't post? if so, where would that need to be implimented?
Lombardo
02-28-2008, 08:28 PM
How do you get it to work in the title of a thread?
vBulletin® v3.8.12 by vBS, Copyright ©2000-2024, vBulletin Solutions Inc.