Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
/me code Version 3 Details »
/me code Version 3
Mod Version: 3.00, by Erwin (Member) Erwin is offline
Developer Last Online: May 2013 I like it Show Printable Version Email this Page

This modification is in the archives.
vB Version: 3.0.7 Rating: (1 vote - 5.00 average) Installs: 200
Released: 05 Jan 2004 Last Update: Never Downloads: 13
Not Supported  

Updated version 2.00 thanks to buro9!

Updated version 3.00 thanks to Edgewize!

New in version 3.00:
Correct parsing in quotes, private messages etc.

Okay, this is the famous /me code first created by Chen. All credits go to him. I'm just putting up instructions on how to do this in vB3. It's very easy.

Typing "/me is great!" gives you this:

* Erwin is great!


You make changes to THREE php files only.

1. Copy this piece of code:

Change "red" to whatever color you want.


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

2. Open functions_bbcodeparse.php:

Find:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

PASTE code copied BELOW.

3. Open newreply.php

Find:

In 3.0.6 or less:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

In 3.0.7:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

PASTE code copied BELOW.

4. Lastly, open private.php

Find:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

PASTE code copied BELOW.

Done!

Download Now

Only licensed members can download files, Click Here for more information.

Supporters / CoAuthors

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Similar Mod
Mod Developer Type Replies Last Post
BB Code Enhancements Spoiler BB code [Animation version] Golzarion vBulletin 4.x Add-ons 68 24 Jul 2012 20:55

  #121  
Old 27 Mar 2004, 14:37
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Real name: Rob
I have it set for 20,000 characters. How long was the post?
Reply With Quote
  #122  
Old 27 Mar 2004, 14:39
Frugal Frugal is offline
 
Join Date: Nov 2001
Originally Posted by Boofo
I have it set for 20,000 characters. How long was the post?
About 27000 characters.

Frugal
Reply With Quote
  #123  
Old 27 Mar 2004, 14:41
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Real name: Rob
I'll up it to 50 k and then you can try it again. Give me 5 minutes.
Reply With Quote
  #124  
Old 27 Mar 2004, 21:38
masahiko's Avatar
masahiko masahiko is offline
 
Join Date: Mar 2004
Thanks for this great little hack. Below is what I used to get it working on 3.0 Gold (replaces the original post). This code works with PMs as well, and uses the same formatting as the "highlight" tag so it can be used on a per-style basis.

The major difference is the editing of private.php in two spots. I know using $post in private.php probably isn't the best way to go about it, but it is quick and only takes two lines.

code is updated, bug in WYSIWYG mode when editing posts is fixed.
code is updated, bug in pm previews is fixed see the funcitons_newpost changes.

includes/functions_newpost.php

Find:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

ABOVE, ADD:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


includes/functions_bbcodeparse.php

Find:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

ABOVE, ADD:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


newreply.php

Find:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

UNDERNEATH, ADD:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.



private.php

Find:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

UNDERNEATH, ADD:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Find:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

ABOVE IT, ADD:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


Last edited by masahiko; 29 Mar 2004 at 21:43.
Reply With Quote
  #125  
Old 27 Mar 2004, 21:40
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Real name: Rob
What about the editpost.php?
Reply With Quote
  #126  
Old 27 Mar 2004, 21:43
masahiko's Avatar
masahiko masahiko is offline
 
Join Date: Mar 2004
Originally Posted by Boofo
What about the editpost.php?
i haven't had any issues with editing posts. were there problems with it?
Reply With Quote
  #127  
Old 27 Mar 2004, 21:49
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Real name: Rob
I don't know. I use the hack_me.php file, but I thought when editing posts there might be a problem so I just thought I would mention it.

Is there a way to make the whole line parse if there is bbcode BEFORE the /me code? They had that with an addon for the vB2 /me code.
Reply With Quote
  #128  
Old 27 Mar 2004, 22:08
msimplay's Avatar
msimplay msimplay is offline
 
Join Date: Aug 2002
i prefer hack_me.php works perfectly in vb3 gold
Reply With Quote
  #129  
Old 27 Mar 2004, 22:13
masahiko's Avatar
masahiko masahiko is offline
 
Join Date: Mar 2004
Originally Posted by Boofo
I don't know. I use the hack_me.php file, but I thought when editing posts there might be a problem so I just thought I would mention it.
i figured out where people where having the problem. the code i posted is updated to fix it.

Originally Posted by Boofo
Is there a way to make the whole line parse if there is bbcode BEFORE the /me code? They had that with an addon for the vB2 /me code.
changing '#^/me(.*)$#im' to '#/me(.*)$#im' in all the preg_replace() calls should let it start anywhere inside the line and end at the end of the line.
Reply With Quote
  #130  
Old 27 Mar 2004, 22:48
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Real name: Rob
Is there a way to have it parse the whole line in the hightlight color when there is the /me code in it no matter where the /me code is in the line? Does that make any sense?

Last edited by Boofo; 28 Mar 2004 at 03:17.
Reply With Quote
  #131  
Old 28 Mar 2004, 08:55
draculanowaday draculanowaday is offline
 
Join Date: Feb 2004
thanks, work well with Vb 3.0 Gold
Reply With Quote
  #132  
Old 28 Mar 2004, 17:21
Aleksey Aleksey is offline
 
Join Date: Mar 2004
Real name: Aleksey
Ok, just to clearfy, if I put "/me" it will say username of a person who is looking at my post?
Reply With Quote
  #133  
Old 28 Mar 2004, 17:23
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Real name: Rob
No it will say:

/me like this hack
Reply With Quote
  #134  
Old 28 Mar 2004, 23:37
masahiko's Avatar
masahiko masahiko is offline
 
Join Date: Mar 2004
Originally Posted by Boofo
Is there a way to have it parse the whole line in the hightlight color when there is the /me code in it no matter where the /me code is in the line? Does that make any sense?
change:
'#^/me(.*)$#im'

to:
'#^(.*)/me(.*)$#im'

change:
$post[username] \\1

to:
\\1 $post[username] \\2

change:
$originalposter \\1

to:
\\1 $originalposter \\2

in all the preg_replace() calls and it should do what you want.

this text that /me typed

would come out as:

* this text that masahiko typed

make sense? of course, i haven't used the hack_me.php version so all my example chages are based of the original/my own.
Reply With Quote
  #135  
Old 29 Mar 2004, 09:29
Bernd Glasstett's Avatar
Bernd Glasstett Bernd Glasstett is offline
 
Join Date: Sep 2002
Real name: Bernd Glasstetter
Ok, we had a major issue now with the file-version of this hack (where the file is included). Some threads where no longer readable, especially some with an URL in it. We took the hack out and everything went fine again.

My guess is that some of the preg_replace's are not defined clear enough.
__________________
Comicforum.de - The largest comicboard in Germany
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

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


New To Site? Need Help?

All times are GMT. The time now is 13:02.

Layout Options | Width: Wide Color: