vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   BB Code Enhancements - [BB Code] /me (https://vborg.vbsupport.ru/showthread.php?t=209007)

bananalive 03-20-2009 10:00 PM

[BB Code] /me
 
1 Attachment(s)
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

bananalive 03-23-2009 01:31 PM

Quote:

Originally Posted by Sweeks (Post 1774694)
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

Quote:

Originally Posted by bananalive (Post 1774995)
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

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

Quote:

Originally Posted by Sweeks (Post 1775099)
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

Quote:

Originally Posted by Black Tiger (Post 1775140)
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

Quote:

Originally Posted by RTMdotORG (Post 1775110)
can you make a /you code?

I'm going to add /you code to next version of [BB Code] You

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

Quote:

Originally Posted by Black Tiger (Post 1789323)
@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...

[high] * TheLastSuperman is here
[/high]

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 ?
PHP Code:

[me][/me

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.

[high]
PHP Code:

TimberFloorAu said to /you 

would indeed give:[/high]

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/barbi...tml#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

1 Attachment(s)
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

Quote:

Originally Posted by bigcurt (Post 1800438)
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/attachmen...2&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

Quote:

Originally Posted by bigcurt (Post 1800694)
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/attachmen...2&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

Quote:

Originally Posted by White_Snake (Post 1829695)
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

Quote:

Originally Posted by bananalive (Post 1830016)
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

Quote:

Originally Posted by Itchy Nips (Post 1869817)
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?


All times are GMT. The time now is 02:07 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01435 seconds
  • Memory Usage 1,818KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_php_printable
  • (11)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete