Jump to content

  •  

  • Tutorial info Visit support topic

    • Added on: Dec 17 2008 11:48 AM
    • Views: 1878
     


    * * * * *
    2 Ratings

    (J23) Adding Total Number of members near Logo

    Simple Hack to Add total Numbers of Members near the Logo (as on ipbcustomize)

    Posted by JAIZ on Dec 17 2008 11:48 AM
    The examples of it can be found at
    http://www.ipbcustomize.com/

    Screenshot
    Posted Image

    Posted Image



    1. Open  ./sources/lib/func_boarstats.php

    FIND (in show totals)

    $this->ipsclass->lang['most_online'] = str_replace( "<#NUM#>" ,   $this->ipsclass->do_number_format($stats['most_count'])  , $this->ipsclass->lang['most_online'] );
    			$this->ipsclass->lang['most_online'] = str_replace( "<#DATE#>",				   $most_time					, $this->ipsclass->lang['most_online'] );

    Add below

    $this->ipsclass->lang['total_users'] = str_replace( "<#USERNO#>",				   $stats['mem_count']					, $this->ipsclass->lang['total_users'] );

    save and upload.

    2. Open ./cache/lang_cache/xx/lang_boards.php

    Find

    'most_online'				=>	"Most users ever online was <b><#NUM#></b> on <b><#DATE#></b>",


    Add after

    'total_users'				=>	 "<b><#USERNO#></b> Members",


    save and upload.

    3. Go to Admin CP->Look and Feel -> Edit Template HTML -> All Global HTML -> global_board_header

    Find

    <div id="logostrip"><a href='{$this->ipsclass->base_url}'><!--ipb.logo.start--><img src='style_images/<#IMG_DIR#>/logo4.gif' style='vertical-align:top' alt='IPB' border='0' /><!--ipb.logo.end--></a>

    Add Just After it

    <font color="white"><b>{$this->ipsclass->lang['total_users']}</b></font>

    Save.



    You can change the formatting of the text as you wish.  You can also add background Images to it.

    Powered by Tutorials 1.4.1 © 2012, by Michael McCune