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 Thu Jul 11, 2013 6:32 pm

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 Mon Jul 22, 2013 7:34 am; edited 1 time in total
avatar
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 Thu Jul 11, 2013 6:37 pm

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 Thu Jul 11, 2013 6:44 pm

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 : 2585
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 Thu Jul 11, 2013 7:06 pm

Sorry not working
avatar
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 Thu Jul 11, 2013 7:08 pm

You have phpBB3 ?
avatar
levy
Hyperactive

Male Posts : 2585
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 Thu Jul 11, 2013 7:23 pm

yes
avatar
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 Thu Jul 11, 2013 8:07 pm

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 Thu Jul 11, 2013 8:13 pm

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 : 38241
Reputation : 2576
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 Fri Jul 12, 2013 10:21 am

@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 : 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 Sun Jul 14, 2013 3:59 pm

bump
avatar
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 Mon Jul 22, 2013 7:32 am

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
avatar
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 Mon Jul 22, 2013 7:36 am

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 : 2585
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 Mon Jul 22, 2013 7:55 am

I want them included in the tabs
avatar
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