Scheduled Maintenance: 10-11-2025 Electricity company maintenance between 09:00 and 15:00.

3.1 & 3.2 Extensions Database 3.1 / 3.2MODx commands

<span class="qte-attr qte_31_32-qte">3.1.x &amp; 3.2.x</span>
User avatar

Topic Author
dmzx Online
Founder
Founder
Posts: 6469
Joined: 13 Jan 2014, 21:45
    Windows 10 Chrome

MODx commands

Post by dmzx »

Extension Name: MODx commands
Author: dmzx

Extension Description:

phpBB extension that will add MODx commands in a dropbox.

dmzx/Member-time-counter


Add class


Change code


Change code


Change code / White space

Screenshots:
modxbox.png
xmod.png
Demo:
Dmzx-web.net

Extension Download:
Download-link
MODx commands v1.0.4
Installation:
  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.
You do not have the required permissions to view the files attached to this post! Maybe your post count is too low.

User avatar

Jaantje
Users
Users
Posts: 356
Joined: 02 Nov 2014, 21:25
    Windows 8.1 Chrome

Re: MODx commands

Post by Jaantje »

Dmzx, thanx I like to use this
Grreeetttttzzzzz, Jaantje

User avatar

discovery
Users
Users
Posts: 18
Joined: 28 Nov 2014, 22:28
    Windows 8.1 Chrome

Re: MODx commands

Post by discovery »

Plop

Language French :
language-Fr.zip
:wave:
You do not have the required permissions to view the files attached to this post! Maybe your post count is too low.

User avatar

Topic Author
dmzx Online
Founder
Founder
Posts: 6469
Joined: 13 Jan 2014, 21:45
    Windows 8 Firefox

Re: MODx commands

Post by dmzx »

discovery wrote:Plop

Language French :
language-Fr.zip
:wave:
Code updated :thumbup:

User avatar

Sycron
Users
Users
Posts: 4
Joined: 22 Nov 2014, 21:21
    Windows 7 Chrome

Re: MODx commands

Post by Sycron »

Romanian traslation: ro
You do not have the required permissions to view the files attached to this post! Maybe your post count is too low.

User avatar

Topic Author
dmzx Online
Founder
Founder
Posts: 6469
Joined: 13 Jan 2014, 21:45
    Windows 8 Firefox

Re: MODx commands

Post by dmzx »

Sycron wrote:Romanian traslation: ro
:thumbup:

User avatar

spaceace
Users
Users
Posts: 29
Joined: 18 Dec 2014, 00:23
    Windows 7 Chrome

Re: MODx commands

Post by spaceace »

How can you add the
bbcode that you have here to this? or does it have to be a separate bbcode? also, what is the code for your
bbcode?
Image

User avatar

martin
Admin
Admin
Posts: 5106
Joined: 06 Apr 2014, 16:12
    Linux Chrome

Re: MODx commands

Post by martin »

Note this is the code needed to beef up the look of the modx box so your need to work out how to add some of the edits to the ext do not use this code if you have the ext installed

Open prosilver/template/posting_buttons.html
Find This may be a partial find and not the whole line

Code: Select all

<!-- IF S_BBCODE_FLASH -->
         <input type="button" class="btnbbcode bbcode-flash" accesskey="d" name="addbbcode18" value="Flash" onclick="bbstyle(18)" onmouseover="helpline('d')" onmouseout="helpline('tip')" />
      <!-- ENDIF -->
Add after Add these lines on a new blank line after the preceding line(s) to find

