Support » Plugin: Subscribe2 » Manually adding the Subscribe2 counter widget?

  • Resolved jord79



    Can anyone tell me how to manually add the Subscribe2 counter widget?

    I want it to say “Join 133 other followers” for example and the number changes with the amount of subscribers we have.

    Unfortunately I can’t add the counter through the widgets tab, as we have customised a few things on the page.

    Look forward to your help.


Viewing 3 replies - 1 through 3 (of 3 total)
  • @jord79,

    You’ll have to pull some of the code out of the Counter Widget and put that into your sidebar. The code for the widget is at:

    Thanks for the help!

    Will give it a go.

    	Displays the Widget
    	function widget() {
    		$title = 'email subscribers';
    		$s2w_bg = '#e3dacf';
    		$s2w_fg = '#345797';
    		$s2w_width = '82';
    		$s2w_height = '16';
    		$s2w_font = '11';
    		global $mysubscribe2;
    		$registered = $mysubscribe2->get_registered();
    		$confirmed = $mysubscribe2->get_public();
    		$count = (count($registered) + count($confirmed));
    		echo "<div cass=\"esub\">";
    		echo "<span = \"esubtitle\">" . $title . "</span>" .":". "<span class=\"count\">" . $count . "</span>";
    		echo "</div>";
    		echo $after_widget;

    this is the code i use, just for future reference to others as i stumbled upon this page looking for an answer.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Manually adding the Subscribe2 counter widget?’ is closed to new replies.