Choose from our various pricing plans. There is a package for everyone!


Problem with statistics in Tabs [phpbb2]

View previous topic View next topic Go down

Topic Solved Problem with statistics in Tabs [phpbb2]

Post by Dark-Avenger on Fri Jan 31, 2014 11:49 pm

Hello dear all,
I was following step by step the tuturial about statistics in tabs and I want to place the tabs under this line http://prntscr.com/2ns9gs in the box of statistics but the result is opposite etc the blue bar goes under the tabs. I have tried many solutions in my template and css as well but the problem still remains.

Best Regards,
Dark-Avenger
avatar
Dark-Avenger
Member
Member

Age : 43
Posts : 25
Join date : 2013-12-21
Forum Version : PunBB
Reputation : 1

View user profile

Back to top Go down

Topic Solved Re: Problem with statistics in Tabs [phpbb2]

Post by Dark-Avenger on Tue Feb 04, 2014 12:04 am

Bump
avatar
Dark-Avenger
Member
Member

Age : 43
Posts : 25
Join date : 2013-12-21
Forum Version : PunBB
Reputation : 1

View user profile

Back to top Go down

Topic Solved Re: Problem with statistics in Tabs [phpbb2]

Post by Stallmp on Sat Feb 08, 2014 7:59 pm

Sorry, I don't quite get it.
I don't even see the tabs.

Can you provide me the code you used?

I would firstly just follow the tutorial step for step without modifications, and let us know if it works. Maybe I can help you after then to give it the look you want.
avatar
Stallmp
Member
Member

Age : 23
Posts : 227
Join date : 2014-01-10
Forum Version : PunBB
Reputation : 15

View user profile

Back to top Go down

Topic Solved Re: Problem with statistics in Tabs [phpbb2]

Post by Dark-Avenger on Sat Feb 08, 2014 8:27 pm

@Stallmp wrote:Sorry, I don't quite get it.
I don't even see the tabs.

Can you provide me the code you used?

I would firstly just follow the tutorial step for step without modifications, and let us know if it works. Maybe I can help you after then to give it the look you want.

Hi,
We have tried many codes the final codes which we have tested are:

For index_body template:

Code:

    <!-- BEGIN disable_viewonline -->

            <div id="tabs_container">
                <ul id="stabs">
                    <li class="active"><a href="#tab1">Tab 1</a></li>
                    <li><a href="#tab2">Tab 2</a></li>
                    <li><a href="#tab3">Tab 3</a></li>
                </ul>
            </div>

            <div id="tabs_content_container">
                <div id="tab1" class="tab_content" style="display: block;">
                    <p><table class="forumline" width="100%" border="0" cellspacing="1" cellpadding="0">
       <tr>
          <td class="catHead" colspan="2" height="28">
          <!-- BEGIN switch_viewonline_link -->
          <span class="cattitle"><a class="cattitle" href="{U_VIEWONLINE}" rel="nofollow">{L_WHO_IS_ONLINE}</a></span>
          <!-- END switch_viewonline_link -->

          <!-- BEGIN switch_viewonline_nolink -->
          <span class="cattitle">{L_WHO_IS_ONLINE}</span>
          <!-- END switch_viewonline_nolink -->
          </td>
       </tr>
       <tr>
          <td class="row1" rowspan="6" align="center" valign="middle"><img src="{L_ONLINE_IMG}" id="i_whosonline" alt="{L_WHO_IS_ONLINE}" /></td>
          <td class="row1" width="100%"><span class="gensmall">{TOTAL_POSTS}<br />
          {TOTAL_USERS}<br />
          {NEWEST_USER}</span></td>
       </tr>
       <tr>
          <td class="row1"><span class="gensmall">{TOTAL_USERS_ONLINE}<br />
          {RECORD_USERS}<br />
          <br />
          {LOGGED_IN_USER_LIST}</span></td>
       </tr>
       {L_CONNECTED_MEMBERS}
       {L_WHOSBIRTHDAY_TODAY}
       {L_WHOSBIRTHDAY_WEEK}
       <tr>
          <td class="row1"><span class="gensmall">{LEGEND} : {GROUP_LEGEND}</span></td>
       </tr>
       <!-- BEGIN switch_chatbox_activate -->
       <tr>
          <td class="row1">
             <span class="gensmall">{TOTAL_CHATTERS_ONLINE} :  {CHATTERS_LIST}<br />
                <!-- BEGIN switch_chatbox_popup -->
                <div id="chatbox_popup"></div>
                <script type="text/javascript">
                //<![CDATA[
                insertChatBoxPopup('{disable_viewonline.switch_chatbox_activate.switch_chatbox_popup.U_FRAME_CHATBOX}', '{L_CLICK_TO_JOIN_CHAT}');
                //]]>
                </script>
                <!-- END switch_chatbox_popup -->
             </span>
          </td>
       </tr>
       <!-- END switch_chatbox_activate -->
    </table></p>
                </div>
                <div id="tab2" class="tab_content">
                    <p>Content for the Second tabs goes here</p>
                </div>
                <div id="tab3" class="tab_content">
                    <p>Content for the Third tabs goes here</p>
                </div>
            </div>


    <!-- END disable_viewonline -->

