Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author gavinr

    (@gavinr)

    Hi Noumaan,

    That is possible – I could probably add that in if there is enough interest. Anyone else?

    Gavin

    I am interested too.

    absolutely… MC had a prior bit of code that let you embed a script to show just the number. They’ve recently killed this and so you have a large group of users looking for that feature now. Plain number returns would be great.

    For plain output of just text that drops into line with other text on the page, do this:

    Open “mailchimp-subscriber-Chiclet.php”
    Find:

    if($lists) {
    		foreach ($lists[data] as $value) {
    
    			if($value[id] == $listId) {
    				$returnString .= '<div class="mailchimp-subscriber-chiclet-for-wordpress mailchimp-subscriber-chiclet-for-wordpress-wrapper" title="' . $value[name] . '">';
    				if($link == 'true') {
    					$returnString .= '<a href="' . $value[subscribe_url_short] . '" class="mainLink" target="_blank" title="Subscribe to ' . $value[name] . '">';
    				}
    				$returnString .= '<div class="mainButton" style="background-image: url(\''.plugin_dir_url( __FILE__ ).'/images/mailchimp_'.$color.'.png\');">';
    				$num = (int)$value[stats][member_count];
    				$returnString .= number_format($num) . ' ' . $postFixText;
    				$returnString .= '</div>';
    				if($link != '') {
    					$returnString .= '</a>';
    				}
    				$returnString .= '</div>';
    			}
    		}
    	}

    Replace with:

    if($lists) {
    		foreach ($lists[data] as $value) {
    
    			if($value[id] == $listId) {
    				$returnString .= '<div class="" style="display: inline-block;" title="' . $value[name] . '">';
    				if($link == 'true') {
    					$returnString .= '<a href="' . $value[subscribe_url_short] . '" class="mainLink" target="_blank" title="Subscribe to ' . $value[name] . '">';
    				}
    				$returnString .= '<div class="">';
    				$num = (int)$value[stats][member_count];
    				$returnString .= number_format($num) . ' ' . $postFixText;
    				$returnString .= '</div>';
    				if($link != '') {
    					$returnString .= '</a>';
    				}
    				$returnString .= '</div>';
    			}
    		}
    	}

    Yes please, I am interested too. VERY interested.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Can't we just the subscriber count without styling?’ is closed to new replies.