Bring4th Forums
  • Login Register
    Login
    Username:
    Password:
  • Archive Home
  • Members
  • Team
  • Help
  • More
    • About Us
    • Library
    • L/L Research Store
User Links
  • Login Register
    Login
    Username:
    Password:

    Menu Home Today At a Glance Members CSC & Team Help
    Also visit... About Us Library Blog L/L Research Store Adept Biorhythms

    As of Friday, August 5th, 2022, the Bring4th forums on this page have been converted to a permanent read-only archive. If you would like to continue your journey with Bring4th, the new forums are now at https://discourse.bring4th.org.

    You are invited to enjoy many years worth of forum messages brought forth by our community of seekers. The site search feature remains available to discover topics of interest. (July 22, 2022) x

    Bring4th Bring4th Studies Strictly Law of One Material Power Days

    Thread: Power Days


    Questioner (Offline)

    A Server of the Divine Plan, in harmony
    Posts: 1,115
    Threads: 56
    Joined: Oct 2009
    #8
    08-24-2010, 10:12 AM
    I don't have time to implement this, but I can give some tips that might help you.

    The first part you'll need is a data entry form for date of birth. A web form using HTML will work fine. I point out some ways that client-side Javascript in the browser could be used for data entry validation.

    For month, you could either have a drop-down list of month names, or you could just have a text box.

    If you have a text box, you also need script code to validate that the entry was numeric, at least 1, and no greater than 12.

    For day of month, you could have a drop-down list that automatically adjusts its length when a month is chosen. Or you could just have a text box. If you have a text box, you need script code to validate "30 days hath September..." for the numeric entry. If you have a drop-down, you need code that responds to a change of month by updating the day menu.

    For year, you could have a drop-down list going back what you consider a reasonable maximum age for likely users. Or you could just have a text box. If you have a text box, you need to warn if the year of birth entered is in the future, or so far back in the past that the arithmetic could overflow.

    All of this points out one huge limitation of the way software is currently made on the Web. You should be able to get a ready-made "pick a date" script that does all the validation for you, and just drag&drop it into your site. So much for the idea of "component software."

    This is a huge advantage of a software framework like .Net or Java. They include components to provide a graphical interface for selecting a date, with all the validation built in. But they require that the user have a particular type of runtime library or browser plugin installed, which brings security and performance risks. All the fun of being a system administrator, brought right to your lap! Huh

    The Bring4th Dashboard/Edit Your Profile includes an optional area for a user to enter date of birth. I just checked what happens when February 31 is entered. When the Submit button is clicked, the form is redisplayed with an error message that says "The birthday you entered is invalid. Please enter a valid birthday or leave the field empty." So there is minimal validation, but not much in the way of slick data entry functionality.

    Once you have a date of birth to work with, calculating today's level is easy. Just use a date math library to find how many days between today and the given birth date. Divide by 18 and take the remainder.

    Now this value needs to be reported to the user. The number could be shown on a new page that is loaded once the user submits the date of birth. The cool AJAX way of doing things is to let the server update a portion of the page, without a full page load. From the user's point of view, when they enter their date, the date entry area disappears and is replaced by a cool factoid about their current "power days" level.

    The more sophisticated way to report is to show a chart. This means you need some software running on the server to generate a chart. In the Windows world, the server might run Excel. The date of birth is passed in to the Excel file, which calculates power levels going back, say, 30 days, and generates the chart. In the PHP world, probably some open source chart generator would be used, for example libchart: http://naku.dohcrew.com/libchart/pages/introduction/.

    At a corporate job, I worked on a website that provided statistical reports to managers. Data was retrieved from the database, and passed to the user along with a chart generation plugin. The graphics work happened on the client side. The client had tools to switch between different types of charts such as line or bar charts, to zoom in and out and so forth. Obviously something like that would be irrelevant overkill for your project.

    Now, to put it all together in php I found this article with complete sample code. http://www.phpwest.com/articles/54/Basic...f_PHP.html.

    I am very quick at analysis but not that speedy at coding. I guess I just prefer writing in English for people to read. Unlike computers, my human readers can often guess correctly at what I really meant to say. BigSmile

      •
    « Next Oldest | Next Newest »

    Users browsing this thread: 1 Guest(s)



    Messages In This Thread
    Power Days - by Quantum - 08-22-2010, 10:43 PM
    RE: Power Days - by Peregrinus - 08-23-2010, 01:18 PM
    RE: Power Days - by 3D Sunset - 08-23-2010, 01:28 PM
    RE: Power Days - by Questioner - 08-23-2010, 03:18 PM
    RE: Power Days - by Ali Quadir - 08-23-2010, 04:01 PM
    RE: Power Days - by Quantum - 08-23-2010, 06:00 PM
    RE: Power Days - by 3D Sunset - 08-24-2010, 11:14 AM
    RE: Power Days - by Quantum - 08-24-2010, 01:55 PM
    RE: Power Days - by Peregrinus - 08-23-2010, 11:15 PM
    RE: Power Days - by Questioner - 08-24-2010, 10:12 AM
    RE: Power Days - by Quantum - 08-24-2010, 10:42 AM
    RE: Power Days - by Questioner - 08-24-2010, 03:47 PM
    RE: Power Days - by Seeking One - 09-04-2010, 05:43 PM
    RE: Power Days - by Peregrinus - 08-24-2010, 11:53 AM
    RE: Power Days - by Peregrinus - 08-24-2010, 04:42 PM
    RE: Power Days - by Questioner - 08-24-2010, 07:04 PM
    RE: Power Days - by Peregrinus - 08-24-2010, 08:26 PM
    RE: Power Days - by Questioner - 08-24-2010, 08:51 PM
    RE: Power Days - by Lavazza - 08-26-2010, 02:53 PM
    RE: Power Days - by Lavazza - 09-02-2010, 08:05 PM
    RE: Power Days - by Questioner - 09-04-2010, 08:15 PM
    RE: Power Days - by Seeking One - 09-09-2010, 03:53 PM
    RE: Power Days - by Eddie - 09-06-2010, 10:02 AM
    RE: Power Days - by Questioner - 09-11-2010, 05:41 PM
    RE: Power Days - by Seeking One - 09-13-2010, 01:24 PM
    RE: Power Days - by Questioner - 09-13-2010, 01:42 PM
    RE: Power Days - by zenmaster - 09-14-2010, 08:52 PM
    RE: Power Days - by Seeking One - 10-22-2010, 08:49 PM
    RE: Power Days - by βαθμιαίος - 10-22-2010, 09:23 PM
    RE: Power Days - by Lavazza - 10-23-2010, 12:50 PM
    RE: Power Days - by peelstreetguy - 10-23-2010, 01:00 PM
    RE: Power Days - by peelstreetguy - 10-25-2010, 02:22 PM
    RE: Power Days - by 3D Sunset - 10-25-2010, 02:24 PM
    RE: Power Days - by Lavazza - 10-25-2010, 02:26 PM
    RE: Power Days - by βαθμιαίος - 10-25-2010, 02:29 PM
    RE: Power Days - by 3D Sunset - 10-25-2010, 03:03 PM
    RE: Power Days - by βαθμιαίος - 10-25-2010, 03:09 PM
    RE: Power Days - by 3D Sunset - 10-25-2010, 03:24 PM
    RE: Power Days - by peelstreetguy - 10-25-2010, 02:38 PM
    RE: Power Days - by βαθμιαίος - 10-25-2010, 03:25 PM
    RE: Power Days - by Liet - 01-12-2013, 07:34 AM
    RE: Power Days - by zodekai - 02-07-2013, 04:08 PM
    RE: Power Days - by mmlessons - 05-17-2020, 02:21 AM
    RE: Power Days - by flofrog - 05-18-2020, 02:02 AM

    • View a Printable Version
    • Subscribe to this thread

    © Template Design by D&D - Powered by MyBB

    Connect with L/L Research on Social Media

    Linear Mode
    Threaded Mode