Module: Hide Cancel In Editor
Posted by Maurice Makaay
All files from this thread
| File Name | File Size | Posted by | Date | ||
|---|---|---|---|---|---|
| hide_cancel_in_editor-1.0.0.tar.gz | 760 bytes | open | download | Maurice Makaay | 03/25/2009 | Read message |
| hide_cancel_in_editor-1.0.0.zip | 1.4 KB | open | download | Maurice Makaay | 03/25/2009 | Read message |
|
August 20, 2007 02:10PM |
Admin Registered: 8 years ago Posts: 8,785 |
This mod hides the cancel button in all posting editor screens.
Maurice Makaay
Phorum Development Team
my blog
linkedin profile
secret sauce
Changelog:
----------
2005-11-18 v1.0.0
- Initial revision
Maurice Makaay
Phorum Development Team
my blog
linkedin profile
secret sauce
|
Re: Module: Hide Cancel In Editor July 23, 2008 05:00PM |
Registered: 7 years ago Posts: 43 |
|
July 23, 2008 07:02PM |
Admin Registered: 8 years ago Posts: 8,785 |
This is actually a template bug. Some code got lost during Emerald's construction. Edit posting.tpl for your template and search for this code, around line 232:
Then add the green code around it:
I put this fix in the Phorum code too, so the next Phorum release will have the correct templates too.
Edit: I updated the code at phorum.org too. You'll now see that the cancel button is only visible when needed and not all the time anymore.
Maurice Makaay
Phorum Development Team
my blog
linkedin profile
secret sauce
Edited 1 time(s). Last edit at 07/23/2008 07:10PM by Maurice Makaay.
<input type="submit" name="cancel" onclick="return confirm('{LANG->CancelConfirm}')"
value=" {LANG->Cancel} " />
Then add the green code around it:
{IF SHOW_CANCEL_BUTTON}
<input type="submit" name="cancel" onclick="return confirm('{LANG->CancelConfirm}')"
value=" {LANG->Cancel} " />
{/IF}
I put this fix in the Phorum code too, so the next Phorum release will have the correct templates too.
Edit: I updated the code at phorum.org too. You'll now see that the cancel button is only visible when needed and not all the time anymore.
Maurice Makaay
Phorum Development Team
my blog
linkedin profile
secret sauceEdited 1 time(s). Last edit at 07/23/2008 07:10PM by Maurice Makaay.
|
Re: Module: Hide Cancel In Editor July 24, 2008 12:06PM |
Registered: 7 years ago Posts: 43 |
|
July 24, 2008 01:33PM |
Admin Registered: 8 years ago Posts: 8,785 |
Yeah, all the fancy logic was in the code already.
It's stupid that I didn't notice myself before, so thanks for the heads up.
Maurice Makaay
Phorum Development Team
my blog
linkedin profile
secret sauce
It's stupid that I didn't notice myself before, so thanks for the heads up.
Maurice Makaay
Phorum Development Team
my blog
linkedin profile
secret sauce
Sorry, only registered users may post in this forum.