Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
/me vB Code Details »»
/me vB Code
Version: 1.00, by Admin (Coder) Admin is offline
Developer Last Online: Nov 2024 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 04-29-2002 Last Update: Never Installs: 158
 
No support by the author.

Here's a another not-very-useful-yet-fun hack.

It's very simple, it just mimics IRC's /me action. So if you type this:
/me runs fast
(note: it must be on its own line!)
It will become:
[high]* FireFly runs fast
[/high]
It parses this code in showthread.php and private.php, only.

After you install the hack, find this line in functions.php:
Code:
	  $bbcode = preg_replace('#^/me (.*)$#im', "<font color=\"{timecolor}\">* $post[username] \\1</font>", $bbcode);
And change {timecolor} to whatever color you want the line to be.

Forgot to mention, you must install this fix by smachol:
https://vborg.vbsupport.ru/showthrea...threadid=35894
For this hack to work! (thanks Kura for reminding me)

READ:
To fix the bug where users who quote other people get the /me tag messed up, replace this code in newreply.php:
Code:
    $pagetext = preg_replace("/(\[quote])(.*)(\[\/quote])/siU", "", $pagetext);
With this:
Code:
    $pagetext = preg_replace("/(\[quote])(.*)(\[\/quote])/siU", "", $pagetext);
    $pagetext = preg_replace('#^/me(.*)$#im', "* $originalposter\\1", $pagetext);
Attached is the vbHacker install file, and a plain text file is in the next post.

Enjoy!

Show Your Support

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

Comments
  #202  
Old 06-23-2003, 09:36 PM
Drau87 Drau87 is offline
 
Join Date: Jun 2002
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hey FireFly...I have ur /me hack installed and its great =]...I was wondering for my board I wanna make it so anything in between two asterisks (the * thingies) would be a certin color, like the /me hack only all they do is *text* and it'll just change the color, and keep the *'s there. do you think you could do that?
I tried with the vb code stuff, but they have to use the [ ] things, If you could help me id be very grateful.

Thanks alot^^
Reply With Quote
  #203  
Old 07-01-2003, 08:58 AM
Sliderx's Avatar
Sliderx Sliderx is offline
 
Join Date: Nov 2002
Location: well near of my computer
Posts: 18
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

/me instal that hack now n think is very great
Reply With Quote
  #204  
Old 07-01-2003, 09:53 AM
Ninth Dimension's Avatar
Ninth Dimension Ninth Dimension is offline
 
Join Date: Oct 2001
Location: London, England.
Posts: 739
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

/me clicks install
love this hack
Reply With Quote
  #205  
Old 07-01-2003, 11:04 AM
Mr. Brian's Avatar
Mr. Brian Mr. Brian is offline
 
Join Date: Jan 2003
Location: Internet
Posts: 300
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That's Rocky..

thanks for the hack...
Reply With Quote
  #206  
Old 08-18-2003, 07:34 AM
MaDCaT75 MaDCaT75 is offline
 
Join Date: Jul 2003
Location: Southern California
Posts: 718
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Maybe when I get enough members they'll use it
Reply With Quote
  #207  
Old 11-20-2003, 02:13 PM
jp2's Avatar
jp2 jp2 is offline
 
Join Date: Sep 2003
Location: UK
Posts: 52
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

awesome hack, i will install later today

/me smiles and runs off
Reply With Quote
  #208  
Old 02-13-2004, 08:41 PM
David Coutts David Coutts is offline
 
Join Date: Feb 2004
Posts: 19
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

[high]* David Coutts adores the vB Code hack. [/high]
Reply With Quote
  #209  
Old 03-14-2004, 05:15 AM
Diva's Avatar
Diva Diva is offline
 
Join Date: Oct 2001
Location: CA, USA
Posts: 311
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

/me loves this hack!

I recently turned off the html and now the /me quoted in the private messages doesnt show up correctly. Is there a way to change it to vb code?
Reply With Quote
  #210  
Old 01-30-2005, 09:46 PM
Destroyed Soul's Avatar
Destroyed Soul Destroyed Soul is offline
 
Join Date: Jan 2005
Posts: 52
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Warning: Cannot modify header information - headers already sent by (output started at /home/piper/public_html/admin/functions.php:2540) in /home/piper/public_html/admin/functions.php on line 1718
what do I do?

[high]* Destroyed Soul fixed the problem! Nevermind![/high]
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 10:50 AM.


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.04807 seconds
  • Memory Usage 2,291KB
  • Queries Executed 24 (?)
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
  • (3)bbcode_code
  • (1)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
  • (2)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)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