and for the CSS:

Code:
   #tabs_container {
        border-bottom: 1px solid #ccc;
    }
    #stabs {
        list-style: none;
        padding: 5px 0 4px 0;
        margin: 0 0 0 10px;
        font-family: Verdana,Arial,Helvetica,sans-serif;
        font-size: 13px;
    }
    #stabs li {
        display: inline;
    }
    #stabs li a {
        border: 1px solid #ccc;
        padding: 4px 6px;
        text-decoration: none;
        background-color: #eeeeee;
        border-bottom: none;
        outline: none;
        border-radius: 5px 5px 0 0;
        -moz-border-radius: 5px 5px 0 0;
        -webkit-border-top-left-radius: 5px;
        -webkit-border-top-right-radius: 5px;
    }
    #stabs li a:hover {
        background-color: #dddddd;
        padding: 4px 6px;
    }
    #stabs li.active a {
        border-bottom: 1px solid #fff;
        background-color: #fff;
        padding: 4px 6px 5px 6px;
        border-bottom: none;
    }
    #stabs li.active a:hover {
        background-color: #eeeeee;
        padding: 4px 6px 5px 6px;
        border-bottom: none;
    }
    
   #tabs_content_container {
        border: 1px solid #ccc;
        border-top: none;
        padding: 10px;
    }
    .tab_content {
        display: none;
    }

and for the javascript this code:
Code:

    $(document).ready(function(){
        //  When user clicks on tab, this code will be executed
        $("#stabs li").click(function() {
            //  First remove class "active" from currently active tab
            $("#stabs li").removeClass('active');
    
           //  Now add class "active" to the selected/clicked tab
            $(this).addClass("active");
    
           //  Hide all tab content
            $(".tab_content").hide();
    
           //  Here we get the href value of the selected tab
            var selected_tab = $(this).find("a").attr("href");
    
           //  Show the selected tab content
            $(selected_tab).fadeIn();
    
           //  At the end, we add return false so that the click on the link is not executed
            return false;
        });
    });
avatar
Dark-Avenger
Member
Member

Age : 43
Posts : 25
Join date : 2013-12-21
Forum Version : PunBB
Reputation : 1

View user profile

Back to top Go down

Topic Solved Re: Problem with statistics in Tabs [phpbb2]

Post by Mati™ on Sat Feb 08, 2014 8:48 pm

@Dark-Avenger wrote:Hello dear all,
I was following step by step the tuturial about statistics in tabs and I want to place the tabs under this line http://prntscr.com/2ns9gs in the box of statistics but the result is opposite etc the blue bar goes under the tabs. I have tried many solutions in my template and css as well but the problem still remains.

Best Regards,
Dark-Avenger

I have update the code for phpBB2 and works fine so what is the problem you face.
avatar
Mati™
Administrator
Administrator

Age : 31
Posts : 2112
Join date : 2011-10-20
Forum Version : PhpBB3
Reputation : 147

View user profile http://fmfocus.forumotion.net/forum

Back to top Go down

Topic Solved Re: Problem with statistics in Tabs [phpbb2]

Post by Stallmp on Sat Feb 08, 2014 8:50 pm

Are you sure the code is for phpbb 2 and thatyou ticked in: For all the pages at the javascript?

If yes, then i unfortunately cant help you as im not the one who wrote that code. After trying my steps, contact Mati or any other developer for further assistance
avatar
Stallmp
Member
Member

Age : 23
Posts : 227
Join date : 2014-01-10
Forum Version : PunBB
Reputation : 15

View user profile

Back to top Go down

Topic Solved Re: Problem with statistics in Tabs [phpbb2]

Post by Dark-Avenger on Sat Feb 08, 2014 9:42 pm

