vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   "/me action" port for vB3.5.x (https://vborg.vbsupport.ru/showthread.php?t=102835)

Polo 07-06-2006 12:50 PM

I always liked this little hack :) thank you ;)

DaveAK 08-20-2006 06:16 PM

Any chance of a 3.6.0 update? I just upgraded to Gold, reverted all my templates, and I'm getting a problem when you quote somebody that had used /me. What I get is the username followed by the post number, in the quoted text.

i.e. * DaveAK;1234567 has issues with this hack

DaveAK 08-26-2006 02:06 AM

Quote:

Originally Posted by DaveAK
Any chance of a 3.6.0 update? I just upgraded to Gold, reverted all my templates, and I'm getting a problem when you quote somebody that had used /me. What I get is the username followed by the post number, in the quoted text.

i.e. * DaveAK;1234567 has issues with this hack

Anyone else having this problem in 3.6.0? Anyone come up with a fix?

DaveAK 08-26-2006 02:44 AM

OK, I've fixed it, but I'm not sure it's the best way of doing it.

I added a $originalposternopostid variable into newreply.php and functions_newposts.php

In the plugin manager I changed the preg_replace Quick_Reply instance and the QUOTE instance to use $originalposternopostid instead of $originalposter. I left the isset($originalposter) unchanged.

Comments on this? It works, but have I done it right?

Diva 10-20-2006 07:19 PM

Quote:

Originally Posted by DaveAK
Any chance of a 3.6.0 update? I just upgraded to Gold, reverted all my templates, and I'm getting a problem when you quote somebody that had used /me. What I get is the username followed by the post number, in the quoted text.

i.e. * DaveAK;1234567 has issues with this hack

I would love to use this hack if you can update it for 3.6.2. I used it on my test site and have the same problem as DaveAK. Is there an easier way around it or do we have to hack PHP? DaveAK, can you tell me how to do that?

Also, is there a way to have the hack keep the same color/boldness in the quotes? At least stay bold would be nice. I'm so glad you updated it!!!

DaveAK 11-11-2006 08:06 PM

Got it working for 3.6.x Had to change the PHP code for the QUOTE and Quick_Reply instances to the following :

PHP Code:

if (isset($originalposter))
{
  
$pagetext preg_replace('#^(([ \t]|\[[a-z]+[^\]]*\])*)/me[ \t](.*)$#Uim''$1* ' rtrim(rtrim($originalposter,"0..9"),";") . ' $3'$pagetext);


The nested rtrim first removes the post ID, then the semi-colon, so that it will work with usernames that end in numbers. No file edits are needed as in my previous attempt posted above.

Diva 11-12-2006 03:37 PM

Thank you so much, DaveAK. You are so kind!

Elenna 07-02-2007 05:25 PM

Awesome, thanks for the fix for quotes.

Confirmed working (with the above fix) on 3.6.5

Note for those that don't know where to apply the above fix:

Go into AdminCP> Plugins & Products> Plugin Manager
Scroll to Product: /me (should be at the top).
Click Edit next to the /me Action (QUOTE instance) and /me action (Quick-Reply instance) lines and REPLACE the Plugin PHP code with the code from above.

paramorefans 07-25-2007 06:39 AM

is there anyway to add this to the quickreply?

DieselMinded 09-20-2007 09:58 PM

/me installs on 3.6.8 works great thanks
and the members rejoice


All times are GMT. The time now is 01:03 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
  • Page Generation 0.01264 seconds
  • Memory Usage 1,740KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete