The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Site Life Status for vB 4 Details »» | |||||||||||||||||||||||||||||||||
Site Life Status for vB 4
Version 1.0.4 (By Boofo) What does this product do? This product will add a Site Life Status info area, including Site Startup Date, Site Age, Site Location, Pagehits counter and Average visits, to your forumhome What's Going On box. NOTE: The maximum counter value will depend on your system. The maximum signed integer value for 32 bit systems is 2147483647 (or 2,147,483,647), while the maximum signed integer value for 64 bit systems is 9223372036854775807 (or 9,223,372,036,854,775,807). These are the highest numbers this counter will be able to count to, depending on your system. Version Information: Version 1.0.0 --Initial release for vB 4 Version 1.0.1 --Added Site Life Status Date Display Format option to settings. Version 1.0.2 --Added Site Life Status Locale option to settings. This will allow you to display the Site Life Status Date Display Format day and month name in your local language. Version 1.0.3 --Fixed for WGO style changes in vB 4.0.8. (Site_Life_Status_vb4.08.zip only) Version 1.0.4 --Reverted back to the original js file because of the timer messing up with the added leap year code. Credits: A thank you goes out to Shawn Dean for supplying the original javascript code for the Site Age counter. Installation overview: ------------------------------- 1 Product XML (5 Plugins, 36 Phrases, 1 template, 7 settings and 1 file) ------------------------------- Installation Instructions: ------------------------------- 1. Upload site_life_status.js to the forums/clientscript folder on your site. NOTE: You will need to delete the old site_life.js file as the new one has been renamed. ------------------------------- 2. Go to your Admin CP Scroll down to 'Plugin System' Click 'Manage Products' Click 'Add/Import Product' Click the 'Browse' button, and locate the product-boofo_site_lifestatus.xml file on your computer 3. Go to your Admin CP -> vBulletin Options -> Site Life Status and set the following options: --Site Life Status Enable: Enable/Disable the Site Life Status. --Site Life Status Startup Date: Enter your site startup date. --Site Life Status Location: Type your site location in here. If you do not wish for your location to be shown, leave this option blank. --Update the page views counter to the value below? If you want to change the current page views counter value on forumhome to the value provided below, set this to "Yes" - it will automatically be reset to "No" once the new value has been set (at the next page view). --Site Life Status Forumhome Page Views Counter: Enter the number of page views, without commas, to start the page views count at. (Example: 16897) --Site Life Status Locale: Set your system locale here. This will allow the Site Life Status Date Display Format below to display the month and day names in your local language. --Site Life Status Date Display Format: Enter the date and time format you want the Site Startup Date to display on the forumhome. ------------------------------- Done! Enjoy! Code:
if ($mark_as_installed != 'clicked') { $you_get = 'squat'; } else { $you_get = 'support'; } Download Now
Screenshots
Show Your Support
|
2 благодарности(ей) от: | ||
Teascu Dorin, Techno Cowboy |
Comments |
#262
|
||||
|
||||
You would need to wrap the code in a conditional.
|
#263
|
||||
|
||||
add
Code:
if ($vbulletin->userinfo['usergroupid'] == 6) { ====================================== Life Status Count Number Format forumhome_complete plugin here between the brackets ====================================== } Code:
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(); } } cause I'm thinking maybe the template needs the condition... anyway the condition is correct ,, just got to add it to the right code ,, |
#264
|
||||
|
||||
Or:
Code:
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. |
#265
|
|||
|
|||
Installed and working great
Thanks for this mod |
#266
|
|||
|
|||
Any chance of a widget to add to the CMS?
|
#267
|
||||
|
||||
Since I don't use the CMS, there are 2 chances for this to happen: slim and none.
|
#268
|
|||
|
|||
its saying the site is only 2 years old. its MUCH older than that.
|
#269
|
||||
|
||||
Are you using single digits in your date like April 1, 1930 if you are change it to April 01, 1930
|
#270
|
|||
|
|||
i dont think i set a date anywhere.
|
#271
|
||||
|
||||
Mate you need to go into your admincp/options/site life status and setup your site status if you expect it to work...
|
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|