Firefox PHP

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
Module: Hide Cancel In Editor
August 20, 2007 09:10PM
This mod hides the cancel button in all posting editor screens.

Changelog:
----------

2005-11-18 v1.0.0

    - Initial revision


Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
Attachments:
open | download - hide_cancel_in_editor-1.0.0.tar.gz (760 bytes)
open | download - hide_cancel_in_editor-1.0.0.zip (1.4 KB)
Re: Module: Hide Cancel In Editor
July 24, 2008 12:00AM
The module doesn't work in my phorum (version 5.2.7), using a customized template based on Emerald.

Anything I can do?

Cheers,
Marian
Re: Module: Hide Cancel In Editor
July 24, 2008 02:02AM
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:

            <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 sauce



Edited 1 time(s). Last edit at 07/24/2008 02:10AM by Maurice Makaay.
Re: Module: Hide Cancel In Editor
July 24, 2008 07:06PM
Thank you Maurice, it works as intended. I tried your update at phorum.org by previewing a message and am quite impressed: it follows the usability state-of-the-art.

Cheers and thanks again,
Marian
Re: Module: Hide Cancel In Editor
July 24, 2008 08:33PM
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
Sorry, only registered users may post in this forum.

Click here to login