MidnightAlways Posted March 3, 2013 Share Posted March 3, 2013 below is the code to add statistics to your side bar in the boardIndex file Find this code <foreach loop="side_blocks:$side_blocks as $block"> {$block} </foreach> Add this code below <if test="showTotals:|:$this->settings['show_totals']"> <div class='ipsSideBlock clearfix'> <h3><span class='icon icon-span-text icon-block'></span>Forum Statistics</h3> <div class='_sbcollapsable'> <dl> <dt class='fc-sb-stats'>{$this->lang->words['total_posts']}</dt> <dd class='fc-sb-stats'>{$stats['info']['total_posts']}</dd> <dt class='fc-sb-stats'>{$this->lang->words['total_members']}</dt> <dd class='fc-sb-stats'>{$stats['info']['mem_count']}</dd> <dt class='fc-sb-stats'>{$this->lang->words['newest_member']}</dt> <dd class='fc-sb-stats'>{IPSMember::makeProfileLink( $stats['info']['last_mem_name'], $stats['info']['last_mem_id'], $stats['info']['last_mem_seo'], 'value' )}</dd> <dt class='fc-sb-stats'>{$this->lang->words['online_at_once']}</dt> <dd class='fc-sb-stats'><span data-tooltip='{$stats['info']['most_time']}'>{$stats['info']['most_online']}</span></dd> </dl> </div> </div> </if> 2 Link to comment Share on other sites More sharing options...
Yuu Posted March 4, 2013 Share Posted March 4, 2013 Nice tutorial. But this code makes it look a little messy. I use this one: <if test="showTotals:|:$this->settings['show_totals']"> <div class="ipsSideBlock clearfix __xXtwist352statistics"> <h3 id="anonymous_element_352">Forum Statistics</h3> <div class="_sbcollapsable"> <ul class='ipsList_data sb_statistics clearfix'> <li class='clearfix'> <span class='sl'>{$this->lang->words['total_posts']}</span> <span class='sr'>{$stats['info']['total_posts']}</span> </li> <li class='clearfix'> <span class='sl'>{$this->lang->words['total_members']}</span> <span class='sr'>{$stats['info']['mem_count']}</span> </li> <li class='clearfix'> <span class='sl'>{$this->lang->words['newest_member']}</span> <span class='sr'>{IPSMember::makeProfileLink( $stats['info']['last_mem_name'], $stats['info']['last_mem_id'], $stats['info']['last_mem_seo'], 'value' )}</span> </li> <li class='clearfix' data-tooltip='{$stats['info']['most_time']}'> <span class='sl'>{$this->lang->words['online_at_once']}</span> <span class='sr'>{$stats['info']['most_online']}</span> </li> </ul> </div> </div> </if> 2 Need some IPB, MyBB, or HTML/CSS work done? Check out my thread! Link to comment Share on other sites More sharing options...
MidnightAlways Posted March 4, 2013 Author Share Posted March 4, 2013 I see, bullets here Link to comment Share on other sites More sharing options...
Aerie Fall Posted March 4, 2013 Share Posted March 4, 2013 Nice. Thanks for cleaning up that code. lols Link to comment Share on other sites More sharing options...
Yuu Posted March 4, 2013 Share Posted March 4, 2013 Which is made by me. lol. Because Sanctuary didn't added the CSS. There, added the CSS to the other post, I think... Need some IPB, MyBB, or HTML/CSS work done? Check out my thread! Link to comment Share on other sites More sharing options...
MidnightAlways Posted March 4, 2013 Author Share Posted March 4, 2013 2 nerds ruining my post 1 Link to comment Share on other sites More sharing options...
Pooba Posted April 21, 2013 Share Posted April 21, 2013 There, added the CSS to the other post, I think... what other post? only thing i see what for that stats in the footer Link to comment Share on other sites More sharing options...
Courage Posted June 19, 2013 Share Posted June 19, 2013 Can you add the CSS? Link to comment Share on other sites More sharing options...
Guest ipx88 Posted July 14, 2013 Share Posted July 14, 2013 Is this similar to the WF? Link to comment Share on other sites More sharing options...
Pseudo Posted July 19, 2013 Share Posted July 19, 2013 Interessting Thanks for sharing Link to comment Share on other sites More sharing options...
DarkXess Posted September 1, 2013 Share Posted September 1, 2013 Can someone please tell me how to add "How many new registrations today" to this code? Thanks Link to comment Share on other sites More sharing options...
MefistoTEDEs Posted September 14, 2013 Share Posted September 14, 2013 As XenForo. I like it! Link to comment Share on other sites More sharing options...
Courage Posted October 10, 2013 Share Posted October 10, 2013 I'm using<style>.sr{position:absolute;right:15px;}</style><if test="showTotals:|:$this->settings['show_totals']"> <div class="ipsSideBlock clearfix __xXtwist352statistics"> <h3 id="anonymous_element_352">Forum Quick Stats</h3> <div class="_sbcollapsable"> <ul class='ipsList_data sb_statistics clearfix'> <li class='clearfix'> <span class='sl'>{$this->lang->words['total_posts']}:</span> <span class='sr'>{$stats['info']['total_posts']}</span> </li> <li class='clearfix'> <span class='sl'>{$this->lang->words['total_members']}:</span> <span class='sr'>{$stats['info']['mem_count']}</span> </li> <li class='clearfix'> <span class='sl'>{$this->lang->words['newest_member']}:</span> <span class='sr'>{IPSMember::makeProfileLink( $stats['info']['last_mem_name'], $stats['info']['last_mem_id'], $stats['info']['last_mem_seo'], 'value' )}</span> </li> <li class='clearfix' data-tooltip='{$stats['info']['most_time']}'> <span class='sl'>{$this->lang->words['online_at_once']}:</span> <span class='sr'>{$stats['info']['most_online']}</span> </li> </ul> </div> </div> </if> 1 Link to comment Share on other sites More sharing options...
blood anth3m Posted October 20, 2013 Share Posted October 20, 2013 is this like a hook or no? Link to comment Share on other sites More sharing options...
Recommended Posts