WebArtz - The Web Design Forum
Welcome to WebArtz, Guest!

WebArtz is a nice place for discussions related to web designing and coding. We help our members to code their own website templates with HTML and CSS. We give them advice on various issues.

To know more about WebArtz Forum, visit the About Us page.

At the moment, you are viewing the forum as a guest. As a guest you can't make post and participate in discussions. You need to register and become a member of the forum. Click the register link below and become a part of this forum.

Thank You

WebArtz - The Web Design Forum
Welcome to WebArtz, Guest!

WebArtz is a nice place for discussions related to web designing and coding. We help our members to code their own website templates with HTML and CSS. We give them advice on various issues.

To know more about WebArtz Forum, visit the About Us page.

At the moment, you are viewing the forum as a guest. As a guest you can't make post and participate in discussions. You need to register and become a member of the forum. Click the register link below and become a part of this forum.

Thank You


You are not connected. Please login or register

View previous topic View next topic Go down  Message [Page 1 of 1]

magicm00n

magicm00n
Registered Member
Registered Member
Hi, I saw one of the forumotion forum that it had; Members connected during the last '127' hours. The limit is 99hours. How can I do this?

ankillien

ankillien
Administrator
Administrator
If it is a forumotion forum, I think the forum is faking it. They might have coded it to display 127 hours but actually it is 99 hours. I could be wrong Neutral

magicm00n

magicm00n
Registered Member
Registered Member
Oh I see. How can I fake it then?

ankillien

ankillien
Administrator
Administrator
For phpBB3, this code would work...

Code:
$(function(){
var tarPara = $('#i_whosonline').next('p').html();
var newTarPara = tarPara.replace(/24 hours/gi, "127 hours");
$('#i_whosonline').next('p').html(newTarPara);
});

Add the code in javascript management, for homepage. In admin panel it should be last 24 hours. If you want it to be different, you also need to change it in this line of code...

var newTarPara = tarPara.replace(/24 hours/gi, "127 hours");

siva

siva
Registered Member
Registered Member
Code:
jQuery(function() {
var x=document.getElementById('i_whosonline').nextSibling;
x.innerHTML = x.innerHTML.replace(/Members connected during last 99 hours :/g,"Members connected during last 12 hours:");
});

Im using in my phpBB3.

http://www.eegarai.net

magicm00n

magicm00n
Registered Member
Registered Member
LOL works. Tyvm ankillien! cheers

edit: and ty also siva urs works too Smile

ankillien

ankillien
Administrator
Administrator
Glad I could help Very Happy
Thanks siva, for your code.

Also, if you don't want to use the code, there is a loop hole in the admin panel which allows you to enter any number of hours with no limits, but better use the codes and not to exploit admin panel Razz

Solved | Locked

Sponsored content


View previous topic View next topic Back to top  Message [Page 1 of 1]

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