![]() |
[you] vbcode
<a href="https://vborg.vbsupport.ru/showthread.php?s=&threadid=38069&highlight=vbcode" target="_blank">Inspired by FireFly's /me vB Code</a>
When reading the /me hack thread I started laughing at the idea of a [you] tag. This isn't much of a hack, but it was fun. Put [you] in the thread and it is replaced by the person's name who is reading the thread. if it is a guest, [you] is simply replace by the word you. I had to change this to a text file to avoid problems. Should be fine now |
*lol* A brilliant mix of the "/me" hack and the "{bbusername}" hack - it sounds. :D
[high]* Rose installs [/high] [you] grins |
This seems to function almost identically to the {bbusername} hack, but still fun nevertheless. ;)
|
very nice, indeed. :)
|
this si good, the bbusername one didn't work on the newer forums for some reason but this does! hella nice!
|
Hey! Nice! :)
|
Quote:
I had that problem, but I changed it to [bbusername] instead and it works fine. |
Don?t works here!!
First of all, can?t find that line on 2.2.9: PHP Code:
PHP Code:
PHP Code:
|
Ahhh, there is the problem. Your code gets parsed here. My first line looks like " /" , and my second line " //" ...
Please place your instruction in a textfile. |
dont work here..
it just shows [you] |
I text filed it up, let me know if that does it for you
how do I edit the directions in the hack DB? I don't see an edit button |
Brilliant!! Works like a charm!!
[high]* Kars10 klicks install! :)[/high] |
Just in time for April Fools jokes too. ;)
|
LOL, very cool idea :p
|
@Mutt: there should be an editbutton beside the new post and new thread button on the top of the thread :)
|
Great hack. ;)
2 questions: How can we add color to the name? Is there a way to get this to work with thread titles? |
This is great!
Although many users on my board are getting paranoid with it. I really needed to explain whenever i post: Hey [you] where's my money? ps: No i, haven't received any addtional money with it :) |
My god, I made this yesterday and all hell has broken out on my board. there has been more posting today than ever before. all the lurkers came out to find out why everyone is flaming them. :) it's the funiiest thing. I recieved all inds of emails and phone calls. My site is a Howard Stern Fan Site and High Pitch Eric called today very upset because Joey Boots was talking ++++ about him all night and everyone is picking on him. It was too much. I had tears in my eyes trying to explain the whole thing to him. It was too damn funny. I hope I don't lose members over this.
I'll be playing with it and giving it some options. I'm going to set it so you can limit the [you] tag to just mods/admin plus make it so you can limit it to specific forums. I have a prank forum that this will be perfect for. I'm going to look into adding profile field info also. didn't even look at the code yet, but something like [you]user title[/you] or [you]birthday[/you]. If it's reasonable, I'll be sure to include custom profile fields and limit the working field to just those viewable in the profile. this hack is evil. ;) I've also been asked to get it working for thread titles. I'll look into it. Would be fun, but not sure it would be worth it. thread titles are used in so many places like your profile, the search page, etc. Seems like alot of edits would be necessary. PS - with so many people upset about the recent flaming against [you] I've started a poll to see you will be banned. Joey Boots or [you]. Maybe I'm going to far, but it's so funny. |
Ok, here they are. The edits for the thread titles and the post titles. If I forgot to post any other needed areas here, let me know. I also have code needed if you have Logician's Download thread hack, PPN's vb Last title hack and the threadintro hack (by nicksaunders) if anyone needs those fixes.
In functions.php, find: PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
In member.php, find: PHP Code:
PHP Code:
|
Wow thanks for that piece of code Boofo. Didn't realise you know so much PHP :)
- miSt |
Heh...
Seems like a cool hack!:) I'll be sure to install it and check it out when I get my machine back up and running!:) Satan |
yeh..
how would u get it to work in the navbar.. it shows [you] in the navbar :) |
Quote:
|
yeh i was about to go in and have a look myself..
if i figure it out ill tell ya :P whats ya partial fix? |
Completed working code for the forum navbar (if you make a forum with the [you] in it (like "[you]'s Personal Forum"). Thanks to Xenon for pointing out something I missed, that was really, really stupid of me. ;)
In admin/functions.php, find: PHP Code:
PHP Code:
PHP Code:
PHP Code:
|
Is there anyway to make it so when the user quotes your post it doesn't show up as [you]?
I believe in FireFly's /me hack when you quoted a post it didn't come up as /me. |
hhahahaa..
ive had the remove the damn thing.. with 25 ppl online... as soon as i added all hell broke loose.. o wells... its an evil hack.. |
Quote:
In the newreply.php, find: PHP Code:
PHP Code:
|
Mutt, you were right, there are almost too many changes to make to make this not show up in all of the places it can show up. :) I just got through spending the last 2 hours finding all of the places it can show up. I think I have them all nailed now. The only place left is the forum navbar. Still working on that one. Here is a list of all the files that need to be edited.
functions.php - 4 edits showthread.php - 3 edits index.php - 2 edits usercp.php - 1 edit forumdisplay.php - 3 edits newreply.php - 1 edit search.php - 1 edit member.php - 1 edit private.php - 3 edits private2.php - 1 edit |
The navbar fix is working now in the post below if anyone is still interested. ;)
https://vborg.vbsupport.ru/showthrea...&postid=360359 |
thats why I didn't want to touch the subject. just way to many places to miss something and with little payback.
as for fixing the quote, yeah it's do-able and might be funny but quoting the message is sortof how people figure out it's not about them. I think I like it though and will do it. I made this forum controlable (on in some of in others like the IMG tag) and when I finish the cp I'll re-post. (right now, I just set the var via phpmyadmin so I could turn it off everywhere except our prank forum.) |
I have about every base covered for this in vbulletin. If you want to check the file out, let me know, It's about 20K. ;)
Being able to turn it off and on per forum would be great! :) |
Is there a way to have this set up so only certain usergroups can use it? I can edit the code in functions.php, I suppose. ;)
|
first of all, great hack! thanx alot :)
second.. isn't it easy to make it so to use the forum stuff? so $forum[useyou] for example? if you want i can post the changes for it Greetings, Chratnox |
can u send me the file or upload it somewhere so i can download it. thanx.
l8er sonic |
Quote:
|
Quote:
|
hey people, I finished the cp so you can turn it on/off but it is working and I'll get directions written asap.
just wanted to throw out a couple other ideas/mods to you these also work if you wanted to get real crazy PHP Code:
if you'd like to give your staff a little help you can change this line PHP Code:
PHP Code:
PS - if you wanted to restrict usage to certain usergroups, bbuserinfo wouldn't do it. you'd need to check the usergroupid of the person who posted. bbuserinfo is for the person reading the post |
Be looking forward to the update. ;)
If you use all of these, wouldn't you have to go through all of the places to parse it out like with the first code? And I take it this goes in the functions.php with the first code, right? Quote:
|
just add those line right after
$bbcode = preg_replace("/(\[)(you)(])/siU", $bbuserinfo[username], $bbcode); thats it now for you it might be a ton more because you added it to subjects as well. |
All times are GMT. The time now is 04:43 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:
|