The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
/me support?
Back on my MyBB board I had support for /me. For instance...
[high]* Outlaw Mantis is eating a sandwich [/high] Becomes... Outlaw Mantis is eating a sandwich Kind of pointless but fun feature. I can't find such a plugin. Is it possible on vBulletin? I know it probably is with BBcode but that's a bit cumbersome for a lot of users. |
#2
|
||||
|
||||
That would be easy to do with a plugin...do you want the string /me to be changed to the username of the author of the post, or to the name of the user viewing the post?
--------------- Added [DATE]1472006810[/DATE] at [TIME]1472006810[/TIME] --------------- To have "/me" replaced with the username of the post author and "/you" replaced with the username of the user viewing the post, create a plugin hooked at "postbit_display_complete" with the PHP code: PHP Code:
|
2 благодарности(ей) от: | ||
blind-eddie, Brandon Sheley |
#3
|
|||
|
|||
[high]* Outlaw Mantis works great. I'm just waiting on another member to test /you. One thing is that the /you text appears blank to the poster, but that's no big deal if it works with other members.[/high]
Thanks, you're a genius. |
#4
|
||||
|
||||
The string "/you" should show your username, even if you are the author of the post. That's what it does on my local dev site at least.
|
#5
|
|||
|
|||
Could it be to do with the execution order?
Knowing me I've done something stupid. |
#6
|
||||
|
||||
I used the default of 5.
--------------- Added [DATE]1472022341[/DATE] at [TIME]1472022341[/TIME] --------------- This plugin code is more robust: PHP Code:
|
#7
|
|||
|
|||
I updated the code, but the problem persists. I'll PM you a link so perhaps you can inspect the source. Thanks.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|