![]() |
[you] - Use the person who is viewings username in a post.
[ [you] - replace bbcode with a username]
Information
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. |
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.
|
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 :) |
<a href="https://vborg.vbsupport.ru/showthread.php?t=93145" target="_blank">https://vborg.vbsupport.ru/showthread.php?t=93145</a>
|
Quote:
|
Quote:
Well it is different code. |
Quote:
|
Quote:
|
Quote:
[/high] We have to ask for permission when rewriting code differently from scratch? I'm so behind the times :ermm: |
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? ;)
|
For you, anything ;) Want me to delete Bob :)?
|
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? |
Quote:
|
Be careful, corrie, I have the power on this one. LOL
|
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 ;)!
|
Quote:
|
Quote:
|
Bug in your str_replace :p
Replace: PHP Code:
PHP Code:
|
Fixed. Thanks Chris :)
|
I've done something like this in the past, gotta be one of the most fun hacks for new users...
|
big bug in this, with RC2....parse errors start to appear....
|
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 |
now my forum is wrecked.
oh well, it had to happen sooner or later :P |
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? |
same problem here ,,i ended by uninstalling it..
|
i wasn't so lucky... still trying to get rid of that error.
|
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.
|
does this thing make any database changes or anythign? I uninstalled it but I still have the eror.
|
Should be fixed. I swear I uploaded this fix the day I released this. Sorry about it guys :)
|
Quote:
I started many fights in a forum because of this one. |
Quote:
|
Quote:
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.
|
Can this script be written so it also works for signatures?
|
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 |
works well, i like it. Thanks <3
(if it helps i was utterly confused by both threads lol) |
-bump-
just wondering if this can be restricted to specific forums/sub-forums? |
dont work 3.5.4
after 1 hr of looking for it.. lol |
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 |
Quote:
|
All times are GMT. The time now is 04:46 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|