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

  #136  
Old 29 Mar 2004, 10:39
ChuanSE's Avatar
ChuanSE ChuanSE is offline
 
Join Date: Feb 2003
strange, i just got 5 identical mails of the latest post in this thread?
Am i the only one?
Reply With Quote
  #137  
Old 29 Mar 2004, 10:50
Frugal Frugal is offline
 
Join Date: Nov 2001
Originally Posted by Bernd Glasstett
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.
Yup this is exactly what happened on my site.

Frugal
Reply With Quote
  #138  
Old 29 Mar 2004, 11:17
ChuanSE's Avatar
ChuanSE ChuanSE is offline
 
Join Date: Feb 2003
I can't say i have these probs at my board tho

the hack works fine, the url's are fine

sure you guyz didn't messed up some code somewhere?
Reply With Quote
  #139  
Old 29 Mar 2004, 11:19
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Real name: Rob
Originally Posted by masahiko
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.

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.
This doesn't seem to working when previewing a PM and doesn't work in the show_pm. It works great in the quote pm, though. Also, if I use other fonts for this, it doesn't seem to work. The link below will show you the testing thread for this.

http://www.bearfacts2.com/forums/showthread.php?t=437

Any idea how to fix the pm stuff and the different font stuff?
Reply With Quote
  #140  
Old 29 Mar 2004, 12:05
Frugal Frugal is offline
 
Join Date: Nov 2001
Originally Posted by ChuanSE
I can't say i have these probs at my board tho

the hack works fine, the url's are fine

sure you guyz didn't messed up some code somewhere?
Unlikely, I am pretty experienced at this and have been installing hacks since UBB v1 (so about 4 years experience and countless hacks installed during those years), also this hack is one of the simpler hacks, 1 line pasted into 3 files and one php page created by copying and pasting, not much to mess up and very easy to check.

As far as I can tell the problem is related to url's with /me in them (could just be coincidence though, also all the problem posts on my site had urls using vB code rather than just being parsed ie HERE as opposed to http://www.redfoxdk.com/falcon/falcon_downloads/Rattys_missileFix%20_BMSdatav1.61.zip), although I suspect it could also be caused by a conflict between 2 hacks. Chances are Bernd Glasstett and myself both have the conflicting hack.

Mind you it is also possible that the problem is just hard to notice because it only affects a small number of posts. I have 1500 posts per day on my forum and only found 4 recent posts that wouldn't open. I notice that both Bernd and myself have very busy forums whilst those who have stated they are not experiencing the problem have fairly quiet forums.

This could simply be a timebomb waiting to happen on your forum.

Frugal

Last edited by Frugal; 29 Mar 2004 at 12:22.
Reply With Quote
  #141  
Old 29 Mar 2004, 21:48
masahiko's Avatar
masahiko masahiko is offline
 
Join Date: Mar 2004
Originally Posted by Boofo
This doesn't seem to working when previewing a PM and doesn't work in the show_pm. It works great in the quote pm, though. Also, if I use other fonts for this, it doesn't seem to work. The link below will show you the testing thread for this.

http://www.bearfacts2.com/forums/showthread.php?t=437

Any idea how to fix the pm stuff and the different font stuff?
i updated my post with a fix for the pm previews.

i'm assuming that you're using font tags around the /me text. if you're using my code then it'll never work because the /me part isn't the first thing on the line. you'll have to use one of the preg changes i gave you erlier. i'm using my own hack verbatum so i'm not going to test that. if you do change it you'll have to watch for conflicts in the code thats being replaced. if you have one tag that changes the font inside another font tag, the inside one will take over.
Reply With Quote
  #142  
Old 31 Mar 2004, 10:04
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Real name: Rob
Using that preg_replace you posted didn't fix it. It still doesn't work with other fonts for me. And it STILL doesn't work in the show_pm. When viewing a pm with the /me code, you see the /me code. It works great in preview mode and quoting a private message, but not viewing a private message from someone who has the /me code in it. Does that make any sense?
Reply With Quote
  #143  
Old 06 Apr 2004, 06:21
kanezfan kanezfan is offline
 
Join Date: Oct 2003
maybe i'm an idiot, but i'm trying to install this on vb3 gold and I when i use find on either dreamweaver or wordpad, i can't find
Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

in newreply.php. Am i retarded or can you tell me what line it's on? i think it's me though, because when i scroll down the file in Dreamweaver, if i search for just pagetext, it doesn't find it, but i can see the word pagetext right there in the file. it's pissing me off, but that's what you get for trying to install a hack at 1:30 in the morning.
Reply With Quote
  #144  
Old 09 Apr 2004, 04:36
RixiuS RixiuS is offline
 
Join Date: Jul 2003
what about newthread?
Reply With Quote
  #145  
Old 09 Apr 2004, 07:22
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Real name: Rob
Originally Posted by kanezfan
maybe i'm an idiot, but i'm trying to install this on vb3 gold and I when i use find on either dreamweaver or wordpad, i can't find
Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

in newreply.php. Am i retarded or can you tell me what line it's on? i think it's me though, because when i scroll down the file in Dreamweaver, if i search for just pagetext, it doesn't find it, but i can see the word pagetext right there in the file. it's pissing me off, but that's what you get for trying to install a hack at 1:30 in the morning.
You need to get a better editor. Try EditPlus 2.
Reply With Quote
  #146  
Old 10 Apr 2004, 07:12
ChuanSE's Avatar
ChuanSE ChuanSE is offline
 
Join Date: Feb 2003
Hehehe Boofo, he should find it with notepad

But hey, the line has to be pasted without spaces at the end, etc...
Otherwise he says "can't find" indeed.
Reply With Quote
  #147  
Old 11 Apr 2004, 16:07
Stray's Avatar
Stray Stray is offline
 
Join Date: Mar 2004
I'm using the hack_me.php version and I was wondering how I'd go about making the text bold and putting another asterisk at the end of the phrase.
__________________
the world turns and we get dizzy
Reply With Quote
  #148  
Old 12 Apr 2004, 13:59
BarHopper BarHopper is offline
 
Join Date: Mar 2003
http://www.game-realms.net/vb/showth...1874#post11874

how can i change the colour? The red doesnt really suit it at all.
Reply With Quote
  #149  
Old 13 Apr 2004, 07:16
Synicide Synicide is offline
 
Join Date: Dec 2002
Real name: Bryan Veloso
Originally Posted by BarHopper
http://www.game-realms.net/vb/showth...1874#post11874

how can i change the colour? The red doesnt really suit it at all.
Works perfectly. I love you all.

/me throws kisses to everybody.
__________________
Taiko No Tatsujin, Dance Dance Revolution, Beatmania, Karaoke Revolution?
Know what those are? Good, now talk about them at http://www.tokyogameaction.com
Reply With Quote
  #150  
Old 14 Apr 2004, 03:26
Edgewize Edgewize is offline
 
Join Date: Jan 2004
If anyone is having trouble with my original hack_me.php version posted a few pages back, then I'm at a loss. It must be a conflict with another poorly written hack because all that my code does is insert code tags before and after the /me line, as if they were typed by the user himself. There is no way that vB tags can cause a post or a thread to just 'disappear' unless some custom change has been made to the bbcode parser.

For the record, the original hack_me version that I posted in this thread works fine for my vB 3.0 Gold sites.
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 01:07.

Layout Options | Width: Wide Color: