[CDB] MODx commands

A place for Extension Authors to post and receive feedback on Extensions still in development. No Extensions within this forum should be used within a live environment!
Get Involved
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

IMPORTANT: Extensions Development rules

IMPORTANT FOR NEEDED EVENTS!!!
If you need an event for your extension please read this for the steps to follow to request the event(s)
User avatar
dmzx
Registered User
Posts: 853
Joined: Fri Sep 05, 2014 6:48 am
Location: The Netherlands
Contact:

[CDB] MODx commands

Post by dmzx »

Extension Name: MODx commands
Author: dmzx

Extension Description:

phpBB 3.1 extension that will add MODx commands in a dropbox.

Extension Version: 1.0.0

Screenshots:
Image

Image

Extension Download:
Download

Installation:
  1. 1. Download the latest release.
    2. Unzip the downloaded release, and change the name of the folder to `modxcommands`.
    3. In the `ext` directory of your phpBB board, create a new directory named `dmzx` (if it does not already exist).
    4. Copy the `modxcommands` folder to `/ext/dmzx/` if done correctly, you'll have the main extension class at (your forum root)/ext/dmzx/modxcommands/composer.json
    5. Navigate in the ACP to `Customise -> Manage extensions`
    6. Look for `MODx commands` under the Disabled Extensions list, and click its `Enable` link.
Last edited by dmzx on Sat Jan 31, 2015 6:11 am, edited 2 times in total.
Contact me on dmzx-web.net
Buy me a beer Donate and try binance.com or try CentOS Web Panel
User avatar
david63
Registered User
Posts: 20646
Joined: Thu Dec 19, 2002 8:08 am

Re: [RC] MODx commands

Post by david63 »

Cannot access the demo without login details.
David
Remember: You only know what you know and - you don't know what you don't know!

I now no longer support any of my extensions but they will start to become available here
User avatar
dmzx
Registered User
Posts: 853
Joined: Fri Sep 05, 2014 6:48 am
Location: The Netherlands
Contact:

Re: [RC] MODx commands

Post by dmzx »

Post updated. ;)
Contact me on dmzx-web.net
Buy me a beer Donate and try binance.com or try CentOS Web Panel
User avatar
Raul [ThE KuKa]
Style Customisations
Style Customisations
Posts: 11073
Joined: Mon Dec 08, 2003 9:24 pm
Location: Spain
Name: Raul Arroyo
Contact:

Re: [RC] MODx commands

Post by Raul [ThE KuKa] »

"PR" Spanish translation ready. ;)
All unsolicited PMs will be ignored.
:warning: Knowledge Base | Documentation | Board rules | phpBB Styles Rules & Policies | Styles Queue Stats :warning:


If you like my styles, translations, etc. and want to show some appreciation, then feel free to Donate.
:flag_es: phpBB Spain - Online Since 2003 :heart:


User avatar
Lumpy Burgertushie
Registered User
Posts: 69223
Joined: Mon May 02, 2005 3:11 am
Contact:

Re: [RC] MODx commands

Post by Lumpy Burgertushie »

what is this for? these commands are not used in 3.1 extensions are they?

If this is for creating 3.0 MODs I would expect it to be a MOD for 3.0


or am I missing something obvious?

robert
Premium phpBB 3.3 Styles by PlanetStyles.net

I am pleased to announce that I have completed the first item on my bucket list. I have the bucket.
User avatar
Raul [ThE KuKa]
Style Customisations
Style Customisations
Posts: 11073
Joined: Mon Dec 08, 2003 9:24 pm
Location: Spain
Name: Raul Arroyo
Contact:

Re: [RC] MODx commands

Post by Raul [ThE KuKa] »

To provide support when editing files, lines of code, etc. I see an interesting extension Robert. ;)
All unsolicited PMs will be ignored.
:warning: Knowledge Base | Documentation | Board rules | phpBB Styles Rules & Policies | Styles Queue Stats :warning:


If you like my styles, translations, etc. and want to show some appreciation, then feel free to Donate.
:flag_es: phpBB Spain - Online Since 2003 :heart:


User avatar
Lumpy Burgertushie
Registered User
Posts: 69223
Joined: Mon May 02, 2005 3:11 am
Contact:

Re: [RC] MODx commands

Post by Lumpy Burgertushie »

oh, I agree it is interesting. I attempted something like this a long time ago for 3.0 but never finished it.

It just seemed odd for a 3.1 extension but I can see how for general support of your users, it could come in handy. I can see me using it a lot.

robert
Premium phpBB 3.3 Styles by PlanetStyles.net

I am pleased to announce that I have completed the first item on my bucket list. I have the bucket.
Cable Player
Registered User
Posts: 516
Joined: Thu Feb 03, 2011 4:45 pm
Location: Hampshire, England

Re: [RC] MODx commands

Post by Cable Player »

Hi, is it possible to limit the use of the drop-box to specific groups?

Thanks
User avatar
Raul [ThE KuKa]
Style Customisations
Style Customisations
Posts: 11073
Joined: Mon Dec 08, 2003 9:24 pm
Location: Spain
Name: Raul Arroyo
Contact:

Re: [RC] MODx commands

Post by Raul [ThE KuKa] »

Is it possible to use/compatibility with [RC] Advanced BBCode Box 3.1 (without manually editing) ?

Can be done manually, but is not the right way.
All unsolicited PMs will be ignored.
:warning: Knowledge Base | Documentation | Board rules | phpBB Styles Rules & Policies | Styles Queue Stats :warning:


If you like my styles, translations, etc. and want to show some appreciation, then feel free to Donate.
:flag_es: phpBB Spain - Online Since 2003 :heart:


User avatar
Lumpy Burgertushie
Registered User
Posts: 69223
Joined: Mon May 02, 2005 3:11 am
Contact:

Re: [RC] MODx commands

Post by Lumpy Burgertushie »

just installed it on testboard. works perfectly and exactly as I would want it to.

would be cool if it was available as a 3.0 MOD as well.

robert
Premium phpBB 3.3 Styles by PlanetStyles.net

I am pleased to announce that I have completed the first item on my bucket list. I have the bucket.
User avatar
Jessica
Former Team Member
Posts: 4342
Joined: Sun Jul 18, 2010 2:53 pm
Location: Pennsylvania, USA
Name: Jessica
Contact:

Re: [RC] MODx commands

Post by Jessica »

Lumpy Burgertushie wrote:just installed it on testboard. works perfectly and exactly as I would want it to.

would be cool if it was available as a 3.0 MOD as well.

robert
Agreed. Would be nice if it could also be made in to a MOD...
Pro-choice, Atheist, Pro-LGBT rights
Everybody is a genius. But if you judge a fish by its ability to climb a tree, it will live its whole life believing that it is stupid. - Albert Einstein
User avatar
aurquiel
Registered User
Posts: 243
Joined: Fri May 15, 2009 1:45 am

Re: [RC] MODx commands

Post by aurquiel »

Raul [ThE KuKa] wrote:Is it possible to use/compatibility with [RC] Advanced BBCode Box 3.1 (without manually editing) ?

Can be done manually, but is not the right way.
i am thinking the same it wolud be a great idea, kuka how did you intehrate it?
User avatar
Raul [ThE KuKa]
Style Customisations
Style Customisations
Posts: 11073
Joined: Mon Dec 08, 2003 9:24 pm
Location: Spain
Name: Raul Arroyo
Contact:

Re: [RC] MODx commands

Post by Raul [ThE KuKa] »

aurquiel wrote:
Raul [ThE KuKa] wrote:Is it possible to use/compatibility with [RC] Advanced BBCode Box 3.1 (without manually editing) ?

Can be done manually, but is not the right way.
i am thinking the same it wolud be a great idea, kuka how did you intehrate it?
Open ext/vse/abbc3/styles/all/template/abbc3_posting_buttons.html file.

FIND:

Code: Select all

	</div>
	<!-- IF .custom_tags -->
BEFORE ADD:

Code: Select all

		<select name="addbbcode21" onchange="bbfontstyle('[install]' + this.form.addbbcode21.options[this.form.addbbcode21.selectedIndex].value + ' [code]', '
[/install]');this.form.addbbcode21.selectedIndex = 0;" title="{L_MODX_CMD}">
<option value="0" selected="selected" style="display: none">{L_MODX_CMD}</option>
<option value="{L_BBCODE21_FIND}">{L_MODX_FIND}</option>
<option value="{L_BBCODE21_AFTER}">{L_MODX_ADD_AFTER}</option>
<option value="{L_BBCODE21_BEFORE}">{L_MODX_ADD_BEFORE}</option>
<option value="{L_BBCODE21_REPLACE}">{L_MODX_REPLACE_WITH}</option>
<option value="{L_BBCODE21_DELETE}">{L_MODX_DELETE}</option>
<option value="{L_BBCODE21_INFIND}">{L_MODX_IN_LINE_FIND}</option>
<option value="{L_BBCODE21_INAFTER}">{L_MODX_IN_LINE_ADD_AFTER}</option>
<option value="{L_BBCODE21_INBEFORE}">{L_MODX_IN_LINE_ADD_BEFORE}</option>
<option value="{L_BBCODE21_INREPLACE}">{L_MODX_IN_LINE_REPLACE_WITH}</option>
</select>[/code]
All unsolicited PMs will be ignored.
:warning: Knowledge Base | Documentation | Board rules | phpBB Styles Rules & Policies | Styles Queue Stats :warning:


If you like my styles, translations, etc. and want to show some appreciation, then feel free to Donate.
:flag_es: phpBB Spain - Online Since 2003 :heart:


User avatar
dmzx
Registered User
Posts: 853
Joined: Fri Sep 05, 2014 6:48 am
Location: The Netherlands
Contact:

Re: [RC] MODx commands

Post by dmzx »

Other solution will be:

Change posting_editor_buttons_custom_tags_before.html in ext\dmzx\modxcommands\styles\prosilver\template\event to posting_editor_buttons_after.html

But it will be not inline and show up like this:

Image

Maybe VSE can implement the MODx commands in his extension. ;)

Grtz dmzx
Contact me on dmzx-web.net
Buy me a beer Donate and try binance.com or try CentOS Web Panel
User avatar
Lumpy Burgertushie
Registered User
Posts: 69223
Joined: Mon May 02, 2005 3:11 am
Contact:

Re: [RC] MODx commands

Post by Lumpy Burgertushie »

Ok, here is how to make it work in a 3.0 board:
Open: styles/prosilver/posting_buttons.html
Find This may be a partial find and not the whole line

Code: Select all

	<!-- BEGIN custom_tags -->
Add before Add these lines on a new blank line before the preceding line(s) to find

Code: Select all

<select name="addbbcode21" onchange="bbfontstyle('[install]' + this.form.addbbcode21.options[this.form.addbbcode21.selectedIndex].value + ' [code]', '
[/install]');this.form.addbbcode21.selectedIndex = 0;" title="{L_MODX_CMD}">
<option value="0" selected="selected" style="display: none">{L_MODX_CMD}</option>
<option value="{L_BBCODE21_FIND}">{L_MODX_FIND}</option>
<option value="{L_BBCODE21_AFTER}">{L_MODX_ADD_AFTER}</option>
<option value="{L_BBCODE21_BEFORE}">{L_MODX_ADD_BEFORE}</option>
<option value="{L_BBCODE21_REPLACE}">{L_MODX_REPLACE_WITH}</option>
<option value="{L_BBCODE21_DELETE}">{L_MODX_DELETE}</option>
<option value="{L_BBCODE21_INFIND}">{L_MODX_IN_LINE_FIND}</option>
<option value="{L_BBCODE21_INAFTER}">{L_MODX_IN_LINE_ADD_AFTER}</option>
<option value="{L_BBCODE21_INBEFORE}">{L_MODX_IN_LINE_ADD_BEFORE}</option>
<option value="{L_BBCODE21_INREPLACE}">{L_MODX_IN_LINE_REPLACE_WITH}</option>
</select>[/code]
Open: language/en/common.php
Find

