vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   /me vB Code (https://vborg.vbsupport.ru/showthread.php?t=38069)

Admin 04-29-2002 10:00 PM

/me vB Code
 
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! :)

Admin 04-30-2002 10:38 AM

A text version of the installation file.

Webmasta XT 04-30-2002 10:42 AM

I don't get this hack, lol

NTLDR 04-30-2002 10:51 AM

Thanks FireFly!!

[high]* NTLDR thinks I will be installing when I get home :D[/high]

ForKmaN 04-30-2002 10:55 AM

CHAMPION! :)

[high]* ForKmaN installs[/high]

Bald Bouncer 04-30-2002 11:07 AM

/me considers the install

kinda fun!

Floris 04-30-2002 11:26 AM

[high]* Floris will install this later on :)
[/high]
Very nice FireFly, saved me the time to create it, since I have this on my ToDo list for a while already :P

DjSap 04-30-2002 11:31 AM

/me is the biggest pimp in the world...nice hack

Sparkz 04-30-2002 11:33 AM

Nice one. I was actually gonna do this one this evening, but I guess I can go grab some beers instead :p

Velocd 04-30-2002 11:34 AM

/me falls down *


All times are GMT. The time now is 12:32 AM.

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.01317 seconds
  • Memory Usage 1,728KB
  • 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
  • (3)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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