Help Me with statistic in tabs like this
4 posters
Page 1 of 1
Help Me with statistic in tabs like this
I want to have my forum quick stat, Who is online and chat box just like this one
source forum: http://www.webartzforum.com/
source forum: http://www.webartzforum.com/
Last edited by Paradise on July 22nd 2013, 1:34 pm; edited 1 time in total
Re: Help Me with statistic in tabs like this
it depends on what the forum is using as versions
i am not pretty sure that it works for phpBB 3
i am not pretty sure that it works for phpBB 3
Karim Patron- Forumember
- Posts : 55
Reputation : 4
Language : English, French, Arabic
Re: Help Me with statistic in tabs like this
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 :
Now go in your CSS and add that
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;
}
Re: Help Me with statistic in tabs like this
In the javescript you created, you need to mark on forum index only
Karim Patron- Forumember
- Posts : 55
Reputation : 4
Language : English, French, Arabic
Re: Help Me with statistic in tabs like this
Maybe Sanket will tell you have to do that, because he is a member of that forum.
Lost Founder's Password |Forum's Utilities |Report a Forum |General Rules |FAQ |Tricks & Tips
You need one post to send a PM.
You need one post to send a PM.
When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
Re: Help Me with statistic in tabs like this
Karim Patron wrote:In the javescript you created, you need to mark on forum index only
I didnt it exactly but yet no way
Re: Help Me with statistic in tabs like this
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
Members connected and birthdays are giving me serious headache in my phpbb2 forum version
see what I mean
Re: Help Me with statistic in tabs like this
Hello , check for this in your index_body :
And delete them.
- Code:
{L_CONNECTED_MEMBERS}
{L_WHOSBIRTHDAY_TODAY}
{L_WHOSBIRTHDAY_WEEK}
And delete them.
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum