Go Back   vb.org Archive > vBulletin Modifications > Archive > Modification Graveyard
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Site Life Status Details »»
Site Life Status
Version: 1.0.4, by Boofo Boofo is offline
Developer Last Online: Jun 2012 Show Printable Version Email this Page

Category: Forum Home Enhancements - Version: 3.7.x Rating:
Released: 03-27-2008 Last Update: 05-15-2008 Installs: 240
DB Changes Uses Plugins Template Edits Auto-Templates
Additional Files  
No support by the author.

Site Life Status for vB3.7
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 and a Pagehits counter 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.1 --Initial release for vB3.7
Version 1.0.2 --Fixed changed variable in the template manual edit code.
Version 1.0.3 --Added phrases for counter. Now fully phrased.
Version 1.0.4 --Counter moved to the datastore. Added setting for the page views start count.

NOTE: You will need to uninstall any previous version and do a clean install of 1.0.4 to upgrade. You will also need to delete the forumhome_pagehits.txt file as it is no longer needed.

Credits:
A big thank you goes out to Shawn Dean for supplying the javascript code for the Site Age counter.

Installation overview:
Products to install: (1)
Templates to edit: (1) - Optional
Files to edit: (1)
Files to Upload: (2)
Images to upload (1)

Installation Instructions:
1. Upload life_status.gif to the images/misc folder on your site.

2. Upload site_life.js to the clientscript folder on your site.
-------------------------------

4. 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-site_lifestatus.xml file on your computer

5. Go to your Admin CP -> vBulletin Options -> Help 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 Automatic Template Replace: Click yes to have the template automatically edited.
--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)


NOTE: You are done unless you opted to do the manual template install. If you chose Site Life Status Automatic Template Replace, there is no need to do the manual template edit in the install file.

Done!
Enjoy!

NOTE: If you do not click install, you do not need support.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #102  
Old 04-20-2008, 12:44 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What do you mean by 'reset'? Since the page count is read from the file only, it has no way to remember any count to be reset to other than what is written to the file. Mine is working flawlessly, and has been since I installed it. You can try taking the following line out of the code in the forumhome_complete hook to see it that helps:

Code:
 
$hits[0] = (float) $hits[0];

Since you guys are using such ridiculously large numbers, that might be the reason it is acting up on you.
Reply With Quote
  #103  
Old 04-20-2008, 02:23 PM
Bounce's Avatar
Bounce Bounce is offline
 
Join Date: Mar 2004
Location: Edinburgh,Scotland
Posts: 919
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Boofo View Post
Since you guys are using such ridiculously large numbers, that might be the reason it is acting up on you.
Why??

Won't number's of hits ever get that high, if we got say 3,000 hits a week (some site's i'd say get far more than that) over 52 weeks and 5 years thats a high number
Reply With Quote
  #104  
Old 04-20-2008, 02:49 PM
MissKalunji's Avatar
MissKalunji MissKalunji is offline
 
Join Date: Aug 2003
Location: Canada
Posts: 2,845
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

uhm ima have to check if mine does the same i did wonder why it was staying at 37,xxx for the past week
Reply With Quote
  #105  
Old 04-20-2008, 03:48 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by MissKalunji View Post
uhm ima have to check if mine does the same i did wonder why it was staying at 37,xxx for the past week
Maybe it's been a slow week?
Reply With Quote
  #106  
Old 04-20-2008, 04:34 PM
princeedward's Avatar
princeedward princeedward is offline
 
Join Date: Jan 2007
Location: Deutschland
Posts: 901
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Boofo View Post
What do you mean by 'reset'? Since the page count is read from the file only, it has no way to remember any count to be reset to other than what is written to the file. Mine is working flawlessly, and has been since I installed it. You can try taking the following line out of the code in the forumhome_complete hook to see it that helps:
Code:
 
$hits[0] = (float) $hits[0];
Since you guys are using such ridiculously large numbers, that might be the reason it is acting up on you.
i'm watching or observing it the whole day...i guess the "TRICK" work or hope it will go on now without problem...i did edit also that thing into higher numbers...just to look more better than a forum that just been started...with a low numbers of visitors...
but as i said...i guess...it stay now to what i expected...thanks once again Bro Boofo

best regards

Reply With Quote
  #107  
Old 04-20-2008, 04:51 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Keep me posted on whether the fix works for you.
Reply With Quote
  #108  
Old 04-20-2008, 06:10 PM
Bounce's Avatar
Bounce Bounce is offline
 
Join Date: Mar 2004
Location: Edinburgh,Scotland
Posts: 919
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I've took out the code as well and so far all is well

Code:
$hits[0] = (float) $hits[0];
Reply With Quote
  #109  
Old 04-20-2008, 11:51 PM
MissKalunji's Avatar
MissKalunji MissKalunji is offline
 
Join Date: Aug 2003
Location: Canada
Posts: 2,845
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Boofo View Post
Maybe it's been a slow week?
Thats' why i said ill have to keep a close eye on it
Reply With Quote
  #110  
Old 04-21-2008, 01:47 AM
fukdawrld fukdawrld is offline
 
Join Date: Nov 2005
Posts: 147
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

PHP Code:
Warningfputs(): supplied argument is not a valid stream resource in [path]/index.php(552) : eval()'d code on line 251

Warning: fclose(): supplied argument is not a valid stream resource in [path]/index.php(552) : eval()'
d code on line 252 
now everything is chmod 777 and also script is uploaded.. and my test forum is not open this is what i get @ the top


dam i am so dumb thanx any way
Reply With Quote
  #111  
Old 04-21-2008, 02:03 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by fukdawrld View Post
PHP Code:
Warningfputs(): supplied argument is not a valid stream resource in [path]/index.php(552) : eval()'d code on line 251
 
Warning: fclose(): supplied argument is not a valid stream resource in [path]/index.php(552) : eval()'
d code on line 252 
now everything is chmod 777 and also script is uploaded.. and my test forum is not open this is what i get @ the top


dam i am so dumb thanx any way
It looks like the path to the txt file is wrong or missing.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:50 AM.


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.04856 seconds
  • Memory Usage 2,326KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (3)bbcode_code
  • (2)bbcode_php
  • (5)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete