Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter rontyahmed2013

    (@rontyahmed2013)

    Hi @soapclient
    Developer did not reply my request
    At the end i end up using my own code (soapclient).
    If you need a code example contact me.

    Thanks for you wander full plugin .
    After Update to WP 4.3 I have few issue and manage to fixed Most of them

    1=======
    parent::WP_Widget(‘advman’, __(‘Advertisement’, ‘advman’), $widget_ops);
    to
    parent::__construct(‘advman’, __(‘Advertisement’, ‘advman’), $widget_ops);
    # WP_Widget to __construct

    2=====
    add_object_page(__(‘Ads’, ‘advman’), __(‘Ads’, ‘advman’), 8, ‘advman-list’, array(‘Advman_List’,’process’), ADVMAN_URL . ‘/images/advman-menu-icon.svg’);
    $list_hook = add_submenu_page(‘advman-list’, __(‘All Ads’, ‘advman’), __(‘All Ads’, ‘advman’), 8, ‘advman-list’, array(‘Advman_List’,’process’));
    $analytics_hook = add_submenu_page(‘advman-list’, __(‘Analytics’, ‘advman’), __(‘Analytics’, ‘advman’), 8, ‘advman-analytics’, array(‘Advman_Analytics’,’process’));
    add_submenu_page(‘advman-list’, __(‘Create New Ad’, ‘advman’), __(‘Create New’, ‘advman’), 8, ‘advman-ad-new’, array(‘Advman_Admin’,’create’));
    add_submenu_page(null, __(‘Edit Ad’, ‘advman’), __(‘Edit’, ‘advman’), 8, ‘advman-ad’, array(‘Advman_Admin’,’edit_ad’));
    add_submenu_page(null, __(‘Preview Ad’, ‘advman’), __(‘Preview’, ‘advman’), 8, ‘advman-ad-preview’, array(‘Advman_Admin’,’preview_ad’));
    add_submenu_page(null, __(‘Edit Network’, ‘advman’), __(‘Edit’, ‘advman’), 8, ‘advman-network’, array(‘Advman_Admin’,’edit_network’));
    add_options_page(__(‘Ads’, ‘advman’), __(‘Ads’, ‘advman’), 8, ‘advman-settings’, array(‘Advman_Admin’,’settings’));

    to
    add_object_page(__(‘Ads’, ‘advman’), __(‘Ads’, ‘advman’), ‘activate_plugins’, ‘advman-list’, array(‘Advman_List’,’process’), ADVMAN_URL . ‘/images/advman-menu-icon.svg’);
    $list_hook = add_submenu_page(‘advman-list’, __(‘All Ads’, ‘advman’), __(‘All Ads’, ‘advman’), ‘activate_plugins’, ‘advman-list’, array(‘Advman_List’,’process’));
    $analytics_hook = add_submenu_page(‘advman-list’, __(‘Analytics’, ‘advman’), __(‘Analytics’, ‘advman’), ‘activate_plugins’, ‘advman-analytics’, array(‘Advman_Analytics’,’process’));
    add_submenu_page(‘advman-list’, __(‘Create New Ad’, ‘advman’), __(‘Create New’, ‘advman’), ‘activate_plugins’, ‘advman-ad-new’, array(‘Advman_Admin’,’create’));
    add_submenu_page(null, __(‘Edit Ad’, ‘advman’), __(‘Edit’, ‘advman’), ‘activate_plugins’, ‘advman-ad’, array(‘Advman_Admin’,’edit_ad’));
    add_submenu_page(null, __(‘Preview Ad’, ‘advman’), __(‘Preview’, ‘advman’), ‘activate_plugins’, ‘advman-ad-preview’, array(‘Advman_Admin’,’preview_ad’));
    add_submenu_page(null, __(‘Edit Network’, ‘advman’), __(‘Edit’, ‘advman’), ‘activate_plugins’, ‘advman-network’, array(‘Advman_Admin’,’edit_network’));
    add_options_page(__(‘Ads’, ‘advman’), __(‘Ads’, ‘advman’), ‘activate_plugins’, ‘advman-settings’, array(‘Advman_Admin’,’settings’));
    # replace 8 to ‘activate_plugins’
    but still i am getting Failed to load: http://fih.dev/wp-content/plugins/advertising-manager/scripts/advman-editor.js”
    I have check all the path are correct . can you please help how to fixed the issue

    Thread Starter rontyahmed2013

    (@rontyahmed2013)

    2. To hide a Field from Edit Section . the Solution i did is
    a. Add a new Field on Directory Tab Call (Hide this from Edit)
    b. and on Gravity-forms-addons.php i checked that field is true .

    edit-from.php
    
    line 283
      <li class="hide_in_edit_entry_view gf_directory_setting field_setting">
    			            <label for="hide_in_edit_view">
    			                <?php _e("Hide This Field in Edit View?", "gravity-forms-addons"); ?>
    			                <?php gform_tooltip("kws_gf_directory_hide_in_edit_entry_view") ?>
    			            </label>
    			        	<label><input type="checkbox" id="hide_in_edit_entry_view" /> <?php _e("Hide this field in the edit view.", "gravity-forms-addons"); ?></label>
    			        </li>
    
        line :365
     var hideInEdit = false;
    					if($("#hide_in_edit_entry_view", $li).is(':checked')) {
    	hideInEdit = true;
    }
     Line 379
     SetFieldProperty('hideInEdit', hideInEdit);
    line 427
    line 442
    		$tooltips['kws_gf_directory_hide_in_edit_entry_view'] = __(sprintf('%sHide in Edit View%sIf checked, this field will not be shown in the edit view of the directory.', '<h6>', '</h6>'), 'gravity-forms-addons');
    
    $("#hide_in_edit_entry_view").attr("checked", (field["hideInEdit"] === true || field["hideInEdit"] === "on"));
    
     Gravity-forms-addons.php
     edit_lead_detail ( ) Funciton li line 462
                foreach($Form['fields'] as $key => $field) {
    
                	if(isset($field['hideInEdit']) && !empty($field['hideInEdit']))
                	{
                		unset($Form['fields'][$key]);
                	}
                }

    Same problem here.

Viewing 4 replies - 1 through 4 (of 4 total)