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)

Gary King 07-28-2002 08:55 PM

Quote:

Originally posted by Boofo
Try having the [disable]/me[/disable] the first thing on the line and each line with it in it has to be on a separate line.

* Boofo had this trouble at the beginning, too. :)


I already know that it has to be on a separate line to be able to work. But, I have installed this hack on a fresh copy of vBulletin 2.2.6, and it didn't work for me. (At least I think I installed it on a fresh copy... this was a long time ago.)

DrkFusion 07-28-2002 10:42 PM

I installed it on a fresh copy too, and it doesn't work for me too :-/

Drk

Boofo 07-29-2002 01:21 AM

What do you mean? When I wrote that message about the text file, I didn't have it yet. :) It works fine for me (just not in Quick PM Reply Box). ;)

Quote:

Originally posted by hellsatan
@Boofo - You dont need vBhacker...

It works perfectly from the .txt file!:)

Satan


DrkFusion 07-29-2002 03:22 AM

Use the vbhacker one...

VBHACKER IS THE MOST AMAZING THING IVE EVER SEEN

dRK

Gary King 07-29-2002 08:16 PM

I'm not saying anything heh, but.. I like to do things myself, so I won't even bother looking at vBHacker :) (I haven't downloaded it, and don't intend on doing so :p)

DrkFusion 07-29-2002 08:19 PM

Quote:

Originally posted by Blak n Wite
I'm not saying anything heh, but.. I like to do things myself, so I won't even bother looking at vBHacker :) (I haven't downloaded it, and don't intend on doing so :p)
Suit your self, i like to do things myself, I had to install /me hack before I got to work, and vbhacker did the job, it was great :) hehe.

[high]* DrkFusion loves vbhacker, and the /me hack[/high]

Gary King 07-29-2002 08:31 PM

Installing a hack doesn't take very long.. so I guess I take my time when installing a hack heh :D Also I can edit some stuff if I feel like it'll be better :)

_SeVeN137_ 08-03-2002 03:18 AM

/me loves it ^_^

Rose 08-03-2002 07:38 PM

/me loves it, too!

I've got it installed and working great. Thanks!

Chris M 08-03-2002 07:46 PM

[high]* Chris M says it works great too!:p
[/high]

Satan

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.

PsYc 08-25-2002 04:18 PM

does anyone got that to work with the shoutbox from TWTCommish

when i tried it only shows

* is doing this and that

without my username

anyone who got a fix for that?

Darth Cow 08-26-2002 07:57 PM

[high]* Darth Cow just installed :)
[/high]

I did one little modification that you guys might be interested in. It allows there to be vBcode before the /me and for /me to still be processed. Change:

PHP Code:

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

To:

PHP Code:

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

That's all :). Nice simple hack :cool:.

Boofo 08-26-2002 08:00 PM

Any way to have it so it will process code before it AND after it? :)

Darth Cow 08-26-2002 11:29 PM

Quote:

Originally posted by Boofo
Any way to have it so it will process code before it AND after it? :)
I believe it already does :)

Testing....

[high]* Darth Cow this part is bold
[/high]

Also, I've created another "add on" for this hack :D. This code fixes the problems that occur when someone quotes a post with /me in it.

In newreply.php find:

PHP Code:

$pagetext=$postinfo[pagetext]; 

Below it add:

PHP Code:

// fix /me when quoted
    
$pagetext preg_replace("#(^|\[.*\])/me (.*)$#im""\\\1[color=\"#FF9C58\"]* $postinfo[username] \\\2[/color]"$pagetext);
// end fix /me 


Boofo 08-26-2002 11:49 PM

Don't forget the private.php. :)

Darth Cow 08-27-2002 05:20 AM

Quote:

Originally posted by Boofo
Don't forget the private.php. :)
Of course - thanks for reminding me :).

In private.php, find:

PHP Code:

$fromuserinfo=getuserinfo($message['fromuserid']); 

Below that add:

PHP Code:

// fix /me when quoted
    
$message["message"] = preg_replace("#(^|\[.*\])/me (.*)$#im""\\1[color=\"#FF9C58\"]* $fromuserinfo[username] \\2[/color]"$message["message"]);
// end fix /me 

Also, please note that I used the matching code for /me to what I had several posts above. This is matching it to /me when it follows just vBcode as well - it shouldn't cause much trouble just installing this part of the hack though :).

Boofo 08-27-2002 05:26 AM

No problem. :)

PsYc 08-27-2002 09:52 AM

mh how about the shoutbox do you have a fix for that too?

i posted it above your posts

meteore 08-27-2002 09:42 PM

is there a mean to makes it work with the quick reply box ?

NTLDR 08-27-2002 09:44 PM

Quote:

Originally posted by meteore
is there a mean to makes it work with the quick reply box ?
It should already work with the QRB, theres no reason I can see why it wouldn't.

FleaBag 09-03-2002 02:35 AM

Installed and working on 2.2.7. Cheers.

lynda 09-04-2002 07:58 PM

I saw a few other people mention this problem, but I have no clue why it's only affecting a handful of us (and have less of a clue how no one identified why their /me codes were showing up as bright green)

As stated above, the /me code shows up as bright green. That's because it's outputting this into the html:
PHP Code:

<font color="{timecolor}"

Any clue why it's doing that? I'm sure that's what's preventing the { timecolor } (without the spaces) to show up..

NuclioN 09-16-2002 11:17 AM

This hack does'nt work with the "Admins and mods can post HTML" from Entourage:

https://vborg.vbsupport.ru/showthrea...lways+use+HTML

Altough he suggests a code replacement i can't see wich lines must be replaced to let them work together.

Mono 09-16-2002 12:13 PM

For some odd reason I get this error:

Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/videogam/public_html/testsexy/admin/functions.php on line 816

and this one

Fatal error: Call to undefined function: vbsetcookie() in /home/videogam/public_html/testsexy/admin/sessions.php on line 204

This is what is on line 817 (I dont see why this would be effecting anything :/)

Code:

                $buffer = str_replace(""", "\"", $buffer);

DraX 09-22-2002 06:19 AM

/me laughs out loud

great little hack

Areku 09-27-2002 10:16 AM

FINALLY!

Working on v2.2.0!

Great mod ;)

ZiRu$ 10-12-2002 07:45 PM

Its dosent work on 2.2.8

N9ne 10-14-2002 07:02 PM

For the colour, I want it to show that style's body text colour, however putting {bodytextcolor} in place of {timecolor} doesn't work! How can I make it so it reads the bodytextcolor?

kill yourself 10-15-2002 12:39 AM

how would you make it bold..

so it would say

/me blah blah blah
but in bold.

kill yourself 10-16-2002 12:13 AM

up for answer


All times are GMT. The time now is 05:52 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.01730 seconds
  • Memory Usage 1,843KB
  • 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
  • (2)bbcode_code_printable
  • (12)bbcode_php_printable
  • (8)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
  • (40)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