The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

online statistics script, i want to move it

4 posters

Go down

online statistics script, i want to move it Empty online statistics script, i want to move it

Post by XDirect12345 May 5th 2012, 12:00 am

How do I move the online statistics at the bottom of my forum to the tab "statistics" or an HTML page? Is there a code to embed it somewhere? Also once it is on my page that I want, how do I remove the one on the bottom of the forum without disabling it? I dont want to have duplicates.
XDirect12345
XDirect12345
Forumember

Male Posts : 361
Reputation : 3
Language : English

http://xdirect12345.forummotion.com

Back to top Go down

online statistics script, i want to move it Empty Re: online statistics script, i want to move it

Post by XDirect12345 May 7th 2012, 1:44 am

bump
XDirect12345
XDirect12345
Forumember

Male Posts : 361
Reputation : 3
Language : English

http://xdirect12345.forummotion.com

Back to top Go down

online statistics script, i want to move it Empty Re: online statistics script, i want to move it

Post by XDirect12345 May 9th 2012, 2:44 am

bump
XDirect12345
XDirect12345
Forumember

Male Posts : 361
Reputation : 3
Language : English

http://xdirect12345.forummotion.com

Back to top Go down

online statistics script, i want to move it Empty Re: online statistics script, i want to move it

Post by kirk May 9th 2012, 4:36 am

well you would have to remove this from the home page index template.

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 -->

Then add to the Statistics template, The problem is? where is the Statistics template??? because it's sure not the one in the gallery templates, and it seems it is not the one in the portal mod_statistics
So not sure at this point, i will see if i can locate which one the Statistics page is in.

Other then that i do not know of anyway to place it on a html page,
Unless you was going to sacrifice a template you do not want, add the code, then put that page link in a iframe????

Honestly your better off just leaving it where it is.
You dont have to display it on the home page if you want, you can set that in Structure and hierarchy bottom of the page.
kirk
kirk
Forumaster

Male Posts : 11037
Reputation : 653
Language : English,Vulcan,Klingon, Romulan,& Gorn

Back to top Go down

online statistics script, i want to move it Empty Re: online statistics script, i want to move it

Post by XDirect12345 May 9th 2012, 6:45 pm

any other ideas?
XDirect12345
XDirect12345
Forumember

Male Posts : 361
Reputation : 3
Language : English

http://xdirect12345.forummotion.com

Back to top Go down

online statistics script, i want to move it Empty Re: online statistics script, i want to move it

Post by ~@dikz~ May 9th 2012, 6:54 pm

I think kirk's idea is the best way.
~@dikz~
~@dikz~
Forumember

Male Posts : 363
Reputation : 4
Language : English & Tagalog
Location : Legazpi, Philippines - Bicol University

http://adikz.forumtl.com

Back to top Go down

online statistics script, i want to move it Empty Re: online statistics script, i want to move it

Post by XDirect12345 May 11th 2012, 7:56 pm

neh, iframes dont work for me I d rather just embedd the source code, LGforum did it on his site? Is there a way to make it similar?
XDirect12345
XDirect12345
Forumember

Male Posts : 361
Reputation : 3
Language : English

http://xdirect12345.forummotion.com

Back to top Go down

online statistics script, i want to move it Empty Re: online statistics script, i want to move it

Post by LGforum May 12th 2012, 5:04 pm

The statistics on my site are grabbed from the statistics widget with Javascript.
LGforum
LGforum
Hyperactive

Male Posts : 2265
Reputation : 264
Language : English
Location : UK

Back to top Go down

online statistics script, i want to move it Empty Re: online statistics script, i want to move it

Post by XDirect12345 May 12th 2012, 7:19 pm

LGforum wrote:The statistics on my site are grabbed from the statistics widget with Javascript.

okay, so can you give me the code for the widget? Then I can take it from there.
XDirect12345
XDirect12345
Forumember

Male Posts : 361
Reputation : 3
Language : English

http://xdirect12345.forummotion.com

Back to top Go down

