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.

Help Me with statistic in tabs like this

View previous topic View next topic 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

Paradise
Forumember

Male Posts : 90
Reputation : 1
Language : English

http://www9.forumotion.com

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

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

levy
Hyperactive

Male Posts : 2582
Reputation : 345
Language : Romanian, English
Location : criticize artwork, not people!

http://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

Paradise
Forumember

Male Posts : 90
Reputation : 1
Language : English

http://www9.forumotion.com

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 ?

levy
Hyperactive

Male Posts : 2582
Reputation : 345
Language : Romanian, English
Location : criticize artwork, not people!

http://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

Paradise
Forumember

Male Posts : 90
Reputation : 1
Language : English

http://www9.forumotion.com

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

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.


SLGray
Administrator
Administrator

Male Posts : 36697
Reputation : 2445
Language : English
Location : United States

http://ztwds.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

Paradise
Forumember

Male Posts : 90
Reputation : 1
Language : English

http://www9.forumotion.com

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

Paradise
Forumember

Male Posts : 90
Reputation : 1
Language : English

http://www9.forumotion.com

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 seriousheadache in my phpbb2 forum version

see what I mean

Paradise
Forumember

Male Posts : 90
Reputation : 1
Language : English

http://www9.forumotion.com

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.

levy
Hyperactive

Male Posts : 2582
Reputation : 345
Language : Romanian, English
Location : criticize artwork, not people!

http://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

Paradise
Forumember

Male Posts : 90
Reputation : 1
Language : English

http://www9.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