PDA

View Full Version : /me code Version 3


Pages : [1] 2

Erwin
05 Jan 2004, 03:20
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.



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



2. Open functions_bbcodeparse.php:

Find:



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



PASTE code copied BELOW.

3. Open newreply.php

Find:

In 3.0.6 or less:


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



In 3.0.7:


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



PASTE code copied BELOW.

4. Lastly, open private.php

Find:



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



PASTE code copied BELOW.

Done! ;)

DestinyIslands
05 Jan 2004, 03:31
/me will click install as soon as he installs it! Should be tonight or tommorw!

/you ... what does this do?

MGM
05 Jan 2004, 03:41
absolutely nothing :p

sweet! thanks for porting it over Erwin!

/me clicks install

MGM out

SnowBot
05 Jan 2004, 04:21
nice little mod, thanks fella :)

Koutaru
05 Jan 2004, 04:35
/me clicks install.

I'll definately be using this one :) thanks for releasing

Boofo
05 Jan 2004, 05:14
Been waiting for this one, my friend. ;) Good job!

Exero
05 Jan 2004, 08:13
/me clicks install
www.exero.net/forum/ installed, thanks alot man its wiked..

Hoffi
05 Jan 2004, 11:08
/me clicks install too....

neocorteqz
05 Jan 2004, 11:09
Simple, easy. Just the way i like it. Thanks.

xxskullxx
05 Jan 2004, 15:46
Nice and easy. Thanks, Erwin.

Boofo
05 Jan 2004, 15:50
I've heard of Erwin being nice but I know for sure he ain't easy! ;)

neocorteqz
05 Jan 2004, 21:04
I've heard of Erwin being nice but I know for sure he ain't easy! ;)
LMAO.
One question, is this supposed to work with quoted post?


http://www.neocorteqz.com/images/metest.png

Erwin
05 Jan 2004, 21:09
Yes it should. Did you do step 2? This hack only has problems when you try to edit a post with /me in it - then it stuffs up.

TheAnt
05 Jan 2004, 21:16
/me bows to Erwin in reverence

*install

neocorteqz
05 Jan 2004, 21:17
Yes it should. Did you do step 2? This hack only has problems when you try to edit a post with /me in it - then it stuffs up.


Yep, unless there is more than one spot that code is in..



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------





edit: It works when the "/me" code is placed before the quote tags.

And to clarify, this is the only hack i am using. :)

FleaBag
05 Jan 2004, 21:47
A classic in my opinion - even though I seem to be the only person using it on my site. Thanks for the effort Erwin.

xxskullxx
05 Jan 2004, 21:56
I've heard of Erwin being nice but I know for sure he ain't easy! ;)
LOL

/me thinks Boofo read too much into that comment

BillaBongUSA
05 Jan 2004, 22:50
Yep, unless there is more than one spot that code is in..



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------





edit: It works when the "/me" code is placed before the quote tags.

And to clarify, this is the only hack i am using. :)


Yeah, it only seems to work for me when /me is on the first line of my post.

Cassidy
06 Jan 2004, 00:10
/me clicked install to!

Great hack XD my members are all IRC addicts so they'll love this!

Xanthine
06 Jan 2004, 21:46
Yep works fine, just isnt quotable

Koutaru
06 Jan 2004, 21:49
/me testing before quote

/me testing if hack works in quotes
Just testing ;) ... :p I guess not!

/me testing after quote

never mind then! Actually, if you put /me in quotes when it hasn't already been said (already been converted in the original post) then it doesn't work. Then again.. I guess it's not supposed to anyway :p

Erwin
06 Jan 2004, 21:52
* TheAnt bows to Erwin in reverence

*install
Testing...

shorty
06 Jan 2004, 23:44
Did you fix it Erwin :D

Boofo
06 Jan 2004, 23:58
Erwin, will this work in pms now, too, sir?

Link14716
07 Jan 2004, 00:30
It works anywhere BBCode is used by the looks of it.

Boofo
07 Jan 2004, 00:34
It works anywhere BBCode is used by the looks of it.
The vB2 version didn't unless you put it in the private.php file, too. ;)

Erwin
07 Jan 2004, 00:37
Erwin, will this work in pms now, too, sir?
Yes, but when you reply with a quote, it does not work properly. :) This has been an issue since vB2.

Repec
07 Jan 2004, 13:26
/me clicks install

I just love this irc addition :D

Boofo
07 Jan 2004, 13:31
Yes, but when you reply with a quote, it does not work properly. :) This has been an issue since vB2.
They did come out with a fix for that in vB2. I have it here if it would help at all. And they also had to do some code in the private.php to get it to work in pms. ;)

Convergys
07 Jan 2004, 17:57
Yeah, it only seems to work for me when /me is on the first line of my post.
I am having the same problem....

BBQ
07 Jan 2004, 19:13
/me clicks install :D
i don't care if it works in quotes, peepz quote too much anyway, mostly useless

and it's supposed to be used when you start a new line! it's the goold old IRC action command simulated in vbb.

Erwin
08 Jan 2004, 01:00
The /me has to be at the start of a separate line. Is this what you mean?

/me tests...

gmarik
08 Jan 2004, 20:04
simple, yet good.
any changes from vb2?

eXtremeTim
09 Jan 2004, 03:07
simple, yet good.
any changes from vb2?
This hack does not work when you edit a post you lose the username when using the wysiwyg message editor. You end up with * your text here.

BillaBongUSA
09 Jan 2004, 07:39
Let's see...

/me enjoys Pinnacle, whatever the hell that is

BillaBongUSA
09 Jan 2004, 07:41
Ah, I think it only doesn't work when using the WYSIWYG editor unless it's on the very first line of your post. It works fine when used on the standard editors, though.

Erwin
09 Jan 2004, 08:27
Let me try...

/me testing...

Erwin
09 Jan 2004, 08:27
Weird...

eXtremeTim
09 Jan 2004, 16:25
No edit a post with the wysiwyg message mode and it will lose the username

watch.

Hmm it works here. :-/

But on my site is i edit a post thats using /me text here you end up with * text here on the edit page not * eXtremeTim text here or * Username text here

* eXtremeTim is testing the editing on vb.org of /me

Convergys
09 Jan 2004, 18:00
Lets see if this does the same thing here as test forum...

/me is cool

Gio Takahashi
09 Jan 2004, 21:01
I installed this. works like a charm. goodjob.

Chris M
10 Jan 2004, 01:46
Hmmm it seems kinda buggy...

The vB2 version did work when quoted after a while - Someone fixed it, but I can't remember who...

Satan

Erwin
10 Jan 2004, 05:37
Hmmm it seems kinda buggy...

The vB2 version did work when quoted after a while - Someone fixed it, but I can't remember who...

Satan
I promise to fix it when I find time. It's never been a problem for my forums, LOL!

PranK
10 Jan 2004, 06:13
/me thinks this is kinda cool.
/me clicks install

Christian

neocorteqz
10 Jan 2004, 07:41
I promise to fix it when I find time. It's never been a problem for my forums, LOL!
No big deal for me. I'm prolly the only one who'll think this is a cool thing. :D

edit: Also seeing that there is an admin above me. Is it possible to get my name changed here? I'd like to use my Name that i use over at vB.com. the name i neocorteqz

:)

/Me thanks in whomever advance

Erwin
10 Jan 2004, 08:03
No big deal for me. I'm prolly the only one who'll think this is a cool thing. :D

edit: Also seeing that there is an admin above me. Is it possible to get my name changed here? I'd like to use my Name that i use over at vB.com. the name i neocorteqz

:)

* User_001 thanks in whomever advance
You are now neocorteqz. ;)

neocorteqz
10 Jan 2004, 08:34
You are now neocorteqz. ;)
Thank you sir.

Btw. How do i go about customizing the color of this for each sty;e? it doesn't look too good in one of my styles.

SnowBot
10 Jan 2004, 10:08
Thank you sir.

Btw. How do i go about customizing the color of this for each sty;e? it doesn't look too good in one of my styles.ok to change the colors do

1. Open includes/functions_bbcodeparse.php:
FIND


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



Part Where You Change The colour


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



EXAMPLE change to yellow


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



2. Open newreply.php:
FIND


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



Part Where You Change The colour


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



EXAMPLE change to yellow


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



Hope this helps

djnoz
10 Jan 2004, 22:50
Excellent hack, I've clicked install. Thanks!

Darkwolf
10 Jan 2004, 23:13
/me click install

Mike Gaidin
11 Jan 2004, 02:58
/me clicks install.

Logikos
17 Jan 2004, 01:21
/me clicks install

Dan
17 Jan 2004, 01:41
thanks Erwin

/me clicks install

FlyingDutchman
20 Jan 2004, 07:33
if you want custom color for each style you could do this:

these are alternate instructions, use these INSTEAD of erwin's, NOT BOTH :)


1. Open includes/functions_bbcodeparse.php:

Find:


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



UNDERNEATH, ADD:



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------





2. Open newreply.php:

Find:



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------




UNDERNEATH, ADD:



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



3. Go to your admin CP and add 2 new replacement variables use [ instead of ( and ] instead of ):

Search for Text: (high)
Replace with Text: <font color="red">
(change the 'red' to some other color if it doesn't fit with your style)

Search for Text: (/high)
Replace with Text: </font>

You'll have to do step 3 for every style you have...

FlyingDutchman
20 Jan 2004, 07:34
oh, and

/me clicks install :)

nice hack, too bad quoting and editing doesn't work properly :|

Natch
21 Jan 2004, 23:33
Thanks for this - I was just wondering if there's any reason why it doesn't translate properly across to the shoutbox from vBIndex RC3build7 ... I know that isn't your hack, but I thought it used the same functions ...

regardless ...

/me clicks install gratefully

fly
23 Jan 2004, 19:00
Hmmmm....

Either I'm an idiot or this doesn't work w/ RC3. I can't even find the respective lines in functions_bbcodeparse.php to edit.

xxskullxx
23 Jan 2004, 20:29
It works fine with RC3, the code you hunt for has changed a little. Instead of looking for

Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------

in functions_bbcodeparse.php, look for

Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------

instead. The php code function on here chops it up a bit.

Erwin
01 Feb 2004, 10:50
I haven't had time to upgrade to RC3 yet. :) When I do so, I will update this hack. Thanks for the heads up!

Cloudrunner
01 Feb 2004, 18:03
I haven't had time to upgrade to RC3 yet. :) When I do so, I will update this hack. Thanks for the heads up!
hmm...it ported to VB3 perfectly fine for me.

fly
02 Feb 2004, 15:02
FYI...

If you go to preview a reply, it doesn't add the username. It just shows '* likes'.

Omega Prime
04 Feb 2004, 14:37
/me clicks install

Interesting feature..thanks :)

shadesvn
10 Feb 2004, 12:18
There were many codes changed in this topic ! I'm using RC4 at the moment so if anyone has tested it on RC4 pls post me a new instruction !

/me
Thanks !

Charlie Argueta
13 Feb 2004, 09:44
/me subscribes to this thread until he upgrade to Gold

Zachery
13 Feb 2004, 15:53
* Charlie Argueta subscribes to this thread until he upgrade to Gold
testing
/me tests

Zachery
13 Feb 2004, 15:53
So it works here, did stefan do somthing to make it work in with edits?

Link14716
13 Feb 2004, 16:33
It works perfectly for me on RC3.

Zachery
13 Feb 2004, 16:34
IT does display the first time, try edting it, your name will disappear.


im using RC4 btw...

Reeve of shinra
15 Feb 2004, 17:48
Installed it

S@NL - Pascal
16 Feb 2004, 00:23
Hi,

The /me solution shown in this thread doesn't work that good.
For vB3.0.0 RC4 make the following modifications:

In your AdminCP add the following Custom BB code:
Title : Me
Tag : me
Replacement : <font color="red">* {option} {param}</font>
Example : write this
Description : --What you like--
Use {option} : Yes
Button image : -- Leave blank --


In editpost find:


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



After it add:


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



In newreply.php find:


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



After it add:


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



Have fun with it.

Boofo
16 Feb 2004, 04:29
How about private messages?

FleaBag
23 Feb 2004, 08:26
/me installs!

deathemperor
23 Feb 2004, 09:57
/me test if it is so wonderful this way
^ ^

Chris M
23 Feb 2004, 18:39
How about private messages?Working fine on RC4 here...

Except for PMs...

* says mooinstead of
*hellsatan says moo;)

It works in edits here as well :)

/me wants it to work in quotes and in private messages:ermm:

Satan

SmasherMaster
26 Feb 2004, 13:44
SWEET, this hack is awesome

/me clicks install

ShutDown23
29 Feb 2004, 07:19
/me will install tomarrow. Thank you!

ChuanSE
29 Feb 2004, 08:11
/me likes it (install)

draculanowaday
29 Feb 2004, 16:26
/me clicks install

MSX
09 Mar 2004, 02:59
/me throws old iPod at install button

Boofo
09 Mar 2004, 03:25
I found an interesting tidbit with this hack. If you use other than the default font in your message, the /me code doesn't work. Try it with the Comic Sans font and you will see what I mean. I did it in the test forum on here and the /me code wouldn't parse.

Edgewize
11 Mar 2004, 12:06
Great hack; I customized it pretty heavily to add support for private messages, message preview, and to respect bbcode-disabled flags. I also think that this will work no matter what font is currently in use, and it will never generate non-XHTML-compliant output (even when tags are badly overlapped).

/me clicks install because without Erwin, I'd never have started!


I put the following a file called hack_me.php:

(NOTE: had to mangle the color tags to get it to post right. replace Xcolor with color in six places!)



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



Then added the line


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



in the following places:



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------




(Note: to change the color, change the three color tags in hack_me.php)

First post, baby! And hello Erwin, I totally forgot that you post here as well as at EV1servers :)

Boofo
11 Mar 2004, 13:01
I'm still have problems with the different fonts (as you can see in the thread link below). Any idaes how to fix this?

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

SaN-DeeP
11 Mar 2004, 21:39
* DestinyIslands will click install as soon as he installs it! Should be tonight or tommorw!

/you ... what does this do?
the you tag sounds more interesting though..

think of users using.
Example i post a message like:

[you] is a nice member

When rest of members of board read that message it. it appears to them as
[Member Reasing the post name] is a nice member

;)
what do u think ??

Boofo
11 Mar 2004, 23:31
the you tag sounds more interesting though..

think of users using.
Example i post a message like:

[you] is a nice member

When rest of members of board read that message it. it appears to them as
[Member Reasing the post name] is a nice member

;)
what do u think ??

I'm putting the install file together for it now. I did this a while back for my site for vB3 but I needed to get the archive code set right so the [you] code wouldn't show up there. I have it up and working now at my site if you would like to check it out. ;) I need someone to make sure I got all the places it can show up at (in case I missed any).

ChuanSE
12 Mar 2004, 07:44
i didn't manage to get a answer for you boofo :/
I guess it doesn't work in my private forum...

But hey, you made some real cool mods on your board :D

Boofo
12 Mar 2004, 08:47
i didn't manage to get a answer for you boofo :/
I guess it doesn't work in my private forum...

But hey, you made some real cool mods on your board :D

That's because on my site I don't use [you]. I use a different word so I don't get it overused and abused on the board too soon. ;)

Thank you for the kind words. Glad to have you aboard. ;)

BBQ
12 Mar 2004, 15:14
Installed on RC4, works like a charm

Well that is, it works fine in a new thread and new reply.
Works fine in quoting a post with a /me in it.

Doesn't work when you edit the orig /me post, you loose the username then. But you can always add /me befor eit again. Plus editting is not done often.

/me is happy but he already installed this on beta 7 and pressed install a few pages in this thread back :p

SaN-DeeP
12 Mar 2004, 20:41
I'm putting the install file together for it now. I did this a while back for my site for vB3 but I needed to get the archive code set right so the [you] code wouldn't show up there. I have it up and working now at my site if you would like to check it out. ;) I need someone to make sure I got all the places it can show up at (in case I missed any).
can u please pm me the links to ur board ??
i had installed the YOU tag on ipb :)

i administrate my forums, and i know what are default places where that thing should be visible ;)

Sandy...

Boofo
12 Mar 2004, 20:46
It's in my profile, but here it is again. ;)

http://www.bearfacts2.com

ChuanSE
14 Mar 2004, 08:33
That's because on my site I don't use [you]. I use a different word so I don't get it overused and abused on the board too soon. ;)

Thank you for the kind words. Glad to have you aboard. ;)

aha, what would be the secret word then? :p j/k

But hey, i'm glad to have guyz like you aboard :D
Keep up the good work ;)

Edgewize
15 Mar 2004, 12:58
FYI, PMs and editing work properly in my reorganized version (http://www.vbulletin.org/forum/showthread.php?p=484334#post484334) of Erwin's most excellent hack.

Boofo
15 Mar 2004, 17:57
Same here. Thank you very much, sir. ;)

I still can't get the different fonts to work right though with or without your code. :(

Edgewize
15 Mar 2004, 19:08
Oh... for a while, I wasn't able to reproduce your problem Boofo, but now I think I got it!

