View Full Version : Forum Home Enhancements - Site Life Status for vB 4
Boofo
01-15-2012, 05:02 PM
It's all phrased so you can just edit the phrases.
CoZmicShReddeR
01-29-2012, 07:50 PM
I guess this is a conflict issue with another plugin on my website...
I get this at the top of the forums page whenever I enable Site Life Status
Warning: Invalid CRT parameters detected in [path]\forum.php(650) : eval()'d code on line 34
Warning: Invalid CRT parameters detected in [path]\forum.php(650) : eval()'d code on line 34
Warning: Invalid CRT parameters detected in [path]\forum.php(650) : eval()'d code on line 34
Warning: Invalid CRT parameters detected in [path]\forum.php(650) : eval()'d code on line 34
Warning: Invalid CRT parameters detected in [path]\forum.php(650) : eval()'d code on line 34
Trying to use version Site Life 4.08 with VBulletin version 4.1.10
My Dragonbyte shout box looks unattached and the Xbox stats at the bottom are all out of alignment and the forum stats plugin gets messed up...
But the Site Life looks fine at the bottom... :)
Boofo
01-29-2012, 08:03 PM
Have you tried disabling some of those mods to see which one is causing the conflict?
doctorsexy
02-21-2012, 01:26 PM
No problems working well with 4.1.10..... thanks
Nirjonadda
02-22-2012, 05:58 PM
Installed. Works fine.
Ikarrus2
02-23-2012, 12:45 AM
Installed and works great. Thanks !!
I've installed this on two of my sites and it works perfect on one of them but on the other the Site Age does not display anything. Both sites are hosted by the same company, but I think on different servers. Can someone point me in the right direction to figure this out please?
Thanks.
hugly
03-26-2012, 12:09 PM
dear boofo , how can i use it for vb 3.8.7 ?
if u help me i d be very pleased.
thx
olalaaa
03-30-2012, 09:47 AM
Is there a way to make it only viewable for admins?
Boofo
03-30-2012, 10:00 AM
Is there a way to make it only viewable for admins?
You would need to wrap the code in a conditional.
Hippy
03-30-2012, 10:36 AM
Is there a way to make it only viewable for admins?
addif ($vbulletin->userinfo['usergroupid'] == 6)
{
======================================
Life Status Count Number Format
forumhome_complete plugin here
between the brackets
======================================
}
If I remember correctly ife Status Count Number Format plugin
if ($vbulletin->userinfo['usergroupid'] == 6)
{
if ($vbulletin->options['site_lifestatus_enable'] AND THIS_SCRIPT == 'index')
{
$pagehits_counter = $vbulletin->boofocounter;
$starttime = (TIMENOW - strtotime($vbulletin->options['site_lifestatus_startupdate']));
$starthour = $starttime / 3600;
$pagehits_hourly = vb_number_format($pagehits_counter / $starthour, 2);
$startday = $starttime / 86400;
$pagehits_daily = vb_number_format($pagehits_counter / $startday, 2);
$startweek = $starttime / 604800;
$pagehits_weekly = vb_number_format($pagehits_counter / $startweek, 2);
$startmonth = $starttime / 2628000;
$pagehits_monthly = vb_number_format($pagehits_counter / $startmonth, 2);
$startyear = $starttime / 31536000;
$pagehits_yearly = vb_number_format($pagehits_counter / $startyear, 2);
$pagehits_counter = vb_number_format($pagehits_counter);
if ($vbulletin->options['site_lifestatus_setlocale'])
{
setlocale(LC_TIME, $vbulletin->options['site_lifestatus_setlocale']);
}
else
{
setlocale(LC_TIME, 'en_US.utf8');
}
if ($vbulletin->options['site_lifestatus_datedisplay'])
{
$startdate = strftime($vbulletin->options['site_lifestatus_datedisplay'], strtotime($vbulletin->options['site_lifestatus_startupdate']));
}
else
{
$startdate = strftime('%A, %B %e, %Y at %l:%M %P', strtotime($vbulletin->options['site_lifestatus_startupdate']));
}
setlocale(LC_TIME, '');
$boofo_status = vB_Template::create('boofo_site_lifestatus');
$boofo_status->register('pagehits_counter', $pagehits_counter);
$boofo_status->register('pagehits_hourly', $pagehits_hourly);
$boofo_status->register('pagehits_daily', $pagehits_daily);
$boofo_status->register('pagehits_weekly', $pagehits_weekly);
$boofo_status->register('pagehits_monthly', $pagehits_monthly);
$boofo_status->register('pagehits_yearly', $pagehits_yearly);
$boofo_status->register('startdate', $startdate);
$template_hook['forumhome_wgo_pos3'] .= $boofo_status->render();
}
}
*warning I have not had my morning coffee
cause I'm thinking maybe the template needs the condition...
anyway the condition is correct ,, just got to add it to the right code ,,
Boofo
03-30-2012, 10:45 AM
Or:
if ($vbulletin->userinfo['usergroupid'] == 6)
{
$boofo_status = vB_Template::create('boofo_site_lifestatus');
$boofo_status->register('pagehits_counter', $pagehits_counter);
$boofo_status->register('pagehits_hourly', $pagehits_hourly);
$boofo_status->register('pagehits_daily', $pagehits_daily);
$boofo_status->register('pagehits_weekly', $pagehits_weekly);
$boofo_status->register('pagehits_monthly', $pagehits_monthly);
$boofo_status->register('pagehits_yearly', $pagehits_yearly);
$boofo_status->register('startdate', $startdate);
$template_hook['forumhome_wgo_pos3'] .= $boofo_status->render();
}
I rewrote it and added a setting for what users/usergroups can view it for my site. Since it is a total rewrite, I won't be releasing it here.
EasyEazy
05-29-2012, 07:53 PM
Installed and working great
Thanks for this mod
Lord Singo
05-30-2012, 09:43 AM
Any chance of a widget to add to the CMS?
Boofo
05-30-2012, 11:31 AM
Since I don't use the CMS, there are 2 chances for this to happen: slim and none. ;)
Pure Dope
07-28-2012, 10:42 PM
its saying the site is only 2 years old. its MUCH older than that.
Alibass
07-28-2012, 11:11 PM
Are you using single digits in your date like April 1, 1930 if you are change it to April 01, 1930
Pure Dope
07-29-2012, 12:15 AM
i dont think i set a date anywhere.
Alibass
07-29-2012, 12:28 AM
Mate you need to go into your admincp/options/site life status and setup your site status if you expect it to work... :rolleyes:
zakonline
07-31-2012, 06:19 AM
Very Nice :)
Bro_Joey_Gowdy
11-21-2012, 05:56 PM
Any way to get it to show up at the very bottom (below the newest registered member) ?
ljcomp
11-26-2012, 07:46 PM
So did boofo die or is it only support for this awesome mod which died?
I wouldreally like to change this;
Average visits to this page
Hourly
8.24
Daily
197.75
Weekly
1,384.28
Monthly
6,015.01
Yearly
72,180.11
So that it reads like this on my forum;
Average visits to this page
Hourly 8.24, Daily 197.75, Weekly 1,384.28, Monthly 6,015.01, Yearly 72,180.11.
Does anyone have any ideas?
Thanks
5 stars, marked as installed, most excellent!
Lynne
11-26-2012, 07:56 PM
So did boofo die or is it only support for this awesome mod which died?
RIP Boofo (https://vborg.vbsupport.ru/showthread.php?t=285589)
everydayforums
11-26-2012, 07:57 PM
One of the greatest Modders and developer of Vbulletin Boofo (ie Robert Ernest Hindal Jr) has passed away RIP
perhaps the greatest contributor to vbulletin period and we at pvgaming have been blessed to use much of his work! While I didn't know him a lot of his mods are very helpful and he helped shaped many of the features you see in forums today.
ljcomp
11-26-2012, 11:20 PM
Wow..I'm really sorry to hear this. RIP man.
Mark4865
01-01-2013, 01:58 PM
does this work on vb 4.2 if so were would I find the old site_life.js file to delete it as i cant seem to locate this
Gemma
01-02-2013, 09:22 AM
does this work on vb 4.2 if so were would I find the old site_life.js file to delete it as i cant seem to locate this
Works fine with vB4.2, I think the site_life.js file reference was for those that were upgrading from a previously installed version so you don't need to worry with that.
Mark4865
01-02-2013, 01:11 PM
Thanks Gemma brilliant got it working
Techno Cowboy
09-03-2015, 01:14 PM
Installed and working like a charm on vB 4.2.3 :up:
blind-eddie
04-01-2017, 02:36 PM
Why is the 3.8 version of this in modification graveyard?
oldfan
04-02-2023, 11:18 PM
Works great on 4.2.5. php 7.2
but the site age, keeps resetting :(
vBulletin® v3.8.12 by vBS, Copyright ©2000-2024, vBulletin Solutions Inc.