@Mati™ wrote:
@Dark-Avenger wrote:Hello dear all,
I was following step by step the tuturial about statistics in tabs and I want to place the tabs under this line http://prntscr.com/2ns9gs in the box of statistics but the result is opposite etc the blue bar goes under the tabs. I have tried many solutions in my template and css as well but the problem still remains.

Best Regards,
Dark-Avenger

I have update the code for phpBB2 and works fine so what is the problem you face.

Hello Mati,
When I am adding the code the result looks like this http://prntscr.com/2cuo91 the colored bar of "Current Users" goes under the tabs and I want the current users bar to stay above the tabs.
avatar
Dark-Avenger
Member
Member

Age : 43
Posts : 25
Join date : 2013-12-21
Forum Version : PunBB
Reputation : 1

View user profile

Back to top Go down

Topic Solved Re: Problem with statistics in Tabs [phpbb2]

Post by Stallmp on Sun Feb 09, 2014 9:24 am

@Dark-Avenger wrote:
@Mati™ wrote:
@Dark-Avenger wrote:Hello dear all,
I was following step by step the tuturial about statistics in tabs and I want to place the tabs under this line http://prntscr.com/2ns9gs in the box of statistics but the result is opposite etc the blue bar goes under the tabs. I have tried many solutions in my template and css as well but the problem still remains.

Best Regards,
Dark-Avenger

I have update the code for phpBB2 and works fine so what is the problem you face.

Hello Mati,
When I am adding the code the result looks like this http://prntscr.com/2cuo91 the colored bar of "Current Users" goes under the tabs and I want the current users bar to stay above the tabs.

That is an error with the templates
Are you sure you REPLACED the correct code in the template? I think you have pasted the needed code above the legend. Again look at the Tutorial, and compare it.
avatar
Stallmp
Member
Member

Age : 23
Posts : 227
Join date : 2014-01-10
Forum Version : PunBB
Reputation : 15

View user profile

Back to top Go down

Topic Solved Re: Problem with statistics in Tabs [phpbb2]

Post by Dark-Avenger on Sun Feb 09, 2014 10:37 am

I have add the code of the tutorial and my index_body template now is:

Code:

{JAVASCRIPT}
<!-- BEGIN message_admin_index -->
<table class="forumline" width="100%" border="0" cellspacing="1" cellpadding="0">
    <!-- BEGIN message_admin_titre -->
    <tr>
        <td class="catHead" height="28"><span class="cattitle">{message_admin_index.message_admin_titre.MES_TITRE}</span></td>
    </tr>
    <!-- END message_admin_titre -->
    <!-- BEGIN message_admin_txt -->
    <tr>
        <td class="row1" rowspan="3" align="center" valign="middle">
        <div class="gensmall">{message_admin_index.message_admin_txt.MES_TXT}</div>
        </td>
    </tr>
    <!-- END message_admin_txt -->
</table>
<!-- END message_admin_index -->

<!-- BEGIN switch_user_login_form_header -->
<form action="{S_LOGIN_ACTION}" method="post" name="form_login">
    <!-- BEGIN switch_fb_connect_no -->
    <table width="100%" border="0" cellspacing="0" cellpadding="0" class="user_login_form forumline">
        <tr>
            <td class="row1" align="center">
                <table border="0" cellspacing="0" cellpadding="0">
                    <tr>
                        <td><span class="genmed">{L_USERNAME}:</span> </td>
                        <td><input class="post" type="text" size="10" name="username"/> </td>
                        <td>
                            <input class="radio" type="checkbox" name="autologin" {AUTOLOGIN_CHECKED} />
                            <span class="gensmall">{L_AUTO_LOGIN}</span> 
                        </td>
                    </tr>

                    <tr>
                        <td><span class="genmed">{L_PASSWORD}:</span> </td>
                        <td><input class="post" type="password" size="10" name="password"/> </td>
                        <td>{S_HIDDEN_FIELDS}<input class="mainoption" type="submit" name="login" value="{L_LOGIN}" /></td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
    <!-- END switch_fb_connect_no -->

    <!-- BEGIN switch_fb_connect -->
    <table width="100%" border="0" cellspacing="0" cellpadding="0" class="user_login_form forumline">
        <tr>
            <td valign="top" width="100%" class="row1" align="center">
                <table width="100%">
                    <tr>
                        <td width="55%" valign="middle" align="right">
                            <table class="right">
                                <tr>
                                    <td><span class="genmed">{L_USERNAME}:</span> </td>
                                    <td><input class="post" type="text" size="10" name="username"/> </td>
                                    <td>
                                        <input class="radio" type="checkbox" name="autologin" {AUTOLOGIN_CHECKED} />
                                        <span class="gensmall">{L_AUTO_LOGIN}</span> 
                                    </td>
                                </tr>

                                <tr>
                                    <td><span class="genmed">{L_PASSWORD}:</span> </td>
                                    <td><input class="post" type="password" size="10" name="password"/> </td>
                                    <td>{S_HIDDEN_FIELDS}<input class="mainoption" type="submit" name="login" value="{L_LOGIN}" /></td>
                                </tr>
                            </table>
                        </td>
                        <td width="10%" align="center" valign="middle">
                            <span class="genmed fb_or">{switch_user_login_form_header.switch_fb_connect.L_OR}</span>
                        </td>
                        <td width="35%" class="align_gauche"><fb:login-button size="large" onlogin="window.location='/facebook_connect.forum'" v="2" scope="{switch_user_login_form_header.switch_fb_connect.L_FB_PERMISSIONS}">{switch_user_login_form_header.switch_fb_connect.L_FB_LOGIN_BUTTON}</fb:login-button></td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
    <!-- END switch_fb_connect -->