I re-edited my post (http://www.vbulletin.org/forum/showthread.php?p=484334#post484334) and changed some of the lines in hack_me.php, give that a shot...

Boofo
15 Mar 2004, 19:55
Thank you, sir, that made a big difference. ;)

There is still one small problem. The link below is how it looks now. The first post still has a problem if there is a line of text before it for some reason. Otherwise, it works great!

http://www.bearfacts2.com/forums/showthread.php?p=1296#post1296

Also, you need to add color to the second line in the hack_php.file for quoting the pms. If there is no color in there, the quoted pms don't show color (as you are replying to the message). ;)

Edgewize
15 Mar 2004, 20:37
I think that in your second line, the font is changing between the / and the "me". Not sure if I can really support that. Just don't do it! *grin*

As for the color, I actually like it better when the quoted lines don't have color, because in my postbit it looks confusing (at a glance, its hard to tell if the /me belongs to the quoted post or the reply). You can always change the preg_replace line to put the [color] back in, as you've done :D

Boofo
15 Mar 2004, 20:42
Is there a way to parse the line if it has the /me code in it anywhere? They had that for vb2 and it was great. ;)

Boofo
15 Mar 2004, 20:45
I think that in your second line, the font is changing between the / and the "me". Not sure if I can really support that. Just don't do it! *grin*



You were right. That's what it was doing. I fixed it and all is well now. Thank you again, sir. This is by far the greatest addition to this hack there ever has been. Excellent job! ;)

EDIT I did notice that when you go to edit the post, it parses the default font line but not the rest. Like this:

Let's see if this works

/ me is testing with the Comic Sans Font

/ me is testing with the Centurt Gothic Font

* Boofo is testing the default font

/ me is testing with the Garamond Font (size 3)

Shouldn't it work the same way for all of them? (I had to add a space between the / and the me here to show you what it looks like in edit mode on my site or it would parse it here. It looks just like that but without the spaces I added here.)

Edgewize
17 Mar 2004, 01:18
Shouldn't it work the same way for all of them? (I had to add a space between the / and the me here to show you what it looks like in edit mode on my site or it would parse it here. It looks just like that but without the spaces I added here.)

Yeah. This is a weird one, I can't reproduce it; working fine on my board. Maybe you left in one of the lines from the original hack by Erwin? As you said, there's no reason that it should detect it properly for display but not on the quote page. It's the same preg_match expression :/

Zachery
17 Mar 2004, 01:54
Any one figure out my problem?

Edgewize
17 Mar 2004, 12:38
Any one figure out my problem?

You could have made it easier and linked to your last post, it was a bit tough to find :/ If the problem is still that the /me is lost on editing, try switching to my modified version of this hack instead:

http://www.vbulletin.org/forum/showthread.php?p=484334#post484334

msimplay
21 Mar 2004, 19:34
You could have made it easier and linked to your last post, it was a bit tough to find :/ If the problem is still that the /me is lost on editing, try switching to my modified version of this hack instead:

http://www.vbulletin.org/forum/showthread.php?p=484334#post484334 that works floorlessly

BarBeQue
23 Mar 2004, 23:39
Tested and works fine on vbb3 gold!

Small change though... in includes/functions_bbcodeparse.php instead of looking for this


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



You need to look for this slightly different line:


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------

8472
25 Mar 2004, 12:15
/me wonders if someone would be so kind to release this as a .htl file

Frugal
25 Mar 2004, 12:50
Great hack; I customized it pretty heavily to add support for private messages, message preview, and to respect bbcode-disabled flags. I also think that this will work no matter what font is currently in use, and it will never generate non-XHTML-compliant output (even when tags are badly overlapped).

* Edgewize clicks install because without Erwin, I'd never have started!



I put the following a file called hack_me.php:

:)Ok let me get this straight, is this on top of erwins hack or instead of it?

Frugal

Boofo
25 Mar 2004, 12:59
Instead of. ;)

Frugal
25 Mar 2004, 13:08
Instead of. ;)
Hmm, then I can't understand why it isn't working. Uploaded hack_me.php to root vbb folder, when that failed moved it to includes, when that failed checked the other files to make sure the @include('hack_me.php'); was in the right place.

/me is now stumped.

Frugal

Boofo
25 Mar 2004, 13:13
It works great for me, I'm not sure what could be happening on your site. Wish I could give you some sort of an answer. :(

Frugal
25 Mar 2004, 13:16
Where does the hack_me.php go? Is it the forum root, or the includes dir? I'm guessing the problem is in this file somewhere as the other 3 files each only need one minor edit which I have checked to be correct.

Frugal

Frugal
25 Mar 2004, 13:39
Hmm Erwins version works but I can't get the one by Edgwize to work for love nor money :(

Frugal

Boofo
25 Mar 2004, 13:42
The hack_me.php file does in the forum root. ;)

It's wierd that it doesn't work for you. I couldn't get Erwin's version to work right but the hack_me version fixed everything. ;)

Frugal
26 Mar 2004, 13:01
Problem solved and surprisingly simple. Changed first line of hack_me.php from

<?

to

<?php

Frugal

Boofo
26 Mar 2004, 13:58
Problem solved and surprisingly simple. Changed first line of hack_me.php from

<?

to

<?php

Frugal

Congratulations! I'm glad you got it working for you! ;)

Stray
27 Mar 2004, 01:08
nevermind, seems to work in quick replies now...

lasto
27 Mar 2004, 01:20
/me clicks install

easiest hack ive ever doen and works fine as well

nice one erwin

GamerJunk.net
27 Mar 2004, 05:22
/me installs

Frugal
27 Mar 2004, 11:23
Congratulations! I'm glad you got it working for you! ;)
Well good and bad, discovered a nasty bug with that version of the hack, several threads became unviewable, obviously something in them that the hack was trying to parse. I've had to remove this hack and go back to Erwins version.

