![]() |
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
|
All times are GMT. The time now is 01:54 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|