• Resolved iamgraeme

    (@iamgraeme)


    Lipstick with the winners, Thursday 6:30pm

    It says Lipstick with the winners / Women

    I need to find out where I can remove the /women or change this to ‘womens group’

    Already updated the variable in variables.php

    Thanks ??

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Don’t update variables.php. If you do that then you have to re-edit it every time the plugin is updated.

    One way to do this is to define this function in your theme.

    function tsml_format_name($name, $types=array()) {
    	if (in_array('Men', $types) || in_array('M', $types)) {
    		//$name .= ' <small>Men</small>';
    	} elseif (in_array('Women', $types) || in_array('W', $types)) {
    		//$name .= ' <small>Women</small>';
    	}
    	return $name;
    }
    • This reply was modified 5 years, 12 months ago by meetingguide.
    • This reply was modified 5 years, 12 months ago by meetingguide.
    Thread Starter iamgraeme

    (@iamgraeme)

    Thanks for this solution, its weird…

    I get a Fatal error: Cannot redeclare tsml_format_name() (previously declared in /home/public_html/wp-content/plugins/12-step-meeting-list/includes/functions.php:433) in /home/public_html/wp-content/themes/aa-edinburgh/functions.php on line 303

    But this shouldn’t happen because your function is wrapped in if( !function_exists( 'tsml_format_name' )):

    so I should be able to redeclare it in my functions file?

    • This reply was modified 5 years, 12 months ago by iamgraeme.

    Sorry, that solution won’t work! It’s a timing issue.

    For now just go in and comment those lines in 12-step-meeting-list/includes/functions.php, the ones that I commented in my example above.

    I know I *just said* don’t make changes to the plugin ?? but it this case I’ll come up with a solution in the next update.

    Thread Starter iamgraeme

    (@iamgraeme)

    No problemo,

    I have just done that, thanks so much for the response it is much appreciated.

    Cheers,

    G

    Hey Graeme,

    Ok, I just released a new version with a way to update which meeting types are “flagged” in the meeting name.

    If you wanted to remove the /Men and /Women from your theme’s functions.php add this:

    if (function_exists('tsml_custom_flags')) {
    	tsml_custom_flags(array());
    }

    Alternatively, if you wanted to change the content of the flags to say “Women’s Group” / “Men’s Group” then do this instead:

    if (function_exists('tsml_custom_types')) {
        tsml_custom_types(array(
            'M' => 'Men\'s Group',
            'W' => 'Women\'s Group',
        ));
    }
    • This reply was modified 5 years, 11 months ago by meetingguide.
    Thread Starter iamgraeme

    (@iamgraeme)

    Many, Many Thanks for this ??

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Archive Meeting List’ is closed to new replies.