![]() |
|
Mod Options |
![]() |
|||||||||||||||||||||||||||||
This modification is in the archives.
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.
2. Open functions_bbcodeparse.php: Find:
PASTE code copied BELOW. 3. Open newreply.php Find: In 3.0.6 or less:
In 3.0.7:
PASTE code copied BELOW. 4. Lastly, open private.php Find:
PASTE code copied BELOW. Done! ![]() Download Now Only licensed members can download files, Click Here for more information. Supporters / CoAuthors Show Your Support
No members have liked this post.
|
![]() |
||||
Mod | Developer | Type | Replies | Last Post |
BB Code Enhancements Spoiler BB code [Animation version] | Golzarion | vBulletin 4.x Add-ons | 68 | 24 Jul 2012 19:55 |
#121
|
||||
|
||||
I have it set for 20,000 characters. How long was the post?
No members have liked this post.
|
#122
|
|||
|
|||
Originally Posted by Boofo
About 27000 characters.
Frugal No members have liked this post.
|
#123
|
||||
|
||||
I'll up it to 50 k and then you can try it again. Give me 5 minutes.
![]() No members have liked this post.
|
#124
|
||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||
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:
ABOVE, ADD:
includes/functions_bbcodeparse.php Find:
ABOVE, ADD:
newreply.php Find:
UNDERNEATH, ADD:
private.php Find:
UNDERNEATH, ADD:
Find:
ABOVE IT, ADD:
No members have liked this post.
Last edited by masahiko; 29 Mar 2004 at 20:43. |
#125
|
||||
|
||||
What about the editpost.php?
![]() No members have liked this post.
|
#126
|
||||
|
||||
Originally Posted by Boofo
i haven't had any issues with editing posts. were there problems with it?
No members have liked this post.
|
#127
|
||||
|
||||
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. No members have liked this post.
|
#128
|
||||
|
||||
i prefer hack_me.php works perfectly in vb3 gold
No members have liked this post.
|
#129
|
||||
|
||||
Originally Posted by Boofo
i figured out where people where having the problem. the code i posted is updated to fix it.
Originally Posted by Boofo
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.
No members have liked this post.
|
#130
|
||||
|
||||
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?
No members have liked this post.
Last edited by Boofo; 28 Mar 2004 at 02:17. |
#131
|
|||
|
|||
thanks, work well with Vb 3.0 Gold
![]() No members have liked this post.
|
#132
|
|||
|
|||
Ok, just to clearfy, if I put "/me" it will say username of a person who is looking at my post?
No members have liked this post.
|
#133
|
||||
|
||||
No it will say:
/me like this hack No members have liked this post.
|
#134
|
||||
|
||||
Originally Posted by Boofo
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. No members have liked this post.
|
#135
|
||||
|
||||
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. No members have liked this post.
|
![]() |
«
Previous Mod
|
Next Mod
»
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Mod Options | |
|
|
New To Site? | Need Help? |
All times are GMT. The time now is 12:56.