Welcome Guest [Log In] [Register]
Support Staff Recommendation
All communities remaining on zIFBoards/InvisionFree should check their conversion opt-in selection in their Admin CP (menu item Tapatalk Conversion)
(Read More)
We hope you enjoy your visit.

You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.


Join our community!


If you're already a member please log in to your account to access all of our features:

Username:   Password:
Multiquote (on) Multiquote (off)
Add Reply
Forum Age
Topic Started: Nov 3 2017, 07:54 PM (601 Views)
Cory
Member Avatar
Member
[ *  *  *  *  *  *  *  *  * ]
Use this instead:
Code:
 
<script type="text/javascript">
//<![CDATA[
$(function() {
var pID = 'ROOT_ADMIN_PROFILE_ID';
var iMarker = $('#stats td:contains(Total Forum Posts:)').prev('td.c_mark').find('img').attr('src');
var gd = new Date();
var gMonth = gd.getMonth() + 1;
var gDate = gd.getDate();
var gYear = gd.getFullYear();
var textMonth = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'];
var numberMonth = ['1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12'];

$('#stats tr:has(td.c_foot)').before('<tr><th colspan="2">Forum Age</th></tr><tr><td class="c_mark"><img src="' + iMarker + '" alt="Age" /></td><td><span id="years" style="font-weight: 700"></span> Years <span id="months" style="font-weight: 700"></span> Months <span id="days" style="font-weight: 700"></span> Days</td></tr>');

$.get(main_url + 'profile/' + pID + '/?force_ads', function(data) {
var join = $('dl.user_info dt:contains(Joined)', data).next('dd').text();
var month;
month = join.split(' ')[0];
var date = join.split(' ')[1].split(',')[0];
var year = join.split(', ')[1];
var TMI = textMonth.indexOf(month);
month = numberMonth[TMI];
var nYear = gYear - year;
var nMonth = gMonth - month;
var nDate = gDate - date;
$('#years').text(nYear);
$('#months').text(nMonth);
$('#days').text(nDate);
});
});
//]]>
</script>
Offline Profile Quote Post Goto Top
 
Revillution.net
Member
[ *  *  * ]
Awesome. That works much better now. :) Thanks Cory! :)
Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · ZetaBoards Support · Next Topic »
Add Reply