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)

Kars10 08-06-2002 09:56 AM

This is so cool!
Thanx FireFly for another great hack!! :)
[high]* Minifreunde klicks the install-button![/high]

PhoenixBB 08-08-2002 01:48 AM

This is great. Thanks! :)

Schorsch 08-08-2002 03:55 AM

seems to work fine, thanks FireFly.

I still have a question, do I have to accomplish the following:

Quote:

Forgot to mention, you must install this fix by smachol:
https://vborg.vbsupport.ru/show...&threadid=35894
For this hack to work! (thanks Kura for reminding me)
or can I skip this step meanwhile (I have vB 2.2.6) ?

cu
Schorsch

Zoinks 08-13-2002 06:26 PM

I'm using vb 2.2.6 and installed this hack.
When I use the /me thing in a post it works like a charm but when someone qoutes my post the original post says /me and not the original poster's name in color.
I added this php code as mentioned earlier in this thread:
PHP Code:

  if ($dome) {
  global 
$post,$originalposter;
  
$bbcode preg_replace('#^/me (.*)$#im'"<font color=\"red\">* $post[username] \\1</font>"$bbcode);
  if (
$bbcodeid==6) {
    
$bbcode preg_replace('#^/me (.*)$#im'"<font color=\"red\">* $originalposter \\1</font>"$bbcode);
  }


anyone seeing what I'm missing?

edit:
just read I should not use that php code...
replaced it with this:
PHP Code:

if ($dome) {
      global 
$post;
      
$bbcode preg_replace('#^/me (.*)$#im'"<font color=\"red\">* $post[username] \\1</font>"$bbcode);
  } 

and added the line to newreply.php
but now I'm getting:
Quote:

[high]* Zoinks <br />
[/high]
edit2:
ok.. right now it's working fine. Only one question. When a /me tag is quoted the * username is not in color. Can that be fixed?

Zoinks 08-14-2002 03:32 PM

I changed the /me tag a bit :)

in /admin/functions.php
I use this code:
PHP Code:

 if ($dome) {
      global 
$post;
      
$bbcode preg_replace('#^/me (.*)$#im'"[me=$post[username]]\\1[/me]"$bbcode);
  } 

and in newreply.php
I use this code:
PHP Code:

$pagetext preg_replace('#^/me(.*)$#im'"[me=$originalposter]\\1[/me]"$pagetext); 

When parsed it will result in this:
[me=user]say something silly[/me]

Then I use a custom vbcode to add the color and the *
Code:

<font color="#339933">* {option} {param}</font>
You know how it works :)

This way when you qoute a /me tag the text in the qoute will also be the right color.

Hope this might help some people

Boofo 08-14-2002 03:49 PM

Just use this in the functions.php and you won't have to make a new color vbcode. :)

PHP Code:

if ($dome) {
      global 
$post;
      
$bbcode preg_replace('#^/me (.*)$#im'"<font color=\"yellow\">* $post[username] \\1</font>"$bbcode);
  } 


Zoinks 08-14-2002 03:57 PM

I know.
That's the way I had it before. But that code does not make the * username text in a qoute the right color.

The way I did it is that the /me code in a post is [me=user]text[/me]
And together with the vbcode that adds the color and the * it will allways make a /me tag the right color. Even in a qoute.

Boofo 08-14-2002 04:01 PM

That always makes the right color in a quote for me. :)

Zoinks 08-14-2002 04:03 PM

strange.. that doesn't seem to work for me that's why I used this method.

Googa 08-24-2002 05:33 AM

/me installed.


All times are GMT. The time now is 11:07 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.04297 seconds
  • Memory Usage 1,752KB
  • 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_code_printable
  • (5)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)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