Code: Select all

       <select name="addbbcode" onchange="bbfontstyle('[inst]' + this.form.addbbcode.options[this.form.addbbcode.selectedIndex].value, '[/inst]');this.form.addbbcode.selectedIndex = 0;" title="{L_MODX_INST}">
          <option value="0" selected="selected" style="display: none">{L_MODX_CMD}</option>
          <option value="[open][color=#232F43][b][size=120]Open:[/size][/b][/color] [/open]">{L_MODX_OPEN}</option>
          <option value="{L_BBCODE_AFTER}">{L_MODX_AFTER}</option>
          <option value="{L_BBCODE_BEFORE}">{L_MODX_BEFORE}</option>       
          <option value="{L_BBCODE_REPLACE}">{L_MODX_REPLACE}</option>
          <option value="{L_BBCODE_DELETE}">{L_MODX_DELETE}</option>
          <option value="{L_BBCODE_INAFTER}">{L_MODX_INAFTER}</option>
          <option value="{L_BBCODE_INBEFORE}">{L_MODX_INBEFORE}</option>   
          <option value="{L_BBCODE_INREPLACE}">{L_MODX_INREPLACE}</option>
          <option value="{L_BBCODE_INDELETE}">{L_MODX_INDELETE}</option>
       </select>
Open language/en/posting.php
Find This may be a partial find and not the whole line

Code: Select all

'MORE_SMILIES'            => 'View more smilies',
Add after Add these lines on a new blank line after the preceding line(s) to find

Code: Select all

'MODX_INST'               => 'Post Edits for  MODx Install Directions',
       'MODX_CMD'               => 'MODx Instructions',
       'MODX_OPEN'            => 'Open',
       'MODX_AFTER'            => 'Find and Add after',
       'MODX_BEFORE'            => 'Find and Add before',
       'MODX_REPLACE'            => 'Find and Replace with',
       'MODX_DELETE'            => 'Find and Delete',
       'MODX_INAFTER'            => 'Inline Find Add after',
       'MODX_INBEFORE'            => 'Inline Find Add before',
       'MODX_INREPLACE'         => 'Inline Find Replace with',
       'MODX_INDELETE'            => 'Inline Find and Delete',
       'BBCODE_OPEN'         => '[color=#232F43][b][size=120]Open:[/size][/b][/color] ',
       'BBCODE_AFTER'         => '[color=#232F43][b][size=120]Find[/size][/b][/color]
    Tip: [size=85]This may be a partial find and not the whole line.[/size][code]
Add after
Tip: Add the following line(s) on a new blank line after the preceding line(s) of find.',
'BBCODE_BEFORE' => 'Find
Tip: This may be a partial find and not the whole line. Add before
Tip: Add the following line(s) on a new blank line before the preceding line(s) of find.',
'BBCODE_REPLACE' => 'Find
Tip: This may be a partial find and not the whole line. Replace with
Tip: Replace the preceding line(s) to find with the following line(s).',
'BBCODE_DELETE' => 'Find
Tip: This may be a partial find and not the whole line. Delete
Tip: Remove the preceding line(s) to find.',
'BBCODE_INAFTER' => 'Find
Tip: This may be a partial find and not the whole line. [inline]In-Line Find
Tip: This is a partial match of a line for in-line operations. In-Line Add after
Tip: Add the following code(s) in-line after the preceding in-line code(s) to find.[/inline]',
'BBCODE_INBEFORE' => 'Find
Tip: This may be a partial find and not the whole line. [inline]In-Line Find
Tip: This is a partial match of a line for in-line operations. In-Line Add before
Tip: Add the following code(s) in-line before the preceding in-line code(s) to find.[/inline]',
'BBCODE_INREPLACE' => 'Find
Tip: This may be a partial find and not the whole line. [inline]In-Line Find
Tip: This is a partial match of a line for in-line operations. In-Line Replace with
Tip: Replace the preceding in-line code(s) to find with the following code(s).[/inline]',
'BBCODE_INDELETE' => 'Find
Tip: This may be a partial find and not the whole line. [inline]In-Line Find
Tip: This is a partial match of a line for in-line operations. In-Line Delete
Tip: Remove the preceding in-line code(s) to find.[/inline]',[/code]
Now create a couple (a few) BBCodes

Go to ACP / Posting / Click: Add a new BBCode
BBCode usage:

Code: Select all

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

Code: Select all

<div class="inst-wrapper"><div class="inst-content">{TEXT}</div></div>
Click: Submit

Click: Add a new BBCode
BBCode usage:

Code: Select all

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

Code: Select all

<div class="inst-inline">{TEXT}</div>
Click: Submit

In these instructions I added an optional BBCode for a Open BBCode
Click: Add a new BBCode
BBCode usage:

