This forum is no longer open and is for reading/searching only.

Please use our new MachForm Community Forum instead.

MachForm Community Forums » MachForm 2

TIP: Change 'Emails' button to say 'Email Autoresponder'


  1. markritchie
    Member

    Hi everyone,

    Back again (it's been awhile) for v2 of Yuniar's awesome software. I thought I would share a simple modification I found useful. This is for Version 2.1b

    When you login to your forms administration area (or click on the Manage Forms tab in the upper left) you will see your first form and the various options across the top (i.e. Entries, Edit Form, Edit CSS, Emails, etc.) The problem I ran into is there are various people within the company that login to Machform and they started questioning what the "Emails" button was for. So I changed the "Emails" button to say "Email Autoresponder".

    This, however, messed up the layout so I changed the width of the HTML table cells to even everything out.

    I've created a screenshot of the result (before and after)

    BEFORE: http://img19.imageshack.us/img19/8999/example1q.gif

    AFTER: http://img14.imageshack.us/img14/3626/example2r.gif

    To accomplish this, open up manage_form.php (I used NotePad) and find this line: (On line 462)

    <table width="99%" border="0" cellspacing="0" cellpadding="0" style="margin-top:10px;">

    Next find this line: (On line 482)

    </table>

    Highlight everything on line 462 to 487 and replace with the following code:

    <table width="99%" border="0" cellspacing="0" cellpadding="0" style="margin-top: 10px;">
    			  <tr align="center" valign="middle">
    			    <td width="9%"><a href="<?php echo "manage_entries.php?id={$data['form_id']}"; ?>"><img src="images/icons/entries_32.gif" /></a></td>
    			    <td width="9%"><a href="<?php echo "edit_form.php?id={$data['form_id']}"; ?>"><img src="images/icons/edit_form_32.gif" /></a></td>
    			    <td width="9%"><a href="<?php echo "edit_css.php?id={$data['form_id']}"; ?>"><img src="images/icons/colorize_32.gif" /></a></td>
    			    <td width="15%"><a href="<?php echo "email_settings.php?id={$data['form_id']}"; ?>"><img src="images/icons/mail_forward_32.gif" /></a></td>
    			    <td width="12%"><a href="<?php echo "embed_code.php?id={$data['form_id']}"; ?>"><img src="images/icons/embed_code_32.gif" /></a></td>
    			    <td width="9%">&nbsp;</td>
    			    <td width="9%"><a href="view.php?id=<?php echo $data['form_id']; ?>" target="_blank"><img src="images/icons/view_form_32.gif" /></a></td>
    			    <td width="10%">&nbsp;</td>
    			    <td width="9%"><a href="<?php echo "manage_form.php?duplicate={$data['form_id']}"; ?>"><img src="images/icons/copy_32.gif" /></a></td>
    			    <td width="9%"><a href="manage_form.php?pageno=<?php echo $pageno; ?>&delete=<?php echo $data['form_id']; ?>" onclick="javascript: return confirm('Are you sure you want to delete this form and all associated data?');"><img src="images/icons/cross.gif" /></a></td>
        </tr>
    			  <tr align="center" >
    			    <td ><a href="<?php echo "manage_entries.php?id={$data['form_id']}"; ?>">Entries</a></td>
    			    <td><a href="<?php echo "edit_form.php?id={$data['form_id']}"; ?>">Edit Form</a></td>
    			    <td nowrap><a href="<?php echo "edit_css.php?id={$data['form_id']}"; ?>">Edit CSS</a></td>
    			    <td nowrap><a href="<?php echo "email_settings.php?id={$data['form_id']}"; ?>">Email Autoresponder</a></td>
    			    <td nowrap><a href="<?php echo "embed_code.php?id={$data['form_id']}"; ?>">Embed Code</a></td>
    			    <td>&nbsp;</td>
    			    <td><a href="view.php?id=<?php echo $data['form_id']; ?>" target="_blank">View Form</a></td>
    			    <td>&nbsp;</td>
    			    <td><a href="<?php echo "manage_form.php?duplicate={$data['form_id']}"; ?>">Duplicate</a></td>
    			    <td><a href="manage_form.php?pageno=<?php echo $pageno; ?>&delete=<?php echo $data['form_id']; ?>" onclick="javascript: return confirm('Are you sure you want to delete this form and all associated data?');">Delete</a></td>
    			  </tr>
    </table>

    P.S. To find Line Numbers in NotePad do the following:

    Click on Format in the upper left and UNCHECK Wordwrap
    Click on View then click on Status Bar.

    Now wherever you click NotePad will tell you the line number in the bottom status bar.

    Enjoy,

    Mark

    Posted 15 years ago #
  2. AMurray
    Pro Member

    You could also use Notepad++ which has the line numbers in it as a feature of that text editor.

    Posted 15 years ago #
  3. markritchie
    Member

    I agree but a lot of people may not know about Notepad++ :)

    Posted 15 years ago #
  4. AMurray
    Pro Member

    Well if they read this post they should!

    Posted 15 years ago #

RSS feed for this topic

Reply