</form>
<!-- END switch_user_login_form_header -->
{CHATBOX_TOP}
{BOARD_INDEX}
<table class="activity_info" width="100%" border="0" cellspacing="0" cellpadding="0">
 <tr>
 <td width="50%" valign="top">
 <!-- BEGIN switch_user_logged_in -->
 <span class="gensmall"><a href="{U_MARK_READ}" class="gensmall">{L_MARK_FORUMS_READ}</a></span>
 <!-- END switch_user_logged_in -->
 <!-- BEGIN switch_delete_cookies -->
 <br /><span class="gensmall"><a href="{switch_delete_cookies.U_DELETE_COOKIES}" class="gensmall">{switch_delete_cookies.L_DELETE_COOKIES}</a></span>
 <!-- END switch_delete_cookies -->
 </td>
 <td width="50%" align="right">
 <span class="gensmall">
 <a href="{U_TODAY_ACTIVE}" class="gensmall">{L_TODAY_ACTIVE}</a><br />
 <a href="{U_TODAY_POSTERS}" class="gensmall">{L_TODAY_POSTERS}</a><br />
 <a href="{U_OVERALL_POSTERS}" class="gensmall">{L_OVERALL_POSTERS}</a>
 <!-- BEGIN switch_on_index -->
 <!-- BEGIN switch_delete_cookies -->
 <br /><a href="{switch_on_index.switch_delete_cookies.U_DELETE_COOKIES}" class="gensmall">{switch_on_index.switch_delete_cookies.L_DELETE_COOKIES}</a>
 <!-- END switch_delete_cookies -->
 <!-- END switch_on_index -->
 </span>
 </td>
 </tr>
</table>

<!-- BEGIN switch_user_login_form_footer -->
<form action="{S_LOGIN_ACTION}" method="post" name="form_login">
    <!-- BEGIN switch_fb_connect_no -->
    <table width="100%" border="0" cellspacing="0" cellpadding="0" class="user_login_form forumline">
        <tr>
            <td class="row1" align="center">
                <table border="0" cellspacing="0" cellpadding="0">
                    <tr>
                        <td><span class="genmed">{L_USERNAME}:</span> </td>
                        <td><input class="post" type="text" size="10" name="username"/> </td>
                        <td>
                            <input class="radio" type="checkbox" name="autologin" {AUTOLOGIN_CHECKED} />
                            <span class="gensmall">{L_AUTO_LOGIN}</span> 
                        </td>
                    </tr>

                    <tr>
                        <td><span class="genmed">{L_PASSWORD}:</span> </td>
                        <td><input class="post" type="password" size="10" name="password"/> </td>
                        <td>{S_HIDDEN_FIELDS}<input class="mainoption" type="submit" name="login" value="{L_LOGIN}" /></td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
    <!-- END switch_fb_connect_no -->

    <!-- BEGIN switch_fb_connect -->
    <table width="100%" border="0" cellspacing="0" cellpadding="0" class="user_login_form forumline">
        <tr>
            <td valign="top" width="100%" class="row1" align="center">
                <table width="100%">
                    <tr>
                        <td width="55%" valign="middle">
                            <table class="right">
                                <tr>
                                    <td><span class="genmed">{L_USERNAME}:</span> </td>
                                    <td><input class="post" type="text" size="10" name="username"/> </td>
                                    <td>
                                        <input class="radio" type="checkbox" name="autologin" {AUTOLOGIN_CHECKED} />
                                        <span class="gensmall">{L_AUTO_LOGIN}</span> 
                                    </td>
                                </tr>

                                <tr>
                                    <td><span class="genmed">{L_PASSWORD}:</span> </td>
                                    <td><input class="post" type="password" size="10" name="password"/> </td>
                                    <td>{S_HIDDEN_FIELDS}<input class="mainoption" type="submit" name="login" value="{L_LOGIN}" /></td>
                                </tr>
                            </table>
                        </td>
                        <td width="10%" align="center" valign="middle">
                            <span class="genmed fb_or">{switch_user_login_form_footer.switch_fb_connect.L_OR}</span>
                        </td>
                        <td width="35%" class="align_gauche"><fb:login-button size="large" onlogin="window.location='/facebook_connect.forum'" v="2" scope="{switch_user_login_form_footer.switch_fb_connect.L_FB_PERMISSIONS}">{switch_user_login_form_footer.switch_fb_connect.L_FB_LOGIN_BUTTON}</fb:login-button></td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
    <!-- END switch_fb_connect -->
</form>
<!-- END switch_user_login_form_footer -->

           <!-- BEGIN disable_viewonline -->
                    <div id="tabs_container">
                        <ul id="stabs">
                            <li class="active"><a href="#tab1">Tab 1</a></li>
                            <li><a href="#tab2">Tab 2</a></li>
                            <li><a href="#tab3">Tab 3</a></li>
                        </ul>
                    </div>
                    <div id="tabs_content_container">
                        <div id="tab1" class="tab_content" style="display: block;">
                            <p><table class="forumline" width="100%" border="0" cellspacing="1" cellpadding="0">
               <tr>
                  <td class="catHead" colspan="2" height="28">
                  <!-- BEGIN switch_viewonline_link -->
                  <span class="cattitle"><a class="cattitle" href="{U_VIEWONLINE}" rel="nofollow">{L_WHO_IS_ONLINE}</a></span>
                  <!-- END switch_viewonline_link -->
                  <!-- BEGIN switch_viewonline_nolink -->
                  <span class="cattitle">{L_WHO_IS_ONLINE}</span>
                  <!-- END switch_viewonline_nolink -->
                  </td>
               </tr>
               <tr>
                  <td class="row1" rowspan="6" align="center" valign="middle"><img src="{L_ONLINE_IMG}" id="i_whosonline" alt="{L_WHO_IS_ONLINE}" /></td>
                  <td class="row1" width="100%"><span class="gensmall">{TOTAL_POSTS}<br />
                  {TOTAL_USERS}<br />
                  {NEWEST_USER}</span></td>
               </tr>
               <tr>
                  <td class="row1"><span class="gensmall">{TOTAL_USERS_ONLINE}<br />
                  {RECORD_USERS}<br />
                  <br />
                  {LOGGED_IN_USER_LIST}</span></td>
               </tr>
               {L_CONNECTED_MEMBERS}
               {L_WHOSBIRTHDAY_TODAY}
               {L_WHOSBIRTHDAY_WEEK}
               <tr>
                  <td class="row1"><span class="gensmall">{LEGEND} : {GROUP_LEGEND}</span></td>
               </tr>
               <!-- BEGIN switch_chatbox_activate -->
               <tr>
                  <td class="row1">
                     <span class="gensmall">{TOTAL_CHATTERS_ONLINE} :  {CHATTERS_LIST}<br />
                        <!-- BEGIN switch_chatbox_popup -->
                        <div id="chatbox_popup"></div>
                        <script type="text/javascript">
                        //<![CDATA[
                        insertChatBoxPopup('{disable_viewonline.switch_chatbox_activate.switch_chatbox_popup.U_FRAME_CHATBOX}', '{L_CLICK_TO_JOIN_CHAT}');
                        //]]>
                        </script>
                        <!-- END switch_chatbox_popup -->
                     </span>
                  </td>
               </tr>
               <!-- END switch_chatbox_activate -->
            </table></p>
                        </div>
                        <div id="tab2" class="tab_content">
                            <p>Content for the Second tabs goes here</p>
                        </div>
                        <div id="tab3" class="tab_content">
                            <p>Content for the Third tabs goes here</p>
                        </div>
                    </div>
            <!-- END disable_viewonline -->
{CHATBOX_BOTTOM}
<br clear="all" />
<!-- BEGIN switch_legend -->
<table border="0" cellspacing="3" cellpadding="0" align="center">
    <tr>
        <td align="center" width="20"><img src="{FORUM_NEW_IMG}" alt="{L_NEW_POSTS}" /></td>
        <td><span class="gensmall">{L_NEW_POSTS}</span></td>
        <td></td>
        <td align="center" width="20"><img src="{FORUM_IMG}" alt="{L_NO_NEW_POSTS}" /></td>
        <td><span class="gensmall">{L_NO_NEW_POSTS}</span></td>
        <td> &nbsp;</td>
        <td align="center" width="20"><img src="{FORUM_LOCKED_IMG}" alt="{L_FORUM_LOCKED}" /></td>
        <td><span class="gensmall">{L_FORUM_LOCKED}</span></td>
    </tr>