online statistics script, i want to move it Empty Re: online statistics script, i want to move it

Post by LGforum May 13th 2012, 12:47 am

There is no code for it. Its a widget provided by forumotion, in widgets management.
LGforum
LGforum
Hyperactive

Male Posts : 2265
Reputation : 264
Language : English
Location : UK

Back to top Go down

online statistics script, i want to move it Empty Re: online statistics script, i want to move it

Post by XDirect12345 May 13th 2012, 6:36 am

okay, so do I put
Code:
#onlinestats
in the javascript or would it be
Code:
.onlinestats
? Or would they be separate widget names?
XDirect12345
XDirect12345
Forumember

Male Posts : 361
Reputation : 3
Language : English

http://xdirect12345.forummotion.com

Back to top Go down

online statistics script, i want to move it Empty Re: online statistics script, i want to move it

Post by XDirect12345 May 16th 2012, 6:26 pm

bump
XDirect12345
XDirect12345
Forumember

Male Posts : 361
Reputation : 3
Language : English

http://xdirect12345.forummotion.com

Back to top Go down

online statistics script, i want to move it Empty Re: online statistics script, i want to move it

Post by XDirect12345 May 19th 2012, 10:59 pm

bump
XDirect12345
XDirect12345
Forumember

Male Posts : 361
Reputation : 3
Language : English

http://xdirect12345.forummotion.com

Back to top Go down

online statistics script, i want to move it Empty Re: online statistics script, i want to move it

Post by LGforum May 20th 2012, 12:51 am

Well I'm not sure what your asking now?
LGforum
LGforum
Hyperactive

Male Posts : 2265
Reputation : 264
Language : English
Location : UK

Back to top Go down

online statistics script, i want to move it Empty Re: online statistics script, i want to move it

Post by XDirect12345 May 20th 2012, 3:46 am

okay, so whats the javascript and what do I put in it
XDirect12345
XDirect12345
Forumember

Male Posts : 361
Reputation : 3
Language : English

http://xdirect12345.forummotion.com

Back to top Go down

online statistics script, i want to move it Empty Re: online statistics script, i want to move it

Post by XDirect12345 May 23rd 2012, 1:59 am

bump
XDirect12345
XDirect12345
Forumember

Male Posts : 361
Reputation : 3
Language : English

http://xdirect12345.forummotion.com

Back to top Go down

online statistics script, i want to move it Empty Re: online statistics script, i want to move it

Post by XDirect12345 May 23rd 2012, 6:34 pm

XDirect12345 wrote:okay, so whats the javascript and what do I put in it

Bump
XDirect12345
XDirect12345
Forumember

Male Posts : 361
Reputation : 3
Language : English

http://xdirect12345.forummotion.com

Back to top Go down

online statistics script, i want to move it Empty Re: online statistics script, i want to move it

Post by XDirect12345 May 27th 2012, 7:41 pm

bump
XDirect12345
XDirect12345
Forumember

Male Posts : 361
Reputation : 3
Language : English

http://xdirect12345.forummotion.com

Back to top Go down

online statistics script, i want to move it Empty Re: online statistics script, i want to move it

Post by LGforum May 28th 2012, 6:00 pm

XDirect12345 wrote:okay, so whats the javascript and what do I put in it

I haven't answered because... I don't know. I don't know where you want to put it, what your circumstance is and what your wanting to do with it. Sorry. Your first post says 'somewhere' or 'a tab', maybe I'd need to visit your forum to get it a bit better.
LGforum
LGforum
Hyperactive

Male Posts : 2265
Reputation : 264
Language : English
Location : UK

Back to top Go down

online statistics script, i want to move it Empty Re: online statistics script, i want to move it

Post by XDirect12345 May 28th 2012, 11:13 pm

you put yours in a tab on AvacWeb, I was hoping to get something similar. My statistics tab is a HTML Page if that helps.

Is there anyway to get the stats that you have? I got the widgets but I just dont know how to achieve what I want.

