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
  #292  
Old 06-30-2008, 05:04 AM
EagleNick's Avatar
EagleNick EagleNick is offline
 
Join Date: Dec 2007
Location: Florida
Posts: 517
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I did.

Here is the last part of my config.php file:
Code:
// Image Processing Options
    // Images that exceed either dimension below will not be resized by vBulletin. If you need to resize larger images, alter these settings.
$config['Misc']['maxwidth'] = 2592;
$config['Misc']['maxheight'] = 1944;

/*======================================================================*\
|| ####################################################################
|| # Downloaded: 19:17, Fri Feb 22nd 2008
|| # CVS: $RCSfile$ - $Revision: 16258 $
|| ####################################################################
\*======================================================================*/


if(THIS_SCRIPT == 'index')
{
global $specialtemplates;
$specialtemplates = array_merge($specialtemplates, array('boofocounter'));
Reply With Quote
  #293  
Old 06-30-2008, 05:05 AM
EagleNick's Avatar
EagleNick EagleNick is offline
 
Join Date: Dec 2007
Location: Florida
Posts: 517
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Heh...

Sorry, I was wrong. I did the edit but I forgot to re-upload the file. LOL
Reply With Quote
  #294  
Old 06-30-2008, 05:36 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Where is the closing bracket? You need a } tthe end of that code.
Reply With Quote
  #295  
Old 06-30-2008, 05:52 AM
EagleNick's Avatar
EagleNick EagleNick is offline
 
Join Date: Dec 2007
Location: Florida
Posts: 517
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I accidentally left that out when I copied and pasted the code... but it's there in the file
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:39 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.03978 seconds
  • Memory Usage 2,248KB
  • Queries Executed 19 (?)
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
  • (1)bbcode_code
  • (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
  • (2)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (5)post_thanks_box
  • (5)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (5)post_thanks_postbit_info
  • (4)postbit
  • (5)postbit_onlinestatus
  • (5)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