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

3.1 & 3.2 Extensions Database 3.1 / 3.2Posting reset button

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

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

Posting reset button

Post by dmzx »

Extension Name: Posting reset button
Author: dmzx

Extension Description:

Displays reset and cancel button in posting buttons.

Reset => Clears the text field.
Cancel => Will return to Topic.

dmzx/Posting-reset-button


Update code, validation version.


Update code for 3.1.6-RC1


Added memberlist_view_contact_before for contact / statistics in viewprofile


Added Cancel button

Screenshots:
Image

Image

Extension Download:
Download-link
Posting reset button v1.0.4
Installation:
  1. Download the latest release.
  2. Unzip the downloaded release, and change the name of the folder to `postingresetbutton`.
  3. In the `ext` directory of your phpBB board, create a new directory named `dmzx` (if it does not already exist).
  4. Copy the `postingresetbutton` folder to `/ext/dmzx/` if done correctly, you'll have the main extension class at
    (your forum root)/ext/dmzx/postingresetbutton/composer.json
  5. Navigate in the ACP to `Customise -> Manage extensions`
  6. Look for `Posting reset button` under the Disabled Extensions list, and click its `Enable` link.

User avatar

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

Re: Posting reset button

Post by martin »

Works a treat installed ok :thumbup:
Image

User avatar

Sniper_E
VIP
VIP
Posts: 1157
Joined: 14 Oct 2014, 19:01
    Linux Chrome

Re: Posting reset button

Post by Sniper_E »

:thumbup: love it
Image
No is NEVER an Option and NEVER is the only Option when it comes to Giving Up!™

User avatar

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

Re: Posting reset button

Post by Jaantje »

dmzx thanx, works perfect :tumbsyes:
Grreeetttttzzzzz, Jaantje

User avatar

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

Re: Posting reset button

Post by dmzx »

New Version see Update Version 1.0.1 · dmzx/Posting-reset-button@b87af6a · GitHub for changes.

User avatar

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

Re: Posting reset button

Post by Jaantje »

Update to version 1.0.1.
Thanx dmzx works perfectimo :tumbsyes:

User avatar

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

Re: Posting reset button

Post by dmzx »

In case you installed Quickedit change the following to get the buttons back to work.
Open: ext\marc\quickedit\styles\prosilver\template\quickedit_body.html
Find This may be a partial find and not the whole line

Code: Select all

<div class="panel bg2">
Replace with Replace the preceding lines with the following

Code: Select all

<div class="panel">
Purge the cache :wink:

Grtz dmzx

User avatar

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

Re: Posting reset button

Post by dmzx »

Update version see Update Version 1.0.2 · dmzx/Posting-reset-button@494bcd1 · GitHub for changes.

User avatar

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

Re: Posting reset button

Post by dmzx »

First post updated

User avatar

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

Re: Posting reset button

Post by martin »

This ext breaks the pls wait edits of stokers if my version is the latest il post the fix for it.

YouTube Video

/ext/dmzx/postingresetbutton/styles/prosilver/template/event/posting_editor_message_after.html

replace the code in the file with this
Replace Replace the preceding lines with the following

Code: Select all

