1
0
Fork 0
mirror of https://github.com/sbrl/Pepperminty-Wiki.git synced 2024-11-22 04:23:01 +00:00

Add editing message to upload form

This commit is contained in:
Starbeamrainbowlabs 2016-04-07 18:29:38 +01:00
parent ef28bc4902
commit a59adf2436
4 changed files with 7 additions and 5 deletions

View file

@ -71,7 +71,7 @@ $settings->footer_message = "All content is under <a href='?page=License' target
// A message that will appear just before the submit button on the editing // A message that will appear just before the submit button on the editing
// page. May contain HTML. // page. May contain HTML.
$settings->editing_message = "<a href='?action=help#20-parser-default' target='_blank'>Formatting help</a> (<a href='https://github.com/adam-p/markdown-here/wiki/Markdown-Cheatsheet'>Markdown Cheatsheet</a>)<br /> $settings->editing_message = "<a href='?action=help#20-parser-default' target='_blank'>Formatting help</a> (<a href='https://github.com/adam-p/markdown-here/wiki/Markdown-Cheatsheet'>Markdown Cheatsheet</a>)<br />
By submitting your edit, you are agreeing to release your changes under <a href='?action=view&page=License' target='_blank'>this license</a>. Also note that if you don't want your work to be edited by other users of this site, please don't submit it here!"; By submitting your edit or uploading your file, you are agreeing to release your changes under <a href='?action=view&page=License' target='_blank'>this license</a>. Also note that if you don't want your work to be edited by other users of this site, please don't submit it here!";
// The string that is prepended before an admin's name on the nav bar. Defaults // The string that is prepended before an admin's name on the nav bar. Defaults
// to a diamond shape (&#9670;). // to a diamond shape (&#9670;).
@ -2460,7 +2460,7 @@ register_module([
<br /> <br />
<label for='description'>Description:</label> <label for='description'>Description:</label>
<textarea name='description'></textarea> <textarea name='description'></textarea>
<br /> <p class='editing_message'>$settings->editing_message</p>
<input type='submit' value='Upload' /> <input type='submit' value='Upload' />
</form>")); </form>"));
@ -2675,6 +2675,7 @@ register_module([
case "video": case "video":
case "audio": case "audio":
// TODO: Add support for ranges here.
// Get the file size // Get the file size
$filesize = filesize($filepath); $filesize = filesize($filepath);

View file

@ -68,7 +68,7 @@
"author": "Starbeamrainbowlabs", "author": "Starbeamrainbowlabs",
"description": "Adds the ability to upload files to Pepperminty Wiki. Uploaded files act as pages and have the special 'File:' prefix.", "description": "Adds the ability to upload files to Pepperminty Wiki. Uploaded files act as pages and have the special 'File:' prefix.",
"id": "feature-upload", "id": "feature-upload",
"lastupdate": 1460047934, "lastupdate": 1460050114,
"optional": false "optional": false
}, },
{ {

View file

@ -40,7 +40,7 @@ register_module([
<br /> <br />
<label for='description'>Description:</label> <label for='description'>Description:</label>
<textarea name='description'></textarea> <textarea name='description'></textarea>
<br /> <p class='editing_message'>$settings->editing_message</p>
<input type='submit' value='Upload' /> <input type='submit' value='Upload' />
</form>")); </form>"));
@ -255,6 +255,7 @@ register_module([
case "video": case "video":
case "audio": case "audio":
// TODO: Add support for ranges here.
// Get the file size // Get the file size
$filesize = filesize($filepath); $filesize = filesize($filepath);

View file

@ -68,7 +68,7 @@ $settings->footer_message = "All content is under <a href='?page=License' target
// A message that will appear just before the submit button on the editing // A message that will appear just before the submit button on the editing
// page. May contain HTML. // page. May contain HTML.
$settings->editing_message = "<a href='?action=help#20-parser-default' target='_blank'>Formatting help</a> (<a href='https://github.com/adam-p/markdown-here/wiki/Markdown-Cheatsheet'>Markdown Cheatsheet</a>)<br /> $settings->editing_message = "<a href='?action=help#20-parser-default' target='_blank'>Formatting help</a> (<a href='https://github.com/adam-p/markdown-here/wiki/Markdown-Cheatsheet'>Markdown Cheatsheet</a>)<br />
By submitting your edit, you are agreeing to release your changes under <a href='?action=view&page=License' target='_blank'>this license</a>. Also note that if you don't want your work to be edited by other users of this site, please don't submit it here!"; By submitting your edit or uploading your file, you are agreeing to release your changes under <a href='?action=view&page=License' target='_blank'>this license</a>. Also note that if you don't want your work to be edited by other users of this site, please don't submit it here!";
// The string that is prepended before an admin's name on the nav bar. Defaults // The string that is prepended before an admin's name on the nav bar. Defaults
// to a diamond shape (&#9670;). // to a diamond shape (&#9670;).