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.

Separate forum member statistics

3 posters

Page 1 of 2 1, 2  Next

Go down

Solved Separate forum member statistics

Post by TheCrow October 15th 2014, 12:00 pm

Hello,

Is there a way to brake the forum member statistics to separated ones as provided below?
Separate forum member statistics Q5EFPp7

Edit: I don't want them to be where they are shown. I will modify them as i want. I only want to separate them to 4 parts where i can modify each part differently.

Regards,
MrMind.
TheCrow
TheCrow
Manager
Manager

Male Posts : 6916
Reputation : 795
Language : Greek, English

https://www.inforumgr.com

Back to top Go down

Solved Re: Separate forum member statistics

Post by Ange Tuteur October 15th 2014, 5:17 pm

Hello MrMind,

There are a few variables, and some of these contents may not be separable. See below :

{L_WHO_IS_ONLINE} : the language variable of "Who is online ?"
{TOTAL_POSTS} : "Our users have posted a total of n message(s)"
{TOTAL_USERS} : "We have n registered user(s)"
{NEWEST_USER} : "The newest registered user is {USER}"
{TOTAL_USERS_ONLINE} : "In total there is n user(s) online :: n Registered, n Hidden and n Guest(s)"
{RECORD_USERS} : "Most users ever online was n on {DATE_AND_TIME}"
{LOGGED_IN_USER_LIST} : "Registered Users: {USER_LIST}"
{L_CONNECTED_MEMBERS} : "Members connected during last n hour(s) : {USER_LIST}"
{L_WHOSBIRTHDAY_TODAY} : Birthdays happening today
{L_WHOSBIRTHDAY_WEEK} : Upcoming birthdays
{LEGEND} : Language of "Legend" texts
{GROUP_LEGEND} : Groups list
{TOTAL_CHATTERS_ONLINE} : "There are currently n user(s) on the ChatBox : "
{CHATTERS_LIST} : Users logged into chatbox


That's about all the variables that you can use in the statistics of the index_body template. You'll mostly need to move them around to where you want them.
Ange Tuteur
Ange Tuteur
Forumaster

Male Posts : 13207
Reputation : 3000
Language : English & 日本語
Location : Pennsylvania

https://fmdesign.forumotion.com

Back to top Go down

Solved Re: Separate forum member statistics

Post by _Twisted_Mods_ October 15th 2014, 7:30 pm

im working on something right now as soon as i finish getting this js right ill post on here ange helped me tons with it already
_Twisted_Mods_
_Twisted_Mods_
Helper
Helper

Male Posts : 2083
Reputation : 336
Language : English
Location : Ms

http://liquidcode.forumotion.com

Back to top Go down

Solved Re: Separate forum member statistics

Post by TheCrow October 15th 2014, 8:37 pm

Is there a way to change the texts of those variables?



Separate forum member statistics Thecro10
Forum of the Forums

Forumotion Rules | Tips & Tricks |
FAQ | Did you forget your password?



*** The Support Forum will never ask you for your email or password, so please do not post them anywhere! ***
No support via PM!
TheCrow
TheCrow
Manager
Manager

Male Posts : 6916
Reputation : 795
Language : Greek, English

https://www.inforumgr.com

Back to top Go down

Solved Re: Separate forum member statistics

Post by _Twisted_Mods_ October 15th 2014, 8:58 pm

yea with js here ill give u what iv been working on so u can see... its not finished but it give u a good idea


css

Code:
div.scrollable {
    width: 280px;
    height: 70px;
    margin: 0;
    padding-left: 15;
    overflow: auto;
      font-size: 75%;
  color:blue;}

.onlineuserst {
    border: 1px solid black;
width: 40%;
}
#onlineuserst td{
    border: 1px solid black;


}


html

replace the whole table that the contents are in with this

Code:
<table Id="onlineuserst">

<tr>
<td><img src="http://i884.photobucket.com/albums/ac50/TwistedKilla/Forumotion/total_zpsf92216c1.png"></td>
<td align="center"><img src="http://i884.photobucket.com/albums/ac50/TwistedKilla/Forumotion/tousers_zps78e0dbe3.png"></td>
</tr>


<tr>
<td align="center">{TOTAL_POSTS}</td>
<td align="center">{TOTAL_USERS_ONLINE}</td>
</tr>

<tr>
<td><img src="http://i884.photobucket.com/albums/ac50/TwistedKilla/Forumotion/totalu_zpsf9db7ef6.png"></td>
<td align="center"><img src="http://i884.photobucket.com/albums/ac50/TwistedKilla/Forumotion/orusers_zpscb15b407.png"></td>
</tr>