<!-- IF not S_SHOW_DRAFTS and not $SIG_EDIT eq 1 -->
	<div class="panel">
		<div class="inner">
		<fieldset class="submit-buttons">
			{S_HIDDEN_ADDRESS_FIELD}
			{S_HIDDEN_FIELDS}
                     
			<input type="submit" name="cancel" value="{L_CANCEL}" class="button2"  onclick="JavaScript:document.getElementById('buttons').style.display='none';document.getElementById('processingsub').style.display='block';" class="button1 default-submit-action" />&nbsp;

			<input type="reset" name="reset" value="{L_RESET}" class="button2" />&nbsp;

			<!-- IF S_HAS_DRAFTS --><input type="submit" accesskey="d" tabindex="8" name="load" value="{L_LOAD_DRAFT}" class="button2" onclick="JavaScript:document.getElementById('buttons').style.display='none';document.getElementById('processingload').style.display='block';load_draft = true;" />&nbsp; <!-- ENDIF -->
         <!-- IF S_SAVE_ALLOWED --><input type="submit" accesskey="k" tabindex="7" name="save" value="{L_SAVE_DRAFT}" onclick="JavaScript:document.getElementById('buttons').style.display='none';document.getElementById('processingsave').style.display='block';" class="button2" />&nbsp; <!-- ENDIF -->
         <input type="submit" tabindex="5" name="preview" value="{L_PREVIEW}" onclick="JavaScript:document.getElementById('buttons').style.display='none';document.getElementById('processingprev').style.display='block';<!-- IF not S_PRIVMSGS --> document.getElementById('postform').action += '#preview';<!-- ENDIF -->" class="button1" />&nbsp;
         <input type="submit" accesskey="s" tabindex="6" name="post" value="{L_SUBMIT}" onclick="JavaScript:document.getElementById('buttons').style.display='none';document.getElementById('processingsub').style.display='block';" class="button1 default-submit-action" />&nbsp;
      </fieldset>
      <fieldset id="processingload" class="submit-buttons" style="display:none;">
         <img src="{ROOT_PATH}images/loader.gif" width="16" height="16" alt="" style="margin-bottom:-5px; padding-right:10px;" /><input class="button1" type="button" value="<!-- IF S_IN_UCP -->{L_PM_LOAD_SENDING}<!-- ELSE -->{L_LOAD_SENDING}<!-- ENDIF -->" disabled="disabled" />&nbsp;
      </fieldset>
      <fieldset id="processingsave" class="submit-buttons" style="display:none;">
         <img src="{ROOT_PATH}images/loader.gif" width="16" height="16" alt="" style="margin-bottom:-5px; padding-right:10px;" /><input class="button1" type="button" value="<!-- IF S_IN_UCP -->{L_PM_DRAFT_SENDING}<!-- ELSE -->{L_DRAFT_SENDING}<!-- ENDIF -->" disabled="disabled" />&nbsp;
      </fieldset>
      <fieldset id="processingprev" class="submit-buttons" style="display:none;">
         <img src="{ROOT_PATH}images/loader.gif" width="16" height="16" alt="" style="margin-bottom:-5px; padding-right:10px;" /><input class="button1" type="button" value="<!-- IF S_IN_UCP -->{L_PM_PREVIEW_SENDING}<!-- ELSE -->{L_PREVIEW_SENDING}<!-- ENDIF -->" disabled="disabled" />&nbsp;
      </fieldset>
      <fieldset id="processingsub" class="submit-buttons" style="display:none;">
         <img src="{ROOT_PATH}images/loader.gif" width="16" height="16" alt="" style="margin-bottom:-5px; padding-right:10px;" /><input class="button1" type="button" value="<!-- IF S_IN_UCP -->{L_PM_POST_SENDING}<!-- ELSE -->{L_POST_SENDING}<!-- ENDIF -->" disabled="disabled" />&nbsp;
      </fieldset>

		</div>
	</div>
<!-- ENDIF -->

User avatar

Solidjeuh
Donator
Donator
Posts: 348
Joined: 13 Dec 2014, 02:40
    Windows 10 Firefox

Re: Posting reset button

Post by Solidjeuh »

I also have a little problem with this extension.
I'm missing buttons in the arcade extension:
Missing button - JV-Arcade
Forum voor NL Extensie vertalingen ---> https://www.supportforum.be
----------------------------------------------------------------------------

User avatar

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

Re: Posting reset button

Post by martin »

Supply a test account as its login only.

User avatar

Solidjeuh
Donator
Donator
Posts: 348
Joined: 13 Dec 2014, 02:40
    Windows 10 Firefox

Re: Posting reset button

Post by Solidjeuh »

martin wrote:supply a test account as its login only.
Login: Testaccount
Password: Testaccount

When you start a game, go back to arcade page and start te game again.
It tells you that you need to restart the game, but the button to restart is missing.
When I disable this extension, the button is there..

~ Arcadeplaats ~ - Arcade index

User avatar

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

Re: Posting reset button

Post by martin »

Ok this is with out me visiting your site open the file that contains the buttons for the arcade copy the button code to

/ext/dmzx/postingresetbutton/styles/prosilver/template/event/posting_editor_message_after.html

you my need IF statment some thing like <!-- IF SCRIPT_NAME == "arcade" -->BUTTON CODE FOR ARCADE HERE<!-- ENDIF -->

User avatar

Solidjeuh
Donator
Donator
Posts: 348
Joined: 13 Dec 2014, 02:40
    Windows 10 Firefox

Re: Posting reset button

Post by Solidjeuh »

Ok gonna try that tonight. If i find the code :rolling:

Post Reply Previous topicNext topic