The Arcive of vBulletin Modifications Site. |
|
/you, /me, /youid, /myid Hack Details »»
|
|||||||||||||||||||||||||
1.4.2 has been released! Upgrade if /youid and /meid arent working! To upgrade, just cut (not copy) the youid part above the /you part, and it'll work This is a hack adds the following BB codes: "/you" is replaced by the Username viewing the thread* "/me" is replaced by the thread/post creator* "/youid" is replaced by the UserID of the user viewing the thread. "/myid" is replaced by the UserID of the poster of the post. "/you is great!" Turns into: Username is great! "/me" is great!" Turns into: "Deaths is great!" "http://www.vbulletin.org/user.php?u=/youid" Turns into: "http://www.vbulletin.org/user.php?u=123". "http://www.vbulletin.org/register.php?refferer=/myid" Turns into: "http://www.vbulletin.org/register.php?refferer=567". Here are the instructions: Optionally, you may follow the instructions in install.txt. Both this post and the .txt file contain the exact same information. Open includes/functions_bbcodeparse.php: Find: PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
Find: PHP Code:
PHP Code:
Hope you like it! *I'm almost positive these hacks have already been released before, even though I couldn't find them. I did not copy any code from anyone. However, if you released this hack before I did, and wish to have the /you and /me hacks removed, please contact me by PM. Supporters / CoAuthors Show Your Support
|
|||||||||||||||||||||||||
| Comments |
|
#2
|
|||
|
|||
|
Wow thats kinda cool.
Might install it later.. Good job
|
|
#3
|
|||
|
|||
|
Heh, thanks
.If you use it, don't forget to click the install button! |
|
#4
|
|||
|
|||
|
Quote:
|
|
#5
|
|||
|
|||
|
I believe PM's use the $post array aswell, but I'm not sure about this.
I cannot check it from where am now, though I will look into this ASAP. This hack was intended for forum post, not for PM's. I will look into this though, thank you for the feedback. |
|
#6
|
||||
|
||||
|
nice
/me clicks install |
|
#7
|
||||
|
||||
|
very nice! I wish I could get this to work in a poll
I just gave out "Member of the Month" award to /you and now they are all posting acceptance speeches LMAO
|
|
#8
|
|||
|
|||
|
Heh, I did that aswell a while back, on april fools
.I'll look into the poll thing, but I don't think BB code is allowed in polls... |
|
#9
|
|||
|
|||
|
Quote:
Code:
global $post;
if ('' == $post[username]) {
global $reputation;
if ('' == $reputation[username]) {
global $pm;
if ('' == $pm[fromusername]) {
$meUsername = $bbuserinfo[username];
} else {
$meUsername = $pm[fromusername];
}
} else {
$meUsername = $reputation[username];
}
} else {
$meUsername = $post[username];
}
|
|
#10
|
||||
|
||||
|
Quote:
|
![]() |
|
|