Frugal

Boofo
27 Mar 2004, 11:54
Sounds to me like you have something else going on somewhere interfering with this hack then. I have never run into that anywhere on my forum. All threads view fine. There's really no way that it can cause any threads not to view. All he is parsing in the hack is the /me code. :surprised:

Frugal
27 Mar 2004, 13:39
Dunno, it's probably clashing with another hack, but either way it causes problems for me. With Erwins version all threads open fine, with Edgewizes about 4 threads showed as blank pages.

Frugal

Boofo
27 Mar 2004, 14:00
Is that what you were testing on my site? You said it didn't work. What did you try to do?

Frugal
27 Mar 2004, 14:34
Is that what you were testing on my site? You said it didn't work. What did you try to do?I tried to paste in one of the problem posts from my board but unfortunately it was too long for your forum.

This is one of the posts it didn't like

http://forums.frugalsworld.com/vB/showthread.php?t=25598 (http://forums.frugalsworld.com/vB/showthread.php?t=25598)

*you need to copy and paste the url into a browser and change vB to v b b (without the spaces)

Funny enough I think all of the problem posts had a url with /me in it somewhere in the post, coincidence?

Frugal

Boofo
27 Mar 2004, 14:37
I have it set for 20,000 characters. How long was the post?

Frugal
27 Mar 2004, 14:39
I have it set for 20,000 characters. How long was the post?About 27000 characters.

Frugal

Boofo
27 Mar 2004, 14:41
I'll up it to 50 k and then you can try it again. Give me 5 minutes. ;)

masahiko
27 Mar 2004, 21:38
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:



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



ABOVE, ADD:



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------




includes/functions_bbcodeparse.php

Find:



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



ABOVE, ADD:



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------




newreply.php

Find:



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



UNDERNEATH, ADD:



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------





private.php

Find:



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



UNDERNEATH, ADD:



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



Find:



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



ABOVE IT, ADD:



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------

Boofo
27 Mar 2004, 21:40
What about the editpost.php? ;)

masahiko
27 Mar 2004, 21:43
What about the editpost.php? ;)

i haven't had any issues with editing posts. were there problems with it?

Boofo
27 Mar 2004, 21:49
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.

msimplay
27 Mar 2004, 22:08
i prefer hack_me.php works perfectly in vb3 gold

masahiko
27 Mar 2004, 22:13
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.

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.

Boofo
27 Mar 2004, 22:48
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?

draculanowaday
28 Mar 2004, 08:55
thanks, work well with Vb 3.0 Gold :)

Aleksey
28 Mar 2004, 17:21
Ok, just to clearfy, if I put "/me" it will say username of a person who is looking at my post?

Boofo
28 Mar 2004, 17:23
No it will say:

/me like this hack

masahiko
28 Mar 2004, 23:37
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.

Bernd Glasstett
29 Mar 2004, 09:29
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.

ChuanSE
29 Mar 2004, 10:39
strange, i just got 5 identical mails of the latest post in this thread?
Am i the only one?

Frugal
29 Mar 2004, 10:50
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

ChuanSE
29 Mar 2004, 11:17
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?

Boofo
29 Mar 2004, 11:19
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:



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



ABOVE, ADD:



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------




newreply.php

Find:



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



UNDERNEATH, ADD:



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------





private.php

Find:



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



UNDERNEATH, ADD:



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



Find:



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



ABOVE IT, ADD:



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



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?

Frugal
29 Mar 2004, 12:05
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 (http://www.redfoxdk.com/falcon/falcon_downloads/Rattys_missileFix%20_BMSdatav1.61.zip) as opposed to http://www.redfoxdk.com/falcon/falcon_downloads/Rattys_missileFix%20_BMSdatav1.61.zip (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

masahiko
29 Mar 2004, 21:48
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.

Boofo
31 Mar 2004, 10:04
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?

kanezfan
06 Apr 2004, 06:21
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

Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------

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.

RixiuS
09 Apr 2004, 04:36
what about newthread?

Boofo
09 Apr 2004, 07:22
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

Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------

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. ;)

ChuanSE
10 Apr 2004, 07:12
Hehehe Boofo, he should find it with notepad :D

But hey, the line has to be pasted without spaces at the end, etc...
Otherwise he says "can't find" indeed.

Stray
11 Apr 2004, 16:07
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.

BarHopper
12 Apr 2004, 13:59
http://www.game-realms.net/vb/showthread.php?p=11874#post11874

how can i change the colour? The red doesnt really suit it at all.

Synicide
13 Apr 2004, 07:16
http://www.game-realms.net/vb/showthread.php?p=11874#post11874

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

/me throws kisses to everybody.

Edgewize
14 Apr 2004, 03:26
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.

Boofo
14 Apr 2004, 04:45
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.

I went back to using your code. I couldn't get any of the others to work everywhere. ;)

Edgewize
14 Apr 2004, 17:08
Oops, right after I say that, I discover a problem :) New version fixes a very obscure bug with one-line quotes. Just a minor display bug, could accidentally change the color of text that came right before a /me. Check the original post:

http://www.vbulletin.org/forum/showthread.php?p=484334#post484334

Boofo
14 Apr 2004, 18:26
Oops, right after I say that, I discover a problem :) New version fixes a very obscure bug with one-line quotes. Just a minor display bug, could accidentally change the color of text that came right before a /me. Check the original post:

http://www.vbulletin.org/forum/showthread.php?p=484334#post484334

What did you change in it? I see the s is gone and a t is added. Anything else? ;)

And I wanted to ask. How come if I use highlight instead of color=, all the /me lines are in bold?

Edgewize
16 Apr 2004, 08:12
All the occurrances of \s were replaced with [ \t] (that's [(space)\t]). \s also matches newlines, so that could get into trouble and match too much in very particular situations. Also, the parenthesis groups were shifted around a bit, but I can't remember why ;)

I have no idea why highlight would do that. As you can see, it just inserts a tag before any bbcode processing is done ... does your highlight normally make things bold?

Wolf42
16 Apr 2004, 15:39
/me clicks install

Its still a nice hack. Thank you very much. :D

Boofo
16 Apr 2004, 17:06
All the occurrances of \s were replaced with [ \t] (that's [(space)\t]). \s also matches newlines, so that could get into trouble and match too much in very particular situations. Also, the parenthesis groups were shifted around a bit, but I can't remember why ;)

I have no idea why highlight would do that. As you can see, it just inserts a tag before any bbcode processing is done ... does your highlight normally make things bold?

To tell you the truth, I'm not sure if the highlight tags does that also, or not. I never paid much attention to it until now. Where would that code be on vB3, do you know?

TouchingVirus
17 Apr 2004, 23:32
The highlight code appears in functions_bbcode.php at line 203..i think this is what you were looking for..



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------

Boofo
17 Apr 2004, 23:48
Why would it be in bold when I use it with this hack? Any idea? ;)

sabret00the
18 Apr 2004, 11:20
ok i've enhanced this code for the benefit of sites with multiple stylesets (conflicting colours)

1. Open includes/functions_bbcodeparse.php:

Find:



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



UNDERNEATH, ADD:



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------




2. Open newreply.php:

Find:



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



UNDERNEATH, ADD:



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



Done and you also maintain XHTML compliancy :D

SySt3M
19 Apr 2004, 14:53
thanks very much, nifty little addition this one

/me clicks install

JaNa
23 Apr 2004, 06:34
/me Clicks Install!

Lurk
23 Apr 2004, 23:40
/me test

MrNase
26 Apr 2004, 14:11
/me had the same idea 2 minutes ago :D

Bro_Joey_Gowdy
26 Apr 2004, 14:54
I kept getting errors in vb3gold so I finally had to intergrate it with Boofo's YOU hack and now its working perfectly except I have to use [me] just like [you]. But hey, its all good.

:devious:

Sooner95
27 Apr 2004, 01:49
/me thinks this was pretty cool


thanks bud!

pixelpunk
04 May 2004, 22:33
In 3.0.1 I opened /includes/functions_bbcodeparse.php and searched for:



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



and put your code beneath it



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------




newreply.php is still the same.

I believe this part of my vBulletin has yet to be hacked so that code should apply to everyone running 3.0.1.

Smike
06 May 2004, 15:58
/me click install !

sympatic hack !

Synicide
07 May 2004, 13:08
* Smike click install !

sympatic hack !
Is there any way that you can remove the extra line break you get when you post with this?

pixelpunk
10 May 2004, 21:23
The personal user text hack broke this. Or vice versa.
http://www.vbulletin.org/forum/showthread.php?t=60065

Anyone know of a fix?

Maikeru
14 May 2004, 01:58
Can you choose the color of the text?

/me hopes you answer this question

Like change that red to another color?

allforu
18 May 2004, 16:51
How about signature? teach me....

Thanks

Detomah
24 May 2004, 13:05
/me installs perfectly without a hitch. :)

Zacharicus
08 Jun 2004, 06:42
Hey,
Problems with 3.0.1? I did the hack, and a user got this error continously when trying to post from the quick reply.

Fatal error: Call to undefined function: parse_bbcode() in /home/virtual/site122/fst/var/www/html/forums/includes/functions_showthread.php on line 635


Cheers,
Zacharicus
Admin

www.intelligencenetwork.net

ChuanSE
09 Jun 2004, 01:57
Yep installed it again :)

kall
12 Jun 2004, 13:03
Can you choose the color of the text?

* Maikeru hopes you answer this question


Like change that red to another color?
/me would assume so, as the colour here is yellow...

*sighs*

In newreply.php: find


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



change to:


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



HEY! It doesn't work when using quickreply. :(

Arsenic33
13 Jun 2004, 20:02
/me is happy with what h sees

thanks

Zacharicus
14 Jun 2004, 17:18
This is supposed to work with 3.0.1?

HakkieDEV
16 Jun 2004, 20:24
/me clicks install

Awesome hack!

Martin64
18 Jun 2004, 03:05
/me licks install

Great job. :)

Berethorn
11 Jul 2004, 05:58
/me has installed, and it's working!


I wish it had the capability of ending the tag with another /me or something

turbidblue
11 Jul 2004, 23:26
nice, installed very easy! works like a charm!

thanks!

/me clicks install ;)

Mtmm
14 Jul 2004, 02:27
/me installs

weitalia
15 Jul 2004, 17:40
/me say hi
I use masahiko last mod,but don't works with edit in NO WAY,leave the * and no more the name...why???
Other question: why /me should be in FIRST place of the post?I can't understand why.. :(

;)

Erwin
15 Jul 2004, 22:31
It has to be the first word in a sentence, not first in a post.

/me tests.

It can be at the end.

/me tests again.

weitalia
26 Jul 2004, 14:14
Thanx so much Erwin,I got it sorry :D
But the other problem rest unsolved for me:
Why when i edit the post i get the solitary * instead of /me ? Is not possible to make it come back again? I think this is very important [cauz i should edit my posts so much!]...

;)

Datenpapst
26 Jul 2004, 15:06
* TheAnt bows to Erwin in reverence

*install
Intressting Hack, will be added in august. :)

Blam Forumz
27 Jul 2004, 22:39
/me clicks install

thanks ;)

SandsUSA
03 Aug 2004, 00:31
/me happily clicks install!

oldfan
03 Aug 2004, 05:13
works great, thanks

qxh
13 Aug 2004, 01:06
/me has installed

thanks

roundhost
15 Aug 2004, 23:25
/me thinks this mod looks cool and worthy of being downloaded

