The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

Possible to display only part of Who Is Online information box at bottom?

View previous topic View next topic Go down

Possible to display only part of Who Is Online information box at bottom?

Post by becomeelite on November 25th 2012, 12:13 am

I was just wondering if its possible to show only part of the information that is in the Who Is Online box. Rather than disable the whole box, i would rather it show:

Our users have posted a total of XXX messages
We have XXX registered users
The newest registered user is XXX

And not have any of the rest of the information displayed. Its just to much of a big box at the bottom of my forum and i think it would be better to just have that top part. Is there a CSS code or something i can to do this?

Thanks

becomeelite
Forumember

Posts : 53
Reputation : 1
Language : English

http://www.informationkeptquiet.com

Back to top Go down

Re: Possible to display only part of Who Is Online information box at bottom?

Post by nextlevelgaming on November 25th 2012, 12:20 am

there is a way hold on and ill get it for you


FIND THIS IN

ACP>DISPLAY>GENERAL>INDEX_BODY
FIND
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 -->
                  <center><span class="cattitle">{L_WHO_IS_ONLINE}</span></center>
      <!-- END switch_viewonline_nolink -->
      </td>
   </tr>
   <tr>
          <center>
      <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" rowspan="6" width="100%"><span class="gensmall">{TOTAL_POSTS}<br />
      {TOTAL_USERS}<br />
      {NEWEST_USER}</span></td>
          </center>
   </tr>
   <tr>
      <center><td class="row1"><span class="gensmall">{TOTAL_USERS_ONLINE}<br />
                  {RECORD_USERS}<br /></center>
      <br />
                  <center> {LOGGED_IN_USER_LIST}</center></span>
                  </td>
   </tr>
 
  <center>   {L_CONNECTED_MEMBERS}</center>
  <center>   {L_WHOSBIRTHDAY_TODAY}</center>
  <center>{L_WHOSBIRTHDAY_WEEK}</center>
 
   <tr>
          <center><td class="row1"><span class="gensmall">{LEGEND}:{GROUP_LEGEND}</span></td></center>
   </tr>
   <!-- BEGIN switch_chatbox_activate -->
   <tr>
      <td class="row1">
                  <center><span class="gensmall">{TOTAL_CHATTERS_ONLINE}: {CHATTERS_LIST}<br /></center>
            <!-- BEGIN switch_chatbox_popup -->
            <center><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}');
            //]]>
                                  </center>
            </script>
                                 
            <!-- END switch_chatbox_popup -->
         </span>
      </td>
   </tr>
   <!-- END switch_chatbox_activate -->
</table>
<!-- END disable_viewonline -->

REPLACE WITH
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 -->
                  <center><span class="cattitle">{L_WHO_IS_ONLINE}</span></center>
      <!-- END switch_viewonline_nolink -->
      </td>
   </tr>
   <tr>
          <center>
      <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>
          </center>
   </tr>
      </table>
<!-- END disable_viewonline -->

That should work, you can delete certain things if you want. That is what you requested so that is the code you get Smile


Last edited by nextlevelgaming on November 25th 2012, 12:32 am; edited 2 times in total

nextlevelgaming
Forumember

Male Posts : 989
Reputation : 38
Language : English|CSS|HTML5|javascript|
Location : New York

http://www.easybbtutorials.forumotion.com

Back to top Go down

Re: Possible to display only part of Who Is Online information box at bottom?

Post by Sozinho on November 25th 2012, 12:22 am

Use a widget using the PHP Variable to make sure that the thing you want to bi visible is the only one.

Sozinho
Forumember

Male Posts : 172
Reputation : 4
Language : English
Location : Philippines

http://appzxor.omgforum.net

Back to top Go down

Re: Possible to display only part of Who Is Online information box at bottom?

Post by nextlevelgaming on November 25th 2012, 12:29 am

Um what dude? He wants to keep the box, the php variables you do not need to place in a widget. In fact that is a waste of space honestly. OP do what I told you to do and you will be fine

nextlevelgaming
Forumember

Male Posts : 989
Reputation : 38
Language : English|CSS|HTML5|javascript|
Location : New York

http://www.easybbtutorials.forumotion.com

Back to top Go down

Re: Possible to display only part of Who Is Online information box at bottom?

Post by becomeelite on November 25th 2012, 12:42 am

Excellent! Thanks nextlevelgaming! Exactly what i was looking for.

Could you give me the code that would include the legend also?

So that it would display:

Our users have posted a total of XXX messages
We have XXX registered users
The newest registered user is XXX

Legend: [ Administrator ] [ Staff ] [ Supporter ] [ Member ] [ Newbie ]


thanks and that should be all!

________________

It worked except the legend is all scrunched up together at the far end, instead of being just a line across, i left it up you can look at it www.InformationKeptQuiet.com/forum




Last edited by becomeelite on November 25th 2012, 1:03 am; edited 1 time in total

becomeelite
Forumember

Posts : 53
Reputation : 1
Language : English

http://www.informationkeptquiet.com

Back to top Go down

Re: Possible to display only part of Who Is Online information box at bottom?

Post by nextlevelgaming on November 25th 2012, 12:53 am

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 -->
                  <center><span class="cattitle">{L_WHO_IS_ONLINE}</span></center>
      <!-- END switch_viewonline_nolink -->
      </td>
  </tr>
  <tr>
          <center>
      <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" rowspan="4" width="100%"><span class="gensmall">{TOTAL_POSTS}<br />
      {TOTAL_USERS}<br />
      {NEWEST_USER}</span></td>
          </center>
  </tr>
  <tr>
          <center><td class="row1" rowspan="2"><span class="gensmall">{LEGEND} : {GROUP_LEGEND}</span></td></center>
  </tr>
 
    </table>
<!-- END disable_viewonline -->

Let me know if that helps ya

nextlevelgaming
Forumember

Male Posts : 989
Reputation : 38
Language : English|CSS|HTML5|javascript|
Location : New York

http://www.easybbtutorials.forumotion.com

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