vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   "/me action" port for vB3.5.x (https://vborg.vbsupport.ru/showthread.php?t=102835)

Hellcat 12-12-2005 10:00 PM

"/me action" port for vB3.5.x
 
Update v1.20
"/me does whatever...." now gets propperly parsed to "* Username does whatever...." as well in the Archive and subscription notification e-mails! :)

Update v1.10
Quick-Reply didn't work, the raw "/me" was quoted.
Now works fine as well when quoting in Quick-Reply :)

----------
To update simply uninstall the older product and re-import the updated product XML.

==========

Hi everyone!

Here I present you my vBulletin 3.5.x port of the famous "/me" action :up:

This plugin is based on the original /me action done back in vB2 times :)
The code is mainly based on the contens of this thread:
https://vborg.vbsupport.ru/showthread.php?t=59698
so at least 50% percent of the credits have to go there.

However I've completely rewritten it to fit into vB3.5.x's plugin system and the hooks.


Features of this plugin:
  • Adds the ability to use the "/me" action in posts and PMs.
    Just type "/me waves" to get something like "[high]* Hellcat waves[/high]"
  • The formatting of the /me text can easiely be customized by editing the BB tag it uses for formatting purpose
  • The color of the /me text can be customized seperately for every style you have installed, so you always have a color fitting into the currently used style! :)
  • This version is actually QUOTE SAFE!
    If you quote someone who used the /me you get "* User waves" instead of the raw "/me waves" in your quoted text!
    So there will be no messing up when quoting /me's :D

    While editing posts however, you still have the original entered "/me" (except for PMs)


Installation

Painless and easy, no files need to be edited, no files need to be uploaded!

1)
Simply download the product XML from this post, go to your AdminCP -> Product Manager -> Upload/Import Product -> Point it to the XML and hit "GO" :)

2)
Add the following BB tag via the BB-Code-Manager:

BB tag name:
Code:

me
BB tag replacement:
Code:

<div style="color: {mecolor};"><strong><em>{param}</em></strong></div>
This BB tag is actually used for the /me output, so edit the replacement of this tag to fit your need of the formatting of the /me text.

3)
Optional:
For every style you have installed go to Style Manager -> Add Replacement Variable

Variable name:
Code:

mecolor
Variable value: enter any HTML color you like and that fits to the color theme of the style, "#AA0000" for example for a med red.

Using this you can set a different color for the /me for every style.


If you don't want or need to do step 3 you might also want to remove the DIV tag from the HTML makeup (if you don't you have an unparsed {mecolor} in there).


What else?
1) Click "INSTALL" if you use it :p
2) This can easiely be edited/copied to implement even more actions
3) Post comments and problems here and we try to solve them :)
4) This has been develloped and tested on vBulletin 3.5.2 but should work under 3.5.0 and 3.5.1 as well.

Have fun!

SuperFly 12-13-2005 12:35 AM

Very nice

/me clicks install

nexialys 12-13-2005 12:35 AM

sorry to break your fun: (compared to these ???)
https://vborg.vbsupport.ru/showthread.php?t=93171
https://vborg.vbsupport.ru/showthread.php?t=98549

Hellcat 12-13-2005 12:39 AM

Whooops....

[high]* Hellcat shuts up
[/high]

I searched a day for "/me" but didn't find those :(
And the thread about the 3.0.x /me didn't have a refference as well :(

Nah.... so there's one more. :)

theArchitect 12-13-2005 02:44 AM

Well, the major benefit this hack has is that it is coded for 3.5.2 and is quote safe.

P.S. Just want to get a pet hate off my chest (seeing one of the other hacks still in beta). I realise that hack authors generally release their work for free (so I should shut the hell up), but it can be slightly annoying when a very cool hack gets released with bugs in it and then never gets updated so it never gets used. Such a waste of a great idea and good code.

Colosus 12-13-2005 04:56 AM

One question... Does this allow /me to be used within a sentence without messing it up? For instance a link...

http://www.test.com/memo/

Hellcat 12-13-2005 05:13 AM

Quote:

Originally Posted by Colosus
One question... Does this allow /me to be used within a sentence without messing it up? For instance a link...

http://www.test.com/memo/

Yes, should be no problem.
I already posted a few posts with that where the "/me" accours somwhere in the text.
It's supposed to only parse the "/me" if it's at the very beginning of a line.

nexialys 12-13-2005 11:14 AM

Quote:

Originally Posted by Hellcat
It's supposed to only parse the "/me" if it's at the very beginning of a line.

good.. :)

btw, i was posting the links to "compare" like said...

and this is good to not shuffle the /me everywhere... BUT,,, would be COOOOOLER if it can parse a sentence, like :
this is good. /me click install. and i'll be happy!

...i know it's a bit more complicated, use 2 regex more... but anyway, this is a idea for a addon.. lol

shovel 12-13-2005 11:27 AM

Quote:

Originally Posted by theArchitect
Well, the major benefit this hack has is that it is coded for 3.5.2 and is quote safe.

P.S. Just want to get a pet hate off my chest (seeing one of the other hacks still in beta). I realise that hack authors generally release their work for free (so I should shut the hell up), but it can be slightly annoying when a very cool hack gets released with bugs in it and then never gets updated so it never gets used. Such a waste of a great idea and good code.

Couldn't agree with you more.

Snake 12-13-2005 01:57 PM

Lovely!

bold 12-13-2005 03:39 PM

for some reason the color stays the default post color. any ideas how to make it work?

Hellcat 12-13-2005 03:57 PM

Quote:

Originally Posted by bold
for some reason the color stays the default post color. any ideas how to make it work?

Did you set the replacement variables in the style manager for all styles?
And is the name the same as given in the BB code?

bold 12-13-2005 05:48 PM

oops had it '{mecolor}' for the bbcode. but just 'mecolor' as replacement variable.

FleaBag 12-14-2005 05:17 PM

Smurfin' awesome. Thanks for sharing! :)

thisgeek 12-20-2005 03:45 AM

Quote:

Originally Posted by bold
oops had it '{mecolor}' for the bbcode. but just 'mecolor' as replacement variable.

I did the same thing - d'oh! Figured it out when I checked the output source.

GrendelKhan{TSU 12-20-2005 10:00 PM

Quote:

Originally Posted by Hellcat
Yes, should be no problem.
I already posted a few posts with that where the "/me" accours somwhere in the text.
It's supposed to only parse the "/me" if it's at the very beginning of a line.

that's what I wanted to know! so many problems before with this hack case I have a lot of likes from urls with

www.SITE.com/media/file

the /me in media would fook up the url with the id busting in. :/ lol
great stuff!!


ps. important side question....do you know how a search engine spider would read it? as "/me" or as "GrendelKhan{TSU"??

Hellcat 12-21-2005 01:19 AM

The search engine would also see the "* User does something" instead of the "/me does something"

In the Searchengine friendly Archive it'll be the "/me" I'd guess....

DaveAK 12-23-2005 01:58 AM

My first install! Thanks for making it easy. :)

Wolf42 12-23-2005 09:09 AM

[high]* Wolf42 clicks install.
[/high]
After some troubles with the raplacement variables I got it to work.
Thx for sharing. ;)

bitbender 01-02-2006 01:43 PM

Thx!! This fixed up the code and quote block problems we were having with the ABD version!!

HYN!

S@NL - BlackBik 01-03-2006 07:49 PM

Quote:

Originally Posted by SuperFly
Very nice

[high]* SuperFly clicks install[/high]

Me too :)

But it doen't work well when quoting in quick reply...

Hellcat 01-04-2006 11:38 PM

Quote:

Originally Posted by S@NL - BlackBik
Me too :)

But it doen't work well when quoting in quick reply...

Hmm.... TBH never tried that so far....
I'll check that out and see if QR can be tweaked :)

sidekick 01-05-2006 01:37 AM

this one is better than what i had before, earlier the /me wud mess up my url's
deactivated the old one and installed this.. i dont see the same problem

thanks :)

Hellcat 01-12-2006 12:09 AM

Quote:

Originally Posted by S@NL - BlackBik
But it doen't work well when quoting in quick reply...

I added support for Quick-Reply :)
See initial post, I already uploaded the new product XML.

Post here if there are still problems, but in my tests quick-reply quoting worked now :)

S@NL - BlackBik 01-12-2006 05:17 PM

Yep, it works great now :)
Thanks for your support.

Dreiko 01-12-2006 09:12 PM

Installed and works great :)

The only thing is that, my forum uses the "Backlink for quotes" hack, and, when I quote a "/me", I get

*Username;postnumber and message*

curry684 03-06-2006 11:10 PM

Wonderful, now running on my forum :)

[high]* curry684 rejoices![/high]

senkin 03-07-2006 04:13 AM

Niceness. I am so using this :)

Hellcat 05-16-2006 10:21 PM

Yesyes, even the old and tiny things get an update from time to time :)

Now, this /me also works
- In the Archive
- In subscription notification emails

Have fun :)

Ghostsuit 05-16-2006 10:53 PM

hmm strange when I use this I get [me]* username action[/me]

Any idea what might be up?

Hellcat 05-16-2006 11:48 PM

the [me] is the BBcode used for the formatting of the action code.
It should only be exposed in PMs since in quotes it's not used and when editing the raw "/me" shows up :)

Boofo 05-17-2006 02:35 AM

Quote:

Originally Posted by Ghostsuit
hmm strange when I use this I get [me]* username action[/me]

Any idea what might be up?

You need to make the repacement color variable for the me tags. ;)

And excellent update, Hellcat, sir. ;)

[high]* Boofo runs off to see where else he can break this[/high]

L-Mane 05-26-2006 12:27 AM

Quote:

Database error in vBulletin 3.5.4:

Invalid SQL:
SELECT COUNT(*) AS `num` FROM post WHERE `userid` = 1 AND `threadid` =;

MySQL Error : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1
Error Number : 1064
I got this after doing the BB code.

Boofo 05-26-2006 12:32 AM

Quote:

Originally Posted by L-Mane
I got this after doing the BB code.

That shouldn't have anything to do with this hack. Did you try doing another bbcode to see if it was doing the same thing? It looks like there is another hack messing with something somewhere.

L-Mane 05-26-2006 12:34 AM

It only does it when I do Manage Products

I installed "moderator_stats_1_3" plugin before.

Boofo 05-26-2006 01:09 AM

Have you tried disabling that product and then doing the bbcode?

L-Mane 05-26-2006 01:25 AM

Ok, it's fine now when I disabled that....weird.

Boofo 05-26-2006 01:55 AM

Quote:

Originally Posted by L-Mane
Ok, it's fine now when I disabled that....weird.

You might want to post what happened in the thread for that hack. Or maybe someone has had the same problem and there might be a fix for it there. ;)

SagesseForum 05-26-2006 06:59 AM

/me installs

Smiry Kin's 06-01-2006 09:53 PM

/me installs


All times are GMT. The time now is 07:14 PM.

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.01574 seconds
  • Memory Usage 1,827KB
  • 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
  • (3)bbcode_code_printable
  • (13)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete