Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
/me - irc feature Details »»
/me - irc feature
Version: 1.00, by Dean C Dean C is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Version: 3.5.0 Beta 3 Rating:
Released: 07-29-2005 Last Update: 07-29-2005 Installs: 136
Uses Plugins
Is in Beta Stage  
No support by the author.

[/me - irc feature]

Information
  • [high]vBulletin Version:[/high] 3.5.x
  • [high]Author:[/high] Dean Clatworthy
  • [high]Copyright:[/high] You may use this modification at your own risk. I cannot and will not be held responsible for any damage you may cause to your forums during installation or thereafter. You may not distribute this modification in whole or parts and anyone found doing so faces risk of prosecution. All my modifications are released at vBulletin.org and anyone found releasing them elsewhere also faces risk of prosecution. You may not translate this modification without my prior permission.
  • [high]Donations:[/high] I release my modifications for free. If you wish to donate please contact me and I will give you my details. All donations are graciously appreciated.
What does this modification do?
This modification simply duplicates the /me feature of irc. It will replace "/me does this action" with "* username does this action".

Installation

1/

Upload the me-hack.xml file via the plugin uploader in the AdminCP

Please Click Install!
If you installed this modifcation please click the install button. It'll help you keep up to date with future releases and important bugfixes, security updates.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #72  
Old 10-03-2005, 03:14 PM
El_Muerte's Avatar
El_Muerte El_Muerte is offline
 
Join Date: Nov 2001
Posts: 237
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

use:
Code:
$mepattern = '/(^|\s)\/me([^\r\n]+)/is';
if(preg_match($mepattern, $this->post['message']))
{
	$this->post['message'] = preg_replace($mepattern, '$1<b>* ' . $this->post['username'] . '$2</b>', $this->post['message']);
}
this requires either nothing (begin of the post) or a whitespace character before the /me

also note the changed preg_replace
Reply With Quote
  #73  
Old 10-03-2005, 03:50 PM
utw-Mephisto utw-Mephisto is offline
 
Join Date: Jan 2005
Posts: 648
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You are A HERO Works !!!
Reply With Quote
  #74  
Old 10-04-2005, 02:45 AM
-mk- -mk- is offline
 
Join Date: May 2003
Location: Sydney, AU
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

YAY that worked great!
Thank you very much
Reply With Quote
  #75  
Old 10-04-2005, 10:18 AM
El_Muerte's Avatar
El_Muerte El_Muerte is offline
 
Join Date: Nov 2001
Posts: 237
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You might also want to add the following plugin
Code:
global $vbulletin;
$mepattern = '/(^|\s)\/me([^\r\n]+)/is';
if(preg_match($mepattern, $previewmessage))
{
    $previewmessage = preg_replace($mepattern, '$1<b>* ' . $vbulletin->userinfo['username'] . '$2</b>', $previewmessage);
}
under the hook: newpost_preview

and

Code:
$mepattern = '/(^|\s)\/me([^\r\n]+)/is';
if(preg_match($mepattern, $reviewmessage))
{
	$reviewmessage = preg_replace($mepattern, '$1<b>* ' . $username . '$2</b>', $reviewmessage);
}
under the hook: newreply_form_reviewbit

with this the preview of a post will also get the right update

or simply download the attached xml file (note: I made it a product because of the 3 linked hooks)
Reply With Quote
  #76  
Old 10-04-2005, 10:41 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by El_Muerte
You might also want to add the following plugin
Code:
global $vbulletin;
$mepattern = '/(^|\s)\/me([^\r\n]+)/is';
if(preg_match($mepattern, $previewmessage))
{
$previewmessage = preg_replace($mepattern, '$1<b>* ' . $vbulletin->userinfo['username'] . '$2</b>', $previewmessage);
}
under the hook: newpost_preview

and

Code:
$mepattern = '/(^|\s)\/me([^\r\n]+)/is';
if(preg_match($mepattern, $reviewmessage))
{
	$reviewmessage = preg_replace($mepattern, '$1<b>* ' . $username . '$2</b>', $reviewmessage);
}
under the hook: newreply_form_reviewbit

with this the preview of a post will also get the right update

or simply download the attached xml file (note: I made it a product because of the 3 linked hooks)
Where is the attachment, sir?
Reply With Quote
  #77  
Old 10-04-2005, 10:55 AM
El_Muerte's Avatar
El_Muerte El_Muerte is offline
 
Join Date: Nov 2001
Posts: 237
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

doh, forgot to save the post.
it's there now.
Reply With Quote
  #78  
Old 10-04-2005, 10:58 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by El_Muerte
doh, forgot to save the post.
it's there now.
How about when editing a post?

And thank you.
Reply With Quote
  #79  
Old 10-04-2005, 03:09 PM
Moparx Moparx is offline
 
Join Date: Jul 2004
Posts: 120
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks El_Muerte

Now all we need is a fix so that when quoting a post with /me in it, the quoted /me uses the quoted persons name instead of taking on the name of the person replying
Reply With Quote
  #80  
Old 10-04-2005, 06:43 PM
El_Muerte's Avatar
El_Muerte El_Muerte is offline
 
Join Date: Nov 2001
Posts: 237
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I've been working to revamp this plugin, so far so good except for the quoting issue.
The problem with quoting is that it's not use who posted it, so I've been going through a couple of ideas:

1) rewrite the /me in the quote to reflect the original user
2) use the username from the quote param to replace the /me

the problem with 1) is that it needs to be rewritten to a vbcode, so I could change the rewriting to use something like [action=username]description[/action]

with 2) you have the issue that not always a username is provided in the quote

I think I'm going for the rewriting as a whole base, just like with the automatic URL detection. Ofcourse this has the issue that current /me's won't be replaced correctly.
Reply With Quote
  #81  
Old 10-04-2005, 06:52 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by El_Muerte
I've been working to revamp this plugin, so far so good except for the quoting issue.
The problem with quoting is that it's not use who posted it, so I've been going through a couple of ideas:

1) rewrite the /me in the quote to reflect the original user
2) use the username from the quote param to replace the /me

the problem with 1) is that it needs to be rewritten to a vbcode, so I could change the rewriting to use something like [action=username]description[/action]

with 2) you have the issue that not always a username is provided in the quote

I think I'm going for the rewriting as a whole base, just like with the automatic URL detection. Ofcourse this has the issue that current /me's won't be replaced correctly.
Maybe Kirby has an idea of how to handle the quote part.
Reply With Quote
Reply


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

Forum Jump


All times are GMT. The time now is 06:28 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04850 seconds
  • Memory Usage 2,318KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (5)bbcode_code
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete