[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: 767
Joined: Fri Sep 05, 2014 6:48 am
Location: The Netherlands
Contact:

[CDB] MODx commands

Post by dmzx » Sat Dec 13, 2014 9:52 pm

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
 Need a Host or buy me a beer Donate and try binance.com

User avatar
david63
Registered User
Posts: 16196
Joined: Thu Dec 19, 2002 8:08 am
Location: Lancashire, UK
Name: David Wood
Contact:

Re: [RC] MODx commands

Post by david63 » Sat Dec 13, 2014 10:08 pm

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!
My CDB Contributions | How to install an extension
I will not be accepting translations for any of my extensions in Github - please post any translations in the appropriate topic.
No support requests via PM or email as they will be ignored

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

Re: [RC] MODx commands

Post by dmzx » Sat Dec 13, 2014 10:11 pm

Post updated. ;)
Contact me on dmzx-web.net
 Need a Host or buy me a beer Donate and try binance.com

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

Re: [RC] MODx commands

Post by Raul [ThE KuKa] » Sat Dec 13, 2014 11:49 pm

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


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



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

Re: [RC] MODx commands

Post by Lumpy Burgertushie » Sat Dec 13, 2014 11:56 pm

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
I'm baaaaaccckkkk. still doing work on donation basis. PM your needs.

Premium phpBB 3.2 Styles by PlanetStyles.net

If a tree falls in the forest and nobody is there, does it make a sound?

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

Re: [RC] MODx commands

Post by Raul [ThE KuKa] » Sun Dec 14, 2014 12:13 am

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 :warning:


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



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

Re: [RC] MODx commands

Post by Lumpy Burgertushie » Sun Dec 14, 2014 12:54 am

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
I'm baaaaaccckkkk. still doing work on donation basis. PM your needs.

Premium phpBB 3.2 Styles by PlanetStyles.net

If a tree falls in the forest and nobody is there, does it make a sound?

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 » Sun Dec 14, 2014 12:55 am

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: 6062
Joined: Mon Dec 08, 2003 9:24 pm
Location: Spain
Name: Raul Arroyo
Contact:

Re: [RC] MODx commands

Post by Raul [ThE KuKa] » Sun Dec 14, 2014 12:58 am

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 :warning:


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



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

Re: [RC] MODx commands

Post by Lumpy Burgertushie » Sun Dec 14, 2014 1:10 am

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
I'm baaaaaccckkkk. still doing work on donation basis. PM your needs.

Premium phpBB 3.2 Styles by PlanetStyles.net

If a tree falls in the forest and nobody is there, does it make a sound?

User avatar
Jessica
Former Team Member
Posts: 4341
Joined: Sun Jul 18, 2010 2:53 pm
Location: Pennsylvania, USA
Name: Jessica
Contact:

Re: [RC] MODx commands

Post by Jessica » Sun Dec 14, 2014 1:33 am

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...
Please do not PM me for support unless it is absolutely necessary
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 » Sun Dec 14, 2014 3:01 am

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: 6062
Joined: Mon Dec 08, 2003 9:24 pm
Location: Spain
Name: Raul Arroyo
Contact:

Re: [RC] MODx commands

Post by Raul [ThE KuKa] » Sun Dec 14, 2014 8:47 am

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 :warning:


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



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

Re: [RC] MODx commands

Post by dmzx » Sun Dec 14, 2014 9:08 am

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
 Need a Host or buy me a beer Donate and try binance.com

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

Re: [RC] MODx commands

Post by Lumpy Burgertushie » Sun Dec 14, 2014 6:50 pm

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.
I'm baaaaaccckkkk. still doing work on donation basis. PM your needs.

Premium phpBB 3.2 Styles by PlanetStyles.net

If a tree falls in the forest and nobody is there, does it make a sound?

Locked

Return to “Extensions in Development”