</table>
<!-- END switch_legend -->

{AUTO_DST}

<!-- BEGIN switch_fb_index_login -->
<div id="fb-root"></div>
<script type="text/javascript">
//<![CDATA[
FB.init({
    appId: '{switch_fb_index_login.FACEBOOK_APP_ID}',
     status: true,
     cookie: true,
     xfbml: true,
    oauth: true
});
//]]>
</script>
<!-- END switch_fb_index_login -->

The result is the same http://prntscr.com/2qvfaj how can I modify my template to keep the blue bar up from the tabs and the tabs under the blue bar of current users?
avatar
Dark-Avenger
Member
Member

Age : 43
Posts : 25
Join date : 2013-12-21
Forum Version : PunBB
Reputation : 1

View user profile

Back to top Go down

Topic Solved Re: Problem with statistics in Tabs [phpbb2]

Post by Stallmp on Sun Feb 09, 2014 10:59 am

Delete the template and start following the tutorial again.
_____________________________________________
PhpBB2 Templates: ACP -> Templates --> General --> index_body find this code:
Code:

  <!-- BEGIN disable_viewonline -->
    <table class="forumline" width="100%" border="0" cellspacing="1" cellpadding="0">
    <tr>
    <td class="catHead" colspan="2" height="28">
    <!-- BEGIN switch_viewonline_link -->
    <span class="cattitle"><a class="cattitle" href="{U_VIEWONLINE}" rel="nofollow">{L_WHO_IS_ONLINE}</a></span>
    <!-- END switch_viewonline_link -->

    <!-- BEGIN switch_viewonline_nolink -->
    <span class="cattitle">{L_WHO_IS_ONLINE}</span>
    <!-- END switch_viewonline_nolink -->
    </td>
    </tr>
    <tr>
    <td class="row1" rowspan="6" align="center" valign="middle"><img src="{L_ONLINE_IMG}" id="i_whosonline" alt="{L_WHO_IS_ONLINE}" /></td>
    <td class="row1" width="100%"><span class="gensmall">{TOTAL_POSTS}<br />
    {TOTAL_USERS}<br />
    {NEWEST_USER}</span></td>
    </tr>
    <tr>
    <td class="row1"><span class="gensmall">{TOTAL_USERS_ONLINE}<br />
    {RECORD_USERS}<br />
    <br />
    {LOGGED_IN_USER_LIST}</span></td>
    </tr>
    {L_CONNECTED_MEMBERS}
    {L_WHOSBIRTHDAY_TODAY}
    {L_WHOSBIRTHDAY_WEEK}
    <tr>
    <td class="row1"><span class="gensmall">{LEGEND} : {GROUP_LEGEND}</span></td>
    </tr>
    <!-- BEGIN switch_chatbox_activate -->
    <tr>
    <td class="row1">
    <span class="gensmall">{TOTAL_CHATTERS_ONLINE} :  {CHATTERS_LIST}<br />
    <!-- BEGIN switch_chatbox_popup -->
    <div id="chatbox_popup"></div>
    <script type="text/javascript">
    //<![CDATA[
    insertChatBoxPopup('{disable_viewonline.switch_chatbox_activate.switch_chatbox_popup.U_FRAME_CHATBOX}', '{L_CLICK_TO_JOIN_CHAT}');
    //]]>
    </script>
    <!-- END switch_chatbox_popup -->
    </span>
    </td>
    </tr>
    <!-- END switch_chatbox_activate -->
    </table>
    <!-- END disable_viewonline -->

And REPLACE it with this one:
Code:
  <!-- BEGIN disable_viewonline -->

            <div id="tabs_container">
                <ul id="stabs">
                    <li class="active"><a href="#tab1">Tab 1</a></li>
                    <li><a href="#tab2">Tab 2</a></li>
                    <li><a href="#tab3">Tab 3</a></li>
                </ul>
            </div>

            <div id="tabs_content_container">
                <div id="tab1" class="tab_content" style="display: block;">
                    <p><table class="forumline" width="100%" border="0" cellspacing="1" cellpadding="0">
      <tr>
          <td class="catHead" colspan="2" height="28">
          <!-- BEGIN switch_viewonline_link -->
          <span class="cattitle"><a class="cattitle" href="{U_VIEWONLINE}" rel="nofollow">{L_WHO_IS_ONLINE}</a></span>
          <!-- END switch_viewonline_link -->

          <!-- BEGIN switch_viewonline_nolink -->
          <span class="cattitle">{L_WHO_IS_ONLINE}</span>
          <!-- END switch_viewonline_nolink -->
          </td>
      </tr>
      <tr>
          <td class="row1" rowspan="6" align="center" valign="middle"><img src="{L_ONLINE_IMG}" id="i_whosonline" alt="{L_WHO_IS_ONLINE}" /></td>
          <td class="row1" width="100%"><span class="gensmall">{TOTAL_POSTS}<br />
          {TOTAL_USERS}<br />
          {NEWEST_USER}</span></td>
      </tr>
      <tr>
          <td class="row1"><span class="gensmall">{TOTAL_USERS_ONLINE}<br />
          {RECORD_USERS}<br />
          <br />
          {LOGGED_IN_USER_LIST}</span></td>
      </tr>
      {L_CONNECTED_MEMBERS}
      {L_WHOSBIRTHDAY_TODAY}
      {L_WHOSBIRTHDAY_WEEK}
      <tr>
          <td class="row1"><span class="gensmall">{LEGEND} : {GROUP_LEGEND}</span></td>
      </tr>
      <!-- BEGIN switch_chatbox_activate -->
      <tr>
          <td class="row1">
            <span class="gensmall">{TOTAL_CHATTERS_ONLINE} :  {CHATTERS_LIST}<br />
                <!-- BEGIN switch_chatbox_popup -->
                <div id="chatbox_popup"></div>
                <script type="text/javascript">
                //<![CDATA[
                insertChatBoxPopup('{disable_viewonline.switch_chatbox_activate.switch_chatbox_popup.U_FRAME_CHATBOX}', '{L_CLICK_TO_JOIN_CHAT}');
                //]]>
                </script>
                <!-- END switch_chatbox_popup -->
            </span>
          </td>
      </tr>
      <!-- END switch_chatbox_activate -->
    </table></p>
                </div>
                <div id="tab2" class="tab_content">
                    <p>Content for the Second tabs goes here</p>
                </div>
                <div id="tab3" class="tab_content">
                    <p>Content for the Third tabs goes here</p>
                </div>
            </div>


    <!-- END disable_viewonline -->

Then add this to your CSS:
Code:
#tabs_container {
    border-bottom: 1px solid #ccc;
}
#stabs {
    list-style: none;
    padding: 5px 0 4px 0;
    margin: 0 0 0 10px;
    font-family: Verdana,Arial,Helvetica,sans-serif;
    font-size: 13px;
}
#stabs li {
    display: inline;
}
#stabs li a {
    border: 1px solid #ccc;
    padding: 4px 6px;
    text-decoration: none;
    background-color: #eeeeee;
    border-bottom: none;
    outline: none;
    border-radius: 5px 5px 0 0;
    -moz-border-radius: 5px 5px 0 0;
    -webkit-border-top-left-radius: 5px;
    -webkit-border-top-right-radius: 5px;
}
#stabs li a:hover {
    background-color: #dddddd;
    padding: 4px 6px;
}
#stabs li.active a {
    border-bottom: 1px solid #fff;
    background-color: #fff;
    padding: 4px 6px 5px 6px;
    border-bottom: none;
}
#stabs li.active a:hover {
    background-color: #eeeeee;
    padding: 4px 6px 5px 6px;
    border-bottom: none;
}
 
#tabs_content_container {
    border: 1px solid #ccc;
    border-top: none;
    padding: 10px;
}
.tab_content {
    display: none;
}

Go to: Modules -> Javascript Codes Management and create a new javascript.
Title it whatever you want, and select: In all the pages
Paste this code:
Code:
$(document).ready(function(){
    //  When user clicks on tab, this code will be executed
    $("#stabs li").click(function() {
        //  First remove class "active" from currently active tab
        $("#stabs li").removeClass('active');
 
      //  Now add class "active" to the selected/clicked tab
        $(this).addClass("active");
 
      //  Hide all tab content
        $(".tab_content").hide();
 
      //  Here we get the href value of the selected tab
        var selected_tab = $(this).find("a").attr("href");
 
      //  Show the selected tab content
        $(selected_tab).fadeIn();
 
      //  At the end, we add return false so that the click on the link is not executed
        return false;
    });
});
_______________________________________________
You have added the code above the code you need to find, but you are supposed to REPLACE IT instead of ADD IT.
avatar
Stallmp
Member
Member

