samchief
Forum Replies Created
-
@wedevs hope we are still on this please. ??
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=0BzoS3oOkVoTtS05TN3hmOXk2NE0Thanks.
Forum: Plugins
In reply to: [CMB2] Validate values onbackend.Great idea on the admin notice.
Forum: Hacks
In reply to: User Custom Field Not SavingThanks @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 SavingThanks @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>
Forum: Fixing WordPress
In reply to: Change Browser Header TitleThanks.
@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 8 years, 1 month ago by samchief.
Forum: Plugins
In reply to: [CMB2] Calculated cmb FieldsMmmm, Sure the frontend does get that done easily.
Thanks.Forum: Plugins
In reply to: [Print-O-Matic] Post per pageThanks Baden.
Forum: Plugins
In reply to: [Print-O-Matic] Post per pageok, 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.
https://www.quibos.net/result-by-class/Forum: Plugins
In reply to: [Print-O-Matic] Post per pageCurrently setting up a sample page. please hold.
Forum: Plugins
In reply to: [Our Team Showcase] "Page Not Found" when clicking on Team Membergo to wordpress settings-> Permalinks, press Save Changes. That Should work.
Forum: Plugins
In reply to: [CMB2] Missing ValuesThanks. 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.Forum: Plugins
In reply to: [CMB2] Link to a field sectionBy #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.
Forum: Plugins
In reply to: [Participants Database] Save as newThanks all the same. Very useful plugin. Hopefully we can have that feature in future versions.