Code: Select all

?>
Add before Add these lines on a new blank line before the preceding line(s) to find

Code: Select all

$lang = array_merge($lang, array(
	       'MODX_FIND'                 => 'Find',
		   'MODX_ADD_AFTER'            => 'Add after',
		   'MODX_ADD_BEFORE'           => 'Add before',
		   'MODX_REPLACE_WITH'         => 'Replace with',
		   'MODX_DELETE'               => 'Delete',
		   'MODX_IN_LINE_FIND'         => 'In line find',
		   'MODX_IN_LINE_ADD_AFTER'    => 'In line add after',
		   'MODX_IN_LINE_ADD_BEFORE'   => 'In line add before',
		   'MODX_IN_LINE_REPLACE_WITH' => 'In line replace with',
           'MODX_CMD'                  => 'MODx command',
           'BBCODE21_FIND'             => '[b]Find[/b] [i][size=85]This may be a partial find and not the whole line[/size][/i]',
           'BBCODE21_AFTER'            => '[b][color=#008000]Add after[/color][/b] [i][size=85]Add these lines on a new blank line after the preceding line(s) to find[/size][/i]',
           'BBCODE21_BEFORE'           => '[b][color=#BF0080]Add before[/color][/b] [i][size=85]Add these lines on a new blank line before the preceding line(s) to find[/size][/i]',
           'BBCODE21_REPLACE'          => '[b][color=#BF0000]Replace with[/b][/color] [i][size=85]Replace the preceding lines with the following[/size][/i]',
           'BBCODE21_DELETE'           => '[b][color=#FF0000]Delete[/b][/color] [i][size=85]Remove the preceding lines[/size][/i]',
           'BBCODE21_INFIND'           => '[b][color=#BF0080]In line find[/b][/color] [i][size=85]This is a partial match of a line for in-line operations[/size][/i]',
           'BBCODE21_INAFTER'          => '[b][color=#BF0080]In line add after[/b][/color]',
           'BBCODE21_INBEFORE'         => '[b][color=#BF0080]In line add before[/b][/color]',
           'BBCODE21_INREPLACE'        => '[b][color=#BF0080]In line replace with[/b][/color]',
	
));
Create new bbcode:
BBCODE:

Code: Select all

[install]{TEXT}[/install]
HTML replacement:

Code: Select all

<div style="background: #FFFFFF;
   padding: 1px;
   border: solid 1px #999999;
   border-radius: 8px;
   -webkit-border-radius: 8px;
   -moz-border-radius: 8px;
   margin-bottom: 1px;">
<div style="   background: #D6E6F6;
   padding: 6px 10px;
   border: solid 1px #C6DAEE;
   border-radius: 7px;
   -webkit-border-radius: 7px;
   -moz-border-radius: 7px;">{TEXT}</div></div>
no need to check the show on posting page for the bbcode.

when you use the MODX commands, your cursor will be in between the code tags and you just insert the info you need. Then you will need to move the cursor out of that install bbcode to a new line and click the next MODX command you want. etc. etc

works like a champ.
as always, YMMV


robert
Last edited by Lumpy Burgertushie on Sun Dec 14, 2014 7:52 pm, edited 1 time in total.
Premium phpBB 3.3 Styles by PlanetStyles.net

I am pleased to announce that I have completed the first item on my bucket list. I have the bucket.
Locked

Return to “Extensions in Development”