Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 24 Aug 2016, 01:41
Outlaw Mantis Outlaw Mantis is offline
 
Join Date: Nov 2013
Question /me support?

Back on my MyBB board I had support for /me. For instance...

/me is eating a sandwich
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.
Reply With Quote
  #2  
Old 24 Aug 2016, 02:06
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Real name: Mark
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 24 Aug 2016 at 03:46 ---------------

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:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

__________________
Former vBulletin.org Staff Member



Support for my products (as well as updates/new product publishing) has been moved to MHB - vBulletin Products and TAZ - Add-ons
Reply With Quote
  #3  
Old 24 Aug 2016, 04:16
Outlaw Mantis Outlaw Mantis is offline
 
Join Date: Nov 2013
/me 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.

Thanks, you're a genius.
Reply With Quote
  #4  
Old 24 Aug 2016, 04:18
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Real name: Mark
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.
__________________
Former vBulletin.org Staff Member



Support for my products (as well as updates/new product publishing) has been moved to MHB - vBulletin Products and TAZ - Add-ons
Reply With Quote
  #5  
Old 24 Aug 2016, 04:30
Outlaw Mantis Outlaw Mantis is offline
 
Join Date: Nov 2013
Could it be to do with the execution order?




Knowing me I've done something stupid.
Reply With Quote
  #6  
Old 24 Aug 2016, 05:31
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Real name: Mark
I used the default of 5.

--------------- Added 24 Aug 2016 at 08:05 ---------------

This plugin code is more robust:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

It will ignore strings like "/meat" and "/yourname" for example.
__________________
Former vBulletin.org Staff Member



Support for my products (as well as updates/new product publishing) has been moved to MHB - vBulletin Products and TAZ - Add-ons
Reply With Quote
  #7  
Old 24 Aug 2016, 21:07
Outlaw Mantis Outlaw Mantis is offline
 
Join Date: Nov 2013
I updated the code, but the problem persists. I'll PM you a link so perhaps you can inspect the source. Thanks.
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 23:53.

Layout Options | Width: Wide Color: