Mauricio Gofas
Forum Replies Created
-
Forum: Plugins
In reply to: [WHMCS Bridge] Client area not adding domain to cartThanks man!
I was looking for the solution before responding, my problem are other, when I update WHMCS to v7.0.2 i not removed old files, deprecated in v7.0.2: whoisfunction.php and other that I forgot now.Forum: Plugins
In reply to: [WHMCS Bridge] Client area not adding domain to cartHey @infoots, i have the same issue, and now i see that the search for domains in your whmcs has returned to work, how did you manage to solve this?
Gratitude!
Forum: Plugins
In reply to: [Child Theme Configurator] Not show admin link in ToolsYes, it is fine.
I really was afraid that my clients access the plugin admin page, I activated only when going to use.Thanks!
Forum: Plugins
In reply to: [Child Theme Configurator] Not show admin link in ToolsOps,
I found, is in /wp-admin/network/themes.php?page=chld_thm_cfg_menu
sorry ??Forum: Themes and Templates
In reply to: [Zerif Lite] Smooth scroll and current menu itemIt is cool, i wait anxiously for the update…
Thanks again!Resolved.
My problem was in mycred_pref_core table
I believe that once I saved my settings database recorded with wrong syntax information.Thanks
The error “Undefined index: decimals” is shown when sorting works or not.
Not sure if these errors are not the cause of order, but are the only clues i have.Hello!
in this case, i’m using version 1.4.7 without changes on a wordpress installation without amendments, only standards for testing.I deleted the entire database and set up again and the problem was solved, but after a few routines, adding and remove points, the problem returned.
Hello Gabriel!
It took some time but now beginning to understand, that answers my question!
I’m studying gform_after_update_entry, gform_after_submission and actions, their variables and how to assemble the plugin to work with mycred.
Thanks again!Hi,
I’m not sure I understood…You suggest insert something like that
mycred_amount
and
mycred_enty?
in hide field?
For custom point type would be “custompointtype_amount”?
mycred_amount works after gform_after_submission action, for admin manually adjust amount, is necessary change the line 49 in mycred-hook-gravityforms.php:
gform_after_submission to gform_after_update_entry?Thanks!
Sorry, the correct images
A – Create form:
https://www.starsclubbrasil.com.br/up/sites/163/Captura-de-Tela-2014-06-13-%C3%A0s-00.57.54.pngB- Adjust Balance:
https://www.starsclubbrasil.com.br/up/sites/163/Captura-de-Tela-2014-06-13-%C3%A0s-01.01.26.pngI want to adjust users balances based on the value (number) entered into a text field with a predetermined especific CSS class.
Eg.: Text field class points-type-A adjust balance of myCRED-points-type-A-type for entry creator;
Text field class points-type-B adjust balance of myCRED-points-type-B-type for entry creator;The css class is just to know which textfield adds points for especific custom point type, thus one need not specify the id of the text field.
(I was thinking now out a way to automatically generate css class with the key ID of the point type meta key, eg:. Mycred-points-type-A-type = mycred-points-type-A css class.)
ps.: I do not write very well in English, sorry if this is disturbing
Hey!
I remove `elseif ( defined( ‘IS_PROFILE_PAGE’ ) && IS_PROFILE_PAGE === false )This solves my problem beautifully,
i will study some more to make this integration a addon for Gravity with options to choose custom text fields when you create a form points… but, it take a bit time ??
Thanks again, Gabriel!
Cool, Gabriel! Thank you very much!!!!
Do not apologize, maybe I have not expressed myself well …I do not intend to take more of your time, just two more questions:
1 – I created a simple plugin with the code, but my Dreamweaver shows a syntax error at line 32 (” IS_PROFILE_PAGE = false;>?”), I delete this line and it worked perfectly! :D…
it will be missed?2 – How can I do to pick just one custom point type for each form? For this function would be best just a text field, era instead of a dropdown (forgive me if the code already has this)
The complete plugin:
<?php /* Plugin Name: Mycred Manualy Points Addon in Gravity Entries Plugin URI: https://myCRED.me Description: Adiciona Campos personalizados no editor de solicita??o de pontos. Version: 1.2 Author: Gabriel Merovingi (myCRED Creator) Author URI: https://myCRED.me */ // Mycred custom points in Gravity entries editor add_action( 'gform_entry_detail', 'adjust_mycred_balance_form', 10, 2 ); function adjust_mycred_balance_form( $form, $lead ) { // Requiremens if ( $form['id'] != 9 || ! class_exists( 'myCRED_Admin' ) || ! current_user_can( 'edit_users' ) ) return; // Load myCRED Admin Module $mycred_admin = new myCRED_Admin(); // Get the user object $user = get_userdata( absint( $lead['created_by'] ) ); if ( ! isset( $user->ID ) ) return; // If form is submitted, process it now if ( isset( $_POST['myCRED-manual-add-points'] ) ) $mycred_admin->adjust_points_manually( $user->ID ); // Hack for the adjust_users_balance() method if ( ! defined( 'IS_PROFILE_PAGE' ) ) define( 'IS_PROFILE_PAGE', true ); elseif ( defined( 'IS_PROFILE_PAGE' ) && IS_PROFILE_PAGE === false ) ?> <table class="widefat fixed entry-detail-view" cellspacing="0"> <thead> <tr> <th style="background:#ebf2ff;" colspan="2"><h3>Adjust points for entry creator</h3></th> </tr> </thead> <tbody> <?php $mycred_admin->adjust_users_balance( $user ); ?> </tbody> </table> <?php }
As a thank you, I’m sending the translation into Brazilian Portuguese of your plugin:
https://drive.google.com/folderview?id=0B6kRZI7KJFgxTzlFaVkxTWxwazA&usp=sharing
I will soon translate the addons and also send you.
Oh, this is really cool! But unfortunately it is not what I need…. ??
I need to add custom points manually in the message editor,
my idea was to display the text field (no dropdown) “User Adjust Balance” located in /wp-admin/user-edit.php, in the visualization of the received message, located in
/wp-admin/admin.php?page=gf_entries&view=entry&id=X&lid=XXXXThis image illustrates what I need:
https://www.starsclubbrasil.com.br/up/sites/163/Captura-de-Tela-2014-06-11-%C3%A0s-13.15.40.pngTanks for rapid reply!