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
  #22  
Old 03-28-2008, 04:31 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 iyihost View Post
good hack
Not good enough to rate the install button, I see.
Reply With Quote
  #23  
Old 03-28-2008, 04:38 PM
Snatch Snatch is offline
 
Join Date: Jan 2004
Location: Germany
Posts: 124
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

My Forum is in the Path /htdocs (Domainroot)

The path ist correctly edited but i get this Error on MainPage.

Code:
Warning: fopen([path]) [function.fopen]: failed to open stream: Is a directory in [path]/index.php(539) : eval()'d code on line 12

Warning: fputs(): supplied argument is not a valid stream resource in [path]/index.php(539) : eval()'d code on line 13

Warning: fclose(): supplied argument is not a valid stream resource in [path]/index.php(539) : eval()'d code on line 14
GreeTz
Snatch
Reply With Quote
  #24  
Old 03-28-2008, 04:53 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Did you check the path in the View PHP Info like the install file shows you to be sure?
And did you chmod the file? Show me what you have for that setting.
Reply With Quote
  #25  
Old 03-28-2008, 05:06 PM
Snatch Snatch is offline
 
Join Date: Jan 2004
Location: Germany
Posts: 124
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes.

PHPInfo
Code:
/var/www/virtual/celebritymarkt.org/test.celebritymarkt.org/htdocs
Exact here is the forumhome_pagehits.txt with 777
and the same path "copy&paste" is in the AdminCP options.
Reply With Quote
  #26  
Old 03-28-2008, 05:08 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

you need to add the file name to the end of that path.

/var/www/virtual/celebritymarkt.org/test.celebritymarkt.org/htdocs/forumhome_pagehits.txt
Reply With Quote
  #27  
Old 03-28-2008, 05:08 PM
Snatch Snatch is offline
 
Join Date: Jan 2004
Location: Germany
Posts: 124
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I am so sorry. I vorgot the forumhome_pagehits.txt behind the Path.

Now it runs.

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

I was going to make that an automatic name but I know someone will eventually want to rename that file to something else so I did it this way.
Reply With Quote
  #29  
Old 03-28-2008, 05:18 PM
GrendelKhan{TSU's Avatar
GrendelKhan{TSU GrendelKhan{TSU is offline
 
Join Date: Jun 2005
Location: Boston | Seoul, S. Korea
Posts: 1,311
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

nice thx!!
Reply With Quote
  #30  
Old 03-28-2008, 07:53 PM
Azhrialilu's Avatar
Azhrialilu Azhrialilu is offline
 
Join Date: Aug 2003
Location: Stretton, Derbyshire
Posts: 445
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Another great addition.
Reply With Quote
  #31  
Old 03-28-2008, 08:06 PM
lasto lasto is offline
 
Join Date: Jan 2002
Posts: 1,514
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i think this interferes with cyb advanced stats as gave me quite a few errors at top of board.
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:25 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.11708 seconds
  • Memory Usage 2,312KB
  • 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
  • (2)bbcode_code
  • (1)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