Forum Replies Created

Viewing 15 replies - 1 through 15 (of 24 total)
  • Thread Starter samchief

    (@samchief)

    @wedevs hope we are still on this please. 😉

    Thread Starter samchief

    (@samchief)

    1. It’s alright, but the system doesn’t generate reference numbers itself, only invoice numbers.

    2. I am only working with the accounting part, for now,
    have deactivated the CRM & HRM parts, Could that be the cause of not being able to
    import accounting customers.
    Here’s what i have: https://drive.google.com/open?id=0BzoS3oOkVoTtS05TN3hmOXk2NE0

    Thread Starter samchief

    (@samchief)

    Thanks.

    Thread Starter samchief

    (@samchief)

    Great idea on the admin notice.

    Forum: Hacks
    In reply to: User Custom Field Not Saving
    Thread Starter samchief

    (@samchief)

    Thanks @bcworkz Here is whole code I am currently using:

     add_action ( 'show_user_profile', 'my_show_extra_profile_fields' );
     add_action ( 'edit_user_profile', 'my_show_extra_profile_fields' );
     add_action ( 'user_new_form', 'my_show_extra_profile_fields' );
    
     function my_show_extra_profile_fields ( $user )
     {
     ?>
         <table class="form-table">
             <tr>
                 <th><label for="headerlabel"><strong>ADDITIONAL INFORMATION</strong></label></th>
                   </tr>
             <tr>
                 <th><label for="dateofbirth">Date Of Birth</label></th>
                 <td>
                     <input type="text" name="dateofbirth" id="dateofbirth" value="<?php echo esc_attr( get_the_author_meta( 'dateofbirth', $user->ID ) ); ?>" class="regular-text" /><br />
                     <span class="description"></span>
                 </td>
             </tr>
           	<tr>
    		 		<th><label for="usersex">Sex</label></th>
    		 		<td><select name="usersex" id="usersex" class="regular-text">
    		 			<option></option>
    		 			<option value="<?php echo esc_attr( get_the_author_meta( 'usersex1', $user->ID ) ); ?>">Male</option>
    		 			<option value="<?php echo esc_attr( get_the_author_meta( 'usersex2', $user->ID ) ); ?>">Female</option>
    		 			</select>
    		 		</td>
    		</tr>
             <tr>
                 <th><label for="bloodgroup">Blood Group</label></th>
                 <td>
                     <input type="text" name="bloodgroup" id="bloodgroup" value="<?php echo esc_attr( get_the_author_meta( 'bloodgroup', $user->ID ) ); ?>" class="regular-text" /><br />
                     <span class="description"></span>
                 </td>
             </tr>
             <tr>
                 <th><label for="genotype">Genotype</label></th>
                 <td>
                     <input type="text" name="genotype" id="genotype" value="<?php echo esc_attr( get_the_author_meta( 'genotype', $user->ID ) ); ?>" class="regular-text" /><br />
                     <span class="description"></span>
                 </td>
             </tr>
             <tr>
                 <th><label for="homeaddress">Home Address</label></th>
                 <td>
                     <input type="text" name="homeaddress" id="homeaddress" value="<?php echo esc_attr( get_the_author_meta( 'homeaddress', $user->ID ) ); ?>" class="regular-text" /><br />
                     <span class="description"></span>
                 </td>
             </tr>
             <tr>
                 <th><label for="stateoforigin">State Of Origin</label></th>
                 <td>
                     <input type="text" name="stateoforigin" id="stateoforigin" value="<?php echo esc_attr( get_the_author_meta( 'stateoforigin', $user->ID ) ); ?>" class="regular-text" /><br />
                     <span class="description"></span>
                 </td>
             </tr>
             <tr>
                 <th><label for="fatherphone">Father's Phone Number</label></th>
                 <td>
                     <input type="text" name="fatherphone" id="fatherphone" value="<?php echo esc_attr( get_the_author_meta( 'fatherphone', $user->ID ) ); ?>" class="regular-text" /><br />
                     <span class="description"></span>
                 </td>
             </tr>
             <tr>
                 <th><label for="motherphone">Mother's Phone Number</label></th>
                 <td>
                     <input type="text" name="motherphone" id="motherphone" value="<?php echo esc_attr( get_the_author_meta( 'motherphone', $user->ID ) ); ?>" class="regular-text" /><br />
                     <span class="description"></span>
                 </td>
             </tr>
             <tr>
                 <th><label for="previousschools">Previous Schools Attended</label></th>
                 <td>
                     <input type="text" name="previousschools" id="previousschools" value="<?php echo esc_attr( get_the_author_meta( 'previousschools', $user->ID ) ); ?>" class="regular-text" /><br />
                     <span class="description"></span>
                 </td>
             </tr>
             <!--tr>
                 <th><label for="additionalnotes">Additional Notes</label></th>
                 <td>
                     <textarea type="text" name="additionalnotes" id="additionalnotes" value="<?php echo esc_attr( get_the_author_meta( 'additionalnotes', $user->ID ) ); ?>" class="regular-text" /></textarea>
                     <span class="description"></span>
                 </td>
             </tr-->
         </table>
     <?php
     }
    
     add_action ( 'personal_options_update', 'my_save_extra_profile_fields' );
     add_action ( 'edit_user_profile_update', 'my_save_extra_profile_fields' );
      add_action ( 'user_new_form', 'my_save_extra_profile_fields' );
    
    //save them
     function my_save_extra_profile_fields( $user_id )
     {
         if ( !current_user_can( 'edit_user', $user_id ) )
             return false;
        update_usermeta( $user_id, 'dateofbirth', $_POST['dateofbirth'] );
        update_usermeta( $user_id, 'usersex1', $_POST['usersex1'] );
        update_usermeta( $user_id, 'usersex2', $_POST['usersex2'] );
        update_usermeta( $user_id, 'homeaddress', $_POST['homeaddress'] );
        update_usermeta( $user_id, 'stateoforigin', $_POST['stateoforigin'] );
        update_usermeta( $user_id, 'fatherphone', $_POST['fatherphone'] );
        update_usermeta( $user_id, 'motherphone', $_POST['motherphone'] );
        update_usermeta( $user_id, 'bloodgroup', $_POST['bloodgroup'] );
        update_usermeta( $user_id, 'genotype', $_POST['genotype'] );
        update_usermeta( $user_id, 'previousschools', $_POST['previousschools'] );
        update_usermeta( $user_id, 'additionalnotes', $_POST['additionalnotes'] );
    
    }
    add_action('user_register', 'my_save_extra_profile_fields');
    
    the_author_meta( $meta_key, $user_id ); 
    Forum: Hacks
    In reply to: User Custom Field Not Saving
    Thread Starter samchief

    (@samchief)

    Thanks @bcworkz however changing the values of the options, the situation remains the same- not saving.
    New code:

            	<tr>
    		 		<th><label for="usersex">Sex</label></th>
    		 		<td><select name="usersex" id="usersex" class="regular-text">
    		 			<option></option>
    		 			<option value="<?php echo esc_attr( get_the_author_meta( 'usersex1', $user->ID ) ); ?>">Male</option>
    		 			<option value="<?php echo esc_attr( get_the_author_meta( 'usersex2', $user->ID ) ); ?>">Female</option>
    		 			</select>
    		 		</td>
    		</tr>
    Thread Starter samchief

    (@samchief)

    Thanks.
    @schatzab, the site identity is alright.
    @themesumo this comes up only on the ‘cheating uh’ error pages.
    that is, this is the browser header title on the ‘cheating uh’ pages

    • This reply was modified 7 years, 6 months ago by samchief.
    Thread Starter samchief

    (@samchief)

    Mmmm, Sure the frontend does get that done easily.
    Thanks.

    Thread Starter samchief

    (@samchief)

    Thanks Baden.

    Thread Starter samchief

    (@samchief)

    ok, thanks for your patience.
    Here: select “third term”, click “view results” button and click the Print icon at the top or bottom. The scenario is best oberved in google chrome.
    http://www.quibos.net/result-by-class/

    Thread Starter samchief

    (@samchief)

    Currently setting up a sample page. please hold.

    go to wordpress settings-> Permalinks, press Save Changes. That Should work.

    Forum: Plugins
    In reply to: [CMB2] Missing Values
    Thread Starter samchief

    (@samchief)

    Thanks. Your initial hunch was quite right. The user missed that value.
    However I’ll still get back to you, seems to be having some little issues with using conditional statements to improve the plugin(do more of the calculations rather than the teachers calculating and inputing especially the grade and its respective description).
    Thanks.

    Thread Starter samchief

    (@samchief)

    By #something, I don’t get your thoughts. to link to a field with id ‘_prefix_snr_title’ what goes into #something . Thanks Beckwith. Please note the fields are being filled backend as a custom post.

    Thread Starter samchief

    (@samchief)

    Thanks all the same. Very useful plugin. Hopefully we can have that feature in future versions.

Viewing 15 replies - 1 through 15 (of 24 total)