matteoraggi

Topic: modules for payment

there is somene who could develope modules for payment for jobberbase?

cristigcb

Re: modules for payment

What kind of payment gateway do you want to use? paypal? we can help if you need paypal, we've implemented paypal for jobberbase many times before, just drop us an email.

matteoraggi

Re: modules for payment

No, I?m sorry, for now I just need to know how to add checkbox obligatory to check into post page: http://www.lavorohotel.net/post/

matteoraggi

Re: modules for payment

here link with some documentation about it: http://www.jobberbase.com/forum/topic54 … atory.html

links

Re: modules for payment

Here are the changes you have to do in order to make those checkboxes mandatory:

in _templates/page_write.tpl on line 164 add this (you have the code already, but I don't know if it's quite the same):

<fieldset>
                    <legend>Privacy</legend>
                    <table border="0" cellspacing="2" cellpadding="2">
                    <tr>
                        <td class="publish-label">privacy:</td>
                        <td>
                            <input {if $errors.poster_check}class="error"{/if} type="checkbox" name="poster_check" id="poster_check" {if $smarty.post.poster_check neq '' || $job.id || $smarty.session.later_edit}checked{/if} value="1" />
                            <span class="validation-error">{if $errors.poster_check}<img src="{$BASE_URL}img/icon-delete.png" alt="" />{/if}
                        </td>
                        <td>inserisci il link qui</td>
                    </tr>

                    <tr>
                    <td class="publish-label">privacy_1:</td>
                    <td>
                        <input {if $errors.poster_check1}class="error"{/if} type="checkbox" name="poster_check1" id="poster_check1" {if $smarty.post.poster_check1 || $job.id || $smarty.session.later_edit}checked{/if} value="2" />
                        <span class="validation-error">{if $errors.poster_check1}<img src="{$BASE_URL}img/icon-delete.png" alt="" />{/if}
                    </td>
                    <td>inserisci il link qui_1</td>
                    </tr>
                    </table>
                </fieldset>

In the same file, below this, you must have:

if (BrowserDetect.browser != "Explorer")
                {
                    $("#publish_form").validate({
                        rules: {
                            company: { required: true },
                            title: { required: true },
                            description: { required: true },
                            poster_email: { required: true },
                            poster_check: { required: true },
                            poster_check1: { required: true }
                           
                        },
                        messages: {
                            company: ' <img src="{/literal}{$BASE_URL}{literal}img/icon-delete.png" alt="" />',
                            title: ' <img src="{/literal}{$BASE_URL}{literal}img/icon-delete.png" alt="" />',
                            location: ' <img src="{/literal}{$BASE_URL}{literal}img/icon-delete.png" alt="" />',
                            description: ' <img src="{/literal}{$BASE_URL}{literal}img/icon-delete.png" alt="" />',
                            poster_email: ' <img src="{/literal}{$BASE_URL}{literal}img/icon-delete.png" alt="" />',
                            poster_check: ' <img src="{/literal}{$BASE_URL}{literal}img/icon-delete.png" alt="" />',
                            poster_check1: ' <img src="{/literal}{$BASE_URL}{literal}img/icon-delete.png" alt="" />'
                        }
                    });   
                }

After that you must open page_write.php and on lines 76 and then 145 add:

    if (!isset($poster_check))
        {
            $errors['poster_check'] = $translations['jobs']['poster_check'];
        }
        if (!isset($poster_check1))
        {
            $errors['poster_check1'] = $translations['jobs']['poster_check1'];
        }

In translations.ini, somewhere after line 31 add:
poster_check = "Error"
poster_check1 = "Error"

Good luck!

dayjobfinder

Re: modules for payment

What needs to happen to add this to the job application section . . . so, when someone is applying to te job?

Thanks!