I want the stats to be like yours from avacweb, under a tab. It sounds like Im plagiarizing, but im trying not to, sorry. I just trying to make it a little easier for users.

You can visit my forum if it helps, look at my statistics tab, you cant miss it.

Hopefully we can reach a compromise or a goal.
XDirect12345
XDirect12345
Forumember

Male Posts : 361
Reputation : 3
Language : English

http://xdirect12345.forummotion.com

Back to top Go down

online statistics script, i want to move it Empty Re: online statistics script, i want to move it

Post by LGforum May 28th 2012, 11:37 pm

Well it depends where you have you statistics widget.

When I visit your forum as a guest I see its the third and fourth ones down so this script would grab that widget put it in a new DIV, and when you click your statistics tab, it will display those statistics in the middle of the page where your forums are:
Code:

var showing_stats = false;
$(function(){
  var div = document.createElement('div');
  div.id = 'new_stats'; div.style.display = 'none';
  document.body.insertBefore(div, document.body.firstChild);
  var x = $('#left .forumline');
  div.appendChild(x[2]); div.appendChild(x[3]);
 $(document.getElementById('menu').firstChild.lastChild.firstChild).click(function(e) {
      e.preventDefault();
      var main = document.getElementById('main');
      if(showing_stats) {
          main.innerHTML = showing_stats;
          showing_stats = false;
      }
      else {
          showing_stats = main.innerHTML;
          main.innerHTML = document.getElementById('new_stats').innerHTML;     
      }

  });
});
Stick it in a JS file, and view it as a guest and I think you'll be very happy with the results Wink

...I was bored. Razz


Last edited by LGforum on May 29th 2012, 12:33 am; edited 1 time in total
LGforum
LGforum
Hyperactive

Male Posts : 2265
Reputation : 264
Language : English
Location : UK

Back to top Go down

online statistics script, i want to move it Empty Re: online statistics script, i want to move it

Post by XDirect12345 May 29th 2012, 12:26 am

its perfect, but one problem, its on the header, which I dont want. Smile
XDirect12345
XDirect12345
Forumember

Male Posts : 361
Reputation : 3
Language : English

http://xdirect12345.forummotion.com

Back to top Go down

online statistics script, i want to move it Empty Re: online statistics script, i want to move it

Post by LGforum May 29th 2012, 12:34 am

Oh yeah I missed a little bit out. The post above is edited and should work for you now.
Just know though, it will need changing should you change the position of those widgets.
LGforum
LGforum
Hyperactive

Male Posts : 2265
Reputation : 264
Language : English
Location : UK

Back to top Go down

online statistics script, i want to move it Empty Re: online statistics script, i want to move it

Post by XDirect12345 May 29th 2012, 12:39 am

okay, so how do I hide the who is online at the bottom without messing up the who is online in the statistics tab.
XDirect12345
XDirect12345
Forumember

Male Posts : 361
Reputation : 3
Language : English

http://xdirect12345.forummotion.com

Back to top Go down

online statistics script, i want to move it Empty Re: online statistics script, i want to move it

Post by LGforum May 29th 2012, 12:41 am

Well you can turn that off in the admin panel, I think it's in display tab, but I forget exactly and on my phone now. Someone else will maybe let you know soon. Turning it off there won't affect the widgets.
LGforum
LGforum
Hyperactive

Male Posts : 2265
Reputation : 264
Language : English
Location : UK

Back to top Go down

online statistics script, i want to move it Empty Re: online statistics script, i want to move it

Post by XDirect12345 May 29th 2012, 12:49 am

Is it possible to put the javascript on this page? http://xdirect12345.forumotion.com/h3-statistics-tab-page

I know it sounds like im restating the answer to my own question. But I want it to be in an HTML Page.

Code:
<Head>
bla bla bla...
<head>
<body>
javascript here
</body>

Is it possible to do it like this?
XDirect12345
XDirect12345
Forumember

Male Posts : 361
Reputation : 3
Language : English

http://xdirect12345.forummotion.com

Back to top Go down

Back to top

- Similar topics

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