Code: Select all

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

Code: Select all

<div class="inst-open">{TEXT}</div>
Click: Submit

Then add some classes
Open prosilver/theme/colours.css
Find
Tip: This may be a partial find and not the whole line.

Code: Select all

li.notification-reported strong, li.notification-disapproved strong {
	color: #D31141;
}
Add after
Tip: Add the following line(s) on a new blank line after the preceding line(s) of find.

Code: Select all

.inst-open {
	background: #FFFFFF;
	padding: 4px 10px 10px;
	margin-bottom: -27px;
	width: 50%;
	border: solid 1px #999999;
	border-top-left-radius: 7px;
	border-top-right-radius: 7px;
	-webkit-border-top-left-radius: 7px;
	-webkit-border-top-right-radius: 7px;
	-moz-border-top-left-radius: 7px;
	-moz-border-top-right-radius: 7px;
	z-index: 10000;
}

.inst-wrapper {
	background: #FFFFFF;
	padding: 1px;
	border: solid 1px #999999;
	border-radius: 8px;
	-webkit-border-radius: 8px;
	-moz-border-radius: 8px;
	margin-bottom: 1px;
}

.inst-content {
	background: #D6E6F6;
	padding: 6px 10px;
	border: solid 1px #C6DAEE;
	border-radius: 7px;
	-webkit-border-radius: 7px;
	-moz-border-radius: 7px;
}

.inst-inline {
	background: #DDEEFF;
	padding: 6px 10px;
	border: solid 1px #6699CC;
}
You can see above that I added an extra .inst-open class for the optional [ open] [/ open] BBCode.

Refresh Templates and Theme

Credit to Sniper_E
Last edited by martin on 28 Dec 2014, 01:29, edited 2 times in total.
Image

User avatar

spaceace
Users
Users
Posts: 29
Joined: 18 Dec 2014, 00:23
    Windows 7 Chrome

Re: MODx commands

Post by spaceace »

This would hard code it into the style. i'm looking to add it to the extension in the first post here.
Last edited by spaceace on 28 Dec 2014, 01:29, edited 1 time in total.

User avatar

martin
Admin
Admin
Posts: 5106
Joined: 06 Apr 2014, 16:12
    Linux Chrome

Re: MODx commands

Post by martin »

Yup i should have posted that but it's not hard to work out the needed edits to be added to the ext :wink:

User avatar

spaceace
Users
Users
Posts: 29
Joined: 18 Dec 2014, 00:23
    Windows 7 Chrome

Re: MODx commands

Post by spaceace »

martin wrote:Yup i should have posted that but it's not hard to work out the needed edits to be added to the ext :wink:
not hard at all but if others see it, and add it to the style and also have the extension installed... could cause some funny stuff to happen :lol:

User avatar

martin
Admin
Admin
Posts: 5106
Joined: 06 Apr 2014, 16:12
    Linux Chrome

Re: MODx commands

Post by martin »

Edited my post with a large notice lol if you would be so kind as to remove the quote from your post it may not confuse some.

User avatar

spaceace
Users
Users
Posts: 29
Joined: 18 Dec 2014, 00:23
    Windows 7 Chrome

Re: MODx commands

Post by spaceace »

Now that it's added to the ext... i want it in the dropdown but without using the install and code bbcodes. just to have all the modx stuff in one dropdown. here's what i'm getting now when i click the open bbcode in the dropdown

Code: Select all

[install][open][color=#232F43][b][size=120]Open:[/size][/b][/color] [/open] [code]
[/install][/code]

User avatar

spaceace
Users
Users
Posts: 29
Joined: 18 Dec 2014, 00:23
    Windows 7 Chrome

Re: MODx commands

Post by spaceace »

A little research shows that i can't get this how i wanted due to the "onchange" in the template element. onchange can not be canceled :wink:

User avatar

martin
Admin
Admin
Posts: 5106
Joined: 06 Apr 2014, 16:12
    Linux Chrome

Re: MODx commands

Post by martin »

Fresh install of 3.1.4 this part of the code is broke

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]

the bbcode side is fine.

Post Reply Previous topicNext topic