Age : 23
Posts : 227
Join date : 2014-01-10
Forum Version : PunBB
Reputation : 15

View user profile

Back to top Go down

Topic Solved Re: Problem with statistics in Tabs [phpbb2]

Post by Dark-Avenger on Sun Feb 09, 2014 11:18 am

I have replaced the code which you gave me following your instructions but the problem still remains, I want to move this blue bar over there http://prntscr.com/2qvnro
avatar
Dark-Avenger
Member
Member

Age : 43
Posts : 25
Join date : 2013-12-21
Forum Version : PunBB
Reputation : 1

View user profile

Back to top Go down

Topic Solved Re: Problem with statistics in Tabs [phpbb2]

Post by Stallmp on Sun Feb 09, 2014 11:22 am

Sorry, that is not possible. The blue bar is part of the legend, and cannot be separated.
avatar
Stallmp
Member
Member

Age : 23
Posts : 227
Join date : 2014-01-10
Forum Version : PunBB
Reputation : 15

View user profile

Back to top Go down

Topic Solved Re: Problem with statistics in Tabs [phpbb2]

Post by Dark-Avenger on Sun Feb 09, 2014 11:30 am

So probably its not working correctly for phpbb2.Sad
avatar
Dark-Avenger
Member
Member

Age : 43
Posts : 25
Join date : 2013-12-21
Forum Version : PunBB
Reputation : 1

View user profile

Back to top Go down

Topic Solved Re: Problem with statistics in Tabs [phpbb2]

Post by Stallmp on Sun Feb 09, 2014 11:39 am

The statiscs in Tabs' look depends on your forum version. This forum uses PunBB, and that's why the statiscs looks diffirent. Sorry, that is the correct look for Phpbb2. Anyway, I haven't received a comment at the other thread, still considering to reply?
avatar
Stallmp
Member
Member

Age : 23
Posts : 227
Join date : 2014-01-10
Forum Version : PunBB
Reputation : 15

View user profile

Back to top Go down

Topic Solved Re: Problem with statistics in Tabs [phpbb2]

Post by Dark-Avenger on Sun Feb 09, 2014 2:24 pm

@Stallmp wrote:The statiscs in Tabs' look depends on your forum version. This forum uses PunBB, and that's why the statiscs looks diffirent. Sorry, that is the correct look for Phpbb2. Anyway, I haven't received a comment at the other thread, still considering to reply?
Can we separate the stats section in two different classes to have the result which I want?
Usually in phpbb2 we are creating different classes to customize the sections of phpbb2.
avatar
Dark-Avenger
Member
Member

Age : 43
Posts : 25
Join date : 2013-12-21
Forum Version : PunBB
Reputation : 1

View user profile

Back to top Go down

Topic Solved Re: Problem with statistics in Tabs [phpbb2]

Post by Stallmp on Sun Feb 09, 2014 3:08 pm

For example
In the template it shows this:
{Legend}, the Blue bar is part of the Legend. You cannot split it, sorry. Is this solved?
avatar
Stallmp
Member
Member

Age : 23
Posts : 227
Join date : 2014-01-10
Forum Version : PunBB
Reputation : 15

View user profile

Back to top Go down

Topic Solved Re: Problem with statistics in Tabs [phpbb2]

Post by Dark-Avenger on Sun Feb 09, 2014 4:10 pm

Yes as we cant do anything solved.
avatar
Dark-Avenger
Member
Member

Age : 43
Posts : 25
Join date : 2013-12-21
Forum Version : PunBB
Reputation : 1

View user profile

Back to top Go down

Topic Solved Re: Problem with statistics in Tabs [phpbb2]

Post by Th1nK on Fri Dec 19, 2014 1:40 pm

The question(s) in this topic have been answered and the owner has been able to solve the problem. Because of this, the topic has been locked.
If you have other questions, please open a new topic.
avatar
Th1nK
Administrator
Administrator

Posts : 468
Join date : 2012-04-06
Reputation : 43

View user profile http://www.csshelp.net

Back to top Go down

Topic Solved Re: Problem with statistics in Tabs [phpbb2]

Post by Sponsored content


Sponsored content


Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum