vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Forum Home Enhancements - Site Life Status (https://vborg.vbsupport.ru/showthread.php?t=174416)

MissKalunji 06-03-2008 08:45 PM

*sigh* at this rate there won't be anything good left on the .org

Dingo14 06-04-2008 12:29 AM

nice one thanks

SVTCobraLTD 06-04-2008 01:37 PM

Any ideas why this is like this?

Code:

Site Startup Date: June 05, 2006
Site Age: 2 years 10 hours 36 minutes 13 seconds

Says the site is 2 years old yet the startup date is tomorrow.

Boofo 06-04-2008 01:45 PM

Look at the year on the startup date. How can that be tomorrow?

SVTCobraLTD 06-04-2008 01:47 PM

Today is June 4th which would make the site only 1 year and 364 days old.

Boofo 06-04-2008 01:51 PM

Ever heard of Leap Year? ;)

SVTCobraLTD 06-04-2008 01:54 PM

So how do I make this correct? Otherwise it is going to be off and kinda defeats the purpose.

Don't get me wrong, its a great addition to vB because members then know how long the site has been around.

Boofo 06-04-2008 02:02 PM

It counts the seconds and goes from there. It uses 365 days as a year. There is no way to correct it unless you rewrite the whole javascript file for it and that wouldn't be worth the hassle to me. It doesn't defeat any purpose to me the way it is. ;)

leannet 06-04-2008 11:24 PM

~problem solved~

SpeedJunkyz 06-17-2008 05:40 AM

Installation Instructions:
1. Upload life_status.gif to the images/misc folder on your site.
Did this but still have "?" for the image. What did I do wrong?

2. Upload site_life.js to the clientscript folder on your site.
Done, but mine doesn't break it up in days, weeks, etc etc like the demo?


------------------------------------------------------
3. In the includes/config.php file add this at the bottom:
------------------------------------------------------

if(THIS_SCRIPT == 'index')
{
global $specialtemplates;
$specialtemplates = array_merge($specialtemplates, array('boofocounter'));
}
Can we explain this a little more. I think I did it, but not sure if I was correct. How do you do this?


-------------------------------

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

Done......... easy part!



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.DONE
--Site Life Status Startup Date: Enter your site startup date.DONE
--Site Life Status Automatic Template Replace: Click yes to have the template automatically edited.DONE
--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).HUH?:confused:
--Site Life Status Forumhome Page Views Counter: Enter the number of page views, without commas, to start the page views count at. (Example: 16897)DONE

Can anyone assist me please, also will this count the portal page hit aswell? Or do I have to put one on there aswell?

Boofo 06-17-2008 06:50 AM

This will only count the forumhome page hits. Did you get it running?

TimberFloorAu 06-17-2008 08:51 AM

Cheers Boofo :)
Another great mod :)


Ozzy Clicks Installed

SpeedJunkyz 06-17-2008 09:33 AM

yeah it is running I think..... but no picture/icon and I do not know what step #2 and #3 did. I didn;t see a change when i completed it. I uploaded xml file first.....

SJ

Boofo 06-17-2008 10:19 AM

It looks like your image directory setting isn't right in the style. Just edit the template for the hack for the icon directory. It is working. You just need to set the starting hit count that you want to have the count start at. Check the setting for the hack and you can set it there.

SpeedJunkyz 06-17-2008 06:56 PM

How do I edit the template for the hack lol..... Im new at this stuff.

I already did set the hit count....didn't I?

Boofo 06-17-2008 09:01 PM

You can set the hitcount to a higher starting number if you want to. Just look for the template called boofo_site_life_status and change the path to the image in there. Did you upload the image file to the skin misc directory?

SpeedJunkyz 06-17-2008 09:20 PM

I put the image in the Images>misc folder on my server Admin

Boofo 06-17-2008 10:40 PM

Do a right click on where the image should be and look at what the image path is supposed to be. You have uploaded the image to the wrong place for that skin, like I said above.

SpeedJunkyz 06-17-2008 10:56 PM

Ok I will try that.......I may use a different image......BRB

SpeedJunkyz 06-17-2008 11:03 PM

Ok is this what I am looking for?

"The requested URL /forums/images/speedfire/misc/life_status.gif was not found on this server."

I right clicked and only saw open image. so I opened it and it said that^^

Boofo 06-17-2008 11:08 PM

Yes, that is the path you need to upload the image file to:

forums/images/speedfire/misc/

SpeedJunkyz 06-17-2008 11:09 PM

Ok I have fixed the problem. You were right it was in the wrong folder. Thanks for helping me BOOFO is the BOMB!! Kudos to HIM for helping me!!!


go check her out!

www.speedjunkyz.info/forums

Boofo 06-17-2008 11:11 PM

Boofo is a him (let me check...yup). ;)

Boofo 06-17-2008 11:13 PM

You do know you can change the amount of visitors so it matches your starting date more closely, right?

SpeedJunkyz 06-17-2008 11:35 PM

how much do you suggest then...

Boofo 06-17-2008 11:46 PM

Depends on how busy your site it. Let it run for a day and see how many hits you get. Multiply that by the number of days you have been up so far and that should be a good starting point.

GaiLoan 06-18-2008 02:25 AM

this was so cool, thank you Boofo

Alexvanleeuwen 06-18-2008 11:38 AM

Works great, thanks.

For the Dutch people, use only the English months, otherwise the counter won't work, then you only see from 1 to 59 sec.
Dont know if somebody posted this info yet if yes, sorry;)

Boofo 06-18-2008 12:03 PM

That is a limitation of php and javascript. Not much I can do there, sorry.

Alexvanleeuwen 06-18-2008 12:17 PM

Quote:

Originally Posted by Boofo (Post 1552519)
That is a limitation of php and javascript. Not much I can do there, sorry.

Its not a problem:) but it wasnt working until i discovered it, i thought mabey a tip:)

Boofo 06-18-2008 01:03 PM

I think most hacks that use the time and date functions are like that so it is no big news. ;)

msu2k 06-18-2008 03:05 PM

How can I get rid of the "There have been XX visitors to this page." part altogether?

Boofo 06-18-2008 03:20 PM

Edit the template for the hack.

Guy Betten 06-18-2008 08:30 PM

Boofo, I want to thank you for all the work you put into this mod! With all you did for me today, I am up and running. Thanks again, JPT.

Bubble #5 06-21-2008 03:40 AM

Great work Boofo :)

One of those "Why didn't someone think of this before" hacks :p

BeerLuver 06-25-2008 05:14 PM

Hmmm... anyone else have issues with this mod not working right after upgrading to the new 3.7.2 vb patch? It displays and everything, it just doesn't show/count the visitors now... it just stays at 0. It was working fine before upgrading. Any ideas?? Guessing/hoping an update will come about sometime soon then ;).

Boofo 06-25-2008 05:21 PM

Did you replace your config.php file? If so, you need to re-do the edit.

soundbarrierpro 06-25-2008 06:13 PM

I like this, and I will use this. Thank you sir.

BeerLuver 06-26-2008 07:06 AM

Quote:

Originally Posted by Boofo (Post 1558778)
Did you replace your config.php file? If so, you need to re-do the edit.

DOH haha... completely overlooked that. Thanks Boofo :) working fine again.

Boofo 06-26-2008 07:20 AM

You regally don't need to upgrade the config.php on upgrades unless they tell us that they have changed something in it, which seldom happens on minor upgrades.


All times are GMT. The time now is 10:57 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.01511 seconds
  • Memory Usage 1,789KB
  • 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
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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