![]() |
Ok here's a major overhaul of the /me command, this version rewrite the /me line to [action=username]text[/username]. This solution provides better cusomization and easier usage. Plus it also work in other plugins that parse bb code.
By default it forces a definition for [action] but you can simply override is by specifing it in the custom bbcode. The default replacement is: <span style="font-weight: bold;">* {option} {param}</span> This product also contains a few plugins postfixed with "(legacy support)" (disabled by default). This adds backwards compatibility for posts that only have the old "/me ..." stuff. However, the legacy code has a minor bug where "/me" is used inside a quote. Also an entry for "/me" is added to the vbCode overview page. |
with legacy mode active im seeing stuff like this:
has a return after it: * Moparx waves<br /> has a smilie next to it: * Moparx starts up a fire pit. <img src="images/smilies/evil.gif" border="0" alt="" title="Evil" class="inlineimg" /> |
ah... figures.. ok here's a fix. Replace the content of the "/me main" plugin with:
Code:
if (!function_exists("bbcode_irc_me")) or install the newer product .xml |
Wouldn't this reg ex work just as well?
PHP Code:
|
Quote:
Also, how do we avoid this? Quote:
|
to change the way the /me is displayed simply add the [action] vbcode tag.
for example the replacement: HTML Code:
<span style="font-weight: bold; color: red;">* {option} {param}</span> * El_Muerte does this in order for /me to only be replaced at the beginning of a line edit the "/me main" plugin to use the regex: PHP Code:
wth, why does [ color=red]text[/color] make the text green?! |
thanks again El_Muerte.
Your product is working perfectly :) |
doesn't work for me in 3.5.0
I uploaded the plugin but it doesn't do anything me text is still displayed as "/ me does something" (without space of course) Any ideas? And yes, I activated the plugin. EDIT: Nevermind, it works now :rolleyes: |
@Salazar -- You need to upload this as a product. Use the link from El_Muerte's post. I can confirm this is working on 3.5 Gold.
@ El_Muerte -- thanks, working like a charm in big, bold red. :D Question -- what are the disabled legacy support plugins for? Can those just be deleted? |
if you used previous /me hacks (say on 3.0.x) the legacy mode will allow them to be shown correctly
|
Ah -- gotcha. Thanks Moparx. :)
|
Where would I add the "action" tag at?
Edit: My co-admin helped me figure it out. Need coffee. Quote:
|
/me very usefull I think!
|
Quote:
|
Quote:
The [action] tag isn't added by default (but it is forced in the background). |
I still don't know what you mean, lol
|
In El_Muerte's plugin called enforce default [action] bbcode hooked to bbcode_create , replace the <span></span> tag with:
PHP Code:
|
Problem with this hack. Consider this:
http://Members.aol.com.. Took me forever to figure out what was mucking my links.. For now, uninstall clicked.. |
Same here, it was affecting many links on my forum, I was also forced to uninstall it :(
|
Quote:
Good idea anyway.. |
Quote:
|
Thank you
/me clicks install |
No offense, but I have to uninstall as well. "/me" was a good idea but something more unique like [me] would work better on a board, so I simply edited and uploaded a modified version of the "[you] hack" instead (given my EXTEMELY limited coding skills).
Appreciate all the hard work you guys all did though. -=e=- Edited Later: One second thought, I re-installed this after changing "/me" to "[me]", and it works like a charm! I take back my "uninstall"! :) |
[high]* makemedie just tested it out on 3.5.1! Works great thanks! :)[/high]
|
Nice one. Only one thing that is a bit of a problem: the string searched for seems to be "/me" and not "/me ", causing certain URL's to be changed too! I.e:
Code:
http://server.contry/me_hack.jpg results in: http://server.contry* ~_hack.jpg Could you please fix this in future versions? |
I would rather recommend, to look if in the string there is a "http://". If so: Don't apply the hack. Just for the case, someone has been using a blind space in his URL ;)
|
Nice, but nested quotes kills .. /me.. (har har)
|
I know this will sound stupid but... how would I uninstall this via admincp? It's not showing up in my plugin manager, but it's showing up when I click "Upload/download plugins"
/me is a confused duckling |
sounds like there are a few things missing before this hack is safe to use... will watch the thread, though :)
|
Working on 3.5.3 with the above mentioned issues, but they're minor in light of this being such a fun add-on in general.
/me clicks install. I've attached my product XML, edited just to make the font 10px non-bold green if anyone would like it. |
Quote:
|
Quote:
|
Quote:
:scratches head: Perhaps reinstall it, allow overwrite, then see if it shows up? |
Quote:
well, it was fun while it lasted.. |
Quote:
|
Use this code instead:
PHP Code:
|
Thanks Erwin.
I had to disable the hack due to the same reason!! This might help :) Thanks |
Many thanks Erwin. Worked like a charm on 3.5.4. :)
|
Quote:
|
Does this work on 3.6.4?
|
All times are GMT. The time now is 11:57 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|