Help Me with statistic in tabs like this

Go down

Help Me with statistic in tabs like this

Post by Paradise on July 12th 2013, 12:32 am

I want to have my forum quick stat, Who is online and chat box just like this one

source forum: http://www.webartzforum.com/


 


Last edited by Paradise on July 22nd 2013, 1:34 pm; edited 1 time in total
avatar
Paradise
Forumember

Male Posts : 105
Reputation : 1
Language : English

http://uniquecitizens.forumotion.com/u1

Back to top Go down

Re: Help Me with statistic in tabs like this

Post by Karim Patron on July 12th 2013, 12:37 am

it depends on what the forum is using as versions

i am not pretty sure that it works for phpBB 3
avatar
Karim Patron
Forumember

Posts : 55
Reputation : 4
Language : English, French, Arabic

Back to top Go down

Re: Help Me with statistic in tabs like this

Post by levy on July 12th 2013, 12:44 am

If you have phpBB2 / punBB : http://www.csshelp.net/t119-turn-statistics-into-tabs-phpbb2-and-punbb-only

for phpBB3 - create a new javascript and mark on forum index and fill with that :

Code:
$(function(e) {
('Copyright (c) 2012 - 2013 D World Oficial. All right reserved. Un script util pentru a da un nou aspect statisticilor pe versiunea phpbb3.');
$('.h3:contains("Cine este conectat?")').before('<li style="display: inline; margin: 10px 5px 0 0px; float: left;"><span onclick="whos()" style="background-color: #DDE7F0;  clear: both;  padding: 5px 10px;margin: 5px 0 -6px;border-radius: 3px 3px 0 0;">Who is online</span></li><div id="onlinestats"></div><li style="display: inline; position: relative; top: 10px;"><span onclick="stats()" style="background-color: #DDE7F0;  clear: both;  padding: 5px 10px; margin: 5px 5px -6px 0px; border-radius: 3px 3px 0 0;">Statistici</span></li><div id="laststats" style="float: right; display: none;"></div><li style="display: inline; position: relative; top: 10px;"><span onclick="chatbox()" style="background-color: #DDE7F0;  clear: both;  padding: 5px 10px;margin: 5px 5px 0 0px;border-radius: 3px 3px 0 0;">Chatbox</span></li><div id="chatstats" style="display: none;"></div><li style="display: inline; position: relative; top: 10px;"><span onclick="newtab()" style="background-color: #DDE7F0;  clear: both;  padding: 5px 10px;margin: 5px 0 -6px;border-radius: 3px 3px 0 0;">Newtab</span></li><div id="newtab" style="display: none;"></div>');

// Stats / Whosonline / Chatbox / Newtab
$('.h3:contains("Cine este conectat?"), #i_whosonline +p').prependTo('#onlinestats');
$('.h3:contains("Statistici"), p.page-bottom').appendTo('#laststats');
$('.h3:contains("Chatbox")').prependTo('#chatstats');
$('div.page-bottom, #chatbox_popup').remove();
});

// Function show/hide active element.
function whos() {
document.getElementById("onlinestats").style.display= 'inline';
$('#laststats, #chatstats, #newtab').hide();
}

// Function show/hide active element.
function stats() {
document.getElementById("laststats").style.display= 'inline';
$('#onlinestats, #chatstats, #newtab').hide();
}

// Function show/hide active element.
function chatbox() {
document.getElementById("chatstats").style.display= 'inline';
$('#onlinestats, #laststats, #newtab').hide();
}

// Function show/hide active element.
function newtab() {
document.getElementById("newtab").style.display= 'inline';
$('#onlinestats, #laststats, #chatstats').hide();
}

 Now go in your CSS and add that

Code:
#onlinestats, #laststats, #chatstats, #newtab {
background-color: #DDE7F0;
clear: both;
padding: 3px 10px;
width: 700px;
margin: 5px 0;
border-radius: 0 3px 3px 3px;
float: left!important;
}

#onlinestats .h3, #laststats .h3, #chatstats .h3 {
margin-top: 0;
}
avatar
levy
Hyperactive

Male Posts : 2587
Reputation : 346
Language : Romanian, English
Location : criticize artwork, not people!

https://help.forumotion.com/

Back to top Go down

Re: Help Me with statistic in tabs like this

Post by Paradise on July 12th 2013, 1:06 am

Sorry not working
avatar
Paradise
Forumember

Male Posts : 105
Reputation : 1
Language : English

http://uniquecitizens.forumotion.com/u1

Back to top Go down

Re: Help Me with statistic in tabs like this

Post by levy on July 12th 2013, 1:08 am

You have phpBB3 ?
avatar
levy
Hyperactive

Male Posts : 2587
Reputation : 346
Language : Romanian, English
Location : criticize artwork, not people!

https://help.forumotion.com/

Back to top Go down

Re: Help Me with statistic in tabs like this

Post by Paradise on July 12th 2013, 1:23 am

yes
avatar
Paradise
Forumember

Male Posts : 105
Reputation : 1
Language : English

http://uniquecitizens.forumotion.com/u1

Back to top Go down

Re: Help Me with statistic in tabs like this

Post by Karim Patron on July 12th 2013, 2:07 am

In the javescript you created, you need to mark on forum index only
avatar
Karim Patron
Forumember

Posts : 55
Reputation : 4
Language : English, French, Arabic

Back to top Go down

Re: Help Me with statistic in tabs like this

Post by SLGray on July 12th 2013, 2:13 am

Maybe Sanket will tell you have to do that, because he is a member of that forum.


When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.

avatar
SLGray
Administrator
Administrator

Male Posts : 43521
Reputation : 3094
Language : English
Location : United States

http://fmthemesdesignteam.forumotion.com/

Back to top Go down

Re: Help Me with statistic in tabs like this

Post by Paradise on July 12th 2013, 4:21 pm

@Karim Patron wrote:In the javescript you created, you need to mark on forum index only

 I didnt it exactly but yet no way
avatar
Paradise
Forumember

Male Posts : 105
Reputation : 1
Language : English

http://uniquecitizens.forumotion.com/u1

Back to top Go down

Re: Help Me with statistic in tabs like this

Post by Paradise on July 14th 2013, 9:59 pm

bump
avatar
Paradise
Forumember

Male Posts : 105
Reputation : 1
Language : English

http://uniquecitizens.forumotion.com/u1

Back to top Go down

Re: Help Me with statistic in tabs like this

Post by Paradise on July 22nd 2013, 1:32 pm

I have tried to get that kind of statistic on my forum but I got a problem.... 

Members connected and birthdays are giving me serious headache in my phpbb2 forum version

see what I mean
avatar
Paradise
Forumember

Male Posts : 105
Reputation : 1
Language : English

http://uniquecitizens.forumotion.com/u1

Back to top Go down

Re: Help Me with statistic in tabs like this

Post by levy on July 22nd 2013, 1:36 pm

Hello , check for this in your index_body :

Code:
 {L_CONNECTED_MEMBERS}
 {L_WHOSBIRTHDAY_TODAY}
 {L_WHOSBIRTHDAY_WEEK}

And delete them.
avatar
levy
Hyperactive

Male Posts : 2587
Reputation : 346
Language : Romanian, English
Location : criticize artwork, not people!

https://help.forumotion.com/

Back to top Go down

Re: Help Me with statistic in tabs like this

Post by Paradise on July 22nd 2013, 1:55 pm

I want them included in the tabs
avatar
Paradise
Forumember

Male Posts : 105
Reputation : 1
Language : English

http://uniquecitizens.forumotion.com/u1

Back to top Go down

Back to top


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