<tr>
  <td align="center">{TOTAL_USERS}</td>
<td rowspan="3"><div class=scrollable>{LOGGED_IN_USER_LIST}</div></td>
</tr>

<tr>
<td><img src="http://i884.photobucket.com/albums/ac50/TwistedKilla/Forumotion/newest_zps6a46e4b4.png"></td>
</tr>

<tr>
<td align="center">{NEWEST_USER}</td>
</tr>

<tr>
<td colspan="2">Legend :  {GROUP_LEGEND}</td>
</tr>


<script type="text/javascript">(function() {
                      var who = document.getElementById('onlineuserst');
                      who.innerHTML = who.innerHTML.replace(/(\In total there is \d+ user online ::)/,'').replace(/(\d+ Registered)/,'<span class="users1">$1</span>').replace(/(\d+ Hidden)/,'<span class="users2">$1</span>').replace(/(\d+ Guests)/,'<span class="users3">$1</span>').replace(/(\We have )/,'');
                    })();</script>



                    <script type="text/javascript">(function() {
                      var who = document.getElementById('onlineuserst');
                      who.innerHTML = who.innerHTML.replace(new RegExp('Registered Users: '), '').replace(new RegExp('Our users have posted a total of '), '')
})();</script>

</table>
_Twisted_Mods_
_Twisted_Mods_
Helper
Helper

Male Posts : 2083
Reputation : 336
Language : English
Location : Ms

http://liquidcode.forumotion.com

Back to top Go down

Solved Re: Separate forum member statistics

Post by TheCrow October 15th 2014, 9:08 pm

Thanks for your help! Could you please send me a picture of how this will be after i replace & add the codes you send me? To see if i like it! :/


Separate forum member statistics Thecro10
Forum of the Forums

Forumotion Rules | Tips & Tricks |
FAQ | Did you forget your password?



*** The Support Forum will never ask you for your email or password, so please do not post them anywhere! ***
No support via PM!
TheCrow
TheCrow
Manager
Manager

Male Posts : 6916
Reputation : 795
Language : Greek, English

https://www.inforumgr.com

Back to top Go down

Solved Re: Separate forum member statistics

Post by _Twisted_Mods_ October 15th 2014, 9:16 pm

remember its not finished but here it is

Separate forum member statistics Notfinished_zps9ac80fa2
_Twisted_Mods_
_Twisted_Mods_
Helper
Helper

Male Posts : 2083
Reputation : 336
Language : English
Location : Ms

http://liquidcode.forumotion.com

Back to top Go down

Solved Re: Separate forum member statistics

Post by TheCrow October 15th 2014, 9:19 pm

That is indeed excellent job! If you can give me the simple code. Not with delicacy and staff because i will change it. Just the simple one with the basic staff (title and content) and i will manage further more! Great job and thanks for your effort!


Separate forum member statistics Thecro10
Forum of the Forums

Forumotion Rules | Tips & Tricks |
FAQ | Did you forget your password?



*** The Support Forum will never ask you for your email or password, so please do not post them anywhere! ***
No support via PM!
TheCrow
TheCrow
Manager
Manager

Male Posts : 6916
Reputation : 795
Language : Greek, English

https://www.inforumgr.com

Back to top Go down

Solved Re: Separate forum member statistics

Post by _Twisted_Mods_ October 15th 2014, 9:23 pm

little lost on what ur asking for .. maybe a screenshot with some highlighted areas showing me what you want
_Twisted_Mods_
_Twisted_Mods_
Helper
Helper

Male Posts : 2083
Reputation : 336
Language : English
Location : Ms

http://liquidcode.forumotion.com

Back to top Go down

Solved Re: Separate forum member statistics

Post by TheCrow October 15th 2014, 9:27 pm

The way it is as soon as it is finished! No changes. I will do them my self don't worry. As soon as you finish it tell me! Thanks!


Separate forum member statistics Thecro10
Forum of the Forums

Forumotion Rules | Tips & Tricks |
FAQ | Did you forget your password?



*** The Support Forum will never ask you for your email or password, so please do not post them anywhere! ***
No support via PM!
TheCrow
TheCrow
Manager
Manager

Male Posts : 6916
Reputation : 795
Language : Greek, English

https://www.inforumgr.com

Back to top Go down

Solved Re: Separate forum member statistics

Post by _Twisted_Mods_ October 15th 2014, 9:34 pm

k just waiting on ange to help with last part of the js and ill be done
_Twisted_Mods_
_Twisted_Mods_
Helper
Helper

Male Posts : 2083
Reputation : 336
Language : English
Location : Ms

http://liquidcode.forumotion.com

Back to top Go down

Solved Re: Separate forum member statistics

Post by TheCrow October 15th 2014, 11:25 pm

If i may ask. The javascripts inside the codes you already sent what are they for?


Separate forum member statistics Thecro10
Forum of the Forums

Forumotion Rules | Tips & Tricks |
FAQ | Did you forget your password?



*** The Support Forum will never ask you for your email or password, so please do not post them anywhere! ***
No support via PM!
TheCrow
TheCrow
Manager
Manager

Male Posts : 6916
Reputation : 795
Language : Greek, English

https://www.inforumgr.com

Back to top Go down

Solved Re: Separate forum member statistics

Post by _Twisted_Mods_ October 15th 2014, 11:30 pm

replacing text with nothing and adding a span around somethings so i can edit them in css
_Twisted_Mods_
_Twisted_Mods_
Helper
Helper

Male Posts : 2083
Reputation : 336
Language : English
Location : Ms

http://liquidcode.forumotion.com

Back to top Go down

Solved Re: Separate forum member statistics

Post by TheCrow October 15th 2014, 11:40 pm

I didn't understand but it doesn't matter.
All i can see is grabbing the text and do nothing. You know something better to do it that way! I will wait to see the result!


Separate forum member statistics Thecro10
Forum of the Forums

Forumotion Rules | Tips & Tricks |
FAQ | Did you forget your password?



*** The Support Forum will never ask you for your email or password, so please do not post them anywhere! ***
No support via PM!
TheCrow
TheCrow
Manager
Manager

Male Posts : 6916
Reputation : 795
Language : Greek, English

https://www.inforumgr.com

Back to top Go down

Solved Re: Separate forum member statistics

Post by _Twisted_Mods_ October 16th 2014, 12:30 am

Ok 50% of the credit goes to Ange Tuteur for all her help with this because i could not have completed this without her


Note: in the bottom right corner when you get enough users online to fill the box there is a scroll bar so the table wont expand

Separate forum member statistics Finalyfinished_zps923e5d24



css



Code:
div.scrollable {
    width: 280px;
    height: 70px;
    margin: 0;
    padding-left: 15;
    overflow: auto;
      font-size: 75%;
  color:blue;}

#onlineuserst { font-size:75%; }
#onlineuserst td{
clear: both;
    border: 1px solid black; !important
   font-size: small !important;
}
.users1{color: green;}
.users2{color: #0099FF;}
.users3{color: red;}

html




Code:
<table Id="onlineuserst">

<tr>
<td><img src="http://i884.photobucket.com/albums/ac50/TwistedKilla/Forumotion/total_zpsf92216c1.png"></td>
<td align="center"><img src="http://i884.photobucket.com/albums/ac50/TwistedKilla/Forumotion/tousers_zps78e0dbe3.png"></td>
</tr>


<tr>
<div class=tbfontsize>
<td align="center">{TOTAL_POSTS}</td>
<td align="center">{TOTAL_USERS_ONLINE}</td>
</div>
</tr>


<tr>
<td><img src="http://i884.photobucket.com/albums/ac50/TwistedKilla/Forumotion/totalu_zpsf9db7ef6.png"></td>
<td align="center"><img src="http://i884.photobucket.com/albums/ac50/TwistedKilla/Forumotion/orusers_zpscb15b407.png"></td>
</tr>


<tr>
<div class=tbfontsize>
  <td align="center">{TOTAL_USERS}</td></div>
<td rowspan="3"><div class=scrollable>{LOGGED_IN_USER_LIST}</div></td>

</tr>


<tr>
<td><img src="http://i884.photobucket.com/albums/ac50/TwistedKilla/Forumotion/newest_zps6a46e4b4.png"></td>
</tr>


<tr>
<div class=tbfontsize>
<td align="center">{NEWEST_USER}</td>
</div>
</tr>


<tr>
<div class=tbfontsize>
<td colspan="2">Legend :  {GROUP_LEGEND}</td>
</div>
</tr>


 <script type="text/javascript">(function() {
                      var who = document.getElementById('onlineuserst');
                      who.innerHTML = who.innerHTML.replace(/(\Registered Users: )/,'').replace(/In total there is <strong>\d+<\/strong> (user|users) online :: /,'').replace(new RegExp('Our users have posted a total of '), '').replace(new RegExp('We have '), '').replace(/(\The newest registered user is )/,'').replace(/(\d+ Registered)/,'<span class="users1">$1</span>').replace(/(\d+ Hidden)/,'<span class="users2">$1</span>').replace(/(\d+ Guests)/,'<span class="users3">$1</span>');
                    })();</script>


</table>
_Twisted_Mods_
_Twisted_Mods_
Helper
Helper

Male Posts : 2083
Reputation : 336
Language : English
Location : Ms

http://liquidcode.forumotion.com

Back to top Go down

Solved Re: Separate forum member statistics

Post by _Twisted_Mods_ October 16th 2014, 12:35 am

think someone broke the bb code because its not working right its showing up in post
_Twisted_Mods_
_Twisted_Mods_
Helper
Helper

Male Posts : 2083
Reputation : 336
Language : English
Location : Ms

http://liquidcode.forumotion.com

Back to top Go down

Solved Re: Separate forum member statistics

Post by TheCrow October 16th 2014, 12:38 pm

Ok. Is there any way that this code changing via the templates would stay only on forum index?
Because by viewing it before publishing, it is displayable to all pages.

Also, by viewing it before publishing the avatars of the recent topic widget disappeared. Should i be worried about that?


Separate forum member statistics Thecro10
Forum of the Forums

Forumotion Rules | Tips & Tricks |
FAQ | Did you forget your password?



*** The Support Forum will never ask you for your email or password, so please do not post them anywhere! ***
No support via PM!
TheCrow
TheCrow
Manager
Manager

Male Posts : 6916
Reputation : 795
Language : Greek, English

https://www.inforumgr.com

Back to top Go down

Solved Re: Separate forum member statistics

Post by _Twisted_Mods_ October 16th 2014, 7:13 pm

just save a backup of what it is now just incase so if it does effect it you can replace it
_Twisted_Mods_
_Twisted_Mods_
Helper
Helper

Male Posts : 2083
Reputation : 336
Language : English
Location : Ms

http://liquidcode.forumotion.com

Back to top Go down

Solved Re: Separate forum member statistics

Post by TheCrow October 17th 2014, 11:40 am

Is there a way that i can make only the Total Users Online with less word as you provided it?


Separate forum member statistics Thecro10
Forum of the Forums

Forumotion Rules | Tips & Tricks |
FAQ | Did you forget your password?



*** The Support Forum will never ask you for your email or password, so please do not post them anywhere! ***
No support via PM!
TheCrow
TheCrow
Manager
Manager

Male Posts : 6916
Reputation : 795
Language : Greek, English

https://www.inforumgr.com

Back to top Go down

Solved Re: Separate forum member statistics

Post by _Twisted_Mods_ October 17th 2014, 4:04 pm

yea that what the script is at the bottom of the code but because your forum is not in English it dont work so you will have to go threw and replace the words in your language
_Twisted_Mods_
_Twisted_Mods_
Helper
Helper

Male Posts : 2083
Reputation : 336
Language : English
Location : Ms

http://liquidcode.forumotion.com

Back to top Go down

Solved Re: Separate forum member statistics

Post by TheCrow October 17th 2014, 5:42 pm

Ok,

1. Well at first i get a red mark in the code:
Separate forum member statistics 6nLCxKw
Any clue why is that?

2.
Code:
<script type="text/javascript">(function() {
var who = document.getElementById('onlineuserst');
who.innerHTML = who.innerHTML.replace(/(\Registered Users: )/,'').replace(/In total there is <strong>\d+<\/strong> (user|users) online :: /,'').replace(new RegExp('Our users have posted a total of '), '').replace(new RegExp('We have '), '').replace(/(\The newest registered user is )/,'').replace(/(\d+ Registered)/,'<span class="users1">$1</span>').replace(/(\d+ Hidden)/,'<span class="users2">$1</span>').replace(/(\d+ Guests)/,'<span class="users3">$1</span>');
})();</script>
Which parts must i change?


Separate forum member statistics Thecro10
Forum of the Forums

Forumotion Rules | Tips & Tricks |
FAQ | Did you forget your password?



*** The Support Forum will never ask you for your email or password, so please do not post them anywhere! ***
No support via PM!
TheCrow
TheCrow
Manager
Manager

Male Posts : 6916
Reputation : 795
Language : Greek, English

https://www.inforumgr.com

Back to top Go down

Solved Re: Separate forum member statistics

Post by _Twisted_Mods_ October 17th 2014, 5:55 pm

copy and paste the Total Users Online text so i can try to translate it and give u the code
_Twisted_Mods_
_Twisted_Mods_
Helper
Helper

Male Posts : 2083
Reputation : 336
Language : English
Location : Ms

http://liquidcode.forumotion.com

Back to top Go down

Solved Re: Separate forum member statistics

Post by TheCrow October 17th 2014, 6:19 pm

4 χρήστες είναι συνδεδεμένοι αυτήν την στιγμή:: 1 μέλος, 0 μη ορατοί και 3 επισκέπτες :: 1 μηχανή αναζήτησης
------------------------
4 users are connected at the moment:: 1 registered, 0 hidden and 3 visitors :: 1 search engine (bot)


Separate forum member statistics Thecro10
Forum of the Forums

Forumotion Rules | Tips & Tricks |
FAQ | Did you forget your password?



*** The Support Forum will never ask you for your email or password, so please do not post them anywhere! ***
No support via PM!
TheCrow
TheCrow
Manager
Manager

Male Posts : 6916
Reputation : 795
Language : Greek, English

https://www.inforumgr.com

Back to top Go down

Solved Re: Separate forum member statistics

Post by _Twisted_Mods_ October 17th 2014, 6:40 pm

replace


Code:
.replace(/In total there is <strong>\d+<\/strong> (user|users) online :: /,'')



with

Code:
.replace(/<strong>\d+<\/strong> (χρήστη|χρήστες) είναι συνδεδεμένοι αυτήν την στιγμή:: /,'')
_Twisted_Mods_
_Twisted_Mods_
Helper
Helper

Male Posts : 2083
Reputation : 336
Language : English
Location : Ms

http://liquidcode.forumotion.com

Back to top Go down

Solved Re: Separate forum member statistics

Post by TheCrow October 17th 2014, 8:10 pm

That does not work but don't mind that. My main problem is how to make those statistics be displayed only to the homepage.


Separate forum member statistics Thecro10
Forum of the Forums

Forumotion Rules | Tips & Tricks |
FAQ | Did you forget your password?



*** The Support Forum will never ask you for your email or password, so please do not post them anywhere! ***
No support via PM!
TheCrow
TheCrow
Manager
Manager

Male Posts : 6916
Reputation : 795
Language : Greek, English

https://www.inforumgr.com

Back to top Go down

Solved Re: Separate forum member statistics

Post by _Twisted_Mods_ October 17th 2014, 8:18 pm

does it diplay on every page or homepage and portal
_Twisted_Mods_
_Twisted_Mods_
Helper
Helper

Male Posts : 2083
Reputation : 336
Language : English
Location : Ms

http://liquidcode.forumotion.com

Back to top Go down

Solved Re: Separate forum member statistics

Post by TheCrow October 17th 2014, 8:21 pm

On everypage. In posts, subforums, subcategories, portal, calendar, gallery, etc. Everywhere!


Separate forum member statistics Thecro10
Forum of the Forums

Forumotion Rules | Tips & Tricks |
FAQ | Did you forget your password?



*** The Support Forum will never ask you for your email or password, so please do not post them anywhere! ***
No support via PM!
TheCrow
TheCrow
Manager
Manager

Male Posts : 6916
Reputation : 795
Language : Greek, English

https://www.inforumgr.com

Back to top Go down

Solved Re: Separate forum member statistics

Post by _Twisted_Mods_ October 17th 2014, 9:33 pm

ok let me get on my test forum cuz i use phpbb2 normaly and it only shows on the homepage so maybe its a punbb thing
_Twisted_Mods_
_Twisted_Mods_
Helper
Helper

Male Posts : 2083
Reputation : 336
Language : English
Location : Ms

http://liquidcode.forumotion.com

Back to top Go down

Solved Re: Separate forum member statistics

Post by _Twisted_Mods_ October 17th 2014, 9:43 pm

idk maybe its a js your useing or you put some code in your overall footer because it only shows on my home page on phpbb2 and punbb
_Twisted_Mods_
_Twisted_Mods_
Helper
Helper

Male Posts : 2083
Reputation : 336
Language : English
Location : Ms

http://liquidcode.forumotion.com

Back to top Go down

Solved Re: Separate forum member statistics

Post by Ange Tuteur October 17th 2014, 10:55 pm

Hi MrMind,

Is the code in your index_body template wrapped with these comments ?
Code:
<!-- BEGIN disable_viewonline -->

<!-- END disable_viewonline -->
Ange Tuteur
Ange Tuteur
Forumaster

Male Posts : 13207
Reputation : 3000
Language : English & 日本語
Location : Pennsylvania

https://fmdesign.forumotion.com

Back to top Go down

Page 1 of 2 1, 2  Next

Back to top

- Similar topics

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