liquids
16 Aug 2004, 04:33
/me testing

Blam Forumz
18 Aug 2004, 07:29
On vBIndex it shows up as:

* slaps someone

and not

/me slaps someone


(Ignore the colour, I chose to have it that way)

Bison
28 Aug 2004, 16:38
/me clicks install

Zelda-King
28 Aug 2004, 16:46
/me is testing the quick reply thing seeing as it was complained about here in spite of it working fine on his board.

Edit:
Installed, but uninstalled. I couldn't get it to work with previews? Or quick reply?It does work with Quick Reply.

Zelda-King
28 Aug 2004, 16:48
Just tested preview too. It works with that.

lazserus
03 Sep 2004, 00:42
This worked until I upgraded to 3.0.3. Anyone else had problems? I reinstalled the hack, but instead of getting the member name the asteriks just shows up with no name.

edit: nevermind, it just doesn't show up in the preview in vB 3.0.3, but does in the post.

bAkAyAr0
04 Sep 2004, 22:24
/me clicks install

AnhTuanCool
06 Sep 2004, 19:12
Great!

/me click install right away

SmackdownOnline
07 Sep 2004, 02:16
/me clicks install

emtee
29 Sep 2004, 23:51
testing /me . In my board the red color doesn't stop after the username. What's wrong?

HaloImpulse
12 Oct 2004, 01:25
for me, the user name doesnt show up.

http://www.haloimpulse.com/forums/showthread.php?p=1276#post1276

HaloImpulse
12 Oct 2004, 01:26
This worked until I upgraded to 3.0.3. Anyone else had problems? I reinstalled the hack, but instead of getting the member name the asteriks just shows up with no name.

edit: nevermind, it just doesn't show up in the preview in vB 3.0.3, but does in the post.


it doesnt work in either for me

Lostnode
27 Nov 2004, 08:11
/me Loves the idea...

This and the /you will be added once I get home :)

nautiqeman
29 Nov 2004, 21:14
/me installs and nods to creator

bendigo-tech
30 Nov 2004, 01:35
/me installs! :D

mholtum
30 Nov 2004, 02:03
hmm doesnt work for me ..

TwinsForMe
30 Nov 2004, 07:24
/me clicks install. :)

tazha
30 Nov 2004, 11:28
for me, the user name doesnt show up.

http://www.haloimpulse.com/forums/showthread.php?p=1276#post1276


Same for me...

VB3.0.3

Too bad..

mholtum
30 Nov 2004, 16:31
Same for me...

VB3.0.3

Too bad..
I have the same issue

folkish
02 Dec 2004, 21:26
/me installed this hack. Thanks!

blackpheonix
04 Dec 2004, 17:41
/me installs. great hack thanks

Tipi
05 Dec 2004, 01:47
Love it! :D

Is it possible to get the /me-text to look like the rest of the text? I don't want my members to figure this out just yet, and if they see the green text with the little star in front they will understand everything right away. ;) Also wondering if it's possible to use / me in threadtitle. :cool:

Dark Zero
09 Dec 2004, 04:26
I have the same issue its simple

look this part of the code


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------

[/color][/color]
remove the ^ character and all work

Victor

Boofo
09 Dec 2004, 05:43
its simple

look this part of the code


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------

[/color][/color]
remove the ^ character and all work

Victor
What does removing the ^ character do?

Dark Zero
09 Dec 2004, 06:47
in the regular expresions the ^ character is the start of a string

for some reason the original code fail in the vb 3.0.3

Jacko
10 Dec 2004, 17:59
As above i removed the ^ character and voila.

works a treat:

http://www.carstyledirect.com/forum/

Gnappy
22 Dec 2004, 19:47
/me clicked install





a question: Erwin in first post make "my nick"+"is great", how he made this? "/me" code is the opposite one....
am i drunk or...?


thx for replies ^^

Roxie
22 Dec 2004, 20:49
works perfectly with 3.0.3
/me clicks install

Robink
30 Dec 2004, 07:13
I couldnt find the text string to be searched in my vb3.0.3 ..

Is it cause my file is modified, or is that line not there in 3.0.3?
And does it work in 3.0.3?

The-Aeon
30 Dec 2004, 20:23
a question: Erwin in first post make "my nick"+"is great", how he made this? "/me" code is the opposite one....
I'm wondering about that, too.

I made a screenshot as example, see it in the attachment.



sorry for my english, its long ago when I learnt it in school.

Eagle Creek
03 Jan 2005, 18:50
Am I great? How did you know :D?

THX! I was looking for this!

bubbadog
10 Jan 2005, 01:39
Typing "/me is great!" gives you this:

* bubbadog is great!
Excellent example if I do say so myself, Erwin! :D

(Sorry, I couldn't resist!)

Hellspire
11 Jan 2005, 06:33
Can someone, perhaps the creator of this, upgrade it to 3.0.5 standards????

Furthermore, make it so that you can change the color that is outputted based on the skin they are using at the present moment.

Thanks in advance.

MissKalunji
13 Jan 2005, 07:30
Can someone, perhaps the creator of this, upgrade it to 3.0.5 standards????

Furthermore, make it so that you can change the color that is outputted based on the skin they are using at the present moment.

Thanks in advance.


it works on 3.0.5 i installed it

next question does anybody know how to make it for
/ you (to show up the username of the person who replied right b4 me??

example /me waves at / you <-- would be hellspire??

Gnappy
13 Jan 2005, 20:16
yeah, it is the same thing i was asking in my last reply here ^^

MissKalunji
13 Jan 2005, 23:29
yeah, it is the same thing i was asking in my last reply here ^^


i guess no one came up with it yet :surprised:

Toky0
14 Jan 2005, 01:12
Ms Kalunji how did you install this? When I searched for the code strips. I found nothing.

MissKalunji
14 Jan 2005, 01:27
Ms Kalunji how did you install this? When I searched for the code strips. I found nothing.


me too at first i had that problem....dont search for the whole code...copy half ofthe code and you'll find it....why it couldnt find it it was caz at the end there was a space and by copying it didnt takeit (stupid isnt it :ermm: )

lemme know if it worked...

Toky0
14 Jan 2005, 01:48
/me clicks install!

Thanks for the help Ms Kalunji. :classic:

MissKalunji
14 Jan 2005, 01:50
* Toky0 clicks install!


Thanks for the help Ms Kalunji. :classic:


np did it work??

Toky0
14 Jan 2005, 01:52
Yes it did perfectly.

boo.3
17 Jan 2005, 22:10
/me clicks install

TrentTech
26 Jan 2005, 12:33
/me considers installing it

peterska2
26 Jan 2005, 18:19
I can't get it working on 3.0.6

Any help?

Morgalis
27 Jan 2005, 17:41
The code in includes/functions_bbcodeparse.php has changed in 3.06 and breaks it

using /me tests this hack comes out as

* tests this hack

any help Erwin?

Thanks in advance

Morgalis
27 Jan 2005, 17:53
The code in includes/functions_bbcodeparse.php has changed in 3.06 and breaks it

using /me tests this hack comes out as

* tests this hack

any help Erwin?

Thanks in advance


Actually this was in preview... for whatever reason it does not work in preview but it works in a new post

thanks

Erwin
30 Jan 2005, 05:39
I've edited the first post so that you can find the code to change in vB 3.0.6.

MissKalunji
30 Jan 2005, 06:15
I've edited the first post so that you can find the code to change in vB 3.0.6.


still no answer bout /you??

Erwin
30 Jan 2005, 20:33
still no answer bout /you??
Because that's a different hack - post that in the mod request forum. This is a support thread for this hack - and I haven't even ticked the support checkbox so this hack is not formally supported.

buro9
02 Feb 2005, 17:34
It was doing weird things when a user edits a post... so I've created this work around for the bit of text that goes into functions_bbcode.php


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



Essentially if you are editing a post the $post array does not exist, as another context is used instead. So you lose the username.

I've added a switch that tests for this, and if $post doesn't exist, it uses the name of the current poster... fine for my forum as I only allow post owners to edit their messages... but this is a crude hack and it will break when an admin or mod edits their post... so not good.

Does anyone know a better context that I can use? How to find out the equivalent of an $editpost array or the post id so that I can get the proper name.

Cheers

David K

Erwin
03 Feb 2005, 00:52
It was doing weird things when a user edits a post... so I've created this work around for the bit of text that goes into functions_bbcode.php


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



Essentially if you are editing a post the $post array does not exist, as another context is used instead. So you lose the username.

I've added a switch that tests for this, and if $post doesn't exist, it uses the name of the current poster... fine for my forum as I only allow post owners to edit their messages... but this is a crude hack and it will break when an admin or mod edits their post... so not good.

Does anyone know a better context that I can use? How to find out the equivalent of an $editpost array or the post id so that I can get the proper name.

Cheers

David K
Good idea. :) I've been essentially too lazy to fix this as this hack is basically not that important on my site.

MissKalunji
03 Feb 2005, 01:37
It was doing weird things when a user edits a post... so I've created this work around for the bit of text that goes into functions_bbcode.php


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



Essentially if you are editing a post the $post array does not exist, as another context is used instead. So you lose the username.

I've added a switch that tests for this, and if $post doesn't exist, it uses the name of the current poster... fine for my forum as I only allow post owners to edit their messages... but this is a crude hack and it will break when an admin or mod edits their post... so not good.

Does anyone know a better context that I can use? How to find out the equivalent of an $editpost array or the post id so that I can get the proper name.

Cheers

David K


Whats that fix for?

buro9
03 Feb 2005, 12:50
Whats that fix for?
As I said: Essentially if you are editing a post the $post array does not exist, as another context is used instead. So you lose the username

So... when posts with /me in are being edited... the edited version no longer contains the username... so /me might have been "* buro9" in the original, but after edit it was "* " and no username... the fix above presumes the person editing is the person who performs the action and inserts their username.

It's a minor thing, but one that was noticed immediately on my board... so I put this hack to this hack in there.

Though a better solution is desirable.

sensimilla
03 Feb 2005, 15:09
and whats the use for it ? retrieving forgiven nickname? :p

buro9
03 Feb 2005, 23:12
and whats the use for it ? retrieving forgiven nickname? :p
Look... if you haven't seen the bug, or experienced it... cool :)

But if you've seen it, and it nags you... then a workaround is above.

You don't have to use it.

buro9
17 Feb 2005, 21:35
Look... if you haven't seen the bug, or experienced it... cool :)

But if you've seen it, and it nags you... then a workaround is above.

You don't have to use it.
Erwin! I've got it!

Could you update your hack?



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



Note I've changed one thing regards the formatting that you might not want to change... I use a stylesheet for it so that I can use different colours according to style in use.

But it's the nested if's that is important... solves /me for PM's and reputation bits :)

Erwin
17 Feb 2005, 23:37
Erwin! I've got it!

Could you update your hack?



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



Note I've changed one thing regards the formatting that you might not want to change... I use a stylesheet for it so that I can use different colours according to style in use.

But it's the nested if's that is important... solves /me for PM's and reputation bits :)
Awesome! :) I sure will...

Erwin
17 Feb 2005, 23:40
Looking at your code, I still need the newreply.php bit... I'll try this out tonight...

buro9
17 Feb 2005, 23:51
Looking at your code, I still need the newreply.php bit... I'll try this out tonight...
It doesn't fix the edit bug!

It's just the lack of username in reputation comments and private messages.

I'll look at the edit one now though :)