Forum Replies Created

Viewing 15 replies - 61 through 75 (of 158 total)
  • +1 for this request. Please, update changelog.

    Thread Starter Mad Max

    (@mad_max)

    Thanks a lot for the fast reply. I’ve open the same question on RS support forum.
    For the problem I wrote about in the second paragraph (the one all bolded), I saw that you already answered here, so thanks again!

    Same here. My excluded category continues to be indexed by relevanssi.
    I’m on WP 3.5 with Relevanssi 3.1.1

    Exact the same here, js console says:

    Errore: TypeError: attachment.attributes.sizes is undefined

    Furthermore if I click inthe title or description field nothing happens. The only way to insert text is clicking on the label above each input field (seems a js glitch).

    Thread Starter Mad Max

    (@mad_max)

    Not a big problem Johnatan, as I was working on a local test machine.
    Thanks for the super fast update!

    From RS Quick guide

    So you cannot hide a post just by assigning it to an additional “hidden” category. If individual posts don’t restrict the Readers role, they will be readable if any of their categories are readable to the user. If your categorization and post restriction goals demand the “readable cat + hidden cat = hidden post” formula, you’ll be frustrated with this plugin. But here are some suggestions for making the Role Scoper model work with your existing categories:

    As mentioned above, different role requirements and assignments can be made for “private” and “non-private” posts in the same category.
    Depending on how your theme displays categories, you could move some “Category A” posts into a new subcategory ( Category A / Category A*), and remove them from “Category A”. Then set Category Restrictions and Category Role assignments for Category A*.

    Hi Vijay, have you found some solution to this problem? It’s still present on WP 3.4.2…

    @arudd on AG Custom Admin incomapitbility:

    I’ve found the problem with AGCA that affects TML profile/register/login page; AGCA reloads jquery library without any check. It doesn’t care if jquery is already loaded by WP or the active theme or some other plugin.

    To correct the issue, just find function print_login_head (somewhere near line 1176 of plugin.php) and replace this line of code:

    $this->reloadScript();

    with these:

    if( !wp_script_is('jquery')) {
    	$this->reloadScript();
    }

    I’m going to post this on the support forum of AGCA also.

    I’ve found and fixed those problems too, adding italian translation. Furthermore there was a deprecated function call in the plugin: update_usermeta (deprcated in favour of update_user_meta).

    I’m going to contac the plugin author to see if he could add those fixes in a new release. It works great with WP 3.4.1

    It’s really a matter of 5 minutes. Just add those 2 filters in your theme functions.php:

    Filtering the email address
    Add a filter for the email address using ‘add_filter’:

    add_filter( 'wp_mail_from', 'my_mail_from' );
    function my_mail_from( $email )
    {
        return 'myemail@mydomain.com';
    }

    Filtering the email name
    Now add a filter for the name of the email address:

    add_filter( 'wp_mail_from_name', 'my_mail_from_name' );
    function my_mail_from_name( $name )
    {
        return 'My Name';
    }

    Source: http://butlerblog.com/2011/07/08/changing-the-wp_mail-from-address-in-wordpress-without-a-plugin/

    Oppss, as for the profile page, also register page and lost passowrd page are not working this way: when I submit the form nothing happen or I get a 404 error in the worst case. All those form have to post data to login page with the right action to work properly.

    So Jeff, instead of setting only one page for tml and then add rewrite rules for profile, register, lostpassword(…) pages pointing to the same page, don’t you think it could be useful to permit to the user to set a page for every function of tml?

    +1 for this question!
    I’d like to have different wordpress pages for

    • login
    • register
    • lost password
    • profile

    I’ve managed to get it for the first 3: I’ve created 3 WP pages and setted their slugs as permalink for login, register and lost password pages in tml->General->Permalink settings.
    Then I’ve writed some text in every page followed by the relative shortcode:

    FOR LOGIN PAGE
    [theme-my-login default_action=login login_template=tml-login-form.php]

    FOR REGISTER PAGE
    [theme-my-login show_title=0 default_action=register register_template=tml-register-form.php]

    FOR LOST PASSWORD PAGE
    [theme-my-login show_title=0 default_action=lostpassword lostpassword_template=tml-lostpassword-form.php]

    But now I’m not able to replicate this strategy for the profile page.
    I’ve created a WP page for the themed profile and I’ve putted this shortcode in it’s content:

    [theme-my-login default_action=profile profile_template=tml-profile-form.php]

    As result I was getting this php error:

    Call to undefined function get_user_to_edit() in themed-profile.php on line 192.

    So I’ve added this code on line 191 in the function get_profile_form:

    if(!(function_exists('get_user_to_edit'))){
    	require_once(ABSPATH.'/wp-admin/includes/user.php');
    }

    And now I can see all my profile data but… all modification to the profile are not saved unless I change the form action to slugforloginpage?action=profile.
    In this case chenges are saved but this redirect me the login page showing my profile data.

    Hope someone can help with this!

    Thread Starter Mad Max

    (@mad_max)

    I’ve tested it a little bit and I think it really usefull. Here is an example on how you could use this feature:

    //CF7 Forms - data convergence
    //data from 'key' will be saved with 'value' form name
    //TO DO: add this in the theme options panel or somewhere
    //else in the backend
    $my_form_data_aliases = array (
    	'Reservations (IT)' => 'Reservations',
    	'Reservations (EN)' => 'Reservations',
    	'Reservations (DE)' => 'Reservations',
    	'Reservations (FR)' => 'Reservations',
    	'Reservations (ES)' => 'Reservations',
    );
    
    /**
     * Save data posted from multiple forms
     * under the same form name in the db
     * using a filter of cfdb plugin
     */
    
    //Save several forms data to same "virtual table" (i.e wit the same table name in the db)
    function form_data_convergence($cf7) {
      global $my_form_data_aliases;
    	if (key_exists($cf7->title, $my_form_data_aliases)){
    		//Optional: save the filled post name
    		$cf7->posted_data['source_form']=$cf7->title;
      	  	$cf7->title=$my_form_data_aliases[$cf7->title];
        	}
      return $cf7; // be sure to return it
    }
    if ( isset($my_form_data_aliases) && is_array($my_form_data_aliases) && count($my_form_data_aliases) ) add_filter('cfdb_form_data', 'form_data_convergence');

    Is the page with form public? Can you pot the url?

    The code seems ok.
    Please verify the name of the form and the name of the field.
    For example, if the code generated by cf7 for the field is
    [email* coupon_email 42/ id:email class:inputfield class:email]
    the name you have to use is “coupon_email”

    And if the shortcode you are using to render the form in your post(s)/page(s) is
    [contact-form-7 id="396" title="Coupon Request"]
    the form name you have to use is “Coupon Request”, as in the title parameter.

Viewing 15 replies - 61 through 75 (of 158 total)