vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Forum Home Enhancements - Site Life Status for vB 4 (https://vborg.vbsupport.ru/showthread.php?t=243731)

Boofo 05-31-2010 10:00 PM

Site Life Status for vB 4
 
1 Attachment(s)
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';
}


Olli2k 06-01-2010 05:30 PM

Nice addon.
But one question: Is it possible to display the start date in another language and date format?

x626xblack 06-01-2010 06:52 PM

Installed. Works fine. 5 star rated!

Boofo 06-01-2010 06:56 PM

Quote:

Originally Posted by Olli2k (Post 2046602)
Nice addon.
But one question: Is it possible to display the start date in another language and date format?

Well, right now I have it set to show for US date and time. If the date isn't entered by the way the examples show, the js file won't parse it right and the counter will not work. What kind of date and time display are you wanting?

Fuhrmann 06-01-2010 07:24 PM

Quote:

Originally Posted by Boofo (Post 2046636)
Well, right now I have it set to show for US date and time. If the date isn't entered by the way the examples show, the js file won't parse it right and the counter will not work. What kind of date and time display are you wanting?

In my case, time and date display of Brazil.

giorgino 06-01-2010 09:44 PM

... and italian for me :)

Boofo 06-01-2010 10:06 PM

The product is fully phrased except for the startup date setting. You can change the phrases to whatever language you wish. Other than that, I have no plans to make it multi-lingual, especially for anyone who does not install the product.

goxy63 06-01-2010 10:14 PM

How about displaying this just on CMS under some widget?
Tagged, nominated and rated...

Thanks

Boofo 06-01-2010 10:45 PM

Quote:

Originally Posted by goxy63 (Post 2046749)
How about displaying this just on CMS under some widget?
Tagged, nominated and rated...

Thanks

That is possible for a future update. I don't currently use the CMS yet and haven't got it set up. Once I do, I will look into your suggestion.

Dr.osamA 06-01-2010 10:59 PM

1 Attachment(s)
installed + Excellent = 5 Stars + translated to Arabic

i do upgrade too for translation

YouTubeVZ 06-01-2010 11:09 PM

Where i can translate this in German ?!

Boofo 06-01-2010 11:10 PM

Dr.osamA,

Thank you for the Arabic translation. I will add a link in the first post to yours, if that is ok.

YouTubeVZ 06-01-2010 11:15 PM

Quote:

Originally Posted by Boofo (Post 2046636)
Well, right now I have it set to show for US date and time. If the date isn't entered by the way the examples show, the js file won't parse it right and the counter will not work. What kind of date and time display are you wanting?

German... have u this ?

stl7997 06-01-2010 11:17 PM

Great Mod!!! Maybe have this as a widget option? If not, great job!

Boofo 06-01-2010 11:19 PM

Quote:

Originally Posted by stl7997 (Post 2046804)
Great Mod!!! Maybe have this as a widget option? If not, great job!

Please see post #9. ;)

Olli2k 06-02-2010 10:37 AM

Quote:

Originally Posted by Boofo (Post 2046636)
Well, right now I have it set to show for US date and time. If the date isn't entered by the way the examples show, the js file won't parse it right and the counter will not work. What kind of date and time display are you wanting?

I managed it by editing the "Site Life Status Count Number Format" Plugin ($startdate = date("d.m.Y \u\\m G:i", strtotime($vbulletin->options['site_lifestatus_startupdate']));)

Would be nice to see this line getting configured in the Site Life AdminCP settings.

Boofo 06-02-2010 12:25 PM

Date Display Format setting added. Product updated.

Fuhrmann 06-03-2010 07:40 PM

Quote:

Originally Posted by Boofo (Post 2047045)
Date Display Format setting added. Product updated.

Nice, thanks for the update.

Boofo 06-03-2010 07:49 PM

There will be another update coming soon for those who have installed this.

docvader 06-03-2010 08:09 PM

Wow. Truly impressive.

But isn't your code about who gets squat and who gets support a little off?

(not that I'm a code guru by any means...)

Boofo 06-03-2010 08:13 PM

How is it a little off? != means "does not equal".

And thanks for the comment. ;)

docvader 06-03-2010 08:23 PM

me ! smart.

I told you I wasn't a code guru...

Boofo 06-03-2010 08:43 PM

Trust me, I'm not either. I just get lucky once in a while. ;)

princeedward 06-11-2010 07:38 AM

Thanks!!!
Marked Installed-Nominated-Rated Excellent

;)

Dr.osamA 06-13-2010 01:17 AM

Quote:

Originally Posted by Boofo (Post 2046799)
Dr.osamA,

Thank you for the Arabic translation. I will add a link in the first post to yours, if that is ok.

yes thank you man

keep it up

Boofo 06-13-2010 01:21 AM

Quote:

Originally Posted by Dr.osamA (Post 2052729)
yes thank you man

keep it up

The product has been updated since your first translation. It will need to be re-translated.

fluidswork 06-13-2010 02:28 AM

nice addon ...

KURTZ 06-28-2010 05:57 PM

hey Bobby, just a question: the spiders are included in the WOL stats?

PixelFx 06-28-2010 06:00 PM

nice addon, marked it installed for later, thanks for taking the time to put this together

COL NIL SATIS 06-28-2010 06:24 PM

looks awesome..will install later

Boofo 06-28-2010 09:19 PM

Quote:

Originally Posted by KURTZ (Post 2061243)
hey Bobby, just a question: the spiders are included in the WOL stats?

Anyone who visits the page will be counted in the stats. ;)

Dark_Wizard 06-28-2010 09:51 PM

Quote:

Originally Posted by Boofo (Post 2047879)
I just get lucky once in a while. ;)

Sounds like my life story if you know what I mean. :o

Nice hack, installed.

Boofo 06-28-2010 09:59 PM

Us old coots still have a few surprises left, huh, Bob? ;)

Dark_Wizard 06-28-2010 10:01 PM

Quote:

Originally Posted by Boofo (Post 2061365)
Us old coots still have a few surprises left, huh, Bob? ;)

Yes we do.... :eek:

Antiblank 06-29-2010 06:19 AM

Math has been awful for me when it comes to vB4. So I installed the mod, set my start date and get this result as of June 29, 2010 00:12

Site Startup Date Thursday, July 1, 1999 at 12:00 am
Site Age 11 years, 1 day, 12 minutes and 16 seconds

That doesn't seem right, unless I'm missing something about the passing of time.

Boofo 06-29-2010 06:39 AM

I just entered the same date for the Site Life Status Startup Date setting and this is what I got:

Quote:

June 29, 2010 00:12

Site Startup Date: Tuesday, June 29, 2010 at 12:12 am
Site Age: 2 hours, 25 minutes and 31 seconds
Make sure you enter the right time for the Site Life Status Date Display Format. That uses strftime instead of the standard php date.

Antiblank 06-29-2010 06:45 AM

No start up date is July 1, 1999. I was giving you a reference point as to when I was loading the forum page to view. Thus the 'result as of June 29, 2010 00:12'.

As for the Display date I didn't touch it, it's the default installed by the mod:

%A, %B %e, %Y at %l:%M %P

Boofo 06-29-2010 06:52 AM

If your startup date is July 1, 1999, then 11 years is right. Or am I missing something?

Antiblank 06-29-2010 06:58 AM

Well it's June 29th, wouldn't 11 years be July 1st?

Start date 07/01/1999 so 11 years later would be 07/01/2010. By my count 11 years isn't for another 2 days, as I said unless there is some different way it should do math at that level.

mgcom 06-29-2010 07:10 AM

installed with 5 stars

Nice


All times are GMT. The time now is 06:25 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01587 seconds
  • Memory Usage 1,819KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (13)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete