View Full Version : BB Code Enhancements - [BB Code] /me
bananalive
03-20-2009, 10:00 PM
This mod replaces '/me was here' with '* {poster's username} was here'.
Requires PHP 5 or above.
Example:/me is here
* Bananalive is here
The replacement occurs in the following places:
EDITPOST preview
NEWTHREAD preview
SHOWPOST
SHOWTHREAD
Remember to click INSTALLED.
v1.1 allows /me in mid-sentence
bananalive
03-21-2009, 01:00 PM
Version History
v1.1
- allows /me in mid sentence
v1.0
- Initial Release
Black Tiger
03-22-2009, 11:42 PM
LoL, I was looking for that one, thanks!
Shazz
03-22-2009, 11:46 PM
Great port over from 3.5 :D
Sweeks
03-23-2009, 12:22 AM
Not working for me somehow :(
________
Black Guy (http://www.++++tube.com/categories/301/guy/videos/1)
bananalive
03-23-2009, 01:31 PM
Not working for me somehow :(
Do you have any modifications installed that affect the postbit?
Do you have PHP 5+?
Jasem
03-23-2009, 01:35 PM
Excellent, thank you!
installed
Sweeks
03-23-2009, 03:43 PM
Do you have any modifications installed that affect the postbit?
Do you have PHP 5+?
I have plenty that affect the postbit. Guess it must be those. Latest version of php is installed.
________
Silver surfer reviews (http://vaporizer.org/reviews)
RTMdotORG
03-23-2009, 03:53 PM
can you make a /you code?
Black Tiger
03-23-2009, 04:35 PM
If I'm not mistaken, a short while ago somebody already made a /you code.
@Bananalive: I got an automatic update notification. What has been updated?
bananalive
03-23-2009, 04:48 PM
I have plenty that affect the postbit. Guess it must be those. Latest version of php is installed.
Go to plugin list and see which use the hook postbit_display_complete
Note: /me is also case-sensitive so, /ME won't work and /me must be right at the beginning of the line.
bananalive
03-23-2009, 04:50 PM
If I'm not mistaken, a short while ago somebody already made a /you code.
@Bananalive: I got an automatic update notification. What has been updated?
Nothing, I edited the text of the first post. It shouldn't have sent update notification.
bananalive
03-23-2009, 04:51 PM
can you make a /you code?
I'm going to add /you code to next version of [BB Code] You (https://vborg.vbsupport.ru/showthread.php?t=208538)
Black Tiger
04-11-2009, 11:19 PM
Hmmz... is there no way to make this so it works everywhere in a post instead of only at the beginning of a line?
Because now it works only in the beginning of a sentence and that's no real bbcode imho because bbcodes work everywhere.
TimberFloorAu
04-11-2009, 11:39 PM
Sorry guys, I recall asking Boofo about this last year.
What is this "me" thing people talk about.
I dont get it.
Black Tiger
04-12-2009, 12:30 AM
@TimberFloorAu: Well.... the example says it all.
It's something which is blown over from IRC chats. The /me statement was kind of invented there.
It's another way (and much shorter) to put in your own name to a comment.
But like I already said.... the example says exactly what it does.
TimberFloorAu
04-12-2009, 12:39 AM
Ok thanks.
Its not something I have ever used, and so wish all the people using it, lots of fun lol
Appreciate your reply :up:
TheLastSuperman
04-12-2009, 12:40 AM
@TimberFloorAu: Well.... the example says it all.
It's something which is blown over from IRC chats. The /me statement was kind of invented there.
It's another way (and much shorter) to put in your own name to a comment.
But like I already said.... the example says exactly what it does.
Just in case Black Tiger as many members are not coders ;)
See the example ^ i.e.
Example:
YOU type this in...
* TheLastSuperman is here
IT turns it into this after you hit post :D
* Bananalive is here
That is all, there are other mods that do other words or functions, use the search above to find them or start browsing if your interested.
S-MAN
TimberFloorAu
04-12-2009, 12:49 AM
okies thanks, so merely typing /me or in the other mods case /you adds your name automatically.
So the bbcode is parsed on the fly? or you have to type ?
Apologies for not getting the entire ghist of this
Black Tiger
04-12-2009, 01:07 AM
The BBcode is parsed when pushing the "post reply" or "post new thread" button so it's parsed on the fly if I understand correctly.
It is not a bbcode which should be used with the [ and ] signs.
In the other mods case, the /you code adds your name automatically, the /me code my name. That's indeed how it works.
TimberFloorAu
04-12-2009, 01:20 AM
Now I got you.
so correct me if I am wrong.
How is the you variant used.
* TimberFloorAu said to /you would indeed give:
bob said to bob
TimberFloorAu
04-12-2009, 01:36 AM
Ok installed me and you.
Doesnt work.
Only displays if using [you] in thread title.
Example on our forum.
Ste
http://www.yobromofo.com/forum/barbie/9776-you-reading-thread.html#post117146
TimberFloorAu
04-12-2009, 01:40 AM
Right crikey, why doesnt it parse mid sentence ?
Only works if the / me code ( minus space ) is the very first word
Black Tiger
04-12-2009, 12:12 PM
Oke, I don't know sure about the "you" code, I did not read that thread and I do not use that.
However, I agree with you about the /me code. See my post #14 on the previous page.
It's also my opinion that it should work in the middle of a sentence.
bananalive
04-12-2009, 06:40 PM
I've added /me in mid-sentence for v1.1 although i think it's weird
Black Tiger
04-12-2009, 07:13 PM
No problem, we like it. Thank you for adjusting it!!:)
TimberFloorAu
04-12-2009, 09:33 PM
Thanks, have added a tutorial piccy for our members, lol.
bigcurt
04-28-2009, 10:40 AM
I am not sure if I want to allow my members to use this /you thing in thread title..will be fairly confusing. Are their permissions you can setup for this?
bananalive
04-28-2009, 12:28 PM
I am not sure if I want to allow my members to use this /you thing in thread title..will be fairly confusing. Are their permissions you can setup for this?
Wrong thread? typo?
'/me' is not processed in threadtitles
bigcurt
04-28-2009, 05:26 PM
Ya, I wasn't thinking that they were two separate mods or anything and I was looking at the image that guy posted - https://vborg.vbsupport.ru/attachment.php?attachmentid=97682&d=1239575679
Sorry about that bud :P. So, this mod is just allowing users to do /me and nothing else? Great! Thanks bud.
bananalive
04-28-2009, 06:06 PM
Ya, I wasn't thinking that they were two separate mods or anything and I was looking at the image that guy posted - https://vborg.vbsupport.ru/attachment.php?attachmentid=97682&d=1239575679
Sorry about that bud :P. So, this mod is just allowing users to do /me and nothing else? Great! Thanks bud.
Yes /me and [you] bbcodes are two separate mods. this mod only enables the use of /me and [me] see examples in first post.
White_Snake
06-14-2009, 06:18 PM
hello!
im using a heavy modificated postbit template on my custom skin and your product doesnt works, but it works like a charm on the default skin, does your product makes template changes?
bananalive
06-15-2009, 11:34 AM
hello!
im using a heavy modificated postbit template on my custom skin and your product doesnt works, but it works like a charm on the default skin, does your product makes template changes?
Odd no templates changes are made. Check with the custom postbit template that variable $post[message] is used
White_Snake
06-15-2009, 04:00 PM
Odd no templates changes are made. Check with the custom postbit template that variable $post[message] is used
yes, it is there, the problem here is that my "postbit" is the mix of several custom templates invoked through <if> <else /> and under one of those custom template $post[message] is set, its not direclty set under the postbit template so i suppose your mod directly invokes the function for postbit template only and not for the custom that are called withing postbit
theforumist
08-10-2009, 01:27 AM
Parse error: syntax error, unexpected '&', expecting T_VARIABLE or '$' in /homepages/45/d250243461/htdocs/forums/includes/class_postbit.php(294) : eval()'d code on line 27
Erm...help? That's what I get with v1.0 and 1.1 is even worse. How do I fix this?
Itchy Nips
08-18-2009, 02:38 PM
great job! One request though. If its in between "quote" tags, can you disable it or make it show the original posters username? Because if someone types that and then another user quotes that post.....the 2nd user's name appears in the quote, not the original username
btw - any reason for the "*" that appears right before the username in the post? Can that be an option to get disabled?
Also another suggestion - maybe having another option to change the color of the output.
sorry, just some thoughts
theforumist
08-22-2009, 04:36 AM
great job! One request though. If its in between "quote" tags, can you disable it or make it show the original posters username? Because if someone types that and then another user quotes that post.....the 2nd user's name appears in the quote, not the original username
btw - any reason for the "*" that appears right before the username in the post? Can that be an option to get disabled?
Also another suggestion - maybe having another option to change the color of the output.
sorry, just some thoughts
Dig through the .xml file and you can probably find the * and remove it. I'm hoping that my ninja'd copy (editing done on my end) works on my site later today...if I still have it.
BirdOPrey5
05-16-2010, 06:56 PM
Downloaded and installed 1.1...
[me] doesn't work at all- should it?
this works if it's not the first thing or only thing on the line- it only works mid sentence, and it changes the font color to red for all text after it... I guess I was looking for code that simply replaced [me] or /me with my username only, no font colors, asterisks, or funny stuff- and works... uninstalled for now.
BirdOPrey5
05-16-2010, 07:20 PM
OK, marked as installed BUT... I edited the code to work with [me] just works better on my forum... also it no longer needs a space following the code to work, so it can be the last thing on the line. For example this wouldn't work with the original code: /me.
I can upload the changes I made if the author wants but anyone who has a basic understanding of programming should be able to make the changes. I removed the * and the font color change too.
Next issue- how do we get it to work in the thread title and other areas like the [you] code does?
sulasno
09-23-2010, 12:05 PM
does the mod works with vB 4.x.x